Kieran Prasch
0c528eaa7a
Linting and Newsfrag for PR #3315
2023-10-31 14:30:15 +01:00
Kieran Prasch
f4caacc4b1
update scripts usage of taco domains; conventionally use str() on domains usages
2023-10-31 14:30:15 +01:00
Kieran Prasch
c87d4f5d1d
forgotten internal API change
2023-10-31 14:30:15 +01:00
Kieran Prasch
7246e10f84
type hinting and removal of misleading comments.
2023-10-31 14:30:15 +01:00
Kieran Prasch
de8d96e8ea
use domain lookups sparingly and cache the lookups results
2023-10-31 14:30:15 +01:00
Kieran Prasch
ae9f4b40fa
Use a constant for the temporary domain
2023-10-31 14:30:15 +01:00
Kieran Prasch
63b3d4aee9
Use a single collection (SUPPORTED_DOMAINS) for supported domains.
2023-10-31 14:30:15 +01:00
Kieran Prasch
0bc6840b17
do not name shadow domains in reworked mocking
2023-10-31 14:30:15 +01:00
Kieran Prasch
0df05d38f2
Conventionally import (collapsed) domains for namespacing
2023-10-31 14:30:15 +01:00
Kieran Prasch
b1afa231d5
use TACoDomain everywhere
2023-10-31 14:30:15 +01:00
Kieran Prasch
09bc914ce7
renames TEMPORARY_DOMAIN -> TEMPORARY_DOMAIN_NAME
2023-10-31 14:30:15 +01:00
Kieran Prasch
b538e58f57
use TACoDomain for internal APIs
2023-10-31 14:30:15 +01:00
Kieran Prasch
26be277d88
Turns TACoDomain into a concrete class literal
2023-10-31 14:30:15 +01:00
derekpierre
ad05964695
Add bugfix newsfragment for #3312 .
2023-10-31 11:43:19 +01:00
Kieran Prasch
a8c630458e
newsfragment for PR #3312
2023-10-31 11:43:19 +01:00
derekpierre
927f07379c
Modify test to call get_context_value instead of calling directive directly.
2023-10-31 11:43:19 +01:00
derekpierre
bf328db437
Add unit tests for time condition negative validation of return value type.
2023-10-31 11:43:19 +01:00
derekpierre
29c5b24064
Optimize resolution of context variables and adjustment of return value test by moving outside of providers for loop - it only needs to be done once.
2023-10-31 11:43:19 +01:00
derekpierre
38e001fa75
Add tests for condition provider handling.
2023-10-31 11:43:19 +01:00
derekpierre
b68652422e
Split out validity unit tests into specific condition class tests.
...
Add tests for more invalid cases across condition types.
Improve tests to ensure that expected message is raised in exceptions.
2023-10-31 11:43:19 +01:00
derekpierre
417758dd16
Fix exception message.
2023-10-31 11:43:19 +01:00
derekpierre
27c9306f0e
Improve naming for context var testing.
2023-10-31 11:43:19 +01:00
derekpierre
4390525197
Add tests for function abi validation for ContractCondition.
2023-10-31 11:43:19 +01:00
derekpierre
da928a8b77
Separate validation of condition method name from abi method name.
2023-10-31 11:43:19 +01:00
derekpierre
0ebcb6ed70
Add test when provided chain id is not an int.
2023-10-31 11:43:19 +01:00
derekpierre
065f49b994
Remove unreachable code.
2023-10-31 11:43:19 +01:00
derekpierre
99644475ea
Add testing with/without context var only, and both for more robust testing.
...
Allowing with context var only only allows for testing mismatched expected types when context var is populated at decryption time since it couldn't be checked at condition initialization.
2023-10-31 11:43:19 +01:00
derekpierre
cde656991b
Reword exception when comparator value type does not match expected type.
2023-10-31 11:43:19 +01:00
derekpierre
0abebc8546
Add test for unexpected type when comparator value is a sequence.
2023-10-31 11:43:19 +01:00
derekpierre
754b9cee92
Fix bug where context variable not being checked for multiple output comparator value.
2023-10-31 11:43:19 +01:00
derekpierre
207bc5329b
Remove unnecessary utility function for `validate_condition_lingo`; instead ConditionLingo.from_dict() can be used.
2023-10-31 11:43:19 +01:00
derekpierre
ccd214d0f7
Improve testing of negative/failure case for ConditionLingo.from_json.
2023-10-31 11:43:19 +01:00
derekpierre
e77b92a223
Add test where return value index is not applicable for data returned from contract call.
2023-10-31 11:43:19 +01:00
Kieran Prasch
154ff7e4a3
remove unreachable code blocks
2023-10-31 11:43:19 +01:00
Kieran Prasch
9c93dee28e
eager validation of a contract function ABIs.
2023-10-31 11:43:19 +01:00
KPrasch
2af82031c6
Update README.md
...
Co-authored-by: Arjun Hassard <arjunhassard@gmail.com>
2023-10-30 23:13:12 +01:00
Kieran Prasch
73227a2072
updates README links
2023-10-30 23:13:12 +01:00
Kieran Prasch
9666b88eb2
Relocate nucypher.png and releases.rst to the project root.
2023-10-30 23:13:12 +01:00
Kieran Prasch
b85bc06021
removes docs building section from CONTRIBUTING.rst
2023-10-30 23:13:12 +01:00
Kieran Prasch
9bb0222afc
Use TACo blurb and link in README.md
2023-10-30 23:13:12 +01:00
Kieran Prasch
52f5440991
preserve CONTRIBUTING.rst
2023-10-30 23:13:12 +01:00
Kieran Prasch
dd23224c3a
apply code formatting
2023-10-30 23:13:12 +01:00
Kieran Prasch
701f31bc64
newsfragment for PR #3311
2023-10-30 23:13:12 +01:00
Kieran Prasch
91cbe64067
removes CONTRIBUTING.rst symlink
2023-10-30 23:13:12 +01:00
Kieran Prasch
2a44cf105a
relock depdendencies (without jinja pin)
2023-10-30 23:13:12 +01:00
Kieran Prasch
d745d96089
preserve a simplified version of the README
2023-10-30 23:13:12 +01:00
Kieran Prasch
d0cafca951
removes documentation build support.
2023-10-30 23:13:12 +01:00
Kieran Prasch
26714272c0
preserve release notes
2023-10-30 23:13:12 +01:00
Kieran Prasch
deada0f324
Remove legacy documentation. (please see https://docs.threshold.network instead).
2023-10-30 23:13:12 +01:00
Kieran Prasch
4a145e13ba
respond to RFCs in PR #3317
2023-10-30 20:58:03 +01:00