import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; import { Coin } from "../../base/v1beta1/coin"; import { Params, Metadata, SendEnabled } from "./bank"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.bank.v1beta1"; /** 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; /** resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. */ resolveDenom: boolean; } /** * 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; } /** * QuerySpendableBalancesRequest defines the gRPC request structure for querying * an account's spendable balances. */ export interface QuerySpendableBalancesRequest { /** address is the address to query spendable balances for. */ address: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QuerySpendableBalancesResponse defines the gRPC response structure for querying * an account's spendable balances. */ export interface QuerySpendableBalancesResponse { /** balances is the spendable balances of all the coins. */ balances: Coin[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QuerySpendableBalanceByDenomRequest defines the gRPC request structure for * querying an account's spendable balance for a specific denom. */ export interface QuerySpendableBalanceByDenomRequest { /** address is the address to query balances for. */ address: string; /** denom is the coin denom to query balances for. */ denom: string; } /** * QuerySpendableBalanceByDenomResponse defines the gRPC response structure for * querying an account's spendable balance for a specific denom. */ export interface QuerySpendableBalanceByDenomResponse { /** balance is the balance of the coin. */ balance?: Coin; } /** * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC * method. */ export interface QueryTotalSupplyRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC * method */ export interface QueryTotalSupplyResponse { /** supply is the supply of the coins */ supply: Coin[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** 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 provides the parameters of the bank module. */ params: Params; } /** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */ export interface QueryDenomsMetadataRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC * method. */ export interface QueryDenomsMetadataResponse { /** metadata provides the client information for all the registered tokens. */ metadatas: Metadata[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */ export interface QueryDenomMetadataRequest { /** denom is the coin denom to query the metadata for. */ denom: string; } /** * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC * method. */ export interface QueryDenomMetadataResponse { /** metadata describes and provides all the client information for the requested token. */ metadata: Metadata; } /** * QueryDenomMetadataByQueryStringRequest is the request type for the Query/DenomMetadata RPC method. * Identical with QueryDenomMetadataRequest but receives denom as query string. */ export interface QueryDenomMetadataByQueryStringRequest { /** denom is the coin denom to query the metadata for. */ denom: string; } /** * QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC * method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. */ export interface QueryDenomMetadataByQueryStringResponse { /** metadata describes and provides all the client information for the requested token. */ metadata: Metadata; } /** * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, * which queries for a paginated set of all account holders of a particular * denomination. */ export interface QueryDenomOwnersRequest { /** denom defines the coin denomination to query all account holders for. */ denom: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * DenomOwner defines structure representing an account that owns or holds a * particular denominated token. It contains the account address and account * balance of the denominated token. */ export interface DenomOwner { /** address defines the address that owns a particular denomination. */ address: string; /** balance is the balance of the denominated coin for an account. */ balance: Coin; } /** QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. */ export interface QueryDenomOwnersResponse { denomOwners: DenomOwner[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query, * which queries for a paginated set of all account holders of a particular * denomination. */ export interface QueryDenomOwnersByQueryRequest { /** denom defines the coin denomination to query all account holders for. */ denom: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. */ export interface QueryDenomOwnersByQueryResponse { denomOwners: DenomOwner[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. */ export interface QuerySendEnabledRequest { /** denoms is the specific denoms you want look up. Leave empty to get all entries. */ denoms: string[]; /** * pagination defines an optional pagination for the request. This field is * only read if the denoms field is empty. */ pagination?: PageRequest; } /** QuerySendEnabledResponse defines the RPC response of a SendEnable query. */ export interface QuerySendEnabledResponse { sendEnabled: SendEnabled[]; /** * pagination defines the pagination in the response. This field is only * populated if the denoms field in the request is empty. */ pagination?: PageResponse; } export declare const QueryBalanceRequest: { typeUrl: string; encode(message: QueryBalanceRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): JsonSafe; fromPartial, I>>(object: I): QueryBalanceRequest; }; export declare const QueryBalanceResponse: { typeUrl: string; encode(message: QueryBalanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): JsonSafe; fromPartial, I>>(object: I): QueryBalanceResponse; }; export declare const QueryAllBalancesRequest: { typeUrl: string; encode(message: QueryAllBalancesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesRequest; fromJSON(object: any): QueryAllBalancesRequest; toJSON(message: QueryAllBalancesRequest): JsonSafe; fromPartial, I>>(object: I): QueryAllBalancesRequest; }; export declare const QueryAllBalancesResponse: { typeUrl: string; encode(message: QueryAllBalancesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllBalancesResponse; fromJSON(object: any): QueryAllBalancesResponse; toJSON(message: QueryAllBalancesResponse): JsonSafe; fromPartial, I>>(object: I): QueryAllBalancesResponse; }; export declare const QuerySpendableBalancesRequest: { typeUrl: string; encode(message: QuerySpendableBalancesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesRequest; fromJSON(object: any): QuerySpendableBalancesRequest; toJSON(message: QuerySpendableBalancesRequest): JsonSafe; fromPartial, I>>(object: I): QuerySpendableBalancesRequest; }; export declare const QuerySpendableBalancesResponse: { typeUrl: string; encode(message: QuerySpendableBalancesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalancesResponse; fromJSON(object: any): QuerySpendableBalancesResponse; toJSON(message: QuerySpendableBalancesResponse): JsonSafe; fromPartial, I>>(object: I): QuerySpendableBalancesResponse; }; export declare const QuerySpendableBalanceByDenomRequest: { typeUrl: string; encode(message: QuerySpendableBalanceByDenomRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalanceByDenomRequest; fromJSON(object: any): QuerySpendableBalanceByDenomRequest; toJSON(message: QuerySpendableBalanceByDenomRequest): JsonSafe; fromPartial, I>>(object: I): QuerySpendableBalanceByDenomRequest; }; export declare const QuerySpendableBalanceByDenomResponse: { typeUrl: string; encode(message: QuerySpendableBalanceByDenomResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySpendableBalanceByDenomResponse; fromJSON(object: any): QuerySpendableBalanceByDenomResponse; toJSON(message: QuerySpendableBalanceByDenomResponse): JsonSafe; fromPartial, I>>(object: I): QuerySpendableBalanceByDenomResponse; }; export declare const QueryTotalSupplyRequest: { typeUrl: string; encode(message: QueryTotalSupplyRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyRequest; fromJSON(object: any): QueryTotalSupplyRequest; toJSON(message: QueryTotalSupplyRequest): JsonSafe; fromPartial, I>>(object: I): QueryTotalSupplyRequest; }; export declare const QueryTotalSupplyResponse: { typeUrl: string; encode(message: QueryTotalSupplyResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalSupplyResponse; fromJSON(object: any): QueryTotalSupplyResponse; toJSON(message: QueryTotalSupplyResponse): JsonSafe; fromPartial, I>>(object: I): QueryTotalSupplyResponse; }; export declare const QuerySupplyOfRequest: { typeUrl: string; encode(message: QuerySupplyOfRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfRequest; fromJSON(object: any): QuerySupplyOfRequest; toJSON(message: QuerySupplyOfRequest): JsonSafe; fromPartial, I>>(object: I): QuerySupplyOfRequest; }; export declare const QuerySupplyOfResponse: { typeUrl: string; encode(message: QuerySupplyOfResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyOfResponse; fromJSON(object: any): QuerySupplyOfResponse; toJSON(message: QuerySupplyOfResponse): JsonSafe; fromPartial, I>>(object: I): QuerySupplyOfResponse; }; 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 QueryDenomsMetadataRequest: { typeUrl: string; encode(message: QueryDenomsMetadataRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataRequest; fromJSON(object: any): QueryDenomsMetadataRequest; toJSON(message: QueryDenomsMetadataRequest): JsonSafe; fromPartial, I>>(object: I): QueryDenomsMetadataRequest; }; export declare const QueryDenomsMetadataResponse: { typeUrl: string; encode(message: QueryDenomsMetadataResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomsMetadataResponse; fromJSON(object: any): QueryDenomsMetadataResponse; toJSON(message: QueryDenomsMetadataResponse): JsonSafe; fromPartial, I>>(object: I): QueryDenomsMetadataResponse; }; export declare const QueryDenomMetadataRequest: { typeUrl: string; encode(message: QueryDenomMetadataRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataRequest; fromJSON(object: any): QueryDenomMetadataRequest; toJSON(message: QueryDenomMetadataRequest): JsonSafe; fromPartial, I>>(object: I): QueryDenomMetadataRequest; }; export declare const QueryDenomMetadataResponse: { typeUrl: string; encode(message: QueryDenomMetadataResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataResponse; fromJSON(object: any): QueryDenomMetadataResponse; toJSON(message: QueryDenomMetadataResponse): JsonSafe; fromPartial, I>>(object: I): QueryDenomMetadataResponse; }; export declare const QueryDenomMetadataByQueryStringRequest: { typeUrl: string; encode(message: QueryDenomMetadataByQueryStringRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataByQueryStringRequest; fromJSON(object: any): QueryDenomMetadataByQueryStringRequest; toJSON(message: QueryDenomMetadataByQueryStringRequest): JsonSafe; fromPartial, I>>(object: I): QueryDenomMetadataByQueryStringRequest; }; export declare const QueryDenomMetadataByQueryStringResponse: { typeUrl: string; encode(message: QueryDenomMetadataByQueryStringResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomMetadataByQueryStringResponse; fromJSON(object: any): QueryDenomMetadataByQueryStringResponse; toJSON(message: QueryDenomMetadataByQueryStringResponse): JsonSafe; fromPartial, I>>(object: I): QueryDenomMetadataByQueryStringResponse; }; export declare const QueryDenomOwnersRequest: { typeUrl: string; encode(message: QueryDenomOwnersRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersRequest; fromJSON(object: any): QueryDenomOwnersRequest; toJSON(message: QueryDenomOwnersRequest): JsonSafe; fromPartial, I>>(object: I): QueryDenomOwnersRequest; }; export declare const DenomOwner: { typeUrl: string; encode(message: DenomOwner, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): DenomOwner; fromJSON(object: any): DenomOwner; toJSON(message: DenomOwner): JsonSafe; fromPartial, I>>(object: I): DenomOwner; }; export declare const QueryDenomOwnersResponse: { typeUrl: string; encode(message: QueryDenomOwnersResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersResponse; fromJSON(object: any): QueryDenomOwnersResponse; toJSON(message: QueryDenomOwnersResponse): JsonSafe; fromPartial, I>>(object: I): QueryDenomOwnersResponse; }; export declare const QueryDenomOwnersByQueryRequest: { typeUrl: string; encode(message: QueryDenomOwnersByQueryRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersByQueryRequest; fromJSON(object: any): QueryDenomOwnersByQueryRequest; toJSON(message: QueryDenomOwnersByQueryRequest): JsonSafe; fromPartial, I>>(object: I): QueryDenomOwnersByQueryRequest; }; export declare const QueryDenomOwnersByQueryResponse: { typeUrl: string; encode(message: QueryDenomOwnersByQueryResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomOwnersByQueryResponse; fromJSON(object: any): QueryDenomOwnersByQueryResponse; toJSON(message: QueryDenomOwnersByQueryResponse): JsonSafe; fromPartial, I>>(object: I): QueryDenomOwnersByQueryResponse; }; export declare const QuerySendEnabledRequest: { typeUrl: string; encode(message: QuerySendEnabledRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySendEnabledRequest; fromJSON(object: any): QuerySendEnabledRequest; toJSON(message: QuerySendEnabledRequest): JsonSafe; fromPartial, I>>(object: I): QuerySendEnabledRequest; }; export declare const QuerySendEnabledResponse: { typeUrl: string; encode(message: QuerySendEnabledResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QuerySendEnabledResponse; fromJSON(object: any): QuerySendEnabledResponse; toJSON(message: QuerySendEnabledResponse): JsonSafe; fromPartial, I>>(object: I): QuerySendEnabledResponse; }; /** 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. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ AllBalances(request: QueryAllBalancesRequest): Promise; /** * SpendableBalances queries the spendable balance of all coins for a single * account. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ SpendableBalances(request: QuerySpendableBalancesRequest): Promise; /** * SpendableBalanceByDenom queries the spendable balance of a single denom for * a single account. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ SpendableBalanceByDenom(request: QuerySpendableBalanceByDenomRequest): Promise; /** * TotalSupply queries the total supply of all coins. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ TotalSupply(request?: QueryTotalSupplyRequest): Promise; /** * SupplyOf queries the supply of a single coin. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ SupplyOf(request: QuerySupplyOfRequest): Promise; /** Params queries the parameters of x/bank module. */ Params(request?: QueryParamsRequest): Promise; /** * DenomsMetadata queries the client metadata for all registered coin * denominations. */ DenomsMetadata(request?: QueryDenomsMetadataRequest): Promise; /** DenomMetadata queries the client metadata of a given coin denomination. */ DenomMetadata(request: QueryDenomMetadataRequest): Promise; /** DenomMetadataByQueryString queries the client metadata of a given coin denomination. */ DenomMetadataByQueryString(request: QueryDenomMetadataByQueryStringRequest): Promise; /** * DenomOwners queries for all account addresses that own a particular token * denomination. * * When called from another module, this query might consume a high amount of * gas if the pagination field is incorrectly set. */ DenomOwners(request: QueryDenomOwnersRequest): Promise; /** * DenomOwnersByQuery queries for all account addresses that own a particular token * denomination. */ DenomOwnersByQuery(request: QueryDenomOwnersByQueryRequest): Promise; /** * SendEnabled queries for SendEnabled entries. * * This query only returns denominations that have specific SendEnabled settings. * Any denomination that does not have a specific setting will use the default * params.default_send_enabled, and will not be returned by this query. */ SendEnabled(request: QuerySendEnabledRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Balance(request: QueryBalanceRequest): Promise; AllBalances(request: QueryAllBalancesRequest): Promise; SpendableBalances(request: QuerySpendableBalancesRequest): Promise; SpendableBalanceByDenom(request: QuerySpendableBalanceByDenomRequest): Promise; TotalSupply(request?: QueryTotalSupplyRequest): Promise; SupplyOf(request: QuerySupplyOfRequest): Promise; Params(request?: QueryParamsRequest): Promise; DenomsMetadata(request?: QueryDenomsMetadataRequest): Promise; DenomMetadata(request: QueryDenomMetadataRequest): Promise; DenomMetadataByQueryString(request: QueryDenomMetadataByQueryStringRequest): Promise; DenomOwners(request: QueryDenomOwnersRequest): Promise; DenomOwnersByQuery(request: QueryDenomOwnersByQueryRequest): Promise; SendEnabled(request: QuerySendEnabledRequest): Promise; }