Derek Pierre
7098933a47
Merge pull request #3226 from nucypher/contracts-alpha-13
...
[EPIC] Coordinator Alpha 13 Support
2023-09-20 13:51:20 -04:00
Derek Pierre
fa0082e24d
Merge pull request #3227 from derekpierre/alpha-13
...
Coordinator Alpha 13 Support
2023-09-20 13:04:41 -04:00
derekpierre
83348ec9ab
Add newsfragment for #3227 .
...
Update newsfragment for #3213 .
2023-09-20 11:32:08 -04:00
LunarBytes
0b36f68ec6
Merge pull request #3234 from manumonti/remove-bandit
...
Remove bandit conf file
2023-09-19 14:13:08 +02:00
Manuel Montenegro
e27544a487
Remove bandit conf file
...
Bandit seems to have been removed in 1209a2dc1c
. So .bandit config
file is no longer necessary.
2023-09-19 12:14:09 +02:00
derekpierre
f4e34f6593
Address RFCs in #3227 . Utilize pytest usefixtures for implicit/dependeny fixture parameters, comment cleanups.
2023-09-18 12:15:22 -04:00
Kieran Prasch
c92302dbbe
embed provider public key bool check into `Operator.set_provider_public_key`
2023-09-15 16:54:40 +02:00
Kieran Prasch
21785246ed
operator.set_provider_public_key comment/todo for #3176
2023-09-15 10:53:28 -04:00
Kieran Prasch
1705b03427
Call the Coordinator contract directly when checking is provider public key needs on-chain setting.
2023-09-15 10:53:28 -04:00
Kieran Prasch
d31ada75b5
Ursula's funding qualification logs are MATIC; Include chain name or ID in ferveo key publication logs
2023-09-15 10:53:28 -04:00
derekpierre
0081ee1ce6
Don't migrate configurations from v4->v6, but instead do v4->v5->v6 to ensure proper changes are enacted.
...
Migration from v4->v5 missed deprecation of "db_filepath" configuration parameter.
Add tests for configuration migration.
2023-09-15 10:53:23 -04:00
Kieran Prasch
5d5261a5a7
Acceptance tests target nucypher/nucypher-contracts@main
2023-09-15 16:20:48 +02:00
derekpierre
dcbb7bfb80
Properly process condition_provider_uris configuration entry which can only be stored in the json configuration file as dictionary keyed by the string version of chain id.
...
The chain id is only stored in the configuration file as a string even though it is used in python as an integer.
When the UrsulaConfiguration is serialized to json the integer (chain id) is automatically stringified to be valid json. Therefore, when deserializing the configuration i.e. reading it in, chain must be read in as a string first then converted to integer.
2023-09-14 21:46:10 -04:00
derekpierre
fbc564f508
Migration script from v6 to v7 for Ursula's configuration file.
2023-09-14 16:26:05 -04:00
derekpierre
8757889c15
Remove invalid Ursula.run parameter.
2023-09-14 16:26:05 -04:00
derekpierre
5cf5f2426c
Use existing ursula operator address so that funding/bonding does not need to be mocked.
2023-09-14 16:26:05 -04:00
derekpierre
bf4ebeeb3f
Ursula must call set_provider_public_key before it can be considered as being confirmed by the application contract.
2023-09-14 16:26:05 -04:00
derekpierre
1eb86c13e3
Vladimir no longer needs eth for test - set provider public key is no longer called in Ursula (superclass) constructor.
2023-09-14 16:26:05 -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
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
Kieran Prasch
0f29569568
Adapt nucypher to merged Operator, without Ritualist.
2023-09-14 16:26:05 -04:00
Kieran Prasch
48757c180f
Merge Ritualist into Operator.
2023-09-14 16:26:05 -04:00
derekpierre
f58d7675a3
Fix usage of ape fixtures in acceptance cli tests.
2023-09-14 16:26:05 -04:00
derekpierre
ab0ab5cbec
Properly manage ape dependencies for acceptance tests contract deployment.
2023-09-14 16:26:05 -04:00
derekpierre
3092746e29
Fix failing test that invlolves Vladimir.
2023-09-14 16:26:05 -04:00
derekpierre
6a09fdfc3a
Modify transacting power tests to use setProviderPublicKey() instead of confirmOperatorAddress().
2023-09-14 16:26:05 -04:00
derekpierre
3f1f40f2c8
Fix use of various fixtures and contracts for test.
2023-09-14 16:26:05 -04:00
derekpierre
958c222679
Ensure that SubscriptionManager is one of the deployed contracts for acceptance tests.
2023-09-14 16:26:05 -04:00
derekpierre
8bb1faf5eb
Update ursula operator acceptance tests to accomodate shift to set_provider_public_key() from confirm_operator_address().
2023-09-14 16:26:05 -04:00
derekpierre
acb89db902
Update dkg ritual acceptance test to use updated fixtures and contracts.
2023-09-14 16:26:05 -04:00
derekpierre
681e3b1061
Add get_ritual_initiation_cost to MockCoordinatorAgent - although not needed for integration tests.
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
7dc8aa3aad
Fix acceptance/agents tests based on latest fixtures and contracts.
2023-09-14 16:26:05 -04:00
derekpierre
f5ca66b317
Only use proxy contracts for root/child applications (instead of actual contracts) as part of acceptance tests contract deployments
2023-09-14 16:26:05 -04:00
derekpierre
d86ad57351
Initialize taco_child_application fixture with coordinator contract address.
2023-09-14 16:26:05 -04:00
derekpierre
9fae50b916
Ensure that staking_providers fixture can be correctly configured.
...
TACoApplicationChild should reference root application via proxy contract.
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
cf00cdd05b
Update version of openzeppelin contracts dependency.
2023-09-14 16:26:05 -04:00
derekpierre
209fee38fc
Modify nucypher-contracts dependency being used for alpha-13 support to point to alpha-13 EPIC.
2023-09-14 16:26:05 -04:00
derekpierre
0d587f0295
Remove over-aggressive rename of `stake_info`.
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
Derek Pierre
84d8344236
Merge pull request #3213 from KPrasch/alpha-12
...
Coordinator Alpha 12 Support
2023-09-14 16:23:58 -04:00
derekpierre
894dc5ac81
Apply suggestions from review for #3213 .
2023-09-14 09:22:41 -04:00
derekpierre
c8333a2854
noop
2023-09-12 13:06:44 -04:00
Kieran Prasch
4fc0176a96
handle integration and unit mocking of ad-hoc ursula account bonding.
2023-09-12 18:28:52 +02:00
Kieran Prasch
570e3574b3
utility mock for is_provider_public_key_set
2023-09-12 18:03:03 +02:00
Kieran Prasch
d270675296
Ursula on publishes ferveo public key on-chain when none is present to save gas.
2023-09-12 17:53:02 +02:00
derekpierre
382029d055
Add Enrico authorization testing to test_dkg_ritual acceptance test.
2023-09-12 10:12:25 -04:00
derekpierre
ba002cc4e7
Use isEncryptionAuthorized() function on Coordinator agent itself via Coordinator agent, instead of trying to call access controller for ritual directly.
...
Pass ciphertext_header to is_encryption_authorized() function and not the hash of it.
2023-09-12 10:11:37 -04:00