Commit Graph

3546 Commits (b8b70220fa80dac3eebc3d8e1c9a292cca76126c)

Author SHA1 Message Date
derekpierre b8b70220fa Additional event scanner tests. 2023-05-24 15:19:09 -04:00
Kieran Prasch 0c6e52c4ea hacking 2023-05-24 20:22:57 +02:00
derekpierre f57616cdd8 Cleanup of chain reorg code - push to underlying EventScanner. Add initial test for estimating chunk size. 2023-05-24 20:22:57 +02:00
Kieran Prasch 7f2abd101e Ritualist uses the same web3 instsance as the coordinator agent. 2023-05-24 20:22:57 +02:00
Kieran Prasch f0040c2e83 add polygon to POA default 2023-05-24 20:22:57 +02:00
Kieran Prasch 24d7f77e74 routing th correct registry to ritualists 2023-05-24 20:22:57 +02:00
Kieran Prasch 24908aa80c mock payment provider for Vladimir 2023-05-24 20:22:57 +02:00
derekpierre 871f09b203 Update dependencies now that required changes from other repos are merged/released. 2023-05-23 15:13:54 -04:00
derekpierre d989445ffc Accomodate latest changes to `nucypher-core`. 2023-05-23 14:59:42 -04:00
derekpierre b5aa20e602 Add tests for use of ThresholdRequestDecryptingPower. 2023-05-23 14:59:42 -04:00
derekpierre 303efa2185 Relock dependencies so that proper ape-solidity can be used and acceptance tests can run. 2023-05-23 14:59:42 -04:00
derekpierre b9f0f0838a Obtain request encrypting keys from Ritual object; don't convert object to bytes (transcript, agg transcript) before passing to Coordinator agent.
Update tests.
2023-05-23 14:59:42 -04:00
derekpierre 787d7d3e56 Update code to handle E2EE changes to Coordinator contract, and use ThresholdRequestDecryptingPower to perform E2EE decryption requests. 2023-05-23 14:59:42 -04:00
derekpierre bc8cb48c70 Add tests for BatchValueFactory, and fix issues. 2023-05-11 10:44:05 -04:00
derekpierre 3e498a3751 Some initial refactoring so that Bob and Porter can use the same code for making threshold decryption requests (akin to PRE retrieval). 2023-05-11 10:44:05 -04:00
derekpierre ae3f267fb6 Use ferveo 0.1.11 so that DkgPublicKey.serialized_size() can be used. Updated some typehints. 2023-05-08 09:14:30 -04:00
derekpierre de926000b4 Update code to handle DkgPublicKey now being 48 bytes. 2023-05-06 13:15:48 -04:00
derekpierre 048a8ea3fc Link to ferveo issue due to incorrect public key bytes length. 2023-05-05 14:41:15 -04:00
Kieran Prasch e18a3470a0 only test rituals with dkg size < 10 for now 2023-05-05 10:18:23 -07:00
Kieran Prasch b3090be689 support ferveo==0.1.9, bugfix: enables threshold decryption via simple variant. 2023-05-05 10:05:15 -07:00
Kieran Prasch d0a8f6065e attempt to enable both the simple/precomputer variants in tests. 2023-05-04 15:23:40 -07:00
derekpierre 149d16c0b3 Ensure that start block for DKG event scanning is never negative.
Stop RitualTracker when Ursula stops.
Cleanup test.
2023-05-04 17:35:53 -04:00
derekpierre 782f65691e Use FAKE_TRANSCRIPT constant for unit tests. 2023-05-04 17:35:52 -04:00
derekpierre 87d8b40a57 Update and move test_ritualist to unit tests.
Co-authored-by: KPrasch <kieran@nucypher.com>
2023-05-04 17:35:52 -04:00
derekpierre 20fadaa0d8 Cleanup of tests. 2023-05-04 17:35:52 -04:00
Kieran Prasch 6ffd1a8217 updates for ferveo==0.1.8 (really tho) 2023-05-04 17:35:49 -04:00
derekpierre 88046fc3bc Updated use of ferveo 0.1.8. Note: public key bytes are still not 48 bytes. 2023-05-04 17:34:27 -04:00
derekpierre eda1fc1a50 Initial changes to conform to latest changes to Coordinator contract in nucypher-contracts. 2023-05-04 17:34:27 -04: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 78b18863d4 removes nightly pytest markers 2023-05-04 10:15:17 -07:00
jMyles bce2ed8607 Replacing pysha3 with keccak implementations from eth-hash and eth-utils. 2023-05-02 10:23:24 -07:00
Kieran Prasch e55bafe6db all tests passing 2023-05-02 10:23:24 -07:00
derekpierre 2b492ffd20 Add pytest options for ape_test to run successfully. Update testpath values. 2023-05-02 10:23:24 -07:00
Kieran Prasch a6d5335449 Reorganizes tests betweeen acceptance/integration. Ape project is now /tests/acceptnace. 2023-05-02 10:23:24 -07:00
Kieran Prasch cfba9be307 simple in-memory test regitry for unit tests, mock out middleware for mock clients. 2023-05-02 10:23:24 -07:00
Kieran Prasch dc51407c0f relocates ursulas fixture (is uses transparently in different scopes) 2023-05-02 10:23:24 -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 6617e08527 disable ape test plugin during unit and integration tests. 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
Kieran Prasch 39929d0aa3 relocates ape fixtures to local conftest 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 df86485efa removes several unused pytest fixtures 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
derekpierre e0286d13c5 Get `nucypher-contracts` dependency from github by default. 2023-05-02 10:23:24 -07:00
Kieran Prasch a19c50ec69 ape checkpoint 1 2023-05-02 10:23:24 -07:00
derekpierre ba766100b0 bugfix: sync coordinator mocks, use StartRitual event instead of StartTranscriptRound for signalling posting of transcripts. 2023-05-02 10:23:24 -07:00
derekpierre a4798e3a6a bugfixes: ensure poiive start block number, MockCoordinatorAgent to be in line with latest logic in Coordinator contract. 2023-05-02 10:23:24 -07:00