Skip to content

Commit

Permalink
add expiration and memo fields to CosmosTx object
Browse files Browse the repository at this point in the history
  • Loading branch information
dhfang committed Aug 21, 2024
1 parent 29d7204 commit 3d2a0dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/types/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,8 @@ export function cosmosTxFromJSON(cosmosTxJSON: CosmosTxJSON): CosmosTx {
path: cosmosTxJSON.path,
msgs: cosmosTxJSON.msgs.map(cosmosMsgFromJSON),
signerAddress: cosmosTxJSON.signer_address,
memo: cosmosTxJSON.memo,
expiration: cosmosTxJSON.expiration,
};
}

Expand All @@ -1675,6 +1677,8 @@ export function cosmosTxToJSON(cosmosTx: CosmosTx): CosmosTxJSON {
path: cosmosTx.path,
msgs: cosmosTx.msgs.map(cosmosMsgToJSON),
signer_address: cosmosTx.signerAddress,
memo: cosmosTx.memo,
expiration: cosmosTx.expiration,
};
}

Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/types/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,17 @@ export type CosmosTxJSON = {
path: string[];
msgs: CosmosMsgJSON[];
signer_address: string;
memo: string;
expiration: Date;
};

export type CosmosTx = {
chainID: string;
path: string[];
msgs: CosmosMsg[];
signerAddress: string;
memo: string;
expiration: Date;
};

export type CCTPTransferJSON = {
Expand Down

0 comments on commit 3d2a0dc

Please sign in to comment.