UNPKG

@leapwallet/buffer-boba

Version:

Buffer Boba is a library for decoding protocol buffers in the cosmos ecosystem.

106 lines (105 loc) 4.15 kB
import { BinaryReader, BinaryWriter } from '../../../../../binary'; /** * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers * signed and with which modes. */ export interface MultiSignature { signatures: Uint8Array[]; } export interface MultiSignatureProtoMsg { typeUrl: '/cosmos.crypto.multisig.v1beta1.MultiSignature'; value: Uint8Array; } /** * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers * signed and with which modes. */ export interface MultiSignatureAmino { signatures?: string[]; } export interface MultiSignatureAminoMsg { type: 'cosmos-sdk/MultiSignature'; value: MultiSignatureAmino; } /** * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers * signed and with which modes. */ export interface MultiSignatureSDKType { signatures: Uint8Array[]; } /** * CompactBitArray is an implementation of a space efficient bit array. * This is used to ensure that the encoded data takes up a minimal amount of * space after proto encoding. * This is not thread safe, and is not intended for concurrent usage. */ export interface CompactBitArray { extraBitsStored: number; elems: Uint8Array; } export interface CompactBitArrayProtoMsg { typeUrl: '/cosmos.crypto.multisig.v1beta1.CompactBitArray'; value: Uint8Array; } /** * CompactBitArray is an implementation of a space efficient bit array. * This is used to ensure that the encoded data takes up a minimal amount of * space after proto encoding. * This is not thread safe, and is not intended for concurrent usage. */ export interface CompactBitArrayAmino { extra_bits_stored?: number; elems?: string; } export interface CompactBitArrayAminoMsg { type: 'cosmos-sdk/CompactBitArray'; value: CompactBitArrayAmino; } /** * CompactBitArray is an implementation of a space efficient bit array. * This is used to ensure that the encoded data takes up a minimal amount of * space after proto encoding. * This is not thread safe, and is not intended for concurrent usage. */ export interface CompactBitArraySDKType { extra_bits_stored: number; elems: Uint8Array; } export declare const MultiSignature: { typeUrl: string; aminoType: string; is(o: any): o is MultiSignature; isSDK(o: any): o is MultiSignatureSDKType; isAmino(o: any): o is MultiSignatureAmino; encode(message: MultiSignature, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MultiSignature; fromPartial(object: Partial<MultiSignature>): MultiSignature; fromAmino(object: MultiSignatureAmino): MultiSignature; toAmino(message: MultiSignature): MultiSignatureAmino; fromAminoMsg(object: MultiSignatureAminoMsg): MultiSignature; toAminoMsg(message: MultiSignature): MultiSignatureAminoMsg; fromProtoMsg(message: MultiSignatureProtoMsg): MultiSignature; toProto(message: MultiSignature): Uint8Array; toProtoMsg(message: MultiSignature): MultiSignatureProtoMsg; }; export declare const CompactBitArray: { typeUrl: string; aminoType: string; is(o: any): o is CompactBitArray; isSDK(o: any): o is CompactBitArraySDKType; isAmino(o: any): o is CompactBitArrayAmino; encode(message: CompactBitArray, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CompactBitArray; fromPartial(object: Partial<CompactBitArray>): CompactBitArray; fromAmino(object: CompactBitArrayAmino): CompactBitArray; toAmino(message: CompactBitArray): CompactBitArrayAmino; fromAminoMsg(object: CompactBitArrayAminoMsg): CompactBitArray; toAminoMsg(message: CompactBitArray): CompactBitArrayAminoMsg; fromProtoMsg(message: CompactBitArrayProtoMsg): CompactBitArray; toProto(message: CompactBitArray): Uint8Array; toProtoMsg(message: CompactBitArray): CompactBitArrayProtoMsg; };