derekpierre
97425b162e
Reduce calls made by client to get chain id whenever integer returned instead of hex - if integer there were 2 calls, which was unnecessary.
...
Add test for caching of chain id by EthereumClient object.
2023-10-16 10:53:20 -04:00
derekpierre
c9b417271a
Add unit test to verify all domain chains are supported as condition chains.
2023-10-06 15:20:45 -04:00
derekpierre
7c884d2392
Rename unit test so no naming conflict with integration test.
2023-10-05 10:42:22 -04:00
derekpierre
4865053f8c
Fix failing unit test.
2023-10-05 08:46:55 -04:00
derekpierre
4ed74fc0f2
Rename PolygonChain.POLYGON to PolygonChain.MAINNET.
...
Remove ORYX, IBEX domains.
2023-10-05 08:25:58 -04:00
derekpierre
dc547249ae
Reduce scope of fixture froms session to module, so that its effects can be overridden by test modules.
...
Added unit tests for get_domain_info.
2023-10-05 06:55:32 -04:00
derekpierre
247b93859e
Add unit test for structures in domains.py.
2023-10-05 06:46:15 -04:00
derekpierre
d8b9180921
Update domains/TACoDomain structure.
...
Added magic methods.
2023-10-05 06:20:13 -04:00
derekpierre
cbb776f68b
Fix failing test (after rebase).
2023-10-04 13:30:18 -04:00
derekpierre
a5b8b805da
The use of the `blockchain_` prefix for blockchain providers and interfaces is redundant; so remove the prefix from those usages.
2023-10-04 13:30:18 -04:00
derekpierre
bee3c926d4
Rename networks module to domains, and remove NetworksInventory class; module contains all values and methods now.
2023-10-04 13:30:18 -04:00
derekpierre
4507580196
Update CLI --network option to be --domain.
...
Update subsequent function calls to use domain as well instead of network.
Update some constants to use _DOMAIN instead of _NETWORK.
2023-10-04 13:30:18 -04:00
derekpierre
206ebb4d8e
IBEX no longer a supported domain name.
2023-10-04 13:30:18 -04:00
derekpierre
2d2b67e5d2
Rename of various functions/constants from NetworksInventory to use domain instead of network.
...
Rename variables obtained by calling into NetworksInventory to use domain instead of network.
Rename NuCypherNetworkName CLI validation object into NuCypherDomainName.
2023-10-04 13:30:18 -04:00
derekpierre
05fba15c1e
More renames of provider_uri to blockchain_/eth_ endpoint.
2023-10-04 13:30:18 -04:00
derekpierre
eafe4b65a9
Rename provider_uri parameter for ContractAgents.get_agent to blockchain_endpoint.
2023-10-04 13:30:18 -04:00
derekpierre
941b21f34f
More renames of instances of eth_provider_uri to either blockchain_endpoint or eth_endpoint.
2023-10-04 13:30:18 -04:00
derekpierre
74517534f5
Use correct value from enum for teacher nodes.
...
Add unit test for supported taco networks.
2023-10-04 13:30:18 -04:00
derekpierre
4166c7dae9
Rename eth_provider_uri to eth_endpoint as it pertains to Characters/nodes/CLI options.
2023-10-04 13:30:18 -04:00
Kieran Prasch
1858f49a99
tests use the refactored ContractRegistry and RegistrySource interfaces
2023-10-04 19:24:43 +02:00
Kieran Prasch
f96c9ccd30
Reworks contract registry interfaces and data format; Simplified registry with reduced indirection and removed write functionality.
2023-10-04 19:24:43 +02:00
Kieran Prasch
c2baae28d8
Introduces InMemorySigner
2023-09-27 19:34:01 +02:00
derekpierre
869ef1fbda
Remove EconomicsFactory/Economics.
2023-09-21 12:31:21 -04:00
Kieran Prasch
7689cc0769
removal and reorg of 'trackers' in preperation for publishing ofprovider public key to Coordinator.
2023-09-14 16:26:05 -04:00
Kieran Prasch
499f903976
Adapt tests and exmaples to merged Operator, without Ritualist.
2023-09-14 16:26:05 -04:00
derekpierre
3a98c38b6a
Add required arguments for tests using MockCoordinator given the new values stored by the Ritual struct.
2023-09-07 18:35:00 -04:00
Kieran Prasch
0c69c142b6
handle fees, authority, and access controller in several tests
2023-09-07 18:35:00 -04:00
Kieran Prasch
56486f74df
assorted 'initiator' -> 'authority'
2023-09-07 18:35:00 -04:00
derekpierre
81121bc4c5
Accomodate obtaining dkg threshold from Coordinator contract/Ritual object.
...
MockCoordinatorAgent simply uses a class method to determine threshold (allows for both simple/precomputed) to still be tested in integration tests.
2023-09-07 18:35:00 -04:00
derekpierre
dc68949b15
Use random global allow list value for ritualist unit test.
2023-09-07 18:35:00 -04:00
Kieran Prasch
2342f7f1ef
initial steps to establish on-chain ritual access control via GlobalAllowList in tests
2023-09-07 18:34:58 -04:00
Piotr Roslaniec
c19d97b39f
apply pr suggestions
2023-08-23 20:12:22 +02:00
Piotr Roslaniec
097ffad90e
feat!: add condition type to condition schemas
2023-08-23 20:07:24 +02:00
derekpierre
a8f2e49c76
TTL Cache utility.
2023-07-21 13:42:33 -04:00
derekpierre
83b874afd1
Add tests for checking pending tx before performing ritual duties.
2023-07-17 14:24:32 -04:00
derekpierre
e56af754d0
Add tests for updated code in Ritualist and ActiveRitualTracker - make relevant code changes for tests to pass.
2023-07-13 09:12:03 -04:00
derekpierre
b0b99b24cf
Allow dkg actions for the ritual rounds to check contract ritual state, before acting on an event, with respect to potentially previously already processed events.
2023-07-13 09:10:06 -04:00
Kieran Prasch
a6a265675d
Caracters (config) are blockchainy
2023-06-26 20:42:51 +02:00
Kieran Prasch
74c18f33d7
passing test suite with internal cache supporting multichain.
2023-06-26 20:42:51 +02:00
Kieran Prasch
1dd541725f
another step in the direction of formalized internal multichain routing
2023-06-26 20:42:51 +02:00
Kieran Prasch
fdb28dd21e
Improves multichain provider internal routing correctness.
2023-06-26 20:42:51 +02:00
derekpierre
b0dd6ac569
Additional testing clean up.
2023-06-15 08:54:31 -04:00
derekpierre
53955cb80b
Use semver for lingo versioning. Ensure that major version changes are recognized as incompatible.
2023-06-15 08:54:31 -04:00
derekpierre
d69b62d8b3
Initial musing about versioned condition lingo i.e. overall condition language; will add semver functionality later.
2023-06-15 08:54:31 -04:00
derekpierre
13db8d225e
Fix comments based on feedback from #3145 .
2023-06-14 19:38:30 -04:00
derekpierre
c4b217e223
Ensure that the underlying marshmallow schema ValidationError is not propagated but gets reraised as InvalidConditionLingo.
2023-06-14 19:38:30 -04:00
derekpierre
45a420a9db
Localize condition lingo handling/processing to one function - `evaluate_condition_lingo`.
2023-06-14 19:38:30 -04:00
derekpierre
4214a9b009
Add tests/fixes for compound conditions.
2023-06-14 19:38:30 -04:00
derekpierre
610f7436f0
Initial work that replaces infix notiation with prefix notation for logical conditions.
2023-06-14 19:38:30 -04:00
derekpierre
26aaf775e3
Change TimeCondition method name to "blocktime" from "timelock".
2023-06-08 11:03:48 -04:00