derekpierre
ce6a0b35f6
Update creation of ursulas now that TesterBlockchain no longer manages accounts.
2024-04-29 10:34:13 -04:00
derekpierre
f098d46388
Remove all account management from TesterBlockchain into separate account management class, ReservedTestAccountManager.
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2024-04-29 10:34:12 -04:00
derekpierre
5baac93058
InMemorySigner should implement _get_signer() like other Signers and not __get_signer().
2024-04-29 10:34:11 -04:00
derekpierre
b0991441c5
Removes customized RPC clients/shims; with standardization of providers there is less need for such specialized clients.
...
Limit providers to only http/https.
Based on some work previously done by Kieran, but was abandoned due it becoming stale and diverging from git history.
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2024-04-29 10:34:10 -04:00
derekpierre
40037f22a6
Prune public chains to only the ones currently being used.
2024-04-29 10:34:00 -04:00
KPrasch
b5af1e2b8d
Merge pull request #3467 from derekpierre/duration-sampling
...
Duration Sampling
2024-04-29 16:31:39 +02:00
derekpierre
e0e5e8655a
Add newsfragment for #3467 .
2024-04-25 13:44:14 -04:00
derekpierre
4ac1a12b94
Fix failing conditions test; add duration parameter for modified internal function call.
2024-04-25 13:39:14 -04:00
derekpierre
0f641363c2
Update StakingProviderInfo tests for TACoApplicationAgent and TACoChildApplicationAgent.
2024-04-25 10:50:31 -04:00
derekpierre
f2f7c24bba
Allow duration as a parameter to make_staking_provider_reservoir function call. This call is used by Porter.
2024-04-25 10:15:56 -04:00
derekpierre
110633a518
Add duration values to agent sampling tests.
2024-04-25 09:30:07 -04:00
derekpierre
45f05e3134
Update other calls to get active providers based on duration.
2024-04-25 09:12:23 -04:00
derekpierre
dbbeb233d1
Update tests which should now work given default duration value.
2024-04-25 09:12:21 -04:00
derekpierre
74cc426cb1
Update get_active_staking_providers call for TACoApplicationAgent/TACoChildApplicationAgent to accept an optional duration parameter, with the default value being 0.
2024-04-25 09:12:18 -04:00
Derek Pierre
5c873acb3e
Merge pull request #3489 from derekpierre/starvation-protection
...
Ritual tx starvation protection
2024-04-24 19:14:50 -04:00
derekpierre
ace149be35
Add newsfragment for #3489 .
2024-04-24 18:58:04 -04:00
derekpierre
92262734b7
Update tests now that the on_broadcast_failure callback removes the tx from the atxm queue and resubmits a new tx.
2024-04-24 18:58:03 -04:00
derekpierre
394dc6018e
Resubmit tx within `on_broadcast_failure` callback; removes the queued tx and resubmits a new tx. This prevents other queued txs for other rituals from being starved by one failing tx for a specific ritual.
2024-04-24 18:57:53 -04:00
Derek Pierre
6089db5fa8
Merge pull request #3487 from derekpierre/logging-one-more-thing
...
One more thing: Individual logging observers need to adhere to log levels
2024-04-24 17:12:49 -04:00
derekpierre
49e295e0e7
Log message about verified operator to debug instead of info.
2024-04-24 16:08:57 -04:00
Derek Pierre
4072989457
Merge pull request #3486 from derekpierre/signer-tx
...
Fix inconsistent `sign_transaction` API return values
2024-04-24 15:47:54 -04:00
derekpierre
059b90b8ca
Add newsfragment for #3487 .
2024-04-23 08:18:44 -04:00
derekpierre
a0ee199e82
Add tests for observer wrapper functionality and its use with global observers.
2024-04-22 21:23:24 -04:00
derekpierre
27fe4c7f10
Observers themselves should adhere to log levels since other Loggers may be used which don't check log level before passing to observers.
2024-04-22 20:39:39 -04:00
derekpierre
1e32893d50
Add newsfragment for #3486 .
2024-04-22 20:38:36 -04:00
derekpierre
ce002ed0c9
Add unit tests for KeystoreSigner (similar to InMemorySigner) to maintain uniformity of API expectations.
2024-04-22 15:37:11 -04:00
derekpierre
be0aa76836
Fix failing tests.
2024-04-22 14:15:36 -04:00
derekpierre
2500fe1507
Fix inconsistent return from `sign_transaction`; either a SignedTransaction is returned or HexBytes. Reverting to lowest common denominator which is HexBytes (bytes). This issue was noticed while running the nucypher_dkg script which failed - it uses a keystore signer.
2024-04-22 14:15:28 -04:00
Derek Pierre
532745632b
Merge pull request #3483 from derekpierre/logging
...
Much Ado About Logging
2024-04-22 14:15:06 -04:00
derekpierre
45d82f6699
Add tests for checking the link between the StdoutEmitter and the underlying logging system.
2024-04-19 15:00:01 -04:00
derekpierre
3b1d576936
Update newsfragment.
2024-04-19 15:00:00 -04:00
derekpierre
83e0ea153a
Clean up StdoutEmitter and log to the logging system where appropriate.
2024-04-19 14:59:59 -04:00
derekpierre
e8828f0c14
Add test for context manager used to pause all logging; used during testing.
2024-04-19 14:59:58 -04:00
derekpierre
121bbbc4f4
Add tests for management of global observers for logging.
...
No-ops whenever trying to start/stop an already started/stopped global observer
Properly save and restore state within context manager for pausing logging.
2024-04-19 14:59:57 -04:00
derekpierre
3980420b61
Add test regarding logger's adherence to log levels when notifying observerss.
2024-04-19 14:59:56 -04:00
derekpierre
b7bddfd4fa
Add newsfragments for #3483 .
2024-04-19 14:59:55 -04:00
derekpierre
47944092bd
Separate text file logs from json file logs. JSON logs are overly verbose and should only be enabled if explicitly indicated (probably for monitoring/scraping of logs), and should not be enabled by default. It's setting should be kept separate from text file logging.
2024-04-19 14:59:47 -04:00
derekpierre
ba9e5c4240
Properly track observers so that the correct instances can be used for removal if necessary.
2024-04-19 11:11:31 -04:00
derekpierre
fafff095db
Use a proper console logger from twisted that properly formats messages.
2024-04-19 11:11:30 -04:00
derekpierre
9d012c4fc0
Logger should limit logging by underlying observers based on log level.
2024-04-19 11:11:25 -04:00
Derek Pierre
c313ea790d
Merge pull request #3484 from derekpierre/docker-login
...
GH Action Docker login
2024-04-19 08:46:26 -04:00
derekpierre
888f95ac57
Add dev newsfragment for #3484 .
2024-04-19 08:14:38 -04:00
derekpierre
1ec641d801
Update version of docker/login-action job to v3.
2024-04-19 08:12:17 -04:00
Derek Pierre
83a77133a5
Merge pull request #3479 from derekpierre/compatibility
...
Node/Contract Compatibility
2024-04-19 08:01:07 -04:00
derekpierre
2053e7cb4a
Minor update to README - update discord link and TACo section title.
2024-04-18 13:37:33 -04:00
derekpierre
23dd34aece
Add a test to reassure us that contract conditions work correctly even with overloaded functions once the relevant ABI is specified in the condition.
2024-04-18 13:37:32 -04:00
derekpierre
9db8d6c8ab
Add newsfragment for #3479 .
2024-04-18 13:37:31 -04:00
derekpierre
be76467192
Update embedded lynx contract registry based on latest lynx upgrade and updated registry from `nucypher-contracts`.
2024-04-18 13:37:30 -04:00
derekpierre
59a8901ed5
Agents need to better handle overloaded functions. Web3py does not resolve the function based on the number of args provided, so we need to resolve the function ourselves.
...
In some cases we've been lucky that the function we wanted to use was first to be returned instead of the other one, in which case the call will fail. This change makes the method to use more explicit by using the signature. Eventually the old function that was overloaded will be removed from the contract and is therefore no longer a problem - until then we need to properly/deterministically handle the overload case.
2024-04-18 13:37:29 -04:00
derekpierre
46b858d876
Update embedded mainnet contract registry based on updated registry from `nucypher-contracts`. This was missed from the last mainnet update but the nodes were fine because it pulls the registry from github as a priority over the embedded registry.
2024-04-18 13:37:27 -04:00