Kieran Prasch
b848282a03
Removes revocation test assertions.
2024-05-07 09:24:45 -04:00
KPrasch
7b91614cfb
Newsfragment for PR #3409
2024-05-07 09:24:45 -04:00
KPrasch
4a413c25fc
Removes the /revoke REST endpoint.
2024-05-07 09:24:36 -04:00
KPrasch
498b9887a1
Merge pull request #3491 from derekpierre/eth-client-agnostic
...
RPC Client Agnosticism
2024-04-30 18:02:29 +02:00
derekpierre
24b548f192
Adjust logic for creating blockchain provider based on endpoint provided.
2024-04-30 09:30:15 -04:00
derekpierre
409769f405
Apply newsfragment RFCs for #3491 .
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2024-04-30 09:28:48 -04:00
derekpierre
031f484b85
Remove sign_transaction and sign_message from EthereumClient - clients shouldn't do any account management/signing.
...
Raise exceptions from Web3Signer if used for signing - an explicit signer should be used instead of this fallback.
Remove EthereumTesterClient since no longer needed and therefore from_w3() is no longer needed either; actual signer objects are used for signing transactions/messages in tests.
2024-04-29 16:33:18 -04:00
derekpierre
29a35fad0b
Add newsfragments for #3491 .
2024-04-29 10:34:25 -04:00
derekpierre
d2c93f91cc
Update tests now that Web3Signer cannot be used for account management/signing.
2024-04-29 10:34:24 -04:00
derekpierre
60b0ad9155
Remove account management functions from Web3Signer since external blockchain clients can't actually do signing, other than in tests; better mimic real world functionality.
2024-04-29 10:34:23 -04:00
derekpierre
0f0a39d242
Rename stake_provider(s)_account(s) -> staking_provider(s)_account(s).
2024-04-29 10:34:22 -04:00
derekpierre
db1ff0eeee
Add simple test for ReservedTestAccountManager to ensure that accounts are appropriately organized.
2024-04-29 10:34:21 -04:00
derekpierre
556029def5
Simplify ReservedTestAccountManager and make it adhere to its superclass API, while adding functionality for our own needs.
2024-04-29 10:34:20 -04:00
derekpierre
c977db21e9
Remove ape-config.yml used for unit/integration tests and instead generate new accounts as needed for unit/integration tests - on top of the default number of accounts since there is no ape-config.yml for unit/integration tests.
...
For acceptance tests new accounts don't need to be generated since the ape-config.yml used specifies the number of test accounts needed
2024-04-29 10:34:19 -04:00
derekpierre
2b4b0ad9f5
Modify Vladimir to use InMemorySigner.
2024-04-29 10:34:18 -04:00
derekpierre
c7480e4bf5
Update tests to use account management class instead of testerchain.
...
Use actual signer instead of relying on the underlying blockchain to manage accounts and perform fake signing.
2024-04-29 10:34:17 -04:00
derekpierre
4122e2ffc1
Remove unused and unnecessary test_testerchain test module.
2024-04-29 10:34:16 -04:00
derekpierre
7654fb9005
Update common fixtures/mocks to use account manager for referencing accounts instead of testerchain.
2024-04-29 10:34:15 -04:00
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