UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

135 lines (134 loc) 5.79 kB
import { Any, AnyAmino } from "../../../google/protobuf/any"; import { BaseAccount, BaseAccountAmino } from "./auth"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial } from "../../../helpers"; /** * QueryLegacyAccount defines a query that can be implemented by an x/account * to return an auth understandable representation of an account. * This query is only used for accounts retro-compatibility at gRPC * level, the state machine must not make any assumptions around this. * @name QueryLegacyAccount * @package cosmos.auth.v1beta1 * @see proto type: cosmos.auth.v1beta1.QueryLegacyAccount */ export interface QueryLegacyAccount { } export interface QueryLegacyAccountProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryLegacyAccount"; value: Uint8Array; } /** * QueryLegacyAccount defines a query that can be implemented by an x/account * to return an auth understandable representation of an account. * This query is only used for accounts retro-compatibility at gRPC * level, the state machine must not make any assumptions around this. * @name QueryLegacyAccountAmino * @package cosmos.auth.v1beta1 * @see proto type: cosmos.auth.v1beta1.QueryLegacyAccount */ export interface QueryLegacyAccountAmino { } export interface QueryLegacyAccountAminoMsg { type: "cosmos-sdk/QueryLegacyAccount"; value: QueryLegacyAccountAmino; } /** * QueryLegacyAccountResponse defines the response type of the * `QueryLegacyAccount` query. * @name QueryLegacyAccountResponse * @package cosmos.auth.v1beta1 * @see proto type: cosmos.auth.v1beta1.QueryLegacyAccountResponse */ export interface QueryLegacyAccountResponse { /** * account represents the google.Protobuf.Any wrapped account * the type wrapped by the any does not need to comply with the * sdk.AccountI interface. */ account?: Any; /** * base represents the account as a BaseAccount, this can return * nil if the account cannot be represented as a BaseAccount. * This is used in the gRPC QueryAccountInfo method. */ base?: BaseAccount; } export interface QueryLegacyAccountResponseProtoMsg { typeUrl: "/cosmos.auth.v1beta1.QueryLegacyAccountResponse"; value: Uint8Array; } /** * QueryLegacyAccountResponse defines the response type of the * `QueryLegacyAccount` query. * @name QueryLegacyAccountResponseAmino * @package cosmos.auth.v1beta1 * @see proto type: cosmos.auth.v1beta1.QueryLegacyAccountResponse */ export interface QueryLegacyAccountResponseAmino { /** * account represents the google.Protobuf.Any wrapped account * the type wrapped by the any does not need to comply with the * sdk.AccountI interface. */ account?: AnyAmino; /** * base represents the account as a BaseAccount, this can return * nil if the account cannot be represented as a BaseAccount. * This is used in the gRPC QueryAccountInfo method. */ base?: BaseAccountAmino; } export interface QueryLegacyAccountResponseAminoMsg { type: "cosmos-sdk/QueryLegacyAccountResponse"; value: QueryLegacyAccountResponseAmino; } /** * QueryLegacyAccount defines a query that can be implemented by an x/account * to return an auth understandable representation of an account. * This query is only used for accounts retro-compatibility at gRPC * level, the state machine must not make any assumptions around this. * @name QueryLegacyAccount * @package cosmos.auth.v1beta1 * @see proto type: cosmos.auth.v1beta1.QueryLegacyAccount */ export declare const QueryLegacyAccount: { typeUrl: string; aminoType: string; is(o: any): o is QueryLegacyAccount; isAmino(o: any): o is QueryLegacyAccountAmino; encode(_: QueryLegacyAccount, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryLegacyAccount; fromPartial(_: DeepPartial<QueryLegacyAccount>): QueryLegacyAccount; fromAmino(_: QueryLegacyAccountAmino): QueryLegacyAccount; toAmino(_: QueryLegacyAccount): QueryLegacyAccountAmino; fromAminoMsg(object: QueryLegacyAccountAminoMsg): QueryLegacyAccount; toAminoMsg(message: QueryLegacyAccount): QueryLegacyAccountAminoMsg; fromProtoMsg(message: QueryLegacyAccountProtoMsg): QueryLegacyAccount; toProto(message: QueryLegacyAccount): Uint8Array; toProtoMsg(message: QueryLegacyAccount): QueryLegacyAccountProtoMsg; registerTypeUrl(): void; }; /** * QueryLegacyAccountResponse defines the response type of the * `QueryLegacyAccount` query. * @name QueryLegacyAccountResponse * @package cosmos.auth.v1beta1 * @see proto type: cosmos.auth.v1beta1.QueryLegacyAccountResponse */ export declare const QueryLegacyAccountResponse: { typeUrl: string; aminoType: string; is(o: any): o is QueryLegacyAccountResponse; isAmino(o: any): o is QueryLegacyAccountResponseAmino; encode(message: QueryLegacyAccountResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryLegacyAccountResponse; fromPartial(object: DeepPartial<QueryLegacyAccountResponse>): QueryLegacyAccountResponse; fromAmino(object: QueryLegacyAccountResponseAmino): QueryLegacyAccountResponse; toAmino(message: QueryLegacyAccountResponse): QueryLegacyAccountResponseAmino; fromAminoMsg(object: QueryLegacyAccountResponseAminoMsg): QueryLegacyAccountResponse; toAminoMsg(message: QueryLegacyAccountResponse): QueryLegacyAccountResponseAminoMsg; fromProtoMsg(message: QueryLegacyAccountResponseProtoMsg): QueryLegacyAccountResponse; toProto(message: QueryLegacyAccountResponse): Uint8Array; toProtoMsg(message: QueryLegacyAccountResponse): QueryLegacyAccountResponseProtoMsg; registerTypeUrl(): void; };