derekpierre
9521e32da0
Add dev newsfragment for #3347 .
2023-11-28 13:43:41 +01:00
derekpierre
e449e51d22
Modify examples to use lynx ritual id 0 since lynx's redeployment wiped out previous rituals.
2023-11-28 13:43:41 +01:00
derekpierre
4bc110422b
Update nucypher_dkg script to allow the use of the OpenAccessAuthorizer contract.
2023-11-28 13:43:41 +01:00
derekpierre
f3e90a74b6
Appease my OCD by putting the timeout parameter after context.
2023-11-28 13:42:45 +01:00
derekpierre
37490696c6
Clarify use of timeouts.
2023-11-28 13:42:45 +01:00
derekpierre
4398c63892
Use constants for timeout values for reencryption and decryption.
2023-11-28 13:42:45 +01:00
derekpierre
3891bd6bea
Add newsfragment for #3337 .
2023-11-28 13:42:45 +01:00
derekpierre
95e236b645
Modify darker to run with --check for push vs for commit.
2023-11-28 13:42:45 +01:00
derekpierre
e151f1644a
Fix chaotic test given how participant public keys are now used.
2023-11-28 13:42:45 +01:00
derekpierre
fa45bb568f
Bob does not need to resolve the cohort himself, it will be performed by the `ThresholdAccessControlClient` - so it was redundant.
2023-11-28 13:42:45 +01:00
derekpierre
16b8a93943
Allow Bob.retrieve/retrieve_and_decrypt(...) to specify a decryption timeout - defaults to 10s
2023-11-28 13:42:45 +01:00
derekpierre
e8526f915d
It's ok not to resolve the entire cohort, we just need a threshold of them. In most cases the entire cohort should be learned about, but in the rare case of only a threshold known about that is fine.
2023-11-28 13:42:45 +01:00
derekpierre
65fb84281f
Allow Bob.threshold_decrypt(...) to specify a decryption timeout - defaults to 15s.
2023-11-28 13:42:45 +01:00
derekpierre
f33e5075ba
Update solidity version used for acceptance tests (matches version in `nucypher-contracts`).
2023-11-28 13:42:45 +01:00
derekpierre
cfc7e1cf93
Update comment for base class ThresholdAccessControlClient.
2023-11-28 13:42:45 +01:00
derekpierre
5589bf16a8
Increase default connection timeout and allow overriding via env variable.
...
Increase default certificate retrieval timeout and allow overriding via env variable.
Better utilize connect/read timeout functionality for requests library calls.
Update TestMiddlewareClient to still work with new changes.
2023-11-28 13:42:45 +01:00
David Núñez
f42488796d
Make linter happy
2023-11-28 12:44:44 +01:00
David Núñez
ac86e7f5cf
s/getOperatorFromStakingProvider/stakingProviderToOperator
2023-11-28 12:44:44 +01:00
David Núñez
c7fa7d835b
s/stakingProviderFromOperator/operatorToStakingProvider
...
Closes #3350
2023-11-28 12:44:44 +01:00
David Núñez
74260a7a11
Update tests/acceptance/conftest.py
2023-11-28 12:44:44 +01:00
derekpierre
34c2d64649
Add dev newsfragment for #3348 .
2023-11-28 12:44:44 +01:00
derekpierre
ee1530149d
Specify commitment deadline when instantiating TACoApplication contract for tests.
...
Left some code to uncomment once associated PR in `nucypher-contracts` is merged.
2023-11-28 12:44:44 +01:00
derekpierre
c0d12e14e4
Bump version: 7.0.0-rc.9 → 7.0.0-rc.10
2023-11-17 12:37:09 -05:00
derekpierre
60a4d593b9
Add dev newsfragment for #3345 .
2023-11-17 12:24:11 -05:00
derekpierre
fcc72af563
Update lynx contract registry to incorporate latest lynx deployment.
2023-11-17 12:24:11 -05:00
derekpierre
191e46cd78
Update polygon endpoint help string.
2023-11-17 12:20:36 -05:00
Derek Pierre
8a077bd971
Update ape-config.yaml to use `nucypher-contracts`/`main`.
...
Co-authored-by: David Núñez <david@nucypher.com>
2023-11-17 12:20:36 -05:00
derekpierre
b078aabe2c
Add dev newsfragment for #3344 .
2023-11-17 12:20:36 -05:00
derekpierre
fb9977ab56
Update expected test string based on changes to exception message.
2023-11-17 12:20:36 -05:00
derekpierre
663cd97eb0
Include new EXPIRED status for non-actionable dkg ritual states by nodes.
2023-11-17 12:20:36 -05:00
derekpierre
fb6a3ae800
Check whether ritual is active or expired before attempting to get ritual public key.
2023-11-17 12:20:36 -05:00
derekpierre
7e6bafeeb1
Add is_ritual_active to MockCoordinatorAgent.
2023-11-17 12:20:36 -05:00
derekpierre
d6a1e3f01f
Update RitualStatus names to match Coordinator contract.
2023-11-17 12:20:36 -05:00
derekpierre
1cd6a09e25
Use CoordinatorAgent.is_ritual_active where appropriate.
2023-11-17 12:20:36 -05:00
derekpierre
66980d676b
Add is_ritual_active function to CoordinatorAgent.
2023-11-17 12:20:36 -05:00
derekpierre
93411489a8
Use David's nucypher-contracts branch for updated contract functionality.
2023-11-17 12:20:36 -05:00
derekpierre
ff51de058e
Consolidate swarm/get_staking_providers into one method that returns an iterable.
...
Update tests.
2023-11-17 12:18:06 -05:00
derekpierre
74b5495321
Some code clean up based on RFCs from #3341 .
2023-11-17 12:18:06 -05:00
derekpierre
0413c2f992
Update staking provider info tests for testing taco application agent.
2023-11-17 12:18:06 -05:00
derekpierre
a0efda573c
Update sampling tests to test exclusion logic.
2023-11-17 12:18:06 -05:00
derekpierre
2841392b06
Use class reference for exception instead of instance.
2023-11-17 12:18:06 -05:00
derekpierre
4ed1ef12c9
Fix linter errors.
2023-11-17 12:18:06 -05:00
derekpierre
2e64a657c5
Update nucypher_dkg script to use TACoChildApplicationAgent for sampling staking providers.
2023-11-17 12:18:06 -05:00
derekpierre
bd5cab04b6
Accept base StakerSamplingApplicationAgent when making staker reservoir used for sampling - either TACoApplication (PRE) or TACoChildApplication (TACo CBD) can be used.
2023-11-17 12:18:06 -05:00
derekpierre
dfb5456367
Add newsfragment for #3341 .
2023-11-17 12:18:06 -05:00
derekpierre
c9769f617d
Update TACoApplicationAgent tests.
2023-11-17 12:18:06 -05:00
derekpierre
b3911b47f3
Add sampling and other tests for updated TACoChildApplicationAgent functionality.
2023-11-17 12:18:06 -05:00
derekpierre
7b14234404
Additional methods for reading data from TACoChildApplication contract.
2023-11-17 12:18:06 -05:00
derekpierre
20f2702649
Commonize functionality for staker sampling for both TACoApplication and TACoChildApplication.
2023-11-17 12:18:06 -05:00
David Núñez
0f8ea5e067
Unit tests for context resolution stuff
2023-11-16 16:45:11 +01:00