cosmjs/types/encode.d.ts
2020-01-22 09:55:20 +01:00

19 lines
642 B
TypeScript

import {
Amount,
Fee,
FullSignature,
PubkeyBundle,
SignedTransaction,
UnsignedTransaction
} from "@iov/bcp";
import amino from "@tendermint/amino-js";
import { AminoTx } from "./types";
export declare function encodePubkey(pubkey: PubkeyBundle): amino.PubKey;
export declare function encodeAmount(amount: Amount): amino.Coin;
export declare function encodeFee(fee: Fee): amino.StdFee;
export declare function encodeFullSignature(
fullSignature: FullSignature
): amino.StdSignature;
export declare function buildUnsignedTx(tx: UnsignedTransaction): AminoTx;
export declare function buildSignedTx(tx: SignedTransaction): AminoTx;