import { Description, DescriptionSDKType, CommissionRates, CommissionRatesSDKType } from "./staking"; import { Any, AnySDKType } from "../../../google/protobuf/any"; import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; import { Timestamp, TimestampSDKType } 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; } /** MsgCreateValidator defines a SDK message for creating a new validator. */ export interface MsgCreateValidatorSDKType { description: DescriptionSDKType | undefined; commission: CommissionRatesSDKType | undefined; min_self_delegation: string; delegator_address: string; validator_address: string; pubkey?: AnySDKType | undefined; value: CoinSDKType | undefined; } /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ export interface MsgCreateValidatorResponse { } /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ export interface MsgCreateValidatorResponseSDKType { } /** 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; } /** MsgEditValidator defines a SDK message for editing an existing validator. */ export interface MsgEditValidatorSDKType { description: DescriptionSDKType | undefined; validator_address: string; commission_rate: string; min_self_delegation: string; } /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ export interface MsgEditValidatorResponse { } /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ export interface MsgEditValidatorResponseSDKType { } /** * 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; } /** * MsgDelegate defines a SDK message for performing a delegation of coins * from a delegator to a validator. */ export interface MsgDelegateSDKType { delegator_address: string; validator_address: string; amount: CoinSDKType | undefined; } /** MsgDelegateResponse defines the Msg/Delegate response type. */ export interface MsgDelegateResponse { } /** MsgDelegateResponse defines the Msg/Delegate response type. */ export interface MsgDelegateResponseSDKType { } /** * 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; } /** * MsgBeginRedelegate defines a SDK message for performing a redelegation * of coins from a delegator and source validator to a destination validator. */ export interface MsgBeginRedelegateSDKType { delegator_address: string; validator_src_address: string; validator_dst_address: string; amount: CoinSDKType | undefined; } /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ export interface MsgBeginRedelegateResponse { completionTime: Timestamp | undefined; } /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ export interface MsgBeginRedelegateResponseSDKType { completion_time: TimestampSDKType | 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; } /** * MsgUndelegate defines a SDK message for performing an undelegation from a * delegate and a validator. */ export interface MsgUndelegateSDKType { delegator_address: string; validator_address: string; amount: CoinSDKType | undefined; } /** MsgUndelegateResponse defines the Msg/Undelegate response type. */ export interface MsgUndelegateResponse { completionTime: Timestamp | undefined; } /** MsgUndelegateResponse defines the Msg/Undelegate response type. */ export interface MsgUndelegateResponseSDKType { completion_time: TimestampSDKType | undefined; } 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): unknown; fromPartial & { description?: Description & { moniker: string; identity: string; website: string; securityContact: string; details: string; } & Record, never>; commission?: CommissionRates & { rate: string; maxRate: string; maxChangeRate: string; } & Record, never>; minSelfDelegation?: string; delegatorAddress?: string; validatorAddress?: string; pubkey?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; value?: Coin & { denom: string; amount: string; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & {} & Record, never>>(_: 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): unknown; fromPartial & { description?: Description & { moniker: string; identity: string; website: string; securityContact: string; details: string; } & Record, never>; validatorAddress?: string; commissionRate?: string; minSelfDelegation?: string; } & Record, never>>(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): unknown; fromPartial & {} & Record, never>>(_: 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): unknown; fromPartial & { delegatorAddress?: string; validatorAddress?: string; amount?: Coin & { denom: string; amount: string; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & {} & Record, never>>(_: 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): unknown; fromPartial & { delegatorAddress?: string; validatorSrcAddress?: string; validatorDstAddress?: string; amount?: Coin & { denom: string; amount: string; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { completionTime?: Timestamp & { seconds: bigint; nanos: number; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { delegatorAddress?: string; validatorAddress?: string; amount?: Coin & { denom: string; amount: string; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { completionTime?: Timestamp & { seconds: bigint; nanos: number; } & Record, never>; } & Record, never>>(object: I): MsgUndelegateResponse; }; /** 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; }