Improve StdTx docs

This commit is contained in:
Simon Warta 2020-06-20 14:39:26 +02:00
parent 3e7ab8ac52
commit d5f874e608
2 changed files with 14 additions and 6 deletions

View File

@ -1,11 +1,15 @@
import { Coin } from "./coins";
import { Msg } from "./msgs";
/** An Amino/Cosmos SDK StdTx */
/**
* A Cosmos SDK StdTx
*
* @see https://docs.cosmos.network/master/modules/auth/03_types.html#stdtx
*/
export interface StdTx {
readonly msg: ReadonlyArray<Msg>;
readonly msg: readonly Msg[];
readonly fee: StdFee;
readonly signatures: ReadonlyArray<StdSignature>;
readonly signatures: readonly StdSignature[];
readonly memo: string | undefined;
}

View File

@ -1,10 +1,14 @@
import { Coin } from "./coins";
import { Msg } from "./msgs";
/** An Amino/Cosmos SDK StdTx */
/**
* A Cosmos SDK StdTx
*
* @see https://docs.cosmos.network/master/modules/auth/03_types.html#stdtx
*/
export interface StdTx {
readonly msg: ReadonlyArray<Msg>;
readonly msg: readonly Msg[];
readonly fee: StdFee;
readonly signatures: ReadonlyArray<StdSignature>;
readonly signatures: readonly StdSignature[];
readonly memo: string | undefined;
}
export declare function isStdTx(txValue: unknown): txValue is StdTx;