Search Apps Documentation Source Content File Folder Download Copy Actions Download

z3aa_on_timeout_filetest.gno

20.80 Kb · 619 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	payload := transfer.NewFungibleTokenPacketData(
125		"transfer/"+clientID+"/uatone", // expect transfer/07-tendermint-1/uatone
126		"100",
127		signer.String(),
128		"atone1user",
129		"",
130	)
131	payloadBz := payload.ProtoMarshal()
132	sendPacket := types.MsgSendPacket{
133		SourceClient:     clientID,
134		TimeoutTimestamp: uint64(time.Now().Add(10 * time.Minute).Unix()),
135		Payloads: []types.Payload{
136			{
137				SourcePort:      transfer.PortID,
138				DestinationPort: transfer.PortID,
139				Encoding:        transfer.EncodingProtobuf,
140				Value:           payloadBz,
141				Version:         transfer.V1,
142			},
143		},
144	}
145	testing.SetOriginCaller(signer)
146	println("signer voucher balance before SendPacket:", transfer.VoucherBalanceOf(voucherDenom, signer))
147	// Send the packet
148	sequence := core.SendPacket(cross(cur), sendPacket)
149	println("\nsigner voucher balance after SendPacket:", transfer.VoucherBalanceOf(voucherDenom, signer))
150
151	// Change block time to after the timeout
152	ctx := testing.GetContext()
153	ctx.Time = time.Now().Add(12 * time.Minute)
154	testing.SetContext(ctx)
155	// Update client with a block created after the timeout
156	testing.SetOriginCaller(relayer)
157	// NOTE code generated by:
158	// 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==
159	// NOTE apphash generated by the gen-proof command below
160	apphash, _ = hex.DecodeString("82ea91f259352674360c621c4b0a1975cc076e3792b6d22a8bfbe8e7f7d0d2d7")
161	trustedHeight = clientState.LatestHeight
162	var (
163		commitTimestamp = tmtesting.ToTime("2025-09-25T07:55:57.306746166Z")
164		newHeight       = uint64(12)
165		newTimestamp    = consensusState.Timestamp.Add(time.Minute * time.Duration(12))
166		valset          = tendermint.NewValset(val1, val2)
167		nextValset      = tendermint.NewValset(val1, val2)
168
169		signatures = []tendermint.CommitSig{
170			{
171				BlockIDFlag:      tendermint.BlockIDFlagCommit,
172				ValidatorAddress: valset.Validators[0].Address,
173				Timestamp:        commitTimestamp,
174				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"),
175			},
176			{
177				BlockIDFlag:      tendermint.BlockIDFlagCommit,
178				ValidatorAddress: valset.Validators[1].Address,
179				Timestamp:        commitTimestamp,
180				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"),
181			},
182		}
183
184		msgHeader = tmtesting.NewMsgHeader(
185			chainID, newTimestamp, apphash, newHeight, trustedHeight, valset,
186			nextValset, trustedValset, signatures,
187		)
188	)
189	core.UpdateClient(cross(cur), clientID, msgHeader)
190
191	// Timeout the packet
192	// Generate the proof that no RecvPacket have been received by the
193	// counterparty chain.
194	// NOTE code generated by:
195	// go run -C ./cmd/gen-proof . 'prefix2' '07-tendermint-42' 'receipt'
196	proof := []ics23.CommitmentProof{
197
198		// iavl proof
199		ics23.CommitmentProof_Nonexist{
200			Nonexist: &ics23.NonExistenceProof{
201				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"),
202				Left: &ics23.ExistenceProof{
203					Key:   []byte("\x50"),
204					Value: []byte("\x50"),
205					Leaf: &ics23.LeafOp{
206						Hash:         specs.LeafSpec.Hash,
207						PrehashKey:   specs.LeafSpec.PrehashKey,
208						PrehashValue: specs.LeafSpec.PrehashValue,
209						Length:       specs.LeafSpec.Length,
210						Prefix:       []byte("\x00\x02\x02"),
211					},
212					Path: []*ics23.InnerOp{
213						{
214							Hash:   specs.InnerSpec.Hash,
215							Prefix: []byte("\x04\x06\x02\x20"),
216							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"),
217						},
218						{
219							Hash:   specs.InnerSpec.Hash,
220							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"),
221							Suffix: []byte(""),
222						},
223					},
224				},
225				Right: &ics23.ExistenceProof{
226					Key:   []byte("\x72"),
227					Value: []byte("\x72"),
228					Leaf: &ics23.LeafOp{
229						Hash:         specs.LeafSpec.Hash,
230						PrehashKey:   specs.LeafSpec.PrehashKey,
231						PrehashValue: specs.LeafSpec.PrehashValue,
232						Length:       specs.LeafSpec.Length,
233						Prefix:       []byte("\x00\x02\x02"),
234					},
235					Path: []*ics23.InnerOp{
236						{
237							Hash:   specs.InnerSpec.Hash,
238							Prefix: []byte("\x02\x04\x02\x20"),
239							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"),
240						},
241						{
242							Hash:   specs.InnerSpec.Hash,
243							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"),
244							Suffix: []byte(""),
245						},
246						{
247							Hash:   specs.InnerSpec.Hash,
248							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"),
249							Suffix: []byte(""),
250						},
251					},
252				},
253			},
254		},
255
256		// rootmulti proof
257		ics23.CommitmentProof_Exist{
258			Exist: &ics23.ExistenceProof{
259				Key:   []byte("\x69\x61\x76\x6c\x53\x74\x6f\x72\x65\x4b\x65\x79"),
260				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"),
261				Leaf: &ics23.LeafOp{
262					Hash:         specs.LeafSpec.Hash,
263					PrehashKey:   specs.LeafSpec.PrehashKey,
264					PrehashValue: specs.LeafSpec.PrehashValue,
265					Length:       specs.LeafSpec.Length,
266					Prefix:       []byte("\x00"),
267				},
268				Path: []*ics23.InnerOp{},
269			},
270		},
271	}
272
273	timeoutPacket := types.MsgTimeout{
274		Packet: types.Packet{
275			Sequence:          sequence,
276			SourceClient:      clientID,
277			DestinationClient: counterpartyID,
278			TimeoutTimestamp:  sendPacket.TimeoutTimestamp,
279			Payloads:          sendPacket.Payloads,
280		},
281		ProofUnreceived: proof,
282		ProofHeight:     msgHeader.GetHeight(),
283	}
284
285	res := core.Timeout(cross(cur), timeoutPacket)
286
287	println("\ntimeout res:", res)
288	println("\nsigner voucher balance after Timeout:", transfer.VoucherBalanceOf(voucherDenom, signer))
289}
290
291// Output:
292// Payload proto: CgZ1YXRvbmUSAzEwMBoKYXRvbmUxdXNlciIoZzFnanM4bmZkcmQ1NXozeHU5Z2pjYXRuajI5dmt3dXl4NGZmcXhkOQ==
293// signer voucher balance before SendPacket: 100
294//
295// signer voucher balance after SendPacket: 0
296//
297// timeout res: (2 gno.land/p/aib/ibc/types.ResponseResultType)
298//
299// signer voucher balance after Timeout: 100
300
301// Events:
302// [
303//   {
304//     "type": "create_client",
305//     "attrs": [
306//       {
307//         "key": "client_id",
308//         "value": "07-tendermint-1"
309//       },
310//       {
311//         "key": "client_type",
312//         "value": "07-tendermint"
313//       },
314//       {
315//         "key": "consensus_heights",
316//         "value": "1/2"
317//       }
318//     ],
319//     "pkg_path": "gno.land/r/aib/ibc/core"
320//   },
321//   {
322//     "type": "recv_packet",
323//     "attrs": [
324//       {
325//         "key": "packet_source_client",
326//         "value": "07-tendermint-42"
327//       },
328//       {
329//         "key": "packet_dest_client",
330//         "value": "07-tendermint-1"
331//       },
332//       {
333//         "key": "packet_sequence",
334//         "value": "1"
335//       },
336//       {
337//         "key": "packet_timeout_timestamp",
338//         "value": "1234571490"
339//       },
340//       {
341//         "key": "encoded_packet_hex",
342//         "value": "0801121030372d74656e6465726d696e742d34321a0f30372d74656e6465726d696e742d3120e2a1d8cc042a7a0a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a430a067561746f6e6512033130301a0a61746f6e65317573657222286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439"
343//       }
344//     ],
345//     "pkg_path": "gno.land/r/aib/ibc/core"
346//   },
347//   {
348//     "type": "denomination",
349//     "attrs": [
350//       {
351//         "key": "denom_hash",
352//         "value": "F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F"
353//       },
354//       {
355//         "key": "denom",
356//         "value": "{\"base\":\"uatone\",\"path\":\"transfer/07-tendermint-1/uatone\",\"denom\":\"ibc/F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F\"}"
357//       }
358//     ],
359//     "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
360//   },
361//   {
362//     "type": "register",
363//     "attrs": [
364//       {
365//         "key": "pkgpath",
366//         "value": "gno.land/r/aib/ibc/apps/transfer"
367//       },
368//       {
369//         "key": "slug",
370//         "value": "F9A67CB19B2CAD2ADEC20AD475BE86DF851DEC2B6F6CABC9B7B781BD9131D18F"
371//       }
372//     ],
373//     "pkg_path": "gno.land/r/demo/defi/grc20reg"
374//   },
375//   {
376//     "type": "Transfer",
377//     "attrs": [
378//       {
379//         "key": "token",
380//         "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2"
381//       },
382//       {
383//         "key": "from",
384//         "value": ""
385//       },
386//       {
387//         "key": "to",
388//         "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
389//       },
390//       {
391//         "key": "value",
392//         "value": "100"
393//       }
394//     ],
395//     "pkg_path": "gno.land/p/demo/tokens/grc20"
396//   },
397//   {
398//     "type": "fungible_token_packet",
399//     "attrs": [
400//       {
401//         "key": "sender",
402//         "value": "atone1user"
403//       },
404//       {
405//         "key": "receiver",
406//         "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
407//       },
408//       {
409//         "key": "denom",
410//         "value": "transfer/07-tendermint-1/uatone"
411//       },
412//       {
413//         "key": "amount",
414//         "value": "100"
415//       },
416//       {
417//         "key": "memo",
418//         "value": ""
419//       },
420//       {
421//         "key": "success",
422//         "value": "true"
423//       }
424//     ],
425//     "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
426//   },
427//   {
428//     "type": "write_acknowledgement",
429//     "attrs": [
430//       {
431//         "key": "packet_source_client",
432//         "value": "07-tendermint-42"
433//       },
434//       {
435//         "key": "packet_dest_client",
436//         "value": "07-tendermint-1"
437//       },
438//       {
439//         "key": "packet_sequence",
440//         "value": "1"
441//       },
442//       {
443//         "key": "packet_timeout_timestamp",
444//         "value": "1234571490"
445//       },
446//       {
447//         "key": "encoded_packet_hex",
448//         "value": "0801121030372d74656e6465726d696e742d34321a0f30372d74656e6465726d696e742d3120e2a1d8cc042a7a0a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a430a067561746f6e6512033130301a0a61746f6e65317573657222286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439"
449//       },
450//       {
451//         "key": "encoded_acknowledgement_hex",
452//         "value": "0a117b22726573756c74223a2241513d3d227d"
453//       }
454//     ],
455//     "pkg_path": "gno.land/r/aib/ibc/core"
456//   },
457//   {
458//     "type": "send_packet",
459//     "attrs": [
460//       {
461//         "key": "packet_source_client",
462//         "value": "07-tendermint-1"
463//       },
464//       {
465//         "key": "packet_dest_client",
466//         "value": "07-tendermint-42"
467//       },
468//       {
469//         "key": "packet_sequence",
470//         "value": "1"
471//       },
472//       {
473//         "key": "packet_timeout_timestamp",
474//         "value": "1234568490"
475//       },
476//       {
477//         "key": "encoded_packet_hex",
478//         "value": "0801120f30372d74656e6465726d696e742d311a1030372d74656e6465726d696e742d343220aa8ad8cc042a93010a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a5c0a1f7472616e736665722f30372d74656e6465726d696e742d312f7561746f6e6512033130301a286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439220a61746f6e653175736572"
479//       }
480//     ],
481//     "pkg_path": "gno.land/r/aib/ibc/core"
482//   },
483//   {
484//     "type": "Transfer",
485//     "attrs": [
486//       {
487//         "key": "token",
488//         "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2"
489//       },
490//       {
491//         "key": "from",
492//         "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
493//       },
494//       {
495//         "key": "to",
496//         "value": ""
497//       },
498//       {
499//         "key": "value",
500//         "value": "100"
501//       }
502//     ],
503//     "pkg_path": "gno.land/p/demo/tokens/grc20"
504//   },
505//   {
506//     "type": "ibc_transfer",
507//     "attrs": [
508//       {
509//         "key": "sender",
510//         "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
511//       },
512//       {
513//         "key": "receiver",
514//         "value": "atone1user"
515//       },
516//       {
517//         "key": "denom",
518//         "value": "transfer/07-tendermint-1/uatone"
519//       },
520//       {
521//         "key": "amount",
522//         "value": "100"
523//       },
524//       {
525//         "key": "memo",
526//         "value": ""
527//       }
528//     ],
529//     "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
530//   },
531//   {
532//     "type": "update_client",
533//     "attrs": [
534//       {
535//         "key": "client_id",
536//         "value": "07-tendermint-1"
537//       },
538//       {
539//         "key": "client_type",
540//         "value": "07-tendermint"
541//       },
542//       {
543//         "key": "consensus_heights",
544//         "value": "1/12"
545//       }
546//     ],
547//     "pkg_path": "gno.land/r/aib/ibc/core"
548//   },
549//   {
550//     "type": "timeout_packet",
551//     "attrs": [
552//       {
553//         "key": "packet_source_client",
554//         "value": "07-tendermint-1"
555//       },
556//       {
557//         "key": "packet_dest_client",
558//         "value": "07-tendermint-42"
559//       },
560//       {
561//         "key": "packet_sequence",
562//         "value": "1"
563//       },
564//       {
565//         "key": "packet_timeout_timestamp",
566//         "value": "1234568490"
567//       },
568//       {
569//         "key": "encoded_packet_hex",
570//         "value": "0801120f30372d74656e6465726d696e742d311a1030372d74656e6465726d696e742d343220aa8ad8cc042a93010a087472616e7366657212087472616e736665721a0769637332302d3122166170706c69636174696f6e2f782d70726f746f6275662a5c0a1f7472616e736665722f30372d74656e6465726d696e742d312f7561746f6e6512033130301a286731676a73386e6664726435357a33787539676a6361746e6a3239766b7775797834666671786439220a61746f6e653175736572"
571//       }
572//     ],
573//     "pkg_path": "gno.land/r/aib/ibc/core"
574//   },
575//   {
576//     "type": "Transfer",
577//     "attrs": [
578//       {
579//         "key": "token",
580//         "value": "gno.land/r/aib/ibc/apps/transfer.F9A67CB19B2"
581//       },
582//       {
583//         "key": "from",
584//         "value": ""
585//       },
586//       {
587//         "key": "to",
588//         "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
589//       },
590//       {
591//         "key": "value",
592//         "value": "100"
593//       }
594//     ],
595//     "pkg_path": "gno.land/p/demo/tokens/grc20"
596//   },
597//   {
598//     "type": "timeout",
599//     "attrs": [
600//       {
601//         "key": "receiver",
602//         "value": "g1gjs8nfdrd55z3xu9gjcatnj29vkwuyx4ffqxd9"
603//       },
604//       {
605//         "key": "denom",
606//         "value": "transfer/07-tendermint-1/uatone"
607//       },
608//       {
609//         "key": "amount",
610//         "value": "100"
611//       },
612//       {
613//         "key": "memo",
614//         "value": ""
615//       }
616//     ],
617//     "pkg_path": "gno.land/r/aib/ibc/apps/transfer"
618//   }
619// ]