PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@babylonlabs-io/babylon-proto-ts/dist/generated/cosmos/staking/v1beta1
Просмотр файла: tx.d.ts
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import { Any } from "../../../google/protobuf/any";
import { Coin } from "../../base/v1beta1/coin";
import { CommissionRates, Description, Params } from "./staking";
export declare const protobufPackage = "cosmos.staking.v1beta1";
/** MsgCreateValidator defines a SDK message for creating a new validator. */
export interface MsgCreateValidator {
description: Description | undefined;
commission: CommissionRates | undefined;
minSelfDelegation: string;
/**
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
* only in bech32 notation).
*
* @deprecated
*/
delegatorAddress: string;
validatorAddress: string;
pubkey: Any | undefined;
value: Coin | undefined;
}
/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
export interface MsgCreateValidatorResponse {
}
/** MsgEditValidator defines a SDK message for editing an existing validator. */
export interface MsgEditValidator {
description: Description | undefined;
validatorAddress: string;
/**
* We pass a reference to the new commission rate and min self delegation as
* it's not mandatory to update. If not updated, the deserialized rate will be
* zero with no way to distinguish if an update was intended.
* REF: #2373
*/
commissionRate: string;
minSelfDelegation: string;
}
/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
export interface MsgEditValidatorResponse {
}
/**
* MsgDelegate defines a SDK message for performing a delegation of coins
* from a delegator to a validator.
*/
export interface MsgDelegate {
delegatorAddress: string;
validatorAddress: string;
amount: Coin | undefined;
}
/** MsgDelegateResponse defines the Msg/Delegate response type. */
export interface MsgDelegateResponse {
}
/**
* MsgBeginRedelegate defines a SDK message for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*/
export interface MsgBeginRedelegate {
delegatorAddress: string;
validatorSrcAddress: string;
validatorDstAddress: string;
amount: Coin | undefined;
}
/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
export interface MsgBeginRedelegateResponse {
completionTime: Date | undefined;
}
/**
* MsgUndelegate defines a SDK message for performing an undelegation from a
* delegate and a validator.
*/
export interface MsgUndelegate {
delegatorAddress: string;
validatorAddress: string;
amount: Coin | undefined;
}
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
export interface MsgUndelegateResponse {
completionTime: Date | undefined;
/**
* amount returns the amount of undelegated coins
*
* Since: cosmos-sdk 0.50
*/
amount: Coin | undefined;
}
/**
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
*
* Since: cosmos-sdk 0.46
*/
export interface MsgCancelUnbondingDelegation {
delegatorAddress: string;
validatorAddress: string;
/** amount is always less than or equal to unbonding delegation entry balance */
amount: Coin | undefined;
/** creation_height is the height which the unbonding took place. */
creationHeight: number;
}
/**
* MsgCancelUnbondingDelegationResponse
*
* Since: cosmos-sdk 0.46
*/
export interface MsgCancelUnbondingDelegationResponse {
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
*
* Since: cosmos-sdk 0.47
*/
export interface MsgUpdateParams {
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
authority: string;
/**
* params defines the x/staking parameters to update.
*
* NOTE: All parameters must be supplied.
*/
params: Params | undefined;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
*
* Since: cosmos-sdk 0.47
*/
export interface MsgUpdateParamsResponse {
}
export declare const MsgCreateValidator: MessageFns<MsgCreateValidator>;
export declare const MsgCreateValidatorResponse: MessageFns<MsgCreateValidatorResponse>;
export declare const MsgEditValidator: MessageFns<MsgEditValidator>;
export declare const MsgEditValidatorResponse: MessageFns<MsgEditValidatorResponse>;
export declare const MsgDelegate: MessageFns<MsgDelegate>;
export declare const MsgDelegateResponse: MessageFns<MsgDelegateResponse>;
export declare const MsgBeginRedelegate: MessageFns<MsgBeginRedelegate>;
export declare const MsgBeginRedelegateResponse: MessageFns<MsgBeginRedelegateResponse>;
export declare const MsgUndelegate: MessageFns<MsgUndelegate>;
export declare const MsgUndelegateResponse: MessageFns<MsgUndelegateResponse>;
export declare const MsgCancelUnbondingDelegation: MessageFns<MsgCancelUnbondingDelegation>;
export declare const MsgCancelUnbondingDelegationResponse: MessageFns<MsgCancelUnbondingDelegationResponse>;
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
/** Msg defines the staking Msg service. */
export interface Msg {
/** CreateValidator defines a method for creating a new validator. */
CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
/** EditValidator defines a method for editing an existing validator. */
EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
/**
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*/
Delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
/**
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*/
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
/**
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*/
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
/**
* CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
* and delegate back to previous validator.
*
* Since: cosmos-sdk 0.46
*/
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
/**
* UpdateParams defines an operation for updating the x/staking module
* parameters.
* Since: cosmos-sdk 0.47
*/
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
}
export declare const MsgServiceName = "cosmos.staking.v1beta1.Msg";
export declare class MsgClientImpl implements Msg {
private readonly rpc;
private readonly service;
constructor(rpc: Rpc, opts?: {
service?: string;
});
CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
Delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
}
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Выполнить команду
Для локальной разработки. Не используйте в интернете!