import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; 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 */ amount: Coin | undefined; } /** 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 | undefined; /** creation_height is the height which the unbonding took place. */ creationHeight: Long; } /** 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 | undefined; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ 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; create(base?: DeepPartial): MsgCreateValidator; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgCreateValidatorResponse; fromPartial(_: DeepPartial): 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; create(base?: DeepPartial): MsgEditValidator; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgEditValidatorResponse; fromPartial(_: DeepPartial): 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; create(base?: DeepPartial): MsgDelegate; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgDelegateResponse; fromPartial(_: DeepPartial): 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; create(base?: DeepPartial): MsgBeginRedelegate; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgBeginRedelegateResponse; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgUndelegate; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgUndelegateResponse; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgCancelUnbondingDelegation; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgCancelUnbondingDelegationResponse; fromPartial(_: DeepPartial): 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; create(base?: DeepPartial): MsgUpdateParams; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; }; /** Msg defines the staking Msg service. */ export interface Msg { /** CreateValidator defines a method for creating a new validator. */ CreateValidator(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** EditValidator defines a method for editing an existing validator. */ EditValidator(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * Delegate defines a method for performing a delegation of coins * from a delegator to a validator. */ Delegate(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * BeginRedelegate defines a method for performing a redelegation * of coins from a delegator and source validator to a destination validator. */ BeginRedelegate(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * Undelegate defines a method for performing an undelegation from a * delegate and a validator. */ Undelegate(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation * and delegate back to previous validator. */ CancelUnbondingDelegation(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * UpdateParams defines an operation for updating the x/staking module * parameters. */ UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); CreateValidator(request: DeepPartial, metadata?: grpc.Metadata): Promise; EditValidator(request: DeepPartial, metadata?: grpc.Metadata): Promise; Delegate(request: DeepPartial, metadata?: grpc.Metadata): Promise; BeginRedelegate(request: DeepPartial, metadata?: grpc.Metadata): Promise; Undelegate(request: DeepPartial, metadata?: grpc.Metadata): Promise; CancelUnbondingDelegation(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgCreateValidatorDesc: UnaryMethodDefinitionish; export declare const MsgEditValidatorDesc: UnaryMethodDefinitionish; export declare const MsgDelegateDesc: UnaryMethodDefinitionish; export declare const MsgBeginRedelegateDesc: UnaryMethodDefinitionish; export declare const MsgUndelegateDesc: UnaryMethodDefinitionish; export declare const MsgCancelUnbondingDelegationDesc: UnaryMethodDefinitionish; export declare const MsgUpdateParamsDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};