2020-01-22 09:41:48 +01:00
|
|
|
import {
|
|
|
|
Address,
|
|
|
|
ChainId,
|
|
|
|
Identity,
|
|
|
|
Nonce,
|
|
|
|
PostableBytes,
|
|
|
|
SignedTransaction,
|
|
|
|
SigningJob,
|
|
|
|
TransactionId,
|
|
|
|
TxCodec,
|
2020-01-22 09:54:23 +01:00
|
|
|
UnsignedTransaction
|
2020-01-22 09:41:48 +01:00
|
|
|
} from "@iov/bcp";
|
|
|
|
export declare class CosmosCodec implements TxCodec {
|
|
|
|
bytesToSign(unsigned: UnsignedTransaction, nonce: Nonce): SigningJob;
|
|
|
|
bytesToPost(signed: SignedTransaction): PostableBytes;
|
|
|
|
identifier(signed: SignedTransaction): TransactionId;
|
2020-01-22 09:54:23 +01:00
|
|
|
parseBytes(
|
|
|
|
bytes: PostableBytes,
|
|
|
|
chainId: ChainId,
|
|
|
|
nonce?: Nonce
|
|
|
|
): SignedTransaction;
|
2020-01-22 09:41:48 +01:00
|
|
|
identityToAddress(identity: Identity): Address;
|
|
|
|
isValidAddress(address: string): boolean;
|
|
|
|
}
|
|
|
|
export declare const cosmosCodec: CosmosCodec;
|