import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; import { Any } from "../../../google/protobuf/any"; import { Params, BaseAccount } from "./auth"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.auth.v1beta1"; /** QueryAccountsRequest is the request type for the Query/Accounts RPC method. */ export interface QueryAccountsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryAccountsResponse is the response type for the Query/Accounts RPC method. */ export interface QueryAccountsResponse { /** accounts are the existing accounts */ accounts: Any[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryAccountRequest is the request type for the Query/Account RPC method. */ export interface QueryAccountRequest { /** address defines the address to query for. */ address: string; } /** QueryAccountResponse is the response type for the Query/Account RPC method. */ export interface QueryAccountResponse { /** account defines the account of the corresponding address. */ account?: Any; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } /** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */ export interface QueryModuleAccountsRequest { } /** QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. */ export interface QueryModuleAccountsResponse { accounts: Any[]; } /** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameRequest { name: string; } /** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameResponse { account?: Any; } /** Bech32PrefixRequest is the request type for Bech32Prefix rpc method. */ export interface Bech32PrefixRequest { } /** Bech32PrefixResponse is the response type for Bech32Prefix rpc method. */ export interface Bech32PrefixResponse { bech32Prefix: string; } /** AddressBytesToStringRequest is the request type for AddressString rpc method. */ export interface AddressBytesToStringRequest { addressBytes: Uint8Array; } /** AddressBytesToStringResponse is the response type for AddressString rpc method. */ export interface AddressBytesToStringResponse { addressString: string; } /** AddressStringToBytesRequest is the request type for AccountBytes rpc method. */ export interface AddressStringToBytesRequest { addressString: string; } /** AddressStringToBytesResponse is the response type for AddressBytes rpc method. */ export interface AddressStringToBytesResponse { addressBytes: Uint8Array; } /** QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method */ export interface QueryAccountAddressByIDRequest { /** * Deprecated, use account_id instead * * id is the account number of the address to be queried. This field * should have been an uint64 (like all account numbers), and will be * updated to uint64 in a future version of the auth query. */ /** @deprecated */ id: bigint; /** account_id is the account number of the address to be queried. */ accountId: bigint; } /** QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method */ export interface QueryAccountAddressByIDResponse { accountAddress: string; } /** QueryAccountInfoRequest is the Query/AccountInfo request type. */ export interface QueryAccountInfoRequest { /** address is the account address string. */ address: string; } /** QueryAccountInfoResponse is the Query/AccountInfo response type. */ export interface QueryAccountInfoResponse { /** info is the account info which is represented by BaseAccount. */ info?: BaseAccount; } export declare const QueryAccountsRequest: { typeUrl: string; encode(message: QueryAccountsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest; fromJSON(object: any): QueryAccountsRequest; toJSON(message: QueryAccountsRequest): JsonSafe; fromPartial, I>>(object: I): QueryAccountsRequest; }; export declare const QueryAccountsResponse: { typeUrl: string; encode(message: QueryAccountsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse; fromJSON(object: any): QueryAccountsResponse; toJSON(message: QueryAccountsResponse): JsonSafe; fromPartial, I>>(object: I): QueryAccountsResponse; }; export declare const QueryAccountRequest: { typeUrl: string; encode(message: QueryAccountRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest; fromJSON(object: any): QueryAccountRequest; toJSON(message: QueryAccountRequest): JsonSafe; fromPartial, I>>(object: I): QueryAccountRequest; }; export declare const QueryAccountResponse: { typeUrl: string; encode(message: QueryAccountResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse; fromJSON(object: any): QueryAccountResponse; toJSON(message: QueryAccountResponse): JsonSafe; fromPartial, I>>(object: I): QueryAccountResponse; }; export declare const QueryParamsRequest: { typeUrl: string; encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): JsonSafe; fromPartial, I>>(_: I): QueryParamsRequest; }; export declare const QueryParamsResponse: { typeUrl: string; encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): JsonSafe; fromPartial, I>>(object: I): QueryParamsResponse; }; export declare const QueryModuleAccountsRequest: { typeUrl: string; encode(_: QueryModuleAccountsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest; fromJSON(_: any): QueryModuleAccountsRequest; toJSON(_: QueryModuleAccountsRequest): JsonSafe; fromPartial, I>>(_: I): QueryModuleAccountsRequest; }; export declare const QueryModuleAccountsResponse: { typeUrl: string; encode(message: QueryModuleAccountsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse; fromJSON(object: any): QueryModuleAccountsResponse; toJSON(message: QueryModuleAccountsResponse): JsonSafe; fromPartial, I>>(object: I): QueryModuleAccountsResponse; }; export declare const QueryModuleAccountByNameRequest: { typeUrl: string; encode(message: QueryModuleAccountByNameRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; fromJSON(object: any): QueryModuleAccountByNameRequest; toJSON(message: QueryModuleAccountByNameRequest): JsonSafe; fromPartial, I>>(object: I): QueryModuleAccountByNameRequest; }; export declare const QueryModuleAccountByNameResponse: { typeUrl: string; encode(message: QueryModuleAccountByNameResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; fromJSON(object: any): QueryModuleAccountByNameResponse; toJSON(message: QueryModuleAccountByNameResponse): JsonSafe; fromPartial, I>>(object: I): QueryModuleAccountByNameResponse; }; export declare const Bech32PrefixRequest: { typeUrl: string; encode(_: Bech32PrefixRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest; fromJSON(_: any): Bech32PrefixRequest; toJSON(_: Bech32PrefixRequest): JsonSafe; fromPartial, I>>(_: I): Bech32PrefixRequest; }; export declare const Bech32PrefixResponse: { typeUrl: string; encode(message: Bech32PrefixResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse; fromJSON(object: any): Bech32PrefixResponse; toJSON(message: Bech32PrefixResponse): JsonSafe; fromPartial, I>>(object: I): Bech32PrefixResponse; }; export declare const AddressBytesToStringRequest: { typeUrl: string; encode(message: AddressBytesToStringRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest; fromJSON(object: any): AddressBytesToStringRequest; toJSON(message: AddressBytesToStringRequest): JsonSafe; fromPartial, I>>(object: I): AddressBytesToStringRequest; }; export declare const AddressBytesToStringResponse: { typeUrl: string; encode(message: AddressBytesToStringResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse; fromJSON(object: any): AddressBytesToStringResponse; toJSON(message: AddressBytesToStringResponse): JsonSafe; fromPartial, I>>(object: I): AddressBytesToStringResponse; }; export declare const AddressStringToBytesRequest: { typeUrl: string; encode(message: AddressStringToBytesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest; fromJSON(object: any): AddressStringToBytesRequest; toJSON(message: AddressStringToBytesRequest): JsonSafe; fromPartial, I>>(object: I): AddressStringToBytesRequest; }; export declare const AddressStringToBytesResponse: { typeUrl: string; encode(message: AddressStringToBytesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse; fromJSON(object: any): AddressStringToBytesResponse; toJSON(message: AddressStringToBytesResponse): JsonSafe; fromPartial, I>>(object: I): AddressStringToBytesResponse; }; export declare const QueryAccountAddressByIDRequest: { typeUrl: string; encode(message: QueryAccountAddressByIDRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest; fromJSON(object: any): QueryAccountAddressByIDRequest; toJSON(message: QueryAccountAddressByIDRequest): JsonSafe; fromPartial, I>>(object: I): QueryAccountAddressByIDRequest; }; export declare const QueryAccountAddressByIDResponse: { typeUrl: string; encode(message: QueryAccountAddressByIDResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse; fromJSON(object: any): QueryAccountAddressByIDResponse; toJSON(message: QueryAccountAddressByIDResponse): JsonSafe; fromPartial, I>>(object: I): QueryAccountAddressByIDResponse; }; export declare const QueryAccountInfoRequest: { typeUrl: string; encode(message: QueryAccountInfoRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountInfoRequest; fromJSON(object: any): QueryAccountInfoRequest; toJSON(message: QueryAccountInfoRequest): JsonSafe; fromPartial, I>>(object: I): QueryAccountInfoRequest; }; export declare const QueryAccountInfoResponse: { typeUrl: string; encode(message: QueryAccountInfoResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountInfoResponse; fromJSON(object: any): QueryAccountInfoResponse; toJSON(message: QueryAccountInfoResponse): JsonSafe; fromPartial, I>>(object: I): QueryAccountInfoResponse; }; /** Query defines the gRPC querier service. */ export interface Query { /** * Accounts returns all the existing accounts. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ Accounts(request?: QueryAccountsRequest): Promise; /** Account returns account details based on address. */ Account(request: QueryAccountRequest): Promise; /** AccountAddressByID returns account address based on account number. */ AccountAddressByID(request: QueryAccountAddressByIDRequest): Promise; /** Params queries all parameters. */ Params(request?: QueryParamsRequest): Promise; /** ModuleAccounts returns all the existing module accounts. */ ModuleAccounts(request?: QueryModuleAccountsRequest): Promise; /** ModuleAccountByName returns the module account info by module name */ ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise; /** Bech32Prefix queries bech32Prefix */ Bech32Prefix(request?: Bech32PrefixRequest): Promise; /** AddressBytesToString converts Account Address bytes to string */ AddressBytesToString(request: AddressBytesToStringRequest): Promise; /** AddressStringToBytes converts Address string to bytes */ AddressStringToBytes(request: AddressStringToBytesRequest): Promise; /** AccountInfo queries account info which is common to all account types. */ AccountInfo(request: QueryAccountInfoRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Accounts(request?: QueryAccountsRequest): Promise; Account(request: QueryAccountRequest): Promise; AccountAddressByID(request: QueryAccountAddressByIDRequest): Promise; Params(request?: QueryParamsRequest): Promise; ModuleAccounts(request?: QueryModuleAccountsRequest): Promise; ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise; Bech32Prefix(request?: Bech32PrefixRequest): Promise; AddressBytesToString(request: AddressBytesToStringRequest): Promise; AddressStringToBytes(request: AddressStringToBytesRequest): Promise; AccountInfo(request: QueryAccountInfoRequest): Promise; }