From b555eee3c7a8bef0e804b161c1361863cff04cad Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Wed, 31 May 2023 12:13:45 +0200 Subject: [PATCH] Use Coin from amino --- types/txMsg.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/types/txMsg.ts b/types/txMsg.ts index 0d25630..e1c8dba 100644 --- a/types/txMsg.ts +++ b/types/txMsg.ts @@ -1,3 +1,5 @@ +import { Coin } from "@cosmjs/amino"; + export type MsgType = | "send" | "delegate" @@ -19,7 +21,7 @@ export interface TxMsgSend { readonly value: { readonly fromAddress: string; readonly toAddress: string; - readonly amount: [{ readonly amount: string; readonly denom: string }]; + readonly amount: readonly Readonly[]; }; } @@ -28,7 +30,7 @@ export interface TxMsgDelegate { readonly value: { readonly delegatorAddress: string; readonly validatorAddress: string; - readonly amount: { readonly amount: string; readonly denom: string }; + readonly amount: Readonly; }; } @@ -37,7 +39,7 @@ export interface TxMsgUndelegate { readonly value: { readonly delegatorAddress: string; readonly validatorAddress: string; - readonly amount: { readonly amount: string; readonly denom: string }; + readonly amount: Readonly; }; } @@ -47,7 +49,7 @@ export interface TxMsgRedelegate { readonly delegatorAddress: string; readonly validatorSrcAddress: string; readonly validatorDstAddress: string; - readonly amount: { readonly amount: string; readonly denom: string }; + readonly amount: Readonly; }; }