mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import {
|
|
Amount,
|
|
ChainId,
|
|
ConfirmedAndSignedTransaction,
|
|
Fee,
|
|
FullSignature,
|
|
Nonce,
|
|
PubkeyBundle,
|
|
SendTransaction,
|
|
SignatureBytes,
|
|
SignedTransaction,
|
|
UnsignedTransaction
|
|
} from "@iov/bcp";
|
|
import amino from "@tendermint/amino-js";
|
|
import { TxsResponse } from "./restclient";
|
|
export declare function decodePubkey(pubkey: amino.PubKey): PubkeyBundle;
|
|
export declare function decodeSignature(signature: string): SignatureBytes;
|
|
export declare function decodeFullSignature(
|
|
signature: amino.StdSignature,
|
|
nonce: number
|
|
): FullSignature;
|
|
export declare function decodeAmount(amount: amino.Coin): Amount;
|
|
export declare function parseMsg(
|
|
msg: amino.Msg,
|
|
chainId: ChainId
|
|
): SendTransaction;
|
|
export declare function parseFee(fee: amino.StdFee): Fee;
|
|
export declare function parseTx(
|
|
tx: amino.Tx,
|
|
chainId: ChainId,
|
|
nonce: Nonce
|
|
): SignedTransaction;
|
|
export declare function parseTxsResponse(
|
|
chainId: ChainId,
|
|
currentHeight: number,
|
|
nonce: Nonce,
|
|
response: TxsResponse
|
|
): ConfirmedAndSignedTransaction<UnsignedTransaction>;
|