Commit Graph

10938 Commits (7098933a4751bcf8feb8eca061dda80befb51a14)

Author SHA1 Message Date
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
Kieran Prasch 5bdb6a8709 newsfragment for PR #3213 2023-09-07 18:27:00 -04:00
LunarBytes e5b4132ec3
Merge pull request #3222 from derekpierre/relock-post-712structs
Relock Dependencies (post eip712-structs removal)
2023-09-07 18:48:13 +02:00
derekpierre f9b3babd69 Updated acceptance tests to use the correct chain id since it seems that the latest version of ape uses a default chain id of 1337.
Some fixtures needed to move to conftest in acceptance folder.
2023-09-05 16:41:23 -04:00
derekpierre 677c6f0a95 Add dev newsfragment for #3222. 2023-09-05 13:39:07 -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
derekpierre 2b52ac133e Remove unnecessary dependecy restriction(s) and relock dependencies. 2023-09-05 13:36:35 -04:00
Derek Pierre e39a1ab888
Merge pull request #3221 from derekpierre/bye-bye-712structs
Remove `eip712_structs` dependency
2023-09-05 11:58:22 -04:00
Manuel Montenegro 2dad71e502
Merge pull request #3220 from manumonti/gitignore
Add .ruff_cache folder to .gitignore file
2023-09-04 11:41:52 +02:00
Manuel Montenegro bf9ea12a0d
Add .ruff_cache folder to .gitignore file
Ruff linter generates a cache folder when it runs pre-commit checks.
This folder is ignored since it has its own .gitignore file inside the
folder. But for homogeneity purposes this should be added to .gitignore
file.

Also, adding to general .gitignore file makes that this folder is going
to have a different treatment by IDEs.
2023-09-04 11:40:49 +02:00
derekpierre d43507d2cd Add dev newsfragment for #3221. 2023-09-01 16:14:27 -04:00