mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
13 lines
561 B
TypeScript
13 lines
561 B
TypeScript
import { Amount, Token } from "@iov/bcp";
|
|
import amino from "@tendermint/amino-js";
|
|
export declare type AminoTx = amino.Tx & {
|
|
readonly value: amino.StdTx;
|
|
};
|
|
export declare function isAminoStdTx(txValue: amino.TxValue): txValue is amino.StdTx;
|
|
export interface TokenInfo extends Token {
|
|
readonly denom: string;
|
|
}
|
|
export declare type TokenInfos = ReadonlyArray<TokenInfo>;
|
|
export declare function amountToCoin(lookup: ReadonlyArray<TokenInfo>, amount: Amount): amino.Coin;
|
|
export declare function coinToAmount(tokens: TokenInfos, coin: amino.Coin): Amount;
|