From f110c7e67753682700cfb4c7c53d93b01f361947 Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Tue, 24 Sep 2024 19:46:25 -0400 Subject: [PATCH] types: BuildVTransferEventParams accepts JsonSafe sequence --- packages/orchestration/tools/ibc-mocks.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/orchestration/tools/ibc-mocks.ts b/packages/orchestration/tools/ibc-mocks.ts index 65266645e5d0..4c1ba2ea16b0 100644 --- a/packages/orchestration/tools/ibc-mocks.ts +++ b/packages/orchestration/tools/ibc-mocks.ts @@ -6,7 +6,7 @@ import { ResponseQuery, } from '@agoric/cosmic-proto/tendermint/abci/types.js'; import { encodeBase64, btoa, atob, decodeBase64 } from '@endo/base64'; -import { toRequestQueryJson } from '@agoric/cosmic-proto'; +import { type JsonSafe, toRequestQueryJson } from '@agoric/cosmic-proto'; import { IBCChannelID, IBCEvent, @@ -156,14 +156,15 @@ type BuildVTransferEventParams = { event?: VTransferIBCEvent['event']; /* defaults to cosmos1AccAddress. set to `agoric1fakeLCAAddress` to simulate an outgoing transfer event */ sender?: ChainAddress['value']; - /** defaults to agoric1fakeLCAAddress. set to a different value to simulate an outgoing transfer event */ + /* defaults to agoric1fakeLCAAddress. set to a different value to simulate an outgoing transfer event */ receiver?: ChainAddress['value']; target?: ChainAddress['value']; amount?: bigint; denom?: string; destinationChannel?: IBCChannelID; sourceChannel?: IBCChannelID; - sequence?: PacketSDKType['sequence']; + /* support bigint and string, to facilitate bootstrap testing */ + sequence?: PacketSDKType['sequence'] | JsonSafe; }; /**