cosmos-explorer/packages/codegen/dist/cosmos/bank/v1beta1/query.d.ts
2023-03-02 13:21:24 +08:00

363 lines
15 KiB
TypeScript

import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
import { Params, ParamsSDKType, Metadata, MetadataSDKType } from "./bank";
import * as _m0 from "protobufjs/minimal";
import { DeepPartial } from "../../../helpers";
/** 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;
}
/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */
export interface QueryBalanceRequestSDKType {
address: string;
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;
}
/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */
export interface QueryBalanceResponseSDKType {
balance?: CoinSDKType;
}
/** 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;
}
/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */
export interface QueryAllBalancesRequestSDKType {
address: string;
pagination?: PageRequestSDKType;
}
/**
* 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;
}
/**
* QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
* method.
*/
export interface QueryAllBalancesResponseSDKType {
balances: CoinSDKType[];
pagination?: PageResponseSDKType;
}
/**
* 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;
}
/**
* QuerySpendableBalancesRequest defines the gRPC request structure for querying
* an account's spendable balances.
*/
export interface QuerySpendableBalancesRequestSDKType {
address: string;
pagination?: PageRequestSDKType;
}
/**
* 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;
}
/**
* QuerySpendableBalancesResponse defines the gRPC response structure for querying
* an account's spendable balances.
*/
export interface QuerySpendableBalancesResponseSDKType {
balances: CoinSDKType[];
pagination?: PageResponseSDKType;
}
/**
* QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
* method.
*/
export interface QueryTotalSupplyRequest {
/**
* pagination defines an optional pagination for the request.
*
* Since: cosmos-sdk 0.43
*/
pagination?: PageRequest;
}
/**
* QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
* method.
*/
export interface QueryTotalSupplyRequestSDKType {
pagination?: PageRequestSDKType;
}
/**
* 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.
*
* Since: cosmos-sdk 0.43
*/
pagination?: PageResponse;
}
/**
* QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC
* method
*/
export interface QueryTotalSupplyResponseSDKType {
supply: CoinSDKType[];
pagination?: PageResponseSDKType;
}
/** 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;
}
/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */
export interface QuerySupplyOfRequestSDKType {
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;
}
/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */
export interface QuerySupplyOfResponseSDKType {
amount?: CoinSDKType;
}
/** QueryParamsRequest defines the request type for querying x/bank parameters. */
export interface QueryParamsRequest {
}
/** QueryParamsRequest defines the request type for querying x/bank parameters. */
export interface QueryParamsRequestSDKType {
}
/** QueryParamsResponse defines the response type for querying x/bank parameters. */
export interface QueryParamsResponse {
params?: Params;
}
/** QueryParamsResponse defines the response type for querying x/bank parameters. */
export interface QueryParamsResponseSDKType {
params?: ParamsSDKType;
}
/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */
export interface QueryDenomsMetadataRequest {
/** pagination defines an optional pagination for the request. */
pagination?: PageRequest;
}
/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */
export interface QueryDenomsMetadataRequestSDKType {
pagination?: PageRequestSDKType;
}
/**
* 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;
}
/**
* QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC
* method.
*/
export interface QueryDenomsMetadataResponseSDKType {
metadatas: MetadataSDKType[];
pagination?: PageResponseSDKType;
}
/** 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;
}
/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */
export interface QueryDenomMetadataRequestSDKType {
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;
}
/**
* QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC
* method.
*/
export interface QueryDenomMetadataResponseSDKType {
metadata?: MetadataSDKType;
}
/**
* 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;
}
/**
* 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 QueryDenomOwnersRequestSDKType {
denom: string;
pagination?: PageRequestSDKType;
}
/**
* 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;
}
/**
* 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 DenomOwnerSDKType {
address: string;
balance?: CoinSDKType;
}
/** QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. */
export interface QueryDenomOwnersResponse {
denomOwners: DenomOwner[];
/** pagination defines the pagination in the response. */
pagination?: PageResponse;
}
/** QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. */
export interface QueryDenomOwnersResponseSDKType {
denom_owners: DenomOwnerSDKType[];
pagination?: PageResponseSDKType;
}
export declare const QueryBalanceRequest: {
encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest;
fromPartial(object: DeepPartial<QueryBalanceRequest>): QueryBalanceRequest;
};
export declare const QueryBalanceResponse: {
encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse;
fromPartial(object: DeepPartial<QueryBalanceResponse>): QueryBalanceResponse;
};
export declare const QueryAllBalancesRequest: {
encode(message: QueryAllBalancesRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesRequest;
fromPartial(object: DeepPartial<QueryAllBalancesRequest>): QueryAllBalancesRequest;
};
export declare const QueryAllBalancesResponse: {
encode(message: QueryAllBalancesResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllBalancesResponse;
fromPartial(object: DeepPartial<QueryAllBalancesResponse>): QueryAllBalancesResponse;
};
export declare const QuerySpendableBalancesRequest: {
encode(message: QuerySpendableBalancesRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySpendableBalancesRequest;
fromPartial(object: DeepPartial<QuerySpendableBalancesRequest>): QuerySpendableBalancesRequest;
};
export declare const QuerySpendableBalancesResponse: {
encode(message: QuerySpendableBalancesResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySpendableBalancesResponse;
fromPartial(object: DeepPartial<QuerySpendableBalancesResponse>): QuerySpendableBalancesResponse;
};
export declare const QueryTotalSupplyRequest: {
encode(message: QueryTotalSupplyRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyRequest;
fromPartial(object: DeepPartial<QueryTotalSupplyRequest>): QueryTotalSupplyRequest;
};
export declare const QueryTotalSupplyResponse: {
encode(message: QueryTotalSupplyResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalSupplyResponse;
fromPartial(object: DeepPartial<QueryTotalSupplyResponse>): QueryTotalSupplyResponse;
};
export declare const QuerySupplyOfRequest: {
encode(message: QuerySupplyOfRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfRequest;
fromPartial(object: DeepPartial<QuerySupplyOfRequest>): QuerySupplyOfRequest;
};
export declare const QuerySupplyOfResponse: {
encode(message: QuerySupplyOfResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyOfResponse;
fromPartial(object: DeepPartial<QuerySupplyOfResponse>): QuerySupplyOfResponse;
};
export declare const QueryParamsRequest: {
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
};
export declare const QueryParamsResponse: {
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
};
export declare const QueryDenomsMetadataRequest: {
encode(message: QueryDenomsMetadataRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomsMetadataRequest;
fromPartial(object: DeepPartial<QueryDenomsMetadataRequest>): QueryDenomsMetadataRequest;
};
export declare const QueryDenomsMetadataResponse: {
encode(message: QueryDenomsMetadataResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomsMetadataResponse;
fromPartial(object: DeepPartial<QueryDenomsMetadataResponse>): QueryDenomsMetadataResponse;
};
export declare const QueryDenomMetadataRequest: {
encode(message: QueryDenomMetadataRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomMetadataRequest;
fromPartial(object: DeepPartial<QueryDenomMetadataRequest>): QueryDenomMetadataRequest;
};
export declare const QueryDenomMetadataResponse: {
encode(message: QueryDenomMetadataResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomMetadataResponse;
fromPartial(object: DeepPartial<QueryDenomMetadataResponse>): QueryDenomMetadataResponse;
};
export declare const QueryDenomOwnersRequest: {
encode(message: QueryDenomOwnersRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomOwnersRequest;
fromPartial(object: DeepPartial<QueryDenomOwnersRequest>): QueryDenomOwnersRequest;
};
export declare const DenomOwner: {
encode(message: DenomOwner, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): DenomOwner;
fromPartial(object: DeepPartial<DenomOwner>): DenomOwner;
};
export declare const QueryDenomOwnersResponse: {
encode(message: QueryDenomOwnersResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomOwnersResponse;
fromPartial(object: DeepPartial<QueryDenomOwnersResponse>): QueryDenomOwnersResponse;
};