PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@babylonlabs-io/babylon-proto-ts/dist/generated/babylon/incentive

Просмотр файла: query.d.ts

import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import { Coin } from "../../cosmos/base/v1beta1/coin";
import { Params } from "./params";
export declare const protobufPackage = "babylon.incentive";
/** QueryParamsRequest is request type for the Query/Params RPC method. */
export interface QueryParamsRequest {
}
/** QueryParamsResponse is response type for the Query/Params RPC method. */
export interface QueryParamsResponse {
    /** params holds all the parameters of this module. */
    params: Params | undefined;
}
/** QueryRewardGaugesRequest is request type for the Query/RewardGauges RPC method. */
export interface QueryRewardGaugesRequest {
    /** address is the address of the stakeholder in bech32 string */
    address: string;
}
/** RewardGaugesResponse is an object that stores rewards distributed to a BTC staking stakeholder */
export interface RewardGaugesResponse {
    /**
     * coins are coins that have been in the gauge
     * Can have multiple coin denoms
     */
    coins: Coin[];
    /** withdrawn_coins are coins that have been withdrawn by the stakeholder already */
    withdrawnCoins: Coin[];
}
/** QueryRewardGaugesResponse is response type for the Query/RewardGauges RPC method. */
export interface QueryRewardGaugesResponse {
    /**
     * reward_gauges is the map of reward gauges, where key is the stakeholder type
     * and value is the reward gauge holding all rewards for the stakeholder in that type
     */
    rewardGauges: {
        [key: string]: RewardGaugesResponse;
    };
}
export interface QueryRewardGaugesResponse_RewardGaugesEntry {
    key: string;
    value: RewardGaugesResponse | undefined;
}
/** QueryBTCStakingGaugeRequest is request type for the Query/BTCStakingGauge RPC method. */
export interface QueryBTCStakingGaugeRequest {
    /** height is the queried Babylon height */
    height: number;
}
/** BTCStakingGaugeResponse is response type for the Query/BTCStakingGauge RPC method. */
export interface BTCStakingGaugeResponse {
    /**
     * coins that have been in the gauge
     * can have multiple coin denoms
     */
    coins: Coin[];
}
/** QueryBTCStakingGaugeResponse is response type for the Query/BTCStakingGauge RPC method. */
export interface QueryBTCStakingGaugeResponse {
    /** gauge is the BTC staking gauge at the queried height */
    gauge: BTCStakingGaugeResponse | undefined;
}
/**
 * QueryDelegatorWithdrawAddressRequest is the request type for the
 * Query/DelegatorWithdrawAddress RPC method.
 */
export interface QueryDelegatorWithdrawAddressRequest {
    /** delegator_address defines the delegator address to query for. */
    delegatorAddress: string;
}
/**
 * QueryDelegatorWithdrawAddressResponse is the response type for the
 * Query/DelegatorWithdrawAddress RPC method.
 */
export interface QueryDelegatorWithdrawAddressResponse {
    /** withdraw_address defines the delegator address to query for. */
    withdrawAddress: string;
}
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
export declare const QueryRewardGaugesRequest: MessageFns<QueryRewardGaugesRequest>;
export declare const RewardGaugesResponse: MessageFns<RewardGaugesResponse>;
export declare const QueryRewardGaugesResponse: MessageFns<QueryRewardGaugesResponse>;
export declare const QueryRewardGaugesResponse_RewardGaugesEntry: MessageFns<QueryRewardGaugesResponse_RewardGaugesEntry>;
export declare const QueryBTCStakingGaugeRequest: MessageFns<QueryBTCStakingGaugeRequest>;
export declare const BTCStakingGaugeResponse: MessageFns<BTCStakingGaugeResponse>;
export declare const QueryBTCStakingGaugeResponse: MessageFns<QueryBTCStakingGaugeResponse>;
export declare const QueryDelegatorWithdrawAddressRequest: MessageFns<QueryDelegatorWithdrawAddressRequest>;
export declare const QueryDelegatorWithdrawAddressResponse: MessageFns<QueryDelegatorWithdrawAddressResponse>;
/** Query defines the gRPC querier service. */
export interface Query {
    /** Parameters queries the parameters of the module. */
    Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
    /** RewardGauge queries the reward gauge of a given stakeholder address */
    RewardGauges(request: QueryRewardGaugesRequest): Promise<QueryRewardGaugesResponse>;
    /** BTCStakingGauge queries the BTC staking gauge of a given height */
    BTCStakingGauge(request: QueryBTCStakingGaugeRequest): Promise<QueryBTCStakingGaugeResponse>;
    /** DelegatorWithdrawAddress queries withdraw address of a delegator. */
    DelegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
}
export declare const QueryServiceName = "babylon.incentive.Query";
export declare class QueryClientImpl implements Query {
    private readonly rpc;
    private readonly service;
    constructor(rpc: Rpc, opts?: {
        service?: string;
    });
    Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
    RewardGauges(request: QueryRewardGaugesRequest): Promise<QueryRewardGaugesResponse>;
    BTCStakingGauge(request: QueryBTCStakingGaugeRequest): Promise<QueryBTCStakingGaugeResponse>;
    DelegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
}
interface Rpc {
    request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & {
    [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
};
export interface MessageFns<T> {
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    decode(input: BinaryReader | Uint8Array, length?: number): T;
    fromJSON(object: any): T;
    toJSON(message: T): unknown;
    create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
    fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
}
export {};
//# sourceMappingURL=query.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!