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
derekpierre
1953e80be0
Choose random condition from list so that different condition types are continually tested by dkg ritual acceptance test.
2023-10-26 20:22:28 +02:00
derekpierre
210a603c9d
Handle bytes when nested within lists/sub-lists comparator values/results.
2023-10-26 20:22:28 +02:00
derekpierre
b310defc0a
Additional refactoring when aligning comparator based on outputs.
2023-10-26 20:22:28 +02:00
Kieran Prasch
f1a475db8b
extract _validate_contract_type_or_function_abi to validation.py
2023-10-26 20:22:28 +02:00
Kieran Prasch
4336c4caae
Extract stateless condition type checkers to validation.py
2023-10-26 20:22:28 +02:00
Kieran Prasch
68b018d222
modularize condition type enforcement
2023-10-26 20:22:28 +02:00
derekpierre
28b23a7cc5
Apply RFCs from #3303 .
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2023-10-26 20:22:28 +02:00
derekpierre
51bb2d5ca2
Test cleanup - don't repeat entire condition for certain more invloved tests eg. tuples.
2023-10-26 20:22:28 +02:00
derekpierre
1485234bda
Rename helper method and make it static.
2023-10-26 20:22:28 +02:00
derekpierre
45e9096c07
Add tests for bytes abi output types and comparing it to hex comparator values.
2023-10-26 20:22:28 +02:00