Skip to content

Commit

Permalink
types: BuildVTransferEventParams accepts JsonSafe<bigint> sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Sep 24, 2024
1 parent 4e70697 commit f110c7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/orchestration/tools/ibc-mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<PacketSDKType['sequence']>;
};

/**
Expand Down

0 comments on commit f110c7e

Please sign in to comment.