Commit Graph

11293 Commits (09bc914ce780ef046bcffdd1ba39ea048e952674)

Author SHA1 Message Date
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
Kieran Prasch fc970602a3 apply code linting and formatting 2023-10-30 20:58:03 +01:00
Kieran Prasch d3e9dac45c newsfrag for PR #3317 2023-10-30 20:58:03 +01:00
Kieran Prasch 10e18fc353 removes dead cli code: show_staking 2023-10-30 20:58:03 +01:00
derekpierre 56b7fbc43d Update ape config to use oz 5.0.0 and solidity compiler 0.8.22 - same as `nucypher-contracts`.
Don't use ProxyAdmin for acceptance tests anymore since oz 5.0.0 has it built into TransparentUpgradeableProxy.
Don't seprate implementation and proxy contracts for test fixtures - use one and only return proxy.
2023-10-30 20:25:47 +01:00
derekpierre 8e5807c676 Update total supply value of test token to be 11B. 2023-10-30 20:25:47 +01:00
derekpierre 4ee0963666 Update deployment constructor parameters for TACoChildApplication to include minimum authorization. 2023-10-30 20:25:47 +01:00
Kieran Prasch 12af1d00c9 placeholder newsfragment 2023-10-30 20:25:47 +01:00
Kieran Prasch c44cfc6fd6 Bump version: 7.0.0-rc.3 → 7.0.0-rc.4 2023-10-26 22:10:45 +02:00
derekpierre c2f60e7a96 Apply RFC from #3303. 2023-10-26 20:22:28 +02:00
derekpierre bae37d4336 Catch TypeError instead of Exception when checking ability to serialize to JSON. 2023-10-26 20:22:28 +02:00