derekpierre
26aaf775e3
Change TimeCondition method name to "blocktime" from "timelock".
2023-06-08 11:03:48 -04:00
derekpierre
66f26c032c
Change TimeCondition to use block time instead of Ursula system time.
...
Rename ReencryptionCondition to AccessControlCondition.
2023-06-08 11:03:22 -04:00
derekpierre
37ef40f482
Fixed incompatibility between Schema and their associated objects leading to invalid json being allowed, and valid json sometimes not being allowed.
...
Added tests.
2022-11-21 12:37:42 -05:00
Kieran Prasch
6ca73c2849
remove lisence header from tests
2022-11-16 13:27:47 +00:00
James Campbell
bdaaafd9c3
Fix newsfragment and ensure conditions test has a valid method
2022-11-15 14:58:56 +00:00
James Campbell
4c5dadbad4
Resolve `function_abi` AFTER condition is initialized
...
Fixes #3012
Problem
-------
- when specifying a `standard_contract_type`, the `function_abi` is resolved
immediately
- when this condition is serialized, it contains both `standard_contract_type`
and `function_abi`, which we are trying to prevent
Solution
--------
- call `_resolve_abi` after the condition is initialized
2022-11-15 14:47:11 +00:00
James Campbell
656ff8071c
Improve error types raised by Return Values
2022-11-14 18:27:48 +00:00
Kieran Prasch
38283661b1
Strict typing for _resolve_abi; Simplifies enforcement of single-function ABI for condition definition.
2022-11-14 14:32:27 +00:00
James Campbell
48cc132580
Use web3 to find functions from contract abi in return value test
2022-11-14 14:32:13 +00:00
James Campbell
beec9958d1
Add test for method not in standard contract abi
2022-11-14 14:32:13 +00:00
derekpierre
1a56decb1a
Move condition-related exceptions to an exceptions module.
2022-11-09 19:20:17 -05:00
Kieran Prasch
d2dcdb9230
Introduce dynamic multi-chain support; enforce condition chain ID as an int.
2022-11-07 12:51:31 +00:00
derekpierre
b7f1a1085a
Apply RFCs from #2980 .
2022-10-18 20:09:26 +02:00
derekpierre
27d6112de1
Exception occuring during RPC call is propagated back to the caller as error message.
...
Better exception handling by condition objects either at creation or verification - including some refactoring of RPCCondition/ContractCondition.
Added/updated unit tests.
2022-10-18 20:09:25 +02:00