derekpierre
2a0bd02203
Move TESTERCHAIN chain information out of domains and into testing constants.
2023-10-05 08:27:44 -04:00
derekpierre
d8b9180921
Update domains/TACoDomain structure.
...
Added magic methods.
2023-10-05 06:20:13 -04:00
derekpierre
ee6a48070f
Remove policy_registry/policy_registry_filepath which are unused and unnecessary parameters.
2023-10-04 15:41:56 -04:00
derekpierre
568270d36c
Allow MockRegistrySource to take any domain value while allowing the accepted values to be specified.
...
Update various tests that used random domain values to either use the mock, or just use TEMPORARY_DOMAIN if applicable.
2023-10-04 13:30:18 -04:00
derekpierre
6a508e6aed
Yield after patching allowed domains.
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
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
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
fa4051d504
Rename Eth/PolyNetwork to Eth/PolyChain to better reflect their usage.
2023-10-04 13:30:18 -04:00
derekpierre
738182ab98
Remove use of pre_payment_network and coordinator_network since the corresponding polygon network is always implied based on the TACo network used.
...
Remove coordinator_provider_uri, use of pre_payment_network.provider because all characters now define polygon_endpoint parameter.
2023-10-04 13:30:18 -04:00
derekpierre
32a3b432d7
Provide richer chain information from TACoNetwork class including chain id and name for underlying blockchain networks.
2023-10-04 13:30:18 -04:00
derekpierre
33068070fc
Rename pre_payment_provider to polygon_endpoint as it pertains to Characters/Configurations/CLI parameters.
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
derekpierre
6602192368
Update mocking for NetworksInventory class in tests.
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
derekpierre
869ef1fbda
Remove EconomicsFactory/Economics.
2023-09-21 12:31:21 -04:00
derekpierre
e1eb8cb0c1
Ensure that test Ursulas set their provider public key after being initialized.
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
59da3dffcf
Remove unused method from ape utils.
2023-09-14 16:26:05 -04:00
derekpierre
b8b8fc0c38
Remove special logic for using ape config for deployments, and instead use ape pytest fixtures for contract deployment/management.
2023-09-14 16:26:05 -04:00
derekpierre
75be004564
Update acceptance tests contract deployment / fixtures; StakeInfo is no longer a contract.
2023-09-14 16:26:05 -04:00
derekpierre
e943ca7b8f
Rename PREApplicationAgent to TACoApplicationAgent; also rename associated variables/comments etc.
2023-09-08 09:27:04 -04:00
derekpierre
4b8f6d95f2
Cleanup testing blockchain utilities imports.
2023-09-07 20:58:17 -04:00
derekpierre
2e47626c90
Fix mispelled constant.
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
Kieran Prasch
0e96f5c76c
modifies ape -> nucypher registry adapter function to handle both local and dependency contract ABI entries.
2023-09-07 18:33:06 -04:00
Manuel Montenegro
fe75f75998
Update tests to new TACo nucypher contracts
...
This commit is aimed to update test to the following changes on
nucypher-contracts repo:
- Update SimplePREApplication with TACoApplication
- Replace ThresholdStakingForPREApplicationMock contract with
ThresholdStakingForTACoApplicationMock
- Use the new Coordinator contract
- Add the deployment of StakeInfo contract
The use of these new contracts made necessary the following changes:
- Add the deployment of a new Token for ritual fees: RitualToken. This
contract has been added as local deployment.
- Add the deployment of local contract ConditionNFT
Additionally, this commit updates the key character for arguments in
ape-config.yaml. From '::variable::' to <variable>, which results in a
more legible code.
Finally, this commit solves some linting and formatting issues.
Co-authored-by: LunarBytes <kieran@nucypher.com>
2023-09-07 18:32:58 -04:00
derekpierre
ccbabde014
Use specific test account since we derive test accounts from a mnemonic - index of `0` is always the same account, so just use it.
2023-09-05 13:36:35 -04:00
Kieran Prasch
fc543c49dc
dehydrate multichain test mocks and utilities for fixture resuse in multiple suites.
2023-08-24 14:26:29 +02:00
Kieran Prasch
a6a265675d
Caracters (config) are blockchainy
2023-06-26 20:42:51 +02:00
Kieran Prasch
c895d24ba9
use TEST_ETH_PROVIDER_URI in favor of PYEVM_DEV_URI
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
4f5a220ea4
fix missing imports
2023-05-04 13:35:40 -07:00
Kieran Prasch
ec48a96532
Improves testerchain deploy configuraion YML support.
2023-05-04 10:15:17 -07:00
Kieran Prasch
c85f1f2f59
assorted bugfixes related to fixtures and testerchain arising from the migration to ape.
2023-05-02 10:23:24 -07:00
Kieran Prasch
93e45bc612
get ape contract ABIs from an in-memory vs. on-disk source.
2023-05-02 10:23:24 -07:00
derekpierre
d42b445d63
Fix use of ape project fixture.
2023-05-02 10:23:24 -07:00
Kieran Prasch
21fa6edc7b
new ape testing utils module
2023-05-02 10:23:24 -07:00
derekpierre
67a7bb7da6
Code testing cleanup.
2023-05-02 10:23:24 -07:00
derekpierre
c157c8ccf7
Fix some tests; ERC721 contract needs to be deployed on APE, and MockContractAgency import is now inlined.
2023-05-02 10:23:24 -07:00
Kieran Prasch
a19c50ec69
ape checkpoint 1
2023-05-02 10:23:24 -07:00
Kieran Prasch
c654e45367
updates for web3.py 6+
2023-05-02 10:23:24 -07:00
Kieran Prasch
33bcea650d
DKG encryption functionality for Enrico
2023-05-02 10:23:00 -07:00
derekpierre
39b808a52d
Re-add test `test_invalid_operators_tolerance` to get test mostly running. Unclear how to fix the code at the end of the test - so commented for now.
...
Remove unused testing utils method.
2022-12-22 15:23:33 -05:00
derekpierre
9b0f645be7
Remove tests for deployment of deprecated contracts.
...
Code cleanup of docstrings and comments.
2022-12-22 15:07:52 -05:00
derekpierre
889cc58a88
Remove code/tests that still reference the legacy notion of periods.
2022-12-22 15:05:50 -05:00