Skip to content

Commit e1f48d6

Browse files
feat: parse IBC v2 packets from ABCI events (#8375)
* feat: parse packets v2 from events * fix: lint. Shutup Meg! * refactor: rename function * refactor: extract packet form events * refactor: extract packet form events * sync dep * added deprecation notice * changelog * changelog * changelog * fix unit test --------- Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
1 parent 5b66d17 commit e1f48d6

File tree

20 files changed

+435
-225
lines changed

20 files changed

+435
-225
lines changed

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ Ref: https://keepachangelog.com/en/1.0.0/
4848
### State Machine Breaking
4949

5050
### Improvements
51+
5152
* [\#8303](https://github.com/cosmos/ibc-go/pull/8303) Prefix-based routing in IBCv2 Router
5253

5354
### Bug Fixes
5455

5556
### Testing API
57+
5658
* [\#8371](https://github.com/cosmos/ibc-go/pull/8371) e2e: Create only necessary number of chains for e2e suite.
59+
* [\#8375](https://github.com/cosmos/ibc-go/pull/8375) feat: parse IBC v2 packets from ABCI events
5760

5861
## [v10.2.0](https://github.com/cosmos/ibc-go/releases/tag/v10.2.0) - 2022-04-30
5962

@@ -217,7 +220,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
217220

218221
### State Machine Breaking
219222

220-
* (core/03-connection) [\#7129](https://github.com/cosmos/ibc-go/pull/7129) Remove verification of self client and consensus state from connection handshake.
223+
* (core/03-connection) [\#7129](https://github.com/cosmos/ibc-go/pull/7129) Remove verification of self client and consensus state from connection handshake.
221224

222225
## [v8.4.0](https://github.com/cosmos/ibc-go/releases/tag/v8.4.0) - 2024-07-29
223226

@@ -246,6 +249,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
246249
## [v8.3.1](https://github.com/cosmos/ibc-go/releases/tag/v8.3.1) - 2024-05-22
247250

248251
### Improvements
252+
249253
* (core/ante) [\#6302](https://github.com/cosmos/ibc-go/pull/6302) Performance: Skip app callbacks during RecvPacket execution in checkTx within the redundant relay ante handler.
250254
* (core/ante) [\#6280](https://github.com/cosmos/ibc-go/pull/6280) Performance: Skip redundant proof checking in RecvPacket execution in reCheckTx within the redundant relay ante handler.
251255
* (core/ante) [\#6306](https://github.com/cosmos/ibc-go/pull/6306) Performance: Skip misbehaviour checks in UpdateClient flow and skip signature checks in reCheckTx mode.
@@ -379,7 +383,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
379383

380384
* (apps/transfer) [\#4709](https://github.com/cosmos/ibc-go/pull/4709) Order query service RPCs to fix availability of denom traces endpoint when no args are provided.
381385
* (core/04-channel) [\#3357](https://github.com/cosmos/ibc-go/pull/3357) Handle unordered channels in `NextSequenceReceive` query.
382-
* (e2e) [\#3402](https://github.com/cosmos/ibc-go/pull/3402 Allow retries for messages signed by relayer.
386+
* (e2e) [\#3402](https://github.com/cosmos/ibc-go/pull/3402) Allow retries for messages signed by relayer.
383387
* (core/04-channel) [\#3417](https://github.com/cosmos/ibc-go/pull/3417) Add missing query for next sequence send.
384388
* (testing) [\#4630](https://github.com/cosmos/ibc-go/pull/4630) Update `testconfig` to use revision formatted chain IDs.
385389
* (core/04-channel) [\#4706](https://github.com/cosmos/ibc-go/pull/4706) Retrieve correct next send sequence for packets in unordered channels.
@@ -394,7 +398,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
394398

395399
### Testing
396400

397-
* [\#3138](https://github.com/cosmos/ibc-go/pull/3138) Use `testing.TB` instead of `testing.T` to support benchmarks and fuzz tests.
401+
* [\#3138](https://github.com/cosmos/ibc-go/pull/3138) Use `testing.TB` instead of `testing.T` to support benchmarks and fuzz tests.
398402
* [\#3980](https://github.com/cosmos/ibc-go/pull/3980) Change `sdk.Events` usage to `[]abci.Event` in the testing package.
399403
* [\#3986](https://github.com/cosmos/ibc-go/pull/3986) Add function `RelayPacketWithResults`.
400404
* [\#4182](https://github.com/cosmos/ibc-go/pull/4182) Return current validator set when requesting current height in `GetValsAtHeight`.
@@ -424,7 +428,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
424428

425429
### State Machine Breaking
426430

427-
* (core/03-connection) [\#7128](https://github.com/cosmos/ibc-go/pull/7128) Remove verification of self client and consensus state from connection handshake.
431+
* (core/03-connection) [\#7128](https://github.com/cosmos/ibc-go/pull/7128) Remove verification of self client and consensus state from connection handshake.
428432

429433
## [v7.7.0](https://github.com/cosmos/ibc-go/releases/tag/v7.7.0) - 2024-07-29
430434

@@ -486,7 +490,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
486490

487491
### Bug Fixes
488492

489-
* (apps/29-fee) [\#6255](https://github.com/cosmos/ibc-go/pull/6255) Delete already refunded fees from state if some fee(s) cannot be refunded on channel closure.
493+
* (apps/29-fee) [\#6255](https://github.com/cosmos/ibc-go/pull/6255) Delete already refunded fees from state if some fee(s) cannot be refunded on channel closure.
490494

491495
## [v7.4.0](https://github.com/cosmos/ibc-go/releases/tag/v7.4.0) - 2024-04-05
492496

e2e/tests/interchain_accounts/localhost_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (s *LocalhostInterchainAccountsTestSuite) TestInterchainAccounts_Localhost(
170170
txResp := s.BroadcastMessages(ctx, chainA, userAWallet, msgSendTx)
171171
s.AssertTxSuccess(txResp)
172172

173-
packet, err = ibctesting.ParsePacketFromEvents(txResp.Events)
173+
packet, err = ibctesting.ParseV1PacketFromEvents(txResp.Events)
174174
s.Require().NoError(err)
175175
s.Require().NotNil(packet)
176176
})
@@ -327,7 +327,7 @@ func (s *LocalhostInterchainAccountsTestSuite) TestInterchainAccounts_ReopenChan
327327
txResp := s.BroadcastMessages(ctx, chainA, userAWallet, msgSendTx)
328328
s.AssertTxSuccess(txResp)
329329

330-
packet, err = ibctesting.ParsePacketFromEvents(txResp.Events)
330+
packet, err = ibctesting.ParseV1PacketFromEvents(txResp.Events)
331331
s.Require().NoError(err)
332332
s.Require().NotNil(packet)
333333
})
@@ -455,7 +455,7 @@ func (s *LocalhostInterchainAccountsTestSuite) TestInterchainAccounts_ReopenChan
455455
txResp := s.BroadcastMessages(ctx, chainA, userAWallet, msgSendTx)
456456
s.AssertTxSuccess(txResp)
457457

458-
packet, err = ibctesting.ParsePacketFromEvents(txResp.Events)
458+
packet, err = ibctesting.ParseV1PacketFromEvents(txResp.Events)
459459
s.Require().NoError(err)
460460
s.Require().NotNil(packet)
461461
})

e2e/tests/transfer/localhost_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (s *LocalhostTransferTestSuite) TestMsgTransfer_Localhost() {
128128
txResp := s.Transfer(ctx, chainA, userAWallet, transfertypes.PortID, msgChanOpenInitRes.ChannelId, testvalues.DefaultTransferAmount(chainADenom), userAWallet.FormattedAddress(), userBWallet.FormattedAddress(), clienttypes.NewHeight(1, 500), 0, "")
129129
s.AssertTxSuccess(txResp)
130130

131-
packet, err = ibctesting.ParsePacketFromEvents(txResp.Events)
131+
packet, err = ibctesting.ParseV1PacketFromEvents(txResp.Events)
132132
s.Require().NoError(err)
133133
s.Require().NotNil(packet)
134134
})

e2e/tests/upgrades/upgrade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ func (s *UpgradeTestSuite) TestV8ToV10ChainUpgrade_Localhost() {
882882
txResp := s.Transfer(ctx, chainA, userAWallet, transfertypes.PortID, srcChannelID, testvalues.DefaultTransferAmount(chainADenom), userAWallet.FormattedAddress(), userBWallet.FormattedAddress(), s.GetTimeoutHeight(ctx, chainA), 0, "")
883883
s.AssertTxSuccess(txResp)
884884

885-
packet, err := ibctesting.ParsePacketFromEvents(txResp.Events)
885+
packet, err := ibctesting.ParseV1PacketFromEvents(txResp.Events)
886886
s.Require().NoError(err)
887887
s.Require().NotNil(packet)
888888

@@ -959,7 +959,7 @@ func (s *UpgradeTestSuite) TestV8ToV10ChainUpgrade_Localhost() {
959959
txResp := s.Transfer(ctx, chainA, userBWallet, transfertypes.PortID, dstChannelID, transferCoins, userBWallet.FormattedAddress(), userAWallet.FormattedAddress(), s.GetTimeoutHeight(ctx, chainA), 0, "")
960960
s.AssertTxSuccess(txResp)
961961

962-
packet, err := ibctesting.ParsePacketFromEvents(txResp.Events)
962+
packet, err := ibctesting.ParseV1PacketFromEvents(txResp.Events)
963963
s.Require().NoError(err)
964964
s.Require().NotNil(packet)
965965

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ require (
4141
cloud.google.com/go/iam v1.2.2 // indirect
4242
cloud.google.com/go/monitoring v1.21.2 // indirect
4343
cloud.google.com/go/storage v1.49.0 // indirect
44-
cosmossdk.io/collections v1.2.0 // indirect
44+
cosmossdk.io/collections v1.2.1 // indirect
4545
cosmossdk.io/depinject v1.2.0 // indirect
4646
cosmossdk.io/schema v1.1.0 // indirect
4747
filippo.io/edwards25519 v1.1.0 // indirect
@@ -67,9 +67,9 @@ require (
6767
github.com/cloudwego/base64x v0.1.5 // indirect
6868
github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 // indirect
6969
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
70-
github.com/cockroachdb/errors v1.11.3 // indirect
70+
github.com/cockroachdb/errors v1.12.0 // indirect
7171
github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a // indirect
72-
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
72+
github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 // indirect
7373
github.com/cockroachdb/pebble v1.1.5 // indirect
7474
github.com/cockroachdb/redact v1.1.6 // indirect
7575
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
@@ -94,7 +94,7 @@ require (
9494
github.com/fatih/color v1.17.0 // indirect
9595
github.com/felixge/httpsnoop v1.0.4 // indirect
9696
github.com/fsnotify/fsnotify v1.9.0 // indirect
97-
github.com/getsentry/sentry-go v0.28.1 // indirect
97+
github.com/getsentry/sentry-go v0.32.0 // indirect
9898
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
9999
github.com/go-kit/kit v0.13.0 // indirect
100100
github.com/go-kit/log v0.2.1 // indirect

go.sum

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@ cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT
616616
cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
617617
cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg=
618618
cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU=
619-
cosmossdk.io/collections v1.2.0 h1:IesfVG8G/+FYCMVMP01frS/Cw99Omk5vBh3cHbO01Gg=
620-
cosmossdk.io/collections v1.2.0/go.mod h1:4NkMoYw6qRA8fnSH/yn1D/MOutr8qyQnwsO50Mz9ItU=
619+
cosmossdk.io/collections v1.2.1 h1:mAlNMs5vJwkda4TA+k5q/43p24RVAQ/qyDrjANu3BXE=
620+
cosmossdk.io/collections v1.2.1/go.mod h1:PSsEJ/fqny0VPsHLFT6gXDj/2C1tBOTS9eByK0+PBFU=
621621
cosmossdk.io/core v0.11.3 h1:mei+MVDJOwIjIniaKelE3jPDqShCc/F4LkNNHh+4yfo=
622622
cosmossdk.io/core v0.11.3/go.mod h1:9rL4RE1uDt5AJ4Tg55sYyHWXA16VmpHgbe0PbJc6N2Y=
623623
cosmossdk.io/depinject v1.2.0 h1:6NW/FSK1IkWTrX7XxUpBmX1QMBozpEI9SsWkKTBc5zw=
@@ -779,12 +779,12 @@ github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOG
779779
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
780780
github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4=
781781
github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU=
782-
github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I=
783-
github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8=
782+
github.com/cockroachdb/errors v1.12.0 h1:d7oCs6vuIMUQRVbi6jWWWEJZahLCfJpnJSVobd1/sUo=
783+
github.com/cockroachdb/errors v1.12.0/go.mod h1:SvzfYNNBshAVbZ8wzNc/UPK3w1vf0dKDUP41ucAIf7g=
784784
github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a h1:f52TdbU4D5nozMAhO9TvTJ2ZMCXtN4VIAmfrrZ0JXQ4=
785785
github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M=
786-
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
787-
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
786+
github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 h1:ASDL+UJcILMqgNeV5jiqR4j+sTuvQNHdf2chuKj1M5k=
787+
github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506/go.mod h1:Mw7HqKr2kdtu6aYGn3tPmAftiP3QPX63LdK/zcariIo=
788788
github.com/cockroachdb/pebble v1.1.5 h1:5AAWCBWbat0uE0blr8qzufZP5tBjkRyy/jWe1QWLnvw=
789789
github.com/cockroachdb/pebble v1.1.5/go.mod h1:17wO9el1YEigxkP/YtV8NtCivQDgoCyBg5c4VR/eOWo=
790790
github.com/cockroachdb/redact v1.1.6 h1:zXJBwDZ84xJNlHl1rMyCojqyIxv+7YUpQiJLQ7n4314=
@@ -909,8 +909,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
909909
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
910910
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
911911
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
912-
github.com/getsentry/sentry-go v0.28.1 h1:zzaSm/vHmGllRM6Tpx1492r0YDzauArdBfkJRtY6P5k=
913-
github.com/getsentry/sentry-go v0.28.1/go.mod h1:1fQZ+7l7eeJ3wYi82q5Hg8GqAPgefRq+FP/QhafYVgg=
912+
github.com/getsentry/sentry-go v0.32.0 h1:YKs+//QmwE3DcYtfKRH8/KyOOF/I6Qnx7qYGNHCGmCY=
913+
github.com/getsentry/sentry-go v0.32.0/go.mod h1:CYNcMMz73YigoHljQRG+qPF+eMq8gG72XcGN/p71BAY=
914914
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
915915
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
916916
github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
@@ -1588,6 +1588,8 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
15881588
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
15891589
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
15901590
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
1591+
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
1592+
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
15911593
go.uber.org/mock v0.5.2 h1:LbtPTcP8A5k9WPXj54PPPbjcI4Y6lhyOZXn+VS7wNko=
15921594
go.uber.org/mock v0.5.2/go.mod h1:wLlUxC2vVTPTaE3UD51E0BGOAElKrILxhVSDYQLld5o=
15931595
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=

modules/apps/callbacks/ibc_middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func (s *CallbacksTestSuite) TestOnTimeoutPacket() {
503503
s.Require().NoError(err)
504504
s.Require().NotNil(res)
505505

506-
packet, err = ibctesting.ParsePacketFromEvents(res.GetEvents())
506+
packet, err = ibctesting.ParseV1PacketFromEvents(res.GetEvents())
507507
s.Require().NoError(err)
508508
s.Require().NotNil(packet)
509509

modules/apps/callbacks/ica_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (s *CallbacksTestSuite) ExecuteICATx(icaAddress, memo string) {
151151
return // we return if send packet is rejected
152152
}
153153

154-
packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents())
154+
packet, err := ibctesting.ParseV1PacketFromEvents(res.GetEvents())
155155
s.Require().NoError(err)
156156

157157
err = s.path.RelayPacket(packet)
@@ -172,7 +172,7 @@ func (s *CallbacksTestSuite) ExecuteICATimeout(icaAddress, memo string) {
172172
return // we return if send packet is rejected
173173
}
174174

175-
packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents())
175+
packet, err := ibctesting.ParseV1PacketFromEvents(res.GetEvents())
176176
s.Require().NoError(err)
177177

178178
// proof query requires up to date client

modules/apps/callbacks/replay_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func (s *CallbacksTestSuite) ExecuteFailedTransfer(memo string) {
330330
return // we return if send packet is rejected
331331
}
332332

333-
packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents())
333+
packet, err := ibctesting.ParseV1PacketFromEvents(res.GetEvents())
334334
s.Require().NoError(err)
335335

336336
// relay send

modules/apps/callbacks/transfer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (s *CallbacksTestSuite) ExecuteTransfer(memo string, recvSuccess bool) {
204204
err = s.path.EndpointB.UpdateClient()
205205
s.Require().NoError(err)
206206

207-
packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents())
207+
packet, err := ibctesting.ParseV1PacketFromEvents(res.GetEvents())
208208
s.Require().NoError(err)
209209

210210
res, err = s.path.EndpointB.RecvPacketWithResult(packet)
@@ -260,7 +260,7 @@ func (s *CallbacksTestSuite) ExecuteTransferTimeout(memo string) {
260260
return // we return if send packet is rejected
261261
}
262262

263-
packet, err := ibctesting.ParsePacketFromEvents(res.GetEvents())
263+
packet, err := ibctesting.ParseV1PacketFromEvents(res.GetEvents())
264264
s.Require().NoError(err) // packet committed
265265
s.Require().NotNil(packet)
266266

0 commit comments

Comments
 (0)