z3aa_on_timeout_filetest.gno
20.54 Kb · 605 lines
1// PKGPATH: gno.land/r/aib/main
2package main
3
4import (
5 "encoding/base64"
6 "encoding/hex"
7 "testing"
8 "time"
9
10 "gno.land/p/aib/ibc/lightclient/tendermint"
11 tmtesting "gno.land/p/aib/ibc/lightclient/tendermint/testing"
12 "gno.land/p/aib/ibc/types"
13 "gno.land/p/aib/ics23"
14 "gno.land/r/aib/ibc/apps/transfer"
15 "gno.land/r/aib/ibc/core"
16)
17
18// OnTimeout: success w/ IBC voucher token
19func main(cur realm) {
20 var (
21 chainID = "atomone-1"
22 trustedHeight = types.NewHeight(1, 2)
23 clientState = tmtesting.NewClientState(chainID, trustedHeight)
24 // NOTE this apphash was provided by the gen-proof command below (RecvPacket proof).
25 apphash, _ = hex.DecodeString("948f52451fd35947b960d2a8d316e3c1d4cae9318a3d71923efeea9d7e3db57b")
26 // priv=8a6cAbQSpDbebmcTEhCMPhhr/SkL/2pizo60yzHRkN9Uyk7RHOZm7g4xW+yeJh147/Z4/6HXF6gBwcFNkLsZ/A==
27 val1 = tendermint.NewValidator("9DIBYr64rywKO3Kk6+743xDHcEU=",
28 "VMpO0RzmZu4OMVvsniYdeO/2eP+h1xeoAcHBTZC7Gfw=", 1)
29 // priv=nWg6ETc62tyxd94lh8fFaQnZKaAW6vlS0L/4lfseJuI14ZXUKp7AZROkflLFVF+SBg4wJVfzgzIKyWq3D066+g==
30 val2 = tendermint.NewValidator("y+naL3ubs9q1bXrY9+uRxY9c+J8=",
31 "NeGV1CqewGUTpH5SxVRfkgYOMCVX84MyCslqtw9Ouvo=", 1)
32 trustedValset = tendermint.NewValset(val1, val2)
33 consensusState = tmtesting.GenConsensusState(time.Now(), apphash, trustedValset.Hash())
34 counterpartyID = "07-tendermint-42"
35 )
36 clientID := core.CreateClient(cross(cur), clientState, consensusState)
37 core.RegisterCounterparty(cross(cur), clientID, [][]byte{[]byte("iavlStoreKey"), []byte("prefix2")}, counterpartyID)
38 relayer := cur.Previous().Address()
39
40 signer := cur.Address()
41 // ibc/F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F
42 voucherDenom := transfer.NewDenom("uatone", transfer.NewHop(transfer.PortID, clientID)).IBCDenom()
43
44 // Mint voucher tokens via a real RecvPacket flow.
45 recvPayload := transfer.NewFungibleTokenPacketData("uatone", "100", "atone1user", signer.String(), "")
46 recvPayloadBz := recvPayload.ProtoMarshal()
47 // NOTE this base64 value is used in payload.value in the gen-proof command below.
48 println("Payload proto:", base64.StdEncoding.EncodeToString(recvPayloadBz))
49
50 specs := ics23.IavlSpec()
51 // NOTE code generated by:
52 // go run -C ./cmd/gen-proof . 'prefix2' '07-tendermint-42' 'packet' '{"sequence":1,"source_client":"07-tendermint-42","destination_client":"07-tendermint-1","timeout_timestamp":1234571490,"payloads":[{"source_port":"transfer","destination_port":"transfer","encoding":"application/x-protobuf","value":"CgZ1YXRvbmUSAzEwMBoKYXRvbmUxdXNlciIoZzFnanM4bmZkcmQ1NXozeHU5Z2pjYXRuajI5dmt3dXl4NGZmcXhkOQ==","version":"ics20-1"}]}'
53 recvProof := []ics23.CommitmentProof{
54
55 // iavl proof
56 ics23.CommitmentProof_Exist{
57 Exist: &ics23.ExistenceProof{
58 Key: []byte("\x70\x72\x65\x66\x69\x78\x32\x30\x37\x2d\x74\x65\x6e\x64\x65\x72\x6d\x69\x6e\x74\x2d\x34\x32\x01\x00\x00\x00\x00\x00\x00\x00\x01"),
59 Value: []byte("\x2a\xec\xd3\x00\x8e\x1c\xaa\x6d\x4c\x80\xec\x03\xb7\x0b\x11\xc7\xfb\x00\x4a\x23\x0e\x95\x1e\x30\x00\x32\x3e\x30\xfb\xa1\x33\xde"),
60 Leaf: &ics23.LeafOp{
61 Hash: specs.LeafSpec.Hash,
62 PrehashKey: specs.LeafSpec.PrehashKey,
63 PrehashValue: specs.LeafSpec.PrehashValue,
64 Length: specs.LeafSpec.Length,
65 Prefix: []byte("\x00\x02\x02"),
66 },
67 Path: []*ics23.InnerOp{
68 {
69 Hash: specs.InnerSpec.Hash,
70 Prefix: []byte("\x02\x04\x02\x20\x35\xf8\xea\x80\x53\x90\xe0\x84\x85\x4f\x39\x9b\x42\xcc\xde\xae\xa3\x3a\x1d\xed\xc1\x15\x63\x8a\xc4\x8d\x06\x00\x63\x7d\xba\x1f\x20"),
71 Suffix: []byte(""),
72 },
73 {
74 Hash: specs.InnerSpec.Hash,
75 Prefix: []byte("\x04\x08\x02\x20"),
76 Suffix: []byte("\x20\x79\x8e\x2c\xaa\x96\xfd\xfb\xa3\x76\xdd\xeb\x47\x99\x99\x54\xd2\xf4\x7e\x65\x16\x22\x64\xb0\x53\x6a\xb5\xdf\xf7\xfc\x0a\x2e\x07"),
77 },
78 {
79 Hash: specs.InnerSpec.Hash,
80 Prefix: []byte("\x06\x0c\x02\x20\x9a\xf3\x7d\xd5\x95\xa0\x19\x08\x03\xb5\xe0\x5a\xae\xf4\x2a\xe3\xfa\xd4\x99\xe4\xfb\xe3\x7f\x7c\xd3\x1c\xad\xff\x22\xa9\xee\x74\x20"),
81 Suffix: []byte(""),
82 },
83 },
84 },
85 },
86
87 // rootmulti proof
88 ics23.CommitmentProof_Exist{
89 Exist: &ics23.ExistenceProof{
90 Key: []byte("\x69\x61\x76\x6c\x53\x74\x6f\x72\x65\x4b\x65\x79"),
91 Value: []byte("\xf5\xf0\x9d\x7b\x1d\x33\x59\xf7\x09\x21\x4a\x5d\x28\x91\xb8\x63\xf2\xd4\x7c\xf3\x97\xb6\x55\x89\x82\x05\x00\x31\x14\x0e\x93\x53"),
92 Leaf: &ics23.LeafOp{
93 Hash: specs.LeafSpec.Hash,
94 PrehashKey: specs.LeafSpec.PrehashKey,
95 PrehashValue: specs.LeafSpec.PrehashValue,
96 Length: specs.LeafSpec.Length,
97 Prefix: []byte("\x00"),
98 },
99 Path: []*ics23.InnerOp{},
100 },
101 },
102 }
103
104 recvMsg := types.MsgRecvPacket{
105 Packet: types.Packet{
106 Sequence: 1,
107 SourceClient: counterpartyID,
108 DestinationClient: clientID,
109 TimeoutTimestamp: uint64(time.Now().Add(time.Hour).Unix()),
110 Payloads: []types.Payload{{
111 SourcePort: transfer.PortID,
112 DestinationPort: transfer.PortID,
113 Encoding: transfer.EncodingProtobuf,
114 Value: recvPayloadBz,
115 Version: transfer.V1,
116 }},
117 },
118 ProofCommitment: recvProof,
119 ProofHeight: trustedHeight,
120 }
121 core.RecvPacket(cross(cur), recvMsg)
122
123 // Now send the voucher tokens back (burn)
124 testing.SetRealm(testing.NewUserRealm(signer))
125 println("signer voucher balance before SendPacket:", transfer.VoucherBalanceOf(voucherDenom, signer))
126 sendPacket, sequence := transfer.Transfer(cross(cur), clientID, "atone1user", voucherDenom, 100, uint64(time.Now().Add(10*time.Minute).Unix()), "")
127 println("\nsigner voucher balance after SendPacket:", transfer.VoucherBalanceOf(voucherDenom, signer))
128
129 // Change block time to after the timeout
130 ctx := testing.GetContext()
131 ctx.Time = time.Now().Add(12 * time.Minute)
132 testing.SetContext(ctx)
133 // Update client with a block created after the timeout
134 testing.SetOriginCaller(relayer)
135 // NOTE code generated by:
136 // go run -C ./cmd/gen-block-signatures . -apphash-hex=82ea91f259352674360c621c4b0a1975cc076e3792b6d22a8bfbe8e7f7d0d2d7 -chainid=atomone-1 -header-time-shift=12 -height=12 -privkeys=8a6cAbQSpDbebmcTEhCMPhhr/SkL/2pizo60yzHRkN9Uyk7RHOZm7g4xW+yeJh147/Z4/6HXF6gBwcFNkLsZ/A==,nWg6ETc62tyxd94lh8fFaQnZKaAW6vlS0L/4lfseJuI14ZXUKp7AZROkflLFVF+SBg4wJVfzgzIKyWq3D066+g==
137 // NOTE apphash generated by the gen-proof command below
138 apphash, _ = hex.DecodeString("82ea91f259352674360c621c4b0a1975cc076e3792b6d22a8bfbe8e7f7d0d2d7")
139 trustedHeight = clientState.LatestHeight
140 var (
141 commitTimestamp = tmtesting.ToTime("2025-09-25T07:55:57.306746166Z")
142 newHeight = uint64(12)
143 newTimestamp = consensusState.Timestamp.Add(time.Minute * time.Duration(12))
144 valset = tendermint.NewValset(val1, val2)
145 nextValset = tendermint.NewValset(val1, val2)
146
147 signatures = []tendermint.CommitSig{
148 {
149 BlockIDFlag: tendermint.BlockIDFlagCommit,
150 ValidatorAddress: valset.Validators[0].Address,
151 Timestamp: commitTimestamp,
152 Signature: []byte("\x90\x76\xf4\x27\xaf\x23\xd0\xcb\x97\xb1\x6d\xfa\x86\xae\x6d\x46\xe9\xe4\x65\x76\xf2\x6a\x1d\x5f\x83\xa6\x9e\x4a\x28\x55\x6e\x74\x84\x02\xff\x15\xc0\x41\xed\x15\xb7\xef\x3a\x3f\xe1\xe6\xa0\x8f\x34\x83\x9c\x2e\x27\x26\x69\x00\x73\x45\x87\xd2\x3c\xe6\x12\x07"),
153 },
154 {
155 BlockIDFlag: tendermint.BlockIDFlagCommit,
156 ValidatorAddress: valset.Validators[1].Address,
157 Timestamp: commitTimestamp,
158 Signature: []byte("\x45\x61\x3b\x34\x58\xa1\xf5\x75\x16\x6f\xb3\xad\xda\x12\xa8\xef\xb6\x64\x3f\x6b\x80\x73\x74\xe3\x15\x6f\xe1\x3b\x3f\x50\xed\x0d\xbc\xa7\x54\x11\x72\xe3\x71\x22\x95\xec\x77\x93\x45\x03\x67\xa5\x00\x4c\x84\x3b\x1c\xa4\xf7\x0e\x95\xd1\xe2\x04\xb6\x91\x63\x09"),
159 },
160 }
161
162 msgHeader = tmtesting.NewMsgHeader(
163 chainID, newTimestamp, apphash, newHeight, trustedHeight, valset,
164 nextValset, trustedValset, signatures,
165 )
166 )
167 core.UpdateClient(cross(cur), clientID, msgHeader)
168
169 // Timeout the packet
170 // Generate the proof that no RecvPacket have been received by the
171 // counterparty chain.
172 // NOTE code generated by:
173 // go run -C ./cmd/gen-proof . 'prefix2' '07-tendermint-42' 'receipt'
174 proof := []ics23.CommitmentProof{
175
176 // iavl proof
177 ics23.CommitmentProof_Nonexist{
178 Nonexist: &ics23.NonExistenceProof{
179 Key: []byte("\x70\x72\x65\x66\x69\x78\x32\x30\x37\x2d\x74\x65\x6e\x64\x65\x72\x6d\x69\x6e\x74\x2d\x34\x32\x02\x00\x00\x00\x00\x00\x00\x00\x01"),
180 Left: &ics23.ExistenceProof{
181 Key: []byte("\x50"),
182 Value: []byte("\x50"),
183 Leaf: &ics23.LeafOp{
184 Hash: specs.LeafSpec.Hash,
185 PrehashKey: specs.LeafSpec.PrehashKey,
186 PrehashValue: specs.LeafSpec.PrehashValue,
187 Length: specs.LeafSpec.Length,
188 Prefix: []byte("\x00\x02\x02"),
189 },
190 Path: []*ics23.InnerOp{
191 {
192 Hash: specs.InnerSpec.Hash,
193 Prefix: []byte("\x04\x06\x02\x20"),
194 Suffix: []byte("\x20\x79\x8e\x2c\xaa\x96\xfd\xfb\xa3\x76\xdd\xeb\x47\x99\x99\x54\xd2\xf4\x7e\x65\x16\x22\x64\xb0\x53\x6a\xb5\xdf\xf7\xfc\x0a\x2e\x07"),
195 },
196 {
197 Hash: specs.InnerSpec.Hash,
198 Prefix: []byte("\x06\x0a\x02\x20\x9a\xf3\x7d\xd5\x95\xa0\x19\x08\x03\xb5\xe0\x5a\xae\xf4\x2a\xe3\xfa\xd4\x99\xe4\xfb\xe3\x7f\x7c\xd3\x1c\xad\xff\x22\xa9\xee\x74\x20"),
199 Suffix: []byte(""),
200 },
201 },
202 },
203 Right: &ics23.ExistenceProof{
204 Key: []byte("\x72"),
205 Value: []byte("\x72"),
206 Leaf: &ics23.LeafOp{
207 Hash: specs.LeafSpec.Hash,
208 PrehashKey: specs.LeafSpec.PrehashKey,
209 PrehashValue: specs.LeafSpec.PrehashValue,
210 Length: specs.LeafSpec.Length,
211 Prefix: []byte("\x00\x02\x02"),
212 },
213 Path: []*ics23.InnerOp{
214 {
215 Hash: specs.InnerSpec.Hash,
216 Prefix: []byte("\x02\x04\x02\x20"),
217 Suffix: []byte("\x20\xa3\x03\x93\x0c\xa8\x83\x16\x18\xac\x7e\x4d\xdd\x10\x54\x6c\xfc\x36\x6f\xb7\x30\xd6\x63\x0c\x03\x0a\x97\x22\x6b\xbe\xfc\x69\x35"),
218 },
219 {
220 Hash: specs.InnerSpec.Hash,
221 Prefix: []byte("\x04\x06\x02\x20\x35\xf8\xea\x80\x53\x90\xe0\x84\x85\x4f\x39\x9b\x42\xcc\xde\xae\xa3\x3a\x1d\xed\xc1\x15\x63\x8a\xc4\x8d\x06\x00\x63\x7d\xba\x1f\x20"),
222 Suffix: []byte(""),
223 },
224 {
225 Hash: specs.InnerSpec.Hash,
226 Prefix: []byte("\x06\x0a\x02\x20\x9a\xf3\x7d\xd5\x95\xa0\x19\x08\x03\xb5\xe0\x5a\xae\xf4\x2a\xe3\xfa\xd4\x99\xe4\xfb\xe3\x7f\x7c\xd3\x1c\xad\xff\x22\xa9\xee\x74\x20"),
227 Suffix: []byte(""),
228 },
229 },
230 },
231 },
232 },
233
234 // rootmulti proof
235 ics23.CommitmentProof_Exist{
236 Exist: &ics23.ExistenceProof{
237 Key: []byte("\x69\x61\x76\x6c\x53\x74\x6f\x72\x65\x4b\x65\x79"),
238 Value: []byte("\x38\x22\xf3\x2f\x21\x66\x53\x63\x29\x4f\x96\xed\xda\x15\xa7\x81\x1a\x67\x6c\x2b\xa9\xdd\xcc\xec\x46\x63\x64\xf1\x00\x69\x82\x7d"),
239 Leaf: &ics23.LeafOp{
240 Hash: specs.LeafSpec.Hash,
241 PrehashKey: specs.LeafSpec.PrehashKey,
242 PrehashValue: specs.LeafSpec.PrehashValue,
243 Length: specs.LeafSpec.Length,
244 Prefix: []byte("\x00"),
245 },
246 Path: []*ics23.InnerOp{},
247 },
248 },
249 }
250
251 timeoutPacket := types.MsgTimeout{
252 Packet: types.Packet{
253 Sequence: sequence,
254 SourceClient: clientID,
255 DestinationClient: counterpartyID,
256 TimeoutTimestamp: sendPacket.TimeoutTimestamp,
257 Payloads: sendPacket.Payloads,
258 },
259 ProofUnreceived: proof,
260 ProofHeight: msgHeader.GetHeight(),
261 }
262
263 res := core.Timeout(cross(cur), timeoutPacket)
264
265 println("\ntimeout res:", res)
266 println("\nsigner voucher balance after Timeout:", transfer.VoucherBalanceOf(voucherDenom, signer))
267}
268
269// Output:
270// Payload proto: CgZ1YXRvbmUSAzEwMBoKYXRvbmUxdXNlciIoZzFnanM4bmZkcmQ1NXozeHU5Z2pjYXRuajI5dmt3dXl4NGZmcXhkOQ==
271// signer voucher balance before SendPacket: 100
272//
273// signer voucher balance after SendPacket: 0
274//
275// timeout res: (2 gno.land/p/aib/ibc/types.ResponseResultType)
276//
277// signer voucher balance after Timeout: 100
278
279// Events:
280// [
281// {
282// "type": "create_client",
283// "attrs": [
284// {
285// "key": "client_id",
286// "value": "07-tendermint-1"
287// },
288// {
289// "key": "client_type",
290// "value": "07-tendermint"
291// },
292// {
293// "key": "consensus_heights",
294// "value": "1/2"
295// }
296// ],
297// "pkg_path": "gno.land/r/aib/ibc/core"
298// },
299// {
300// "type": "recv_packet",
301// "attrs": [
302// {
303// "key": "packet_source_client",
304// "value": "07-tendermint-42"
305// },
306// {
307// "key": "packet_dest_client",
308// "value": "07-tendermint-1"
309// },
310// {
311// "key": "packet_sequence",
312// "value": "1"
313// },
314// {
315// "key": "packet_timeout_timestamp",
316// "value": "1234571490"
317// },
318// {
319// "key": "encoded_packet_hex",
320// "value": "0801121030372d74656e6465726d696e742d34321a0f30372d74656e6465726d696e742d3120e2a1d8cc042a7a0a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a430a067561746f6e6512033130301a0a61746f6e65317573657222286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439"
321// }
322// ],
323// "pkg_path": "gno.land/r/aib/ibc/core"
324// },
325// {
326// "type": "denomination",
327// "attrs": [
328// {
329// "key": "denom_hash",
330// "value": "F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F"
331// },
332// {
333// "key": "denom",
334// "value": "{\"base\":\"uatone\",\"path\":\"transfer/07-tendermint-1/uatone\",\"denom\":\"ibc/F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F\"}"
335// }
336// ],
337// "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
338// },
339// {
340// "type": "register",
341// "attrs": [
342// {
343// "key": "token_path",
344// "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2"
345// },
346// {
347// "key": "pkgpath",
348// "value": "gno.land/r/aib/ibc/apps/transfer"
349// },
350// {
351// "key": "slug",
352// "value": "F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F"
353// },
354// {
355// "key": "symbol",
356// "value": "F9A67CB19B2"
357// }
358// ],
359// "pkg_path": "gno.land/r/demo/defi/grc20reg"
360// },
361// {
362// "type": "Transfer",
363// "attrs": [
364// {
365// "key": "token",
366// "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2.0000001"
367// },
368// {
369// "key": "from",
370// "value": ""
371// },
372// {
373// "key": "to",
374// "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
375// },
376// {
377// "key": "value",
378// "value": "100"
379// }
380// ],
381// "pkg_path": "gno.land/p/demo/tokens/grc20"
382// },
383// {
384// "type": "fungible_token_packet",
385// "attrs": [
386// {
387// "key": "sender",
388// "value": "atone1user"
389// },
390// {
391// "key": "receiver",
392// "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
393// },
394// {
395// "key": "denom",
396// "value": "transfer/07-tendermint-1/uatone"
397// },
398// {
399// "key": "amount",
400// "value": "100"
401// },
402// {
403// "key": "memo",
404// "value": ""
405// },
406// {
407// "key": "success",
408// "value": "true"
409// }
410// ],
411// "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
412// },
413// {
414// "type": "write_acknowledgement",
415// "attrs": [
416// {
417// "key": "packet_source_client",
418// "value": "07-tendermint-42"
419// },
420// {
421// "key": "packet_dest_client",
422// "value": "07-tendermint-1"
423// },
424// {
425// "key": "packet_sequence",
426// "value": "1"
427// },
428// {
429// "key": "packet_timeout_timestamp",
430// "value": "1234571490"
431// },
432// {
433// "key": "encoded_packet_hex",
434// "value": "0801121030372d74656e6465726d696e742d34321a0f30372d74656e6465726d696e742d3120e2a1d8cc042a7a0a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a430a067561746f6e6512033130301a0a61746f6e65317573657222286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439"
435// },
436// {
437// "key": "encoded_acknowledgement_hex",
438// "value": "0a117b22726573756c74223a2241513d3d227d"
439// }
440// ],
441// "pkg_path": "gno.land/r/aib/ibc/core"
442// },
443// {
444// "type": "send_packet",
445// "attrs": [
446// {
447// "key": "packet_source_client",
448// "value": "07-tendermint-1"
449// },
450// {
451// "key": "packet_dest_client",
452// "value": "07-tendermint-42"
453// },
454// {
455// "key": "packet_sequence",
456// "value": "1"
457// },
458// {
459// "key": "packet_timeout_timestamp",
460// "value": "1234568490"
461// },
462// {
463// "key": "encoded_packet_hex",
464// "value": "0801120f30372d74656e6465726d696e742d311a1030372d74656e6465726d696e742d343220aa8ad8cc042a93010a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a5c0a1f7472616e736665722f30372d74656e6465726d696e742d312f7561746f6e6512033130301a286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439220a61746f6e653175736572"
465// }
466// ],
467// "pkg_path": "gno.land/r/aib/ibc/core"
468// },
469// {
470// "type": "Transfer",
471// "attrs": [
472// {
473// "key": "token",
474// "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2.0000001"
475// },
476// {
477// "key": "from",
478// "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
479// },
480// {
481// "key": "to",
482// "value": ""
483// },
484// {
485// "key": "value",
486// "value": "100"
487// }
488// ],
489// "pkg_path": "gno.land/p/demo/tokens/grc20"
490// },
491// {
492// "type": "ibc_transfer",
493// "attrs": [
494// {
495// "key": "sender",
496// "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
497// },
498// {
499// "key": "receiver",
500// "value": "atone1user"
501// },
502// {
503// "key": "denom",
504// "value": "transfer/07-tendermint-1/uatone"
505// },
506// {
507// "key": "amount",
508// "value": "100"
509// },
510// {
511// "key": "memo",
512// "value": ""
513// }
514// ],
515// "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
516// },
517// {
518// "type": "update_client",
519// "attrs": [
520// {
521// "key": "client_id",
522// "value": "07-tendermint-1"
523// },
524// {
525// "key": "client_type",
526// "value": "07-tendermint"
527// },
528// {
529// "key": "consensus_heights",
530// "value": "1/12"
531// }
532// ],
533// "pkg_path": "gno.land/r/aib/ibc/core"
534// },
535// {
536// "type": "timeout_packet",
537// "attrs": [
538// {
539// "key": "packet_source_client",
540// "value": "07-tendermint-1"
541// },
542// {
543// "key": "packet_dest_client",
544// "value": "07-tendermint-42"
545// },
546// {
547// "key": "packet_sequence",
548// "value": "1"
549// },
550// {
551// "key": "packet_timeout_timestamp",
552// "value": "1234568490"
553// },
554// {
555// "key": "encoded_packet_hex",
556// "value": "0801120f30372d74656e6465726d696e742d311a1030372d74656e6465726d696e742d343220aa8ad8cc042a93010a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a5c0a1f7472616e736665722f30372d74656e6465726d696e742d312f7561746f6e6512033130301a286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439220a61746f6e653175736572"
557// }
558// ],
559// "pkg_path": "gno.land/r/aib/ibc/core"
560// },
561// {
562// "type": "Transfer",
563// "attrs": [
564// {
565// "key": "token",
566// "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2.0000001"
567// },
568// {
569// "key": "from",
570// "value": ""
571// },
572// {
573// "key": "to",
574// "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
575// },
576// {
577// "key": "value",
578// "value": "100"
579// }
580// ],
581// "pkg_path": "gno.land/p/demo/tokens/grc20"
582// },
583// {
584// "type": "timeout",
585// "attrs": [
586// {
587// "key": "receiver",
588// "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
589// },
590// {
591// "key": "denom",
592// "value": "transfer/07-tendermint-1/uatone"
593// },
594// {
595// "key": "amount",
596// "value": "100"
597// },
598// {
599// "key": "memo",
600// "value": ""
601// }
602// ],
603// "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
604// }
605// ]