import { Description, CommissionRates, Params } from "./staking"; import { Any } from "../../../google/protobuf/any"; import { Coin } from "../../base/v1beta1/coin"; import { Timestamp } from "../../../google/protobuf/timestamp"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.staking.v1beta1"; /** MsgCreateValidator defines a SDK message for creating a new validator. */ export interface MsgCreateValidator { description: Description; commission: CommissionRates; 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; value: Coin; } /** 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; 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; } /** 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; } /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ export interface MsgBeginRedelegateResponse { completionTime: Timestamp; } /** * MsgUndelegate defines a SDK message for performing an undelegation from a * delegate and a validator. */ export interface MsgUndelegate { delegatorAddress: string; validatorAddress: string; amount: Coin; } /** MsgUndelegateResponse defines the Msg/Undelegate response type. */ export interface MsgUndelegateResponse { completionTime: Timestamp; /** amount returns the amount of undelegated coins */ amount: Coin; } /** MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator */ export interface MsgCancelUnbondingDelegation { delegatorAddress: string; validatorAddress: string; /** amount is always less than or equal to unbonding delegation entry balance */ amount: Coin; /** creation_height is the height which the unbonding took place. */ creationHeight: bigint; } /** MsgCancelUnbondingDelegationResponse */ export interface MsgCancelUnbondingDelegationResponse { } /** MsgUpdateParams is the Msg/UpdateParams request type. */ 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; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } export declare const MsgCreateValidator: { typeUrl: string; encode(message: MsgCreateValidator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator; fromJSON(object: any): MsgCreateValidator; toJSON(message: MsgCreateValidator): JsonSafe; fromPartial, I>>(object: I): MsgCreateValidator; }; export declare const MsgCreateValidatorResponse: { typeUrl: string; encode(_: MsgCreateValidatorResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse; fromJSON(_: any): MsgCreateValidatorResponse; toJSON(_: MsgCreateValidatorResponse): JsonSafe; fromPartial, I>>(_: I): MsgCreateValidatorResponse; }; export declare const MsgEditValidator: { typeUrl: string; encode(message: MsgEditValidator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator; fromJSON(object: any): MsgEditValidator; toJSON(message: MsgEditValidator): JsonSafe; fromPartial, I>>(object: I): MsgEditValidator; }; export declare const MsgEditValidatorResponse: { typeUrl: string; encode(_: MsgEditValidatorResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse; fromJSON(_: any): MsgEditValidatorResponse; toJSON(_: MsgEditValidatorResponse): JsonSafe; fromPartial, I>>(_: I): MsgEditValidatorResponse; }; export declare const MsgDelegate: { typeUrl: string; encode(message: MsgDelegate, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate; fromJSON(object: any): MsgDelegate; toJSON(message: MsgDelegate): JsonSafe; fromPartial, I>>(object: I): MsgDelegate; }; export declare const MsgDelegateResponse: { typeUrl: string; encode(_: MsgDelegateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse; fromJSON(_: any): MsgDelegateResponse; toJSON(_: MsgDelegateResponse): JsonSafe; fromPartial, I>>(_: I): MsgDelegateResponse; }; export declare const MsgBeginRedelegate: { typeUrl: string; encode(message: MsgBeginRedelegate, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate; fromJSON(object: any): MsgBeginRedelegate; toJSON(message: MsgBeginRedelegate): JsonSafe; fromPartial, I>>(object: I): MsgBeginRedelegate; }; export declare const MsgBeginRedelegateResponse: { typeUrl: string; encode(message: MsgBeginRedelegateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse; fromJSON(object: any): MsgBeginRedelegateResponse; toJSON(message: MsgBeginRedelegateResponse): JsonSafe; fromPartial, I>>(object: I): MsgBeginRedelegateResponse; }; export declare const MsgUndelegate: { typeUrl: string; encode(message: MsgUndelegate, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate; fromJSON(object: any): MsgUndelegate; toJSON(message: MsgUndelegate): JsonSafe; fromPartial, I>>(object: I): MsgUndelegate; }; export declare const MsgUndelegateResponse: { typeUrl: string; encode(message: MsgUndelegateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse; fromJSON(object: any): MsgUndelegateResponse; toJSON(message: MsgUndelegateResponse): JsonSafe; fromPartial, I>>(object: I): MsgUndelegateResponse; }; export declare const MsgCancelUnbondingDelegation: { typeUrl: string; encode(message: MsgCancelUnbondingDelegation, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; fromJSON(object: any): MsgCancelUnbondingDelegation; toJSON(message: MsgCancelUnbondingDelegation): JsonSafe; fromPartial, I>>(object: I): MsgCancelUnbondingDelegation; }; export declare const MsgCancelUnbondingDelegationResponse: { typeUrl: string; encode(_: MsgCancelUnbondingDelegationResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; fromJSON(_: any): MsgCancelUnbondingDelegationResponse; toJSON(_: MsgCancelUnbondingDelegationResponse): JsonSafe; fromPartial, I>>(_: I): MsgCancelUnbondingDelegationResponse; }; export declare const MsgUpdateParams: { typeUrl: string; encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): JsonSafe; fromPartial, I>>(object: I): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { typeUrl: string; encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): JsonSafe; fromPartial, I>>(_: I): MsgUpdateParamsResponse; }; /** Msg defines the staking Msg service. */ export interface Msg { /** CreateValidator defines a method for creating a new validator. */ CreateValidator(request: MsgCreateValidator): Promise; /** EditValidator defines a method for editing an existing validator. */ EditValidator(request: MsgEditValidator): Promise; /** * Delegate defines a method for performing a delegation of coins * from a delegator to a validator. */ Delegate(request: MsgDelegate): Promise; /** * BeginRedelegate defines a method for performing a redelegation * of coins from a delegator and source validator to a destination validator. */ BeginRedelegate(request: MsgBeginRedelegate): Promise; /** * Undelegate defines a method for performing an undelegation from a * delegate and a validator. */ Undelegate(request: MsgUndelegate): Promise; /** * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation * and delegate back to previous validator. */ CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; /** * UpdateParams defines an operation for updating the x/staking module * parameters. */ UpdateParams(request: MsgUpdateParams): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); CreateValidator(request: MsgCreateValidator): Promise; EditValidator(request: MsgEditValidator): Promise; Delegate(request: MsgDelegate): Promise; BeginRedelegate(request: MsgBeginRedelegate): Promise; Undelegate(request: MsgUndelegate): Promise; CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; UpdateParams(request: MsgUpdateParams): Promise; }