Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/proto/cosmos/staking/v1beta1/staking

Index

Type aliases

DeepPartial

DeepPartial<T>: T extends Builtin ? T : T extends infer U[] ? DeepPartial<U>[] : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {[ K in keyof T]: DeepPartial<T[K]> } : Partial<T>

Type parameters

  • T

Variables

Commission

Commission: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

CommissionRates

CommissionRates: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DVPair

DVPair: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DVPairs

DVPairs: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DVVTriplet

DVVTriplet: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DVVTriplets

DVVTriplets: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Delegation

Delegation: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DelegationResponse

DelegationResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Description

Description: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

HistoricalInfo

HistoricalInfo: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { header?: { version?: { block?: number | undefined; app?: number | undefined; } | undefined; chainId?: string | undefined; height?: number | undefined; time?: Date | undefined; lastBlockId?: { ...; } | undefined; ... 8 more ...; proposerAddress?: Uint8Array | undefined; }; valset?: { operatorAddress?: string | undefined; consensusPubkey?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; } | undefined; jailed?: boolean | undefined; ... 7 more ...; minSelfDelegation?: string | undefined; }[] }): HistoricalInfo
    • Parameters

      • object: { header?: { version?: { block?: number | undefined; app?: number | undefined; } | undefined; chainId?: string | undefined; height?: number | undefined; time?: Date | undefined; lastBlockId?: { ...; } | undefined; ... 8 more ...; proposerAddress?: Uint8Array | undefined; }; valset?: { operatorAddress?: string | undefined; consensusPubkey?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; } | undefined; jailed?: boolean | undefined; ... 7 more ...; minSelfDelegation?: string | undefined; }[] }
        • Optional header?: { version?: { block?: number | undefined; app?: number | undefined; } | undefined; chainId?: string | undefined; height?: number | undefined; time?: Date | undefined; lastBlockId?: { ...; } | undefined; ... 8 more ...; proposerAddress?: Uint8Array | undefined; }
        • Optional valset?: { operatorAddress?: string | undefined; consensusPubkey?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; } | undefined; jailed?: boolean | undefined; ... 7 more ...; minSelfDelegation?: string | undefined; }[]

      Returns HistoricalInfo

  • toJSON: function

Params

Params: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): Params
  • encode: function
    • encode(message: Params, writer?: Writer): Writer
  • fromJSON: function
    • fromJSON(object: any): Params
  • fromPartial: function
    • fromPartial(object: { bondDenom?: string; historicalEntries?: number; maxEntries?: number; maxValidators?: number; unbondingTime?: { seconds?: number | undefined; nanos?: number | undefined; } }): Params
    • Parameters

      • object: { bondDenom?: string; historicalEntries?: number; maxEntries?: number; maxValidators?: number; unbondingTime?: { seconds?: number | undefined; nanos?: number | undefined; } }
        • Optional bondDenom?: string

          bond_denom defines the bondable coin denomination.

        • Optional historicalEntries?: number

          historical_entries is the number of historical entries to persist.

        • Optional maxEntries?: number

          max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).

        • Optional maxValidators?: number

          max_validators is the maximum number of validators.

        • Optional unbondingTime?: { seconds?: number | undefined; nanos?: number | undefined; }

          unbonding_time is the time duration of unbonding.

      Returns Params

  • toJSON: function
    • toJSON(message: Params): unknown

Pool

Pool: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Redelegation

Redelegation: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): Redelegation
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { delegatorAddress?: string; entries?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; }[]; validatorDstAddress?: string; validatorSrcAddress?: string }): Redelegation
    • Parameters

      • object: { delegatorAddress?: string; entries?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; }[]; validatorDstAddress?: string; validatorSrcAddress?: string }
        • Optional delegatorAddress?: string

          delegator_address is the bech32-encoded address of the delegator.

        • Optional entries?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; }[]

          entries are the redelegation entries.

        • Optional validatorDstAddress?: string

          validator_dst_address is the validator redelegation destination operator address.

        • Optional validatorSrcAddress?: string

          validator_src_address is the validator redelegation source operator address.

      Returns Redelegation

  • toJSON: function

RedelegationEntry

RedelegationEntry: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

RedelegationEntryResponse

RedelegationEntryResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

RedelegationResponse

RedelegationResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { entries?: { redelegationEntry?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; } | undefined; balance?: string | undefined; }[]; redelegation?: { delegatorAddress?: string | undefined; validatorSrcAddress?: string | undefined; validatorDstAddress?: string | undefined; entries?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; }[] | undefined; } }): RedelegationResponse
    • Parameters

      • object: { entries?: { redelegationEntry?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; } | undefined; balance?: string | undefined; }[]; redelegation?: { delegatorAddress?: string | undefined; validatorSrcAddress?: string | undefined; validatorDstAddress?: string | undefined; entries?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; }[] | undefined; } }
        • Optional entries?: { redelegationEntry?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; } | undefined; balance?: string | undefined; }[]
        • Optional redelegation?: { delegatorAddress?: string | undefined; validatorSrcAddress?: string | undefined; validatorDstAddress?: string | undefined; entries?: { creationHeight?: number | undefined; completionTime?: Date | undefined; initialBalance?: string | undefined; sharesDst?: string | undefined; }[] | undefined; }

      Returns RedelegationResponse

  • toJSON: function

UnbondingDelegation

UnbondingDelegation: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

UnbondingDelegationEntry

UnbondingDelegationEntry: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

ValAddresses

ValAddresses: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Validator

Validator: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): Validator
  • encode: function
    • encode(message: Validator, writer?: Writer): Writer
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { commission?: { commissionRates?: { rate?: string | undefined; maxRate?: string | undefined; maxChangeRate?: string | undefined; } | undefined; updateTime?: Date | undefined; }; consensusPubkey?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }; delegatorShares?: string; description?: { moniker?: string | undefined; identity?: string | undefined; website?: string | undefined; securityContact?: string | undefined; details?: string | undefined; }; jailed?: boolean; minSelfDelegation?: string; operatorAddress?: string; status?: BondStatus; tokens?: string; unbondingHeight?: number; unbondingTime?: Date }): Validator
    • Parameters

      • object: { commission?: { commissionRates?: { rate?: string | undefined; maxRate?: string | undefined; maxChangeRate?: string | undefined; } | undefined; updateTime?: Date | undefined; }; consensusPubkey?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }; delegatorShares?: string; description?: { moniker?: string | undefined; identity?: string | undefined; website?: string | undefined; securityContact?: string | undefined; details?: string | undefined; }; jailed?: boolean; minSelfDelegation?: string; operatorAddress?: string; status?: BondStatus; tokens?: string; unbondingHeight?: number; unbondingTime?: Date }
        • Optional commission?: { commissionRates?: { rate?: string | undefined; maxRate?: string | undefined; maxChangeRate?: string | undefined; } | undefined; updateTime?: Date | undefined; }

          commission defines the commission parameters.

        • Optional consensusPubkey?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }

          consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.

        • Optional delegatorShares?: string

          delegator_shares defines total shares issued to a validator's delegators.

        • Optional description?: { moniker?: string | undefined; identity?: string | undefined; website?: string | undefined; securityContact?: string | undefined; details?: string | undefined; }

          description defines the description terms for the validator.

        • Optional jailed?: boolean

          jailed defined whether the validator has been jailed from bonded status or not.

        • Optional minSelfDelegation?: string

          min_self_delegation is the validator's self declared minimum self delegation.

        • Optional operatorAddress?: string

          operator_address defines the address of the validator's operator; bech encoded in JSON.

        • Optional status?: BondStatus

          status is the validator status (bonded/unbonding/unbonded).

        • Optional tokens?: string

          tokens define the delegated tokens (incl. self-delegation).

        • Optional unbondingHeight?: number

          unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.

        • Optional unbondingTime?: Date

          unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.

      Returns Validator

  • toJSON: function

Const protobufPackage

protobufPackage: "cosmos.staking.v1beta1" = 'cosmos.staking.v1beta1'

Functions

bondStatusFromJSON

bondStatusToJSON

Generated using TypeDoc