Kieran Prasch
d63a6cb93d
Expands domains data model to include condition chains
2023-10-31 17:23:43 +01:00
Kieran Prasch
63d2e0265c
Makes TACoDomain.__hash__ consistent with __eq__.
2023-10-31 14:30:15 +01:00
Kieran Prasch
9599b9e632
Handle domains during CLI account selection of signers.
2023-10-31 14:30:15 +01:00
Kieran Prasch
0c528eaa7a
Linting and Newsfrag for PR #3315
2023-10-31 14:30:15 +01:00
Kieran Prasch
ae9f4b40fa
Use a constant for the temporary domain
2023-10-31 14:30:15 +01:00
Kieran Prasch
63b3d4aee9
Use a single collection (SUPPORTED_DOMAINS) for supported domains.
2023-10-31 14:30:15 +01:00
Kieran Prasch
0bc6840b17
do not name shadow domains in reworked mocking
2023-10-31 14:30:15 +01:00
Kieran Prasch
0df05d38f2
Conventionally import (collapsed) domains for namespacing
2023-10-31 14:30:15 +01:00
Kieran Prasch
b1afa231d5
use TACoDomain everywhere
2023-10-31 14:30:15 +01:00
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
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
10e18fc353
removes dead cli code: show_staking
2023-10-30 20:58:03 +01:00
derekpierre
0dfd03a9b6
Conditions are much more strict about typing now, update tests/scripts to be more accurate about types for comparator values.
2023-10-26 20:22:28 +02:00
Manuel Montenegro
56a7e48b8d
Add a new test for IP address detection
2023-10-26 12:03:29 +02:00
Manuel Montenegro
b9b51f16d2
Fix typo in assert
2023-10-26 12:03:29 +02:00
KPrasch
80aa3c5ca4
Merge pull request #3293 from derekpierre/what-not
...
Add Not Operator Functionality
2023-10-20 11:03:27 +02:00
KPrasch
9c750c7dd1
Apply suggestions from code review
...
Co-authored-by: piotr-roslaniec <39299780+piotr-roslaniec@users.noreply.github.com>
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2023-10-19 17:06:04 +02:00
KPrasch
de9e09d69e
Update tests/integration/cli/test_ursula_config_cli.py
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2023-10-19 17:05:33 +02:00
derekpierre
c076aa6f82
Skip `test_learner_learns_about_domains_separately` for now due to inconsistent CI behaviour.
2023-10-19 08:30:05 -04:00
Manuel Montenegro
a92aae9b19
Add tests for ursula config ip-address CLI command
2023-10-19 14:07:17 +02:00
derekpierre
4c6a0be937
Use ConditionType enum values instead of constants across codebase.
2023-10-18 20:25:56 -04:00
derekpierre
05aff5203c
Add integration test for decryption failure cases: unauthorized encryption, expired ritual.
...
Better scope test exception by using match for exception messages.
2023-10-10 11:27:22 -04:00
derekpierre
04e085d02a
Attempt to address failing integration test.
2023-10-05 10:42:45 -04:00
derekpierre
2a0bd02203
Move TESTERCHAIN chain information out of domains and into testing constants.
2023-10-05 08:27:44 -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
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
5b7a56a804
Update test to eagerly learn about nodes.
2023-10-04 15:18:46 -04:00
derekpierre
9ee7b9e7ef
Rename test class to prevent pytest warning about it starting with "Test".
2023-10-04 15:11:59 -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
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
aa6e53191f
Remove use of network when dealing with NetworksInventory class.
2023-10-04 13:30:18 -04:00
derekpierre
e11a200bc2
Unskip test_domains integration tests.
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
1c333bddaa
Deprecate condition_provider_uris in favour of condition_blockchain_endpoints.
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
8fcf422728
During Ursula interactive configuration, don't show NU balance since is/will be no longer applicable to Threshold Network. Show MATIC balance instead of ETH.
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
c8b5264c7c
Rename eth_provider_uri to eth_endpoint in various spots specific to payment, config, characters.
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
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
bfa4d0bc79
Integration tests mock modifications for network resolution.
2023-10-04 13:30:18 -04:00
derekpierre
751140384c
Update network selection logic via the CLI and update test.
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
derekpierre
de028e6cfb
Remove AdjudicatorAgent.
2023-09-22 08:24:30 -04:00