import { ClassInfo, BatchInfo } from '../../../regen/ecocredit/v1alpha1/types'; import { Reader, Writer } from 'protobufjs/minimal'; /** * QueryClassInfoRequest is the Query/ClassInfo request type. */ export interface QueryClassInfoRequest { /** * class_id is the unique ID of credit class to query. */ classId: string; } /** * QueryClassInfoResponse is the Query/ClassInfo request type. */ export interface QueryClassInfoResponse { /** * info is the ClassInfo for the credit class. */ info?: ClassInfo; } /** * QueryBatchInfoRequest is the Query/BatchInfo request type. */ export interface QueryBatchInfoRequest { /** * batch_denom is the unique ID of credit batch to query. */ batchDenom: string; } /** * QueryBatchInfoResponse is the Query/BatchInfo response type. */ export interface QueryBatchInfoResponse { /** * info is the BatchInfo for the credit batch. */ info?: BatchInfo; } /** * QueryBalanceRequest is the Query/Balance request type. */ export interface QueryBalanceRequest { /** * account is the address of the account whose balance is being queried. */ account: string; /** * batch_denom is the unique ID of credit batch balance to query. */ batchDenom: string; } /** * QueryBalanceResponse is the Query/Balance response type. */ export interface QueryBalanceResponse { /** * tradable_units is the decimal number of tradable units. */ tradableUnits: string; /** * retired_units is the decimal number of retired units. */ retiredUnits: string; } /** * QuerySupplyRequest is the Query/Supply request type. */ export interface QuerySupplyRequest { /** * batch_denom is the unique ID of credit batch to query. */ batchDenom: string; } /** * QuerySupplyResponse is the Query/Supply response type. */ export interface QuerySupplyResponse { /** * tradable_units is the decimal number of tradable units in the batch supply. */ tradableSupply: string; /** * retired_supply is the decimal number of retired units in the batch supply. */ retiredSupply: string; } /** * QueryPrecisionRequest is the Query/Precision request type. */ export interface QueryPrecisionRequest { /** * batch_denom is the unique ID of credit batch to query. */ batchDenom: string; } /** * QueryPrecisionResponse is the Query/Precision response type. */ export interface QueryPrecisionResponse { /** * max_decimal_places is the maximum number of decimal places that can be used to represent some quantity of credit units. * It is an experimental feature to concretely explore an idea proposed in https://github.com/cosmos/cosmos-sdk/issues/7113. */ maxDecimalPlaces: number; } /** * Msg is the regen.ecocredit.v1alpha1 Query service. */ export interface Query { /** * ClassInfo queries for information on a credit class. */ ClassInfo(request: QueryClassInfoRequest): Promise; /** * BatchInfo queries for information on a credit batch. */ BatchInfo(request: QueryBatchInfoRequest): Promise; /** * Balance queries the balance (both tradable and retired) of a given credit batch for a given account. */ Balance(request: QueryBalanceRequest): Promise; /** * Supply queries the tradable and retired supply of a credit batch. */ Supply(request: QuerySupplyRequest): Promise; /** * Precision queries the number of decimal places that can be used to represent credit batch units. * See Tx/SetPrecision for more details. */ Precision(request: QueryPrecisionRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); ClassInfo(request: QueryClassInfoRequest): Promise; BatchInfo(request: QueryBatchInfoRequest): Promise; Balance(request: QueryBalanceRequest): Promise; Supply(request: QuerySupplyRequest): Promise; Precision(request: QueryPrecisionRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } export declare const protobufPackage = "regen.ecocredit.v1alpha1"; export declare const QueryClassInfoRequest: { encode(message: QueryClassInfoRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryClassInfoRequest; fromJSON(object: any): QueryClassInfoRequest; fromPartial(object: DeepPartial): QueryClassInfoRequest; toJSON(message: QueryClassInfoRequest): unknown; }; export declare const QueryClassInfoResponse: { encode(message: QueryClassInfoResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryClassInfoResponse; fromJSON(object: any): QueryClassInfoResponse; fromPartial(object: DeepPartial): QueryClassInfoResponse; toJSON(message: QueryClassInfoResponse): unknown; }; export declare const QueryBatchInfoRequest: { encode(message: QueryBatchInfoRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryBatchInfoRequest; fromJSON(object: any): QueryBatchInfoRequest; fromPartial(object: DeepPartial): QueryBatchInfoRequest; toJSON(message: QueryBatchInfoRequest): unknown; }; export declare const QueryBatchInfoResponse: { encode(message: QueryBatchInfoResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryBatchInfoResponse; fromJSON(object: any): QueryBatchInfoResponse; fromPartial(object: DeepPartial): QueryBatchInfoResponse; toJSON(message: QueryBatchInfoResponse): unknown; }; 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 QuerySupplyRequest: { encode(message: QuerySupplyRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QuerySupplyRequest; fromJSON(object: any): QuerySupplyRequest; fromPartial(object: DeepPartial): QuerySupplyRequest; toJSON(message: QuerySupplyRequest): unknown; }; export declare const QuerySupplyResponse: { encode(message: QuerySupplyResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QuerySupplyResponse; fromJSON(object: any): QuerySupplyResponse; fromPartial(object: DeepPartial): QuerySupplyResponse; toJSON(message: QuerySupplyResponse): unknown; }; export declare const QueryPrecisionRequest: { encode(message: QueryPrecisionRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryPrecisionRequest; fromJSON(object: any): QueryPrecisionRequest; fromPartial(object: DeepPartial): QueryPrecisionRequest; toJSON(message: QueryPrecisionRequest): unknown; }; export declare const QueryPrecisionResponse: { encode(message: QueryPrecisionResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryPrecisionResponse; fromJSON(object: any): QueryPrecisionResponse; fromPartial(object: DeepPartial): QueryPrecisionResponse; toJSON(message: QueryPrecisionResponse): 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 {};