import { AminoMsg } from "@cosmjs/amino"; import { Base58AddressAminoType, Bech32AddressAminoType, CosmosMultiSignatureAminoType, HexAddressAminoType, SingleSignatureAminoType } from "./consts"; export interface AminoAddressData extends AminoMsg { } export interface AminoBech32Address extends AminoMsg { readonly type: typeof Bech32AddressAminoType; readonly value: { readonly value: string | undefined; readonly prefix: string | undefined; }; } export interface AminoBase58Address extends AminoMsg { readonly type: typeof Base58AddressAminoType; readonly value: { readonly value: string | undefined; }; } export interface AminoHexAddress extends AminoMsg { readonly type: typeof HexAddressAminoType; readonly value: { readonly value: string | undefined; readonly prefix: string | undefined; }; } export interface AminoSignatureData extends AminoMsg { } export interface AminoSingleSignature extends AminoSignatureData { readonly type: typeof SingleSignatureAminoType; readonly value: { readonly value_type: number | undefined; readonly signature: string | undefined; }; } export interface AminoCosmosMultiSignature extends AminoSignatureData { readonly type: typeof CosmosMultiSignatureAminoType; value: { readonly bit_array: string | null; readonly signatures: AminoSignatureData[] | null; }; }