2020-01-22 23:33:17 +01:00
|
|
|
import { Amount, Fee, FullSignature, PubkeyBundle, SignedTransaction, UnsignedTransaction } from "@iov/bcp";
|
2020-01-22 09:41:48 +01:00
|
|
|
import amino from "@tendermint/amino-js";
|
2020-01-22 23:33:17 +01:00
|
|
|
import { AminoTx, TokenInfos } from "./types";
|
2020-01-22 09:41:48 +01:00
|
|
|
export declare function encodePubkey(pubkey: PubkeyBundle): amino.PubKey;
|
2020-01-22 23:33:17 +01:00
|
|
|
export declare function encodeAmount(amount: Amount, tokens: TokenInfos): amino.Coin;
|
|
|
|
export declare function encodeFee(fee: Fee, tokens: TokenInfos): amino.StdFee;
|
|
|
|
export declare function encodeFullSignature(fullSignature: FullSignature): amino.StdSignature;
|
|
|
|
export declare function buildUnsignedTx(tx: UnsignedTransaction, tokens: TokenInfos): AminoTx;
|
|
|
|
export declare function buildSignedTx(tx: SignedTransaction, tokens: TokenInfos): AminoTx;
|