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
derekpierre
10c7d6a6fa
Remove unused signing power from Enrico, and ensure that bytes are used for authorization.
2023-09-12 10:11:37 -04:00
derekpierre
df3a688122
Update NotEnoughUrsulas failure message to be clearer - it could be misinterpreted as an Ursula availability issue rather than a functional.
2023-09-12 10:00:30 -04:00
Kieran Prasch
9c78d599f7
Coordinator agent handles access controller call forwarding for on-chain authorizations
2023-09-12 12:43:57 +02:00
Kieran Prasch
b362b4fc79
cleanup imports
2023-09-12 12:43:00 +02:00
Kieran Prasch
72a09b7e7c
Establishes a home location for local interface ABIs, non-network specific for now.
2023-09-12 12:42:37 +02:00
Kieran Prasch
eb56131888
remove unused ape config
2023-09-11 19:06:24 +02:00
Kieran Prasch
783f2dcd76
Enrico uses a web3 wallet to encrypt-then-sign.
2023-09-11 19:06:24 +02:00
derekpierre
243448d015
Bob no longer needs ritual id as a parameter for decrypting the threshold message kit since the Coordinator contract can be used for obtaining the ritual id from the dkg public key which is already stored in the threshold message kit.
2023-09-11 11:50:54 -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
f925bc423e
Vladimir needs ETH to set provider public key for tests.
...
Cleanup Vladimir code to not depend on test.contants.
2023-09-07 20:57:18 -04:00
derekpierre
22dee9b3b8
Ensure ConditionNFT contract is actually deployed for acceptance/conditions tests.
2023-09-07 20:05:16 -04:00
derekpierre
c035e2c3b8
Fix agent updated call to minimumAuthorization.
2023-09-07 19:56:07 -04:00
derekpierre
526fb779fa
Move APE_TEST_CHAIN_ID to tests constants file.
2023-09-07 19:35:34 -04:00
derekpierre
5aba218dff
Add getRitualInitiationCost to CoordinatorAgent and update acceptance tests accordingly; this way we don't care about fee values.
2023-09-07 19:22:02 -04:00
derekpierre
9aa1e31424
Substitute address index for actual deployer test account at index 0 based on test mnemonic.
2023-09-07 18:43:29 -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
92278352f3
setStakes -> authorizationIncreased
2023-09-07 18:35:00 -04:00
Kieran Prasch
56486f74df
assorted 'initiator' -> 'authority'
2023-09-07 18:35:00 -04:00
Kieran Prasch
c005ee86ac
deployer account fixture
2023-09-07 18:35:00 -04:00
Kieran Prasch
83f0594675
update the Ritual stuct to sync with Corrdinator alpha 12
2023-09-07 18:35:00 -04:00
Kieran Prasch
f67822b7aa
commentary about checking for on-chain ferveo keys on node launch.
2023-09-07 18:35:00 -04:00
Kieran Prasch
949558af29
g2 point varible style fix
2023-09-07 18:35:00 -04:00
Kieran Prasch
c7b19902ca
use RitualToken for ritual init
2023-09-07 18:35:00 -04:00
Kieran Prasch
1fa4641c92
initiator -> authority for round 1
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
f0e64f23e7
Fix MockCoordinatorAgent to properly handle setting/getting provider public keys.
...
Move G2Point out of Ritual in CoordinatorAgent.
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
derekpierre
4534a5a292
Modifications to make some coordinator agent acceptance tests pass.
2023-09-07 18:35:00 -04:00
derekpierre
f0908d580b
Fix parameters to Coordinator contract in ape configuration file.
2023-09-07 18:35:00 -04:00
derekpierre
2e255a78cd
Update StakeInfo contract with operator address and authorized amount.
2023-09-07 18:35:00 -04:00
derekpierre
1cd23c2c9c
Modify nucypher-contracts repos being used so that concurrent changes can be made while testing.
2023-09-07 18:35:00 -04:00
derekpierre
beb3b40398
Update CoordinatorAgent.G2Point code to create FerveoPublicKey.
2023-09-07 18:35:00 -04:00
derekpierre
2e47626c90
Fix mispelled constant.
2023-09-07 18:35:00 -04:00
Kieran Prasch
d121b1cbf3
Pathfinding an entry point for ferveo publick key commitments in Ursula; Supporting G2 point class
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
c0c77b3eb6
re-establish staking providers authorization
2023-09-07 18:33:06 -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