PHP WebShell

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

Просмотр файла: tx.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";
/** MsgWithdrawReward defines a message for withdrawing reward of a stakeholder. */
export interface MsgWithdrawReward {
    /** {finality_provider, btc_delegation} */
    type: string;
    /**
     * address is the address of the stakeholder in bech32 string
     * signer of this msg has to be this address
     */
    address: string;
}
/** MsgWithdrawRewardResponse is the response to the MsgWithdrawReward message */
export interface MsgWithdrawRewardResponse {
    /** coins is the withdrawed coins */
    coins: Coin[];
}
/** MsgUpdateParams defines a message for updating incentive module parameters. */
export interface MsgUpdateParams {
    /**
     * authority is the address of the governance account.
     * just FYI: cosmos.AddressString marks that this field should use type alias
     * for AddressString instead of string, but the functionality is not yet implemented
     * in cosmos-proto
     */
    authority: string;
    /**
     * params defines the incentive parameters to update.
     *
     * NOTE: All parameters must be supplied.
     */
    params: Params | undefined;
}
/** MsgUpdateParamsResponse is the response to the MsgUpdateParams message. */
export interface MsgUpdateParamsResponse {
}
/** MsgSetWithdrawAddress sets the withdraw address */
export interface MsgSetWithdrawAddress {
    delegatorAddress: string;
    withdrawAddress: string;
}
/**
 * MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
 * type.
 */
export interface MsgSetWithdrawAddressResponse {
}
export declare const MsgWithdrawReward: MessageFns<MsgWithdrawReward>;
export declare const MsgWithdrawRewardResponse: MessageFns<MsgWithdrawRewardResponse>;
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
export declare const MsgSetWithdrawAddress: MessageFns<MsgSetWithdrawAddress>;
export declare const MsgSetWithdrawAddressResponse: MessageFns<MsgSetWithdrawAddressResponse>;
/** Msg defines the Msg service. */
export interface Msg {
    /** WithdrawReward defines a method to withdraw rewards of a stakeholder */
    WithdrawReward(request: MsgWithdrawReward): Promise<MsgWithdrawRewardResponse>;
    /** UpdateParams updates the incentive module parameters. */
    UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
    /** SetWithdrawAddress defines a method to change the withdraw address of a stakeholder */
    SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
}
export declare const MsgServiceName = "babylon.incentive.Msg";
export declare class MsgClientImpl implements Msg {
    private readonly rpc;
    private readonly service;
    constructor(rpc: Rpc, opts?: {
        service?: string;
    });
    WithdrawReward(request: MsgWithdrawReward): Promise<MsgWithdrawRewardResponse>;
    UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
    SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
}
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=tx.d.ts.map

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


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