Documentation ¶
Overview ¶
DONTCOVER nolint
Index ¶
Constants ¶
View Source
const ( Unbonded BondStatus = 0x00 Unbonding BondStatus = 0x01 Bonded BondStatus = 0x02 BondStatusUnbonded = "Unbonded" BondStatusUnbonding = "Unbonding" BondStatusBonded = "Bonded" )
staking constants
View Source
const (
ModuleName = "staking"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commission ¶
type Delegation ¶
type Delegation struct { DelegatorAddress sdk.AccAddress `json:"delegator_address"` ValidatorAddress sdk.ValAddress `json:"validator_address"` }
type Delegations ¶
type Delegations []Delegation
type Description ¶
type GenesisState ¶
type GenesisState struct { Pool Pool `json:"pool"` Params Params `json:"params"` LastTotalPower sdk.Int `json:"last_total_power"` LastValidatorPowers []LastValidatorPower `json:"last_validator_powers"` Validators Validators `json:"validators"` Delegations Delegations `json:"delegations"` UnbondingDelegations []UnbondingDelegation `json:"unbonding_delegations"` Redelegations []Redelegation `json:"redelegations"` Exported bool `json:"exported"` }
type LastValidatorPower ¶
type LastValidatorPower struct { Address sdk.ValAddress Power int64 }
type Redelegation ¶
type Redelegation struct { DelegatorAddress sdk.AccAddress `json:"delegator_address"` ValidatorSrcAddress sdk.ValAddress `json:"validator_src_address"` ValidatorDstAddress sdk.ValAddress `json:"validator_dst_address"` Entries []RedelegationEntry `json:"entries"` }
type RedelegationEntry ¶
type UnbondingDelegation ¶
type UnbondingDelegation struct { DelegatorAddress sdk.AccAddress `json:"delegator_address"` ValidatorAddress sdk.ValAddress `json:"validator_address"` Entries []UnbondingDelegationEntry `json:"entries"` }
type Validator ¶
type Validator struct { OperatorAddress sdk.ValAddress `json:"operator_address"` ConsPubKey crypto.PubKey `json:"consensus_pubkey"` Jailed bool `json:"jailed"` Status BondStatus `json:"status"` Tokens sdk.Int `json:"tokens"` Description Description `json:"description"` UnbondingHeight int64 `json:"unbonding_height"` UnbondingCompletionTime time.Time `json:"unbonding_time"` Commission Commission `json:"commission"` MinSelfDelegation sdk.Int `json:"min_self_delegation"` }
func (Validator) MarshalJSON ¶
func (*Validator) UnmarshalJSON ¶
UnmarshalJSON unmarshals the validator from JSON using Bech32
type Validators ¶
type Validators []Validator
Click to show internal directories.
Click to hide internal directories.