UNPKG

@leapwallet/buffer-boba

Version:

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

55 lines (54 loc) 1.78 kB
import { BinaryReader, BinaryWriter } from '../../../../binary'; export interface Validator { name: string; address: string; weight: bigint; delegation: string; slashQueryProgressTracker: string; slashQueryCheckpoint: string; sharesToTokensRate: string; delegationChangesInProgress: bigint; slashQueryInProgress: boolean; } export interface ValidatorProtoMsg { typeUrl: '/stride.stakeibc.Validator'; value: Uint8Array; } export interface ValidatorAmino { name?: string; address?: string; weight?: string; delegation?: string; slash_query_progress_tracker?: string; slash_query_checkpoint?: string; shares_to_tokens_rate?: string; delegation_changes_in_progress?: string; slash_query_in_progress?: boolean; } export interface ValidatorAminoMsg { type: '/stride.stakeibc.Validator'; value: ValidatorAmino; } export interface ValidatorSDKType { name: string; address: string; weight: bigint; delegation: string; slash_query_progress_tracker: string; slash_query_checkpoint: string; shares_to_tokens_rate: string; delegation_changes_in_progress: bigint; slash_query_in_progress: boolean; } export declare const Validator: { typeUrl: string; encode(message: Validator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Validator; fromPartial(object: Partial<Validator>): Validator; fromAmino(object: ValidatorAmino): Validator; toAmino(message: Validator): ValidatorAmino; fromAminoMsg(object: ValidatorAminoMsg): Validator; fromProtoMsg(message: ValidatorProtoMsg): Validator; toProto(message: Validator): Uint8Array; toProtoMsg(message: Validator): ValidatorProtoMsg; };