import { Coin } from '../../../cosmos/base/v1beta1/coin'; import { PageRequest, PageResponse } from '../../../cosmos/base/query/v1beta1/pagination'; import { Params } from '../../../cosmos/bank/v1beta1/bank'; import { Reader, Writer } from 'protobufjs/minimal'; /** * QueryBalanceRequest is the request type for the Query/Balance RPC method. */ export interface QueryBalanceRequest { /** * address is the address to query balances for. */ address: string; /** * denom is the coin denom to query balances for. */ denom: string; } /** * QueryBalanceResponse is the response type for the Query/Balance RPC method. */ export interface QueryBalanceResponse { /** * balance is the balance of the coin. */ balance?: Coin; } /** * QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */ export interface QueryAllBalancesRequest { /** * address is the address to query balances for. */ address: string; /** * pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC * method. */ export interface QueryAllBalancesResponse { /** * balances is the balances of all the coins. */ balances: Coin[]; /** * pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC * method. */ export interface QueryTotalSupplyRequest { } /** * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC * method */ export interface QueryTotalSupplyResponse { /** * supply is the supply of the coins */ supply: Coin[]; } /** * QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */ export interface QuerySupplyOfRequest { /** * denom is the coin denom to query balances for. */ denom: string; } /** * QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ export interface QuerySupplyOfResponse { /** * amount is the supply of the coin. */ amount?: Coin; } /** * QueryParamsRequest defines the request type for querying x/bank parameters. */ export interface QueryParamsRequest { } /** * QueryParamsResponse defines the response type for querying x/bank parameters. */ export interface QueryParamsResponse { params?: Params; } /** * Query defines the gRPC querier service. */ export interface Query { /** * Balance queries the balance of a single coin for a single account. */ Balance(request: QueryBalanceRequest): Promise; /** * AllBalances queries the balance of all coins for a single account. */ AllBalances(request: QueryAllBalancesRequest): Promise; /** * TotalSupply queries the total supply of all coins. */ TotalSupply(request: QueryTotalSupplyRequest): Promise; /** * SupplyOf queries the supply of a single coin. */ SupplyOf(request: QuerySupplyOfRequest): Promise; /** * Params queries the parameters of x/bank module. */ Params(request: QueryParamsRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Balance(request: QueryBalanceRequest): Promise; AllBalances(request: QueryAllBalancesRequest): Promise; TotalSupply(request: QueryTotalSupplyRequest): Promise; SupplyOf(request: QuerySupplyOfRequest): Promise; Params(request: QueryParamsRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } export declare const protobufPackage = "cosmos.bank.v1beta1"; export declare const QueryBalanceRequest: { encode(message: QueryBalanceRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; fromPartial(object: DeepPartial): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): unknown; }; export declare const QueryBalanceResponse: { encode(message: QueryBalanceResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; fromPartial(object: DeepPartial): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): unknown; }; export declare const QueryAllBalancesRequest: { encode(message: QueryAllBalancesRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryAllBalancesRequest; fromJSON(object: any): QueryAllBalancesRequest; fromPartial(object: DeepPartial): QueryAllBalancesRequest; toJSON(message: QueryAllBalancesRequest): unknown; }; export declare const QueryAllBalancesResponse: { encode(message: QueryAllBalancesResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryAllBalancesResponse; fromJSON(object: any): QueryAllBalancesResponse; fromPartial(object: DeepPartial): QueryAllBalancesResponse; toJSON(message: QueryAllBalancesResponse): unknown; }; export declare const QueryTotalSupplyRequest: { encode(_: QueryTotalSupplyRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryTotalSupplyRequest; fromJSON(_: any): QueryTotalSupplyRequest; fromPartial(_: DeepPartial): QueryTotalSupplyRequest; toJSON(_: QueryTotalSupplyRequest): unknown; }; export declare const QueryTotalSupplyResponse: { encode(message: QueryTotalSupplyResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryTotalSupplyResponse; fromJSON(object: any): QueryTotalSupplyResponse; fromPartial(object: DeepPartial): QueryTotalSupplyResponse; toJSON(message: QueryTotalSupplyResponse): unknown; }; export declare const QuerySupplyOfRequest: { encode(message: QuerySupplyOfRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QuerySupplyOfRequest; fromJSON(object: any): QuerySupplyOfRequest; fromPartial(object: DeepPartial): QuerySupplyOfRequest; toJSON(message: QuerySupplyOfRequest): unknown; }; export declare const QuerySupplyOfResponse: { encode(message: QuerySupplyOfResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QuerySupplyOfResponse; fromJSON(object: any): QuerySupplyOfResponse; fromPartial(object: DeepPartial): QuerySupplyOfResponse; toJSON(message: QuerySupplyOfResponse): unknown; }; export declare const QueryParamsRequest: { encode(_: QueryParamsRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; fromPartial(_: DeepPartial): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; }; export declare const QueryParamsResponse: { encode(message: QueryParamsResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; fromPartial(object: DeepPartial): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};