Commit 4196e90
[CCCP-295] Migrate to alloy (#168)
* CCCP-295, chore: update abi
* CCCP-295, chore: fix typo
* CCCP-295, feature: migrate into alloy-rs (WIP)
* CCCP-295, fix: remove redundant find
* CCCP-295, chore: move deps to mod
* CCCP-295, refactor: `fn get_sorted_signatures()`
* CCCP-295, refactor: remove unused dependencies and simplify transaction handling
- Removed `byteorder` dependency from `Cargo.toml` files in both root and client directories.
- Updated transaction handling in various handlers to utilize `send_transaction` function for better task management and error handling.
- Introduced `SpawnTaskHandle` in several handlers to facilitate asynchronous task spawning.
- Cleaned up unused code and commented-out sections across multiple files, enhancing overall code readability and maintainability.
- Adjusted imports and struct definitions to reflect the removal of redundant components.
This commit streamlines the codebase by eliminating unnecessary dependencies and improving the transaction processing flow.
* CCCP-295, refactor: streamline transaction management and clean up code
- Removed unused traits and functions related to transaction management, enhancing code clarity.
- Simplified imports by eliminating unnecessary components, focusing on essential dependencies.
* CCCP-295, refactor: restart tasks separately on error (WIP)
* CCCP-295, feat: move retry transport layer & add `br_metrics::increase_rpc_calls`
* CCCP-295, feature: implement txpool flushing mechanism
- Added a new method `flush_stalled_transactions` to handle stalled transactions in the transaction pool.
- Enhanced transaction management by adjusting gas prices for legacy and EIP-1559 transactions based on current market conditions.
- Updated the `send_transaction` function to call `flush_stalled_transactions` when encountering a "nonce too low" error, improving error handling and transaction reliability.
* CCCP-295, chore: remove unnecessary locking
* CCCP-476, feat: support core
* CCCP-295, deps: update polkadot-sdk
* CCCP-295, chore: update alloy to 0.8
* CCCP-295, refactor: simplify signature recovery in `recover_message` function
* CCCP-295, refactor: migrate to AnyNetwork for improved flexibility in network handling
- Updated various components to use `AnyNetwork` instead of specific network types, enhancing the adaptability of the codebase.
- Adjusted type constraints in multiple structs and traits to accommodate the new network abstraction.
* CCCP-295, chore: keypair_migrator never return
* CCCP-295, chore: update doc comment
* CCCP-295, chore: add missing sleep
* CCCP-295, fix: check every chainlink feed existence
* CCCP-295, fix: add missing tickers
* CCCP-295, refactor: impl From trait for EthereumSignature
* CCCP-295, fix: correct gas fee assignment in send_transaction function for bifrost network
* CCCP-295, fix: use DynSolValue to encode poll input
* CCCP-295, refactor: use max()
* CCCP-295, fix: padding issue
* CCCP-295, chore: gas coefficient
* CCCP-295, chore: resolve clippy
* CCCP-295, chore: debug_mode
* feat: rollback barrier count
* fix: is sequentially increased
* CCCP-295, rollback sequential check and roundup barrier
* CCCP-295, fix: use right encode
* CCCP-295, fix: no relay to non relay target
* CCCP-295, fix: bsc `estimateGas` issue
* CCCP-295, fix: round relay sequential issue
* CCCP-295, fix: add missing condition
* CCCP-295, feature: flush txpool when tx fails to confirmed while 3 block pass
* CCCP-295, feature: synchronous send transaction on bootstrap roundup relay
* CCCP-295, fix: add flush condition
* CCCP-295, refactor: simplify log processing in roundup relay handler
* CCCP-295, refactor: streamline event handling and bootstrap state synchronization across BTC and ETH handlers
* CCCP-295, fix: state check location
* CCCP-295, fix: recursive issue
* CCCP-295, fix: add transaction flushing on nonce too low error in roundup relay handler
* CCCP-295, feat: retry on already known
* CCCP-295, deps: bump sentry
* CCCP-295, fix: use `CachedNonceManager`
* CCCP-295, fix: fill chain_id
* CCCP-295, chore: print sentry client init log
* CCCP-295, fix: fillers
* CCCP-295, refactor: roundup phase2 bootstrap
* CCCP-295, refactor: bootstrap
* CCCP-295, refactor:
* CCCP-295, fix: comparison by ord for bootstrapstate
* CCCP-295, fix: skip bootstrap when start from NormalStart
* CCCP-295, fix: use signature constant
* CCCP-295, deps: release v2.1.1
* CCCP-475 integrate aws-kms (#170)
* CCCP-475, feature: dynamic signer (Local | AWS KMS)
* CCCP-475, fix: make `private_key` field optional
* CCCP-295, chore: wait for 3 block
* CCCP-295, refactor: enhance transaction flushing logic and logging
- Updated transaction handling to support different transaction types (Legacy and EIP1559).
- Improved nonce management for pending transactions.
- Added detailed logging for transaction flushing process, including success and failure messages.
* CCCP-295, fix: also flush txpool: queued
* CCCP-295, chore: add logs
* CCCP-295, fix: flushing txpool on startup
* CCCP-295, fix: empty check
* CCCP-295, fix: deserialize to SecretString
* CCCP-295, fix: use static tx timeout
* CCCP-295, fix: remove unwrap
* CCCP-295, fix: add missing relay target check
* CCCP-295, fix: move wait_until_next_time
* CCCP-488, support kms integrated keystore (#171)
* CCCP-488, feat: init kms keystore
* CCCP-488, chore: refactor
* CCCP-488, chore: refactor service
* CCCP-488, chore: add doc string
* CCCP-488, fix: resolve conflict
* CCCP-295, feat: init migrate-keystore cli
* CCCP-488, refactor: init new password keystore
* CCCP-488, fix: remove key_pair() usage
* CCCP-488, fix: update migrate-keystore cli
* CCCP-488, fix: support v1 keystore migration
* CCCP-488, fix: remove some unwrap
* CCCP-488, docs: add readme
* CCCP-488, fix: allow optional keystore config
* CCCP-488, test: test kms keystore
* CCCP-488, test: test kms keystore decryption
* CCCP-488, chore: apply cargo-clippy
* refactor: remove `Display` implementation for `HandlerType`
* CCCP-488, refactor: rewrite in dyn Trait
* CCCP-488, fix: use fixed length aes key
* CCCP-488, test: fix test_create_new_keypair_v1
* CCCP-488, fix: init aws client only once if needed
* CCCP-488, chore: check decrypted pair
* CCCP-488, chore: simplify expression
* CCCP-488, chore: remove redundant, rename variables
* CCCP-488, fix: wrap with block_in_place
* chore: remove unused config parameter
* chore: cleanup dependencies & migrate to 2024
* CCCP-488, fix: increase pending tx timeout
* CCCP-488, fix: use stable branch
---------
Co-authored-by: alstjd0921 <kwonarseus@gmail.com>
* chore: update alloy to 0.12
* chore: remove unused feature
* [CCCP-506] allow multiple signers for `signer_config` field (#173)
* feature: multi account wallet for smooth relayer account update
* feature: implement fn update_default_address
* chore: log
* CCCP-506, chore: vectorize signer_config
* CCCP-506, chore: add doc-strings and update log
* CCCP-506, chore: move log
* CCCP-506, fix: remove redundant from field setters
---------
Co-authored-by: dnjscksdn98 <dnjscksdn98@gmail.com>
* fix: use proper chainid
* fix: move signer update to the last step
* relay as previous selected (#175)
* fix: roundup relay as prev selected relayer
* fix: remove helpless verify
* fix: bootstrap
* fix: pass previous round
---------
Co-authored-by: dnjscksdn98 <dnjscksdn98@gmail.com>
* fix: non-retryable errors
* feat: check vote majority before send
* chore: no logging for `already executed` errors
* fix: use correct syntax
* CCCP-514, feat: check bitcoin provider sync, add sentry alerts (#176)
* CCCP-514, feat: check bitcoin provider sync, add sentry alerts
* Improve bootstrap process (#177)
* resolve bootstrap order
* cleanup
* fix: move block init, check if NormalStart
* fix: use correct bootstrap round offset
* CCCP-515, fix: check non-zero volume, symbol update (#178)
* CCCP-295, fix: properly handle potential deadlocks
* CCCP-295, fix: panic on-bootstrap-0
* CCCP-295, fix: set from field before flushing
* CCCP-295, feat: check block rollback
---------
Co-authored-by: Alex Won <dnjscksdn98@gmail.com>1 parent fcb57a6 commit 4196e90
File tree
88 files changed
+5517
-5412
lines changed- abi
- client
- cli
- src
- src
- btc
- handlers
- storage
- keypair
- eth
- handlers
- tx
- substrate
- tx
- configs
- metrics
- src
- periodic
- src
- price_source
- primitives
- src
- constants
- contracts
- relayer
- src
- commands
- service_deps
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
88 files changed
+5517
-5412
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
57 | 67 | | |
58 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
63 | | - | |
64 | | - | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | | - | |
| 80 | + | |
67 | 81 | | |
68 | 82 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
75 | 89 | | |
76 | 90 | | |
77 | | - | |
78 | | - | |
| 91 | + | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | | - | |
| 95 | + | |
82 | 96 | | |
83 | 97 | | |
84 | 98 | | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
| 275 | + | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
| 499 | + | |
| 500 | + | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
| 540 | + | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
630 | | - | |
| 629 | + | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
| 821 | + | |
| 822 | + | |
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
849 | | - | |
| 848 | + | |
| 849 | + | |
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
854 | | - | |
| 853 | + | |
| 854 | + | |
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
| 865 | + | |
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
| 870 | + | |
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | | - | |
1358 | | - | |
| 1357 | + | |
| 1358 | + | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
1451 | | - | |
| 1450 | + | |
| 1451 | + | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
| |||
1460 | 1460 | | |
1461 | 1461 | | |
1462 | 1462 | | |
1463 | | - | |
1464 | | - | |
| 1463 | + | |
| 1464 | + | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
| |||
1484 | 1484 | | |
1485 | 1485 | | |
1486 | 1486 | | |
1487 | | - | |
1488 | | - | |
| 1487 | + | |
| 1488 | + | |
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
1492 | | - | |
1493 | | - | |
| 1492 | + | |
| 1493 | + | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
| |||
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
1504 | | - | |
| 1504 | + | |
1505 | 1505 | | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | 1508 | | |
1509 | | - | |
| 1509 | + | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
| |||
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | | - | |
1582 | | - | |
| 1581 | + | |
| 1582 | + | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | | - | |
1587 | | - | |
| 1586 | + | |
| 1587 | + | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
| |||
1595 | 1595 | | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | | - | |
| 1598 | + | |
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | 1602 | | |
1603 | | - | |
| 1603 | + | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | 1606 | | |
| |||
0 commit comments