import { Description, CommissionRates, Params } from "./staking"; import { Any } from "../../../google/protobuf/any"; import { Coin } from "../../base/v1beta1/coin"; import Long from "long"; import _m0 from "protobufjs/minimal"; 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; 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?: Date; } /** * 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?: Date; } /** * 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; /** creation_height is the height which the unbonding took place. */ creationHeight: Long; } /** * 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; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * * Since: cosmos-sdk 0.47 */ export interface MsgUpdateParamsResponse { } export declare const MsgCreateValidator: { encode(message: MsgCreateValidator, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidator; fromJSON(object: any): MsgCreateValidator; toJSON(message: MsgCreateValidator): unknown; fromPartial, never>; commission?: { rate?: string; maxRate?: string; maxChangeRate?: string; } & { rate?: string; maxRate?: string; maxChangeRate?: string; } & Record, never>; minSelfDelegation?: string; delegatorAddress?: string; validatorAddress?: string; pubkey?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; } & Record, never>; value?: { denom?: string; amount?: string; } & { denom?: string; amount?: string; } & Record, never>; } & Record, never>>(object: I): MsgCreateValidator; }; export declare const MsgCreateValidatorResponse: { encode(_: MsgCreateValidatorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidatorResponse; fromJSON(_: any): MsgCreateValidatorResponse; toJSON(_: MsgCreateValidatorResponse): unknown; fromPartial, never>>(_: I): MsgCreateValidatorResponse; }; export declare const MsgEditValidator: { encode(message: MsgEditValidator, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidator; fromJSON(object: any): MsgEditValidator; toJSON(message: MsgEditValidator): unknown; fromPartial, never>; validatorAddress?: string; commissionRate?: string; minSelfDelegation?: string; } & Record, never>>(object: I): MsgEditValidator; }; export declare const MsgEditValidatorResponse: { encode(_: MsgEditValidatorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidatorResponse; fromJSON(_: any): MsgEditValidatorResponse; toJSON(_: MsgEditValidatorResponse): unknown; fromPartial, never>>(_: I): MsgEditValidatorResponse; }; export declare const MsgDelegate: { encode(message: MsgDelegate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegate; fromJSON(object: any): MsgDelegate; toJSON(message: MsgDelegate): unknown; fromPartial, never>; } & Record, never>>(object: I): MsgDelegate; }; export declare const MsgDelegateResponse: { encode(_: MsgDelegateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateResponse; fromJSON(_: any): MsgDelegateResponse; toJSON(_: MsgDelegateResponse): unknown; fromPartial, never>>(_: I): MsgDelegateResponse; }; export declare const MsgBeginRedelegate: { encode(message: MsgBeginRedelegate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegate; fromJSON(object: any): MsgBeginRedelegate; toJSON(message: MsgBeginRedelegate): unknown; fromPartial, never>; } & Record, never>>(object: I): MsgBeginRedelegate; }; export declare const MsgBeginRedelegateResponse: { encode(message: MsgBeginRedelegateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegateResponse; fromJSON(object: any): MsgBeginRedelegateResponse; toJSON(message: MsgBeginRedelegateResponse): unknown; fromPartial, never>>(object: I): MsgBeginRedelegateResponse; }; export declare const MsgUndelegate: { encode(message: MsgUndelegate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegate; fromJSON(object: any): MsgUndelegate; toJSON(message: MsgUndelegate): unknown; fromPartial, never>; } & Record, never>>(object: I): MsgUndelegate; }; export declare const MsgUndelegateResponse: { encode(message: MsgUndelegateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegateResponse; fromJSON(object: any): MsgUndelegateResponse; toJSON(message: MsgUndelegateResponse): unknown; fromPartial, never>>(object: I): MsgUndelegateResponse; }; export declare const MsgCancelUnbondingDelegation: { encode(message: MsgCancelUnbondingDelegation, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUnbondingDelegation; fromJSON(object: any): MsgCancelUnbondingDelegation; toJSON(message: MsgCancelUnbondingDelegation): unknown; fromPartial, never>; creationHeight?: string | number | (Long.Long & { high: number; low: number; unsigned: boolean; add: (addend: string | number | Long.Long) => Long.Long; and: (other: string | number | Long.Long) => Long.Long; compare: (other: string | number | Long.Long) => number; comp: (other: string | number | Long.Long) => number; divide: (divisor: string | number | Long.Long) => Long.Long; div: (divisor: string | number | Long.Long) => Long.Long; equals: (other: string | number | Long.Long) => boolean; eq: (other: string | number | Long.Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | Long.Long) => boolean; gt: (other: string | number | Long.Long) => boolean; greaterThanOrEqual: (other: string | number | Long.Long) => boolean; gte: (other: string | number | Long.Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | Long.Long) => boolean; lt: (other: string | number | Long.Long) => boolean; lessThanOrEqual: (other: string | number | Long.Long) => boolean; lte: (other: string | number | Long.Long) => boolean; modulo: (other: string | number | Long.Long) => Long.Long; mod: (other: string | number | Long.Long) => Long.Long; multiply: (multiplier: string | number | Long.Long) => Long.Long; mul: (multiplier: string | number | Long.Long) => Long.Long; negate: () => Long.Long; neg: () => Long.Long; not: () => Long.Long; notEquals: (other: string | number | Long.Long) => boolean; neq: (other: string | number | Long.Long) => boolean; or: (other: string | number | Long.Long) => Long.Long; shiftLeft: (numBits: number | Long.Long) => Long.Long; shl: (numBits: number | Long.Long) => Long.Long; shiftRight: (numBits: number | Long.Long) => Long.Long; shr: (numBits: number | Long.Long) => Long.Long; shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long; shru: (numBits: number | Long.Long) => Long.Long; subtract: (subtrahend: string | number | Long.Long) => Long.Long; sub: (subtrahend: string | number | Long.Long) => Long.Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => Long.Long; toString: (radix?: number) => string; toUnsigned: () => Long.Long; xor: (other: string | number | Long.Long) => Long.Long; } & Record, never>); } & Record, never>>(object: I): MsgCancelUnbondingDelegation; }; export declare const MsgCancelUnbondingDelegationResponse: { encode(_: MsgCancelUnbondingDelegationResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse; fromJSON(_: any): MsgCancelUnbondingDelegationResponse; toJSON(_: MsgCancelUnbondingDelegationResponse): unknown; fromPartial, never>>(_: I): MsgCancelUnbondingDelegationResponse; }; export declare const MsgUpdateParams: { encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): unknown; fromPartial Long.Long; and: (other: string | number | Long.Long) => Long.Long; compare: (other: string | number | Long.Long) => number; comp: (other: string | number | Long.Long) => number; divide: (divisor: string | number | Long.Long) => Long.Long; div: (divisor: string | number | Long.Long) => Long.Long; equals: (other: string | number | Long.Long) => boolean; eq: (other: string | number | Long.Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | Long.Long) => boolean; gt: (other: string | number | Long.Long) => boolean; greaterThanOrEqual: (other: string | number | Long.Long) => boolean; gte: (other: string | number | Long.Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | Long.Long) => boolean; lt: (other: string | number | Long.Long) => boolean; lessThanOrEqual: (other: string | number | Long.Long) => boolean; lte: (other: string | number | Long.Long) => boolean; modulo: (other: string | number | Long.Long) => Long.Long; mod: (other: string | number | Long.Long) => Long.Long; multiply: (multiplier: string | number | Long.Long) => Long.Long; mul: (multiplier: string | number | Long.Long) => Long.Long; negate: () => Long.Long; neg: () => Long.Long; not: () => Long.Long; notEquals: (other: string | number | Long.Long) => boolean; neq: (other: string | number | Long.Long) => boolean; or: (other: string | number | Long.Long) => Long.Long; shiftLeft: (numBits: number | Long.Long) => Long.Long; shl: (numBits: number | Long.Long) => Long.Long; shiftRight: (numBits: number | Long.Long) => Long.Long; shr: (numBits: number | Long.Long) => Long.Long; shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long; shru: (numBits: number | Long.Long) => Long.Long; subtract: (subtrahend: string | number | Long.Long) => Long.Long; sub: (subtrahend: string | number | Long.Long) => Long.Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => Long.Long; toString: (radix?: number) => string; toUnsigned: () => Long.Long; xor: (other: string | number | Long.Long) => Long.Long; } & Record, never>); nanos?: number; } & Record, never>; maxValidators?: number; maxEntries?: number; historicalEntries?: number; bondDenom?: string; minCommissionRate?: string; } & Record, never>; } & Record, never>>(object: I): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): unknown; fromPartial, never>>(_: 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. * * Since: cosmos-sdk 0.46 */ CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise; /** * UpdateParams defines an operation for updating the x/staking module * parameters. * Since: cosmos-sdk 0.47 */ 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; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; declare type KeysOfUnion = T extends T ? keyof T : never; export declare type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {}; //# sourceMappingURL=tx.d.ts.map