Commit Graph

11776 Commits (b6140df08cddabe4dcb8288633a94638495ff621)

Author SHA1 Message Date
derekpierre b6140df08c
Update tests now that a default on_broadcast callback is used if not provided. 2024-04-15 13:31:02 -04:00
derekpierre 59bc9f8bf4
Add a default on_broadcast callback implementation that simply prints broadcast tx information, if one is not provided.
The default behaviour is to print tx info that is basically the equivalent of want a synchronous tx would print - same reason that the StdoutEmitter is used instead of the logger.
Use common utility for determining cost of broadcasted tx.
2024-04-15 13:30:58 -04:00
derekpierre 1b1f314629
Add acceptance tests for failures during dkg rounds; ensure that failures are handled appropriately including with resubmitted txs in some cases. 2024-04-15 13:30:57 -04:00
derekpierre c46c1a3775
Remove unnecessary/redundany wait for tx receipt. 2024-04-15 13:30:55 -04:00
derekpierre e8f7c862c9
Rename test module so that other aspects of operator functionality can be tested in separate modules. 2024-04-15 13:30:54 -04:00
derekpierre c032809a1e
Add unit tests for async tx hooks used for phases 1 and 2 of rituals. 2024-04-15 13:30:53 -04:00
derekpierre 5514f57d43
Add typehint for return of _setup_async_tx_hooks method for Operator. 2024-04-15 13:30:52 -04:00
derekpierre fd4b209f9e
Fix KeyError bug when clearing cached async tx if it doesn't already exist. 2024-04-15 13:30:51 -04:00
derekpierre 43c9d92c63
Clear async tx once transaction is successfully finalized; no need to store it since data already updated on blockchain because tx was finalized. 2024-04-15 13:30:50 -04:00
derekpierre 1f4199f35b
Make data member for DKGStorage private for safety. 2024-04-15 13:30:49 -04:00
derekpierre dcb93abed8
Don't store async_txs on the ActiveRitualTracker since it only cares about events; utilize existing DKG storage for operator. This will also allow for easier logic for clearing when no longer needed by the Operator.
Modify DKGStorage to store async txs.
Update tests accordingly.
2024-04-15 13:30:47 -04:00
derekpierre 2be52480c9
Add tests for callbacks during post_transcript/post_aggregation stages. 2024-04-15 13:30:46 -04:00
derekpierre 1132b28550
Add newsfragment for #3476. 2024-04-15 13:30:45 -04:00
derekpierre 27515da1f6
Mock async tx behaviour with callbacks for MockCoordinatorAgent. 2024-04-15 13:30:44 -04:00
derekpierre 550c59ccb1
Add mock_async_hooks fixture for use in tests that mimic the use of async txs. 2024-04-15 13:30:43 -04:00
derekpierre c5adbfde98
Update Operator to handle the various callbacks used by async transactions for improved fault tolerance when publishing a transcript or aggregated transcript.
Implementations of the callbacks for error cases may resubmit a tx to execute for fault tolerance.
2024-04-15 13:30:42 -04:00
derekpierre 4c6b8afcc0
Add speedup strategy to the ATxM object being used since it is no longer a default strategy used by the underlying library. 2024-04-15 13:30:41 -04:00
derekpierre 14c9d49d8e
Add AsyncTxHooks helper class for defining async tx callbacks when using send_async_transaction and the atxm library.
Allow AsyncTxHooks to be specified when executing an async transaction.
2024-04-15 13:30:40 -04:00
derekpierre 26637f87e6
Relock dependencies based on latest changes in ATxM dev branch. 2024-04-15 13:30:31 -04:00
Manuel Montenegro af7d778b22
Merge pull request #3478 from manumonti/metrics-listen-address
Add --metrics-listen-address CLI Prometheus option
2024-04-15 18:02:24 +02:00
Manuel Montenegro 0ad33b8baa
Simplify code
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2024-04-15 17:03:29 +02:00
Manuel Montenegro c0c39c5e20
Fix typo in help
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2024-04-15 16:59:23 +02:00
Manuel Montenegro 67e0937661
Add newsfragment file 2024-04-15 14:16:55 +02:00
Manuel Montenegro dbce8cf09d
Add --metrics-listen-address CLI Prometheus option
This option was accidentally removed during the return of Prometheus
exporter.
2024-04-15 14:14:59 +02:00
Derek Pierre 0ae85461ec
Merge pull request #3477 from derekpierre/fix-codecov
Use latest version of codecov GH action
2024-04-12 10:20:49 -04:00
derekpierre 9131ce46ca
Add dev newsfragment for #3477. 2024-04-12 09:06:55 -04:00
derekpierre 55440023ae
Use latest version of codecov action for github workflow. 2024-04-12 09:04:18 -04:00
Derek Pierre 6d94680d88
Merge pull request #3475 from xiaoxianBoy/fix-typos
chore: fix typos
2024-04-11 14:53:25 -04:00
snoppy 6a7a3bb921 chore: fix typos 2024-04-11 12:03:38 -04:00
Derek Pierre 4090a342af
Merge pull request #3473 from derekpierre/ape-refresh
Ape refresh to potentially fix CI builds
2024-04-10 13:32:39 -04:00
derekpierre a66f5b2c1b
Add dev newsfragment for #3473. 2024-04-10 13:16:25 -04:00
derekpierre 8d0dabb76a
Update import remapping for newer version of ape. 2024-04-10 13:16:24 -04:00
derekpierre aa8cb819a6
Remove ape version restriction and relock dependencies. 2024-04-10 13:16:17 -04:00
Derek Pierre 84c3b19e79
Merge pull request #3468 from derekpierre/leonard-n-amoy
Migration from Polygon Mumbai to Polygon Amoy
2024-04-10 13:13:59 -04:00
derekpierre f4c5623653
Fix incorrect rebase change. Revert line to what it was before. 2024-04-10 09:31:01 -04:00
derekpierre 87c5d99332
No need to skip test anymore since `nucypher-contracts` for tapir were updated to use Polygon Amoy.
Rename file since it was previously incorrectly named.
2024-04-10 09:09:39 -04:00
derekpierre 7d584dd490
Add newsfragment for #3468. 2024-04-10 09:09:36 -04:00
derekpierre f2e7e2d63d
Update tapir registry based on latest deployment to polygon amoy. 2024-04-10 09:09:23 -04:00
derekpierre 3086e7d942
Don't use ETH in text about tx cost since it could be MATIC. 2024-04-10 09:07:11 -04:00
derekpierre f669dc1ec6
Update ritual id for testnet examples - use ritual 0 for lynx that now uses polygon amoy. 2024-04-10 09:04:15 -04:00
derekpierre eae9992158
Update Lynx contract registry with latest Lynx deployment on Polygon Amoy as part of migration from Polygon Mumbai. 2024-04-10 09:04:13 -04:00
derekpierre b4c7f19f5e
Skip github registry source test until registries have been updated to use amoy instead of mumbai. 2024-04-10 09:04:12 -04:00
derekpierre 64074c842c
Update lynx github action to use polygon amoy endpoint. 2024-04-10 09:04:11 -04:00
derekpierre 8ac343ac54
Update chain id used in taco examples to be polygon amoy. 2024-04-10 09:04:10 -04:00
derekpierre 9dcfdf0458
Update chain information to include polygon amoy as a valid chain. 2024-04-10 09:04:09 -04:00
derekpierre 8a5aec5ca6
Rename Polygon Mumbai enum to Polygon Amoy. 2024-04-10 09:04:00 -04:00
Derek Pierre 50e1c5d47d
Merge pull request #3465 from derekpierre/migrate-specified-config-file
Auto-migrate specified config file
2024-03-26 11:14:20 -04:00
derekpierre fb56c52fbb
Override solidity configuration for dependency. 2024-03-25 17:02:14 -04:00
derekpierre ec5e6fdced
Use deployer account to deploy contract, and not contract instance itself. 2024-03-25 13:43:22 -04:00
derekpierre 51125a1a7c
Add test for ursula run when a config file in a non-default location is specified - ensure that migration is run on it. 2024-03-25 13:43:21 -04:00