import { Description, DescriptionAmino, CommissionRates, CommissionRatesAmino } from "./staking"; import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any"; import { Coin, CoinAmino } from "../../base/v1beta1/coin"; import { Timestamp } from "../../../google/protobuf/timestamp"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; 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; delegatorAddress: string; validatorAddress: string; pubkey?: Any | undefined; value: Coin | undefined; } export interface MsgCreateValidatorProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator"; value: Uint8Array; } export type MsgCreateValidatorEncoded = Omit & { pubkey?: AnyProtoMsg | undefined; }; /** MsgCreateValidator defines a SDK message for creating a new validator. */ export interface MsgCreateValidatorAmino { description?: DescriptionAmino | undefined; commission?: CommissionRatesAmino | undefined; min_self_delegation?: string; delegator_address?: string; validator_address?: string; pubkey?: AnyAmino | undefined; value?: CoinAmino | undefined; } export interface MsgCreateValidatorAminoMsg { type: "cosmos-sdk/MsgCreateValidator"; value: MsgCreateValidatorAmino; } /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ export interface MsgCreateValidatorResponse { } export interface MsgCreateValidatorResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse"; value: Uint8Array; } /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ export interface MsgCreateValidatorResponseAmino { } export interface MsgCreateValidatorResponseAminoMsg { type: "cosmos-sdk/MsgCreateValidatorResponse"; value: MsgCreateValidatorResponseAmino; } /** 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; } export interface MsgEditValidatorProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator"; value: Uint8Array; } /** MsgEditValidator defines a SDK message for editing an existing validator. */ export interface MsgEditValidatorAmino { description?: DescriptionAmino | undefined; validator_address?: 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 */ commission_rate?: string; min_self_delegation?: string; } export interface MsgEditValidatorAminoMsg { type: "cosmos-sdk/MsgEditValidator"; value: MsgEditValidatorAmino; } /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ export interface MsgEditValidatorResponse { } export interface MsgEditValidatorResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse"; value: Uint8Array; } /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ export interface MsgEditValidatorResponseAmino { } export interface MsgEditValidatorResponseAminoMsg { type: "cosmos-sdk/MsgEditValidatorResponse"; value: MsgEditValidatorResponseAmino; } /** * 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; } export interface MsgDelegateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate"; value: Uint8Array; } /** * MsgDelegate defines a SDK message for performing a delegation of coins * from a delegator to a validator. */ export interface MsgDelegateAmino { delegator_address?: string; validator_address?: string; amount?: CoinAmino | undefined; } export interface MsgDelegateAminoMsg { type: "cosmos-sdk/MsgDelegate"; value: MsgDelegateAmino; } /** MsgDelegateResponse defines the Msg/Delegate response type. */ export interface MsgDelegateResponse { } export interface MsgDelegateResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse"; value: Uint8Array; } /** MsgDelegateResponse defines the Msg/Delegate response type. */ export interface MsgDelegateResponseAmino { } export interface MsgDelegateResponseAminoMsg { type: "cosmos-sdk/MsgDelegateResponse"; value: MsgDelegateResponseAmino; } /** * 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; } export interface MsgBeginRedelegateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate"; value: Uint8Array; } /** * MsgBeginRedelegate defines a SDK message for performing a redelegation * of coins from a delegator and source validator to a destination validator. */ export interface MsgBeginRedelegateAmino { delegator_address?: string; validator_src_address?: string; validator_dst_address?: string; amount?: CoinAmino | undefined; } export interface MsgBeginRedelegateAminoMsg { type: "cosmos-sdk/MsgBeginRedelegate"; value: MsgBeginRedelegateAmino; } /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ export interface MsgBeginRedelegateResponse { completionTime: Timestamp | undefined; } export interface MsgBeginRedelegateResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; value: Uint8Array; } /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ export interface MsgBeginRedelegateResponseAmino { completion_time?: string | undefined; } export interface MsgBeginRedelegateResponseAminoMsg { type: "cosmos-sdk/MsgBeginRedelegateResponse"; value: MsgBeginRedelegateResponseAmino; } /** * 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; } export interface MsgUndelegateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate"; value: Uint8Array; } /** * MsgUndelegate defines a SDK message for performing an undelegation from a * delegate and a validator. */ export interface MsgUndelegateAmino { delegator_address?: string; validator_address?: string; amount?: CoinAmino | undefined; } export interface MsgUndelegateAminoMsg { type: "cosmos-sdk/MsgUndelegate"; value: MsgUndelegateAmino; } /** MsgUndelegateResponse defines the Msg/Undelegate response type. */ export interface MsgUndelegateResponse { completionTime: Timestamp | undefined; } export interface MsgUndelegateResponseProtoMsg { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse"; value: Uint8Array; } /** MsgUndelegateResponse defines the Msg/Undelegate response type. */ export interface MsgUndelegateResponseAmino { completion_time?: string | undefined; } export interface MsgUndelegateResponseAminoMsg { type: "cosmos-sdk/MsgUndelegateResponse"; value: MsgUndelegateResponseAmino; } export declare const MsgCreateValidator: { typeUrl: string; aminoType: string; is(o: any): o is MsgCreateValidator; isAmino(o: any): o is MsgCreateValidatorAmino; encode(message: MsgCreateValidator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator; fromJSON(object: any): MsgCreateValidator; toJSON(message: MsgCreateValidator): unknown; fromPartial(object: Partial): MsgCreateValidator; fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator; toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino; fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator; toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg; fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator; toProto(message: MsgCreateValidator): Uint8Array; toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg; }; export declare const MsgCreateValidatorResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgCreateValidatorResponse; isAmino(o: any): o is MsgCreateValidatorResponseAmino; encode(_: MsgCreateValidatorResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse; fromJSON(_: any): MsgCreateValidatorResponse; toJSON(_: MsgCreateValidatorResponse): unknown; fromPartial(_: Partial): MsgCreateValidatorResponse; fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse; toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino; fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse; toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg; fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse; toProto(message: MsgCreateValidatorResponse): Uint8Array; toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg; }; export declare const MsgEditValidator: { typeUrl: string; aminoType: string; is(o: any): o is MsgEditValidator; isAmino(o: any): o is MsgEditValidatorAmino; encode(message: MsgEditValidator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator; fromJSON(object: any): MsgEditValidator; toJSON(message: MsgEditValidator): unknown; fromPartial(object: Partial): MsgEditValidator; fromAmino(object: MsgEditValidatorAmino): MsgEditValidator; toAmino(message: MsgEditValidator): MsgEditValidatorAmino; fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator; toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg; fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator; toProto(message: MsgEditValidator): Uint8Array; toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg; }; export declare const MsgEditValidatorResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgEditValidatorResponse; isAmino(o: any): o is MsgEditValidatorResponseAmino; encode(_: MsgEditValidatorResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse; fromJSON(_: any): MsgEditValidatorResponse; toJSON(_: MsgEditValidatorResponse): unknown; fromPartial(_: Partial): MsgEditValidatorResponse; fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse; toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino; fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse; toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg; fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse; toProto(message: MsgEditValidatorResponse): Uint8Array; toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg; }; export declare const MsgDelegate: { typeUrl: string; aminoType: string; is(o: any): o is MsgDelegate; isAmino(o: any): o is MsgDelegateAmino; encode(message: MsgDelegate, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate; fromJSON(object: any): MsgDelegate; toJSON(message: MsgDelegate): unknown; fromPartial(object: Partial): MsgDelegate; fromAmino(object: MsgDelegateAmino): MsgDelegate; toAmino(message: MsgDelegate): MsgDelegateAmino; fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate; toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg; fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate; toProto(message: MsgDelegate): Uint8Array; toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg; }; export declare const MsgDelegateResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgDelegateResponse; isAmino(o: any): o is MsgDelegateResponseAmino; encode(_: MsgDelegateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse; fromJSON(_: any): MsgDelegateResponse; toJSON(_: MsgDelegateResponse): unknown; fromPartial(_: Partial): MsgDelegateResponse; fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse; toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino; fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse; toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg; fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse; toProto(message: MsgDelegateResponse): Uint8Array; toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg; }; export declare const MsgBeginRedelegate: { typeUrl: string; aminoType: string; is(o: any): o is MsgBeginRedelegate; isAmino(o: any): o is MsgBeginRedelegateAmino; encode(message: MsgBeginRedelegate, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate; fromJSON(object: any): MsgBeginRedelegate; toJSON(message: MsgBeginRedelegate): unknown; fromPartial(object: Partial): MsgBeginRedelegate; fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate; toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino; fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate; toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg; fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate; toProto(message: MsgBeginRedelegate): Uint8Array; toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg; }; export declare const MsgBeginRedelegateResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgBeginRedelegateResponse; isAmino(o: any): o is MsgBeginRedelegateResponseAmino; encode(message: MsgBeginRedelegateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse; fromJSON(object: any): MsgBeginRedelegateResponse; toJSON(message: MsgBeginRedelegateResponse): unknown; fromPartial(object: Partial): MsgBeginRedelegateResponse; fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse; toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino; fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse; toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg; fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse; toProto(message: MsgBeginRedelegateResponse): Uint8Array; toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg; }; export declare const MsgUndelegate: { typeUrl: string; aminoType: string; is(o: any): o is MsgUndelegate; isAmino(o: any): o is MsgUndelegateAmino; encode(message: MsgUndelegate, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate; fromJSON(object: any): MsgUndelegate; toJSON(message: MsgUndelegate): unknown; fromPartial(object: Partial): MsgUndelegate; fromAmino(object: MsgUndelegateAmino): MsgUndelegate; toAmino(message: MsgUndelegate): MsgUndelegateAmino; fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate; toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg; fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate; toProto(message: MsgUndelegate): Uint8Array; toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg; }; export declare const MsgUndelegateResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgUndelegateResponse; isAmino(o: any): o is MsgUndelegateResponseAmino; encode(message: MsgUndelegateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse; fromJSON(object: any): MsgUndelegateResponse; toJSON(message: MsgUndelegateResponse): unknown; fromPartial(object: Partial): MsgUndelegateResponse; fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse; toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino; fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse; toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg; fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse; toProto(message: MsgUndelegateResponse): Uint8Array; toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg; }; /** 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; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: TxRpc); CreateValidator(request: MsgCreateValidator): Promise; EditValidator(request: MsgEditValidator): Promise; Delegate(request: MsgDelegate): Promise; BeginRedelegate(request: MsgBeginRedelegate): Promise; Undelegate(request: MsgUndelegate): Promise; }