Commit 0352fec
authored
feat: Enable batching multiple TXs with a single client update (#635)
* Enable batching multiple TXs with a single client update
* Use HashMap for CLI transfer arguments
* Move BatchConfig to be per-chain configuration
* Improve BatchConfig handling
* Increase COSMOS_TRUSTING_PERIOD from 30 to 70 in tests to avoid client expiring due to batching
* Remove unnecessary CLI transfer component and fix recover client test
* Add early return when trying to relay empty vector of packets in batch implementations
* Fix and improve event batching and configuration
* Fix cargo doc and run taplo
* Group packet information together in batching methods
* Use slice instead of Vec for batching methods
* Warn when packet timeout has neither height nor timestamp
* Query ack commitments and proofs using the same height and improve batch transactions test
* Remove redundant height queries when batching acks1 parent f2930c9 commit 0352fec
File tree
88 files changed
+1668
-187
lines changed- .github/workflows
- crates
- any/any-counterparty/src/impls/types
- celestia/celestia-integration-tests/src/contexts
- chain
- chain-components/src/traits/types
- packets
- chain-type-components
- src
- impls/types
- traits/types
- ibc
- cli/cli/src/impls
- cosmos
- cosmos-chain-components/src/impls/types
- cosmos-integration-tests
- src
- contexts
- impls/bootstrap
- tests
- cosmos-relayer
- src/contexts
- cosmos-test-components/src/bootstrap
- impls
- chain
- genesis_legacy
- genesis
- initializers
- traits/fields
- cosmos-wasm-relayer/src
- context
- impls
- relayer
- relayer-components-extra
- src
- batch
- impls
- traits
- types
- build/impls/relay
- relay/impls/packet_relayers
- relayer-components/src
- components/default
- relay
- impls
- auto_relayers
- event_relayers
- message_senders
- packet_relayers
- ack
- general
- receive
- timeout_unordered
- traits
- chains
- packet_relayers
- transaction
- impls/message_sender
- traits
- test
- test-components/src/chain_driver/traits/fields
- test-suite
- src
- tests
- traits
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
+1668
-187
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
0 commit comments