Documentation
¶
Overview ¶
Package v036 is used for legacy migration scripts. Actual migration scripts for v036 have been removed, but the v039->v042 migration script still references types from this file, so we're keeping it for now. DONTCOVER
Index ¶
Constants ¶
View Source
const (
ModuleName = "staking"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commission ¶
type Commission struct {
CommissionRates `json:"commission_rates" yaml:"commission_rates"`
UpdateTime time.Time `json:"update_time" yaml:"update_time"`
}
type CommissionRates ¶
type GenesisState ¶
type GenesisState struct {
Params v034staking.Params `json:"params"`
LastTotalPower sdk.Int `json:"last_total_power"`
LastValidatorPowers []v034staking.LastValidatorPower `json:"last_validator_powers"`
Validators Validators `json:"validators"`
Delegations v034staking.Delegations `json:"delegations"`
UnbondingDelegations []v034staking.UnbondingDelegation `json:"unbonding_delegations"`
Redelegations []v034staking.Redelegation `json:"redelegations"`
Exported bool `json:"exported"`
}
func NewGenesisState ¶
func NewGenesisState( params v034staking.Params, lastTotalPower sdk.Int, lastValPowers []v034staking.LastValidatorPower, validators Validators, delegations v034staking.Delegations, ubds []v034staking.UnbondingDelegation, reds []v034staking.Redelegation, exported bool, ) GenesisState
type Validator ¶
type Validator struct {
OperatorAddress sdk.ValAddress `json:"operator_address" yaml:"operator_address"`
ConsPubKey cryptotypes.PubKey `json:"consensus_pubkey" yaml:"consensus_pubkey"`
Jailed bool `json:"jailed" yaml:"jailed"`
Status v034staking.BondStatus `json:"status" yaml:"status"`
Tokens sdk.Int `json:"tokens" yaml:"tokens"`
Description v034staking.Description `json:"description" yaml:"description"`
UnbondingHeight int64 `json:"unbonding_height" yaml:"unbonding_height"`
UnbondingCompletionTime time.Time `json:"unbonding_time" yaml:"unbonding_time"`
Commission Commission `json:"commission" yaml:"commission"`
MinSelfDelegation sdk.Int `json:"min_self_delegation" yaml:"min_self_delegation"`
}
func (Validator) MarshalJSON ¶
func (*Validator) UnmarshalJSON ¶
type Validators ¶
type Validators []Validator
Click to show internal directories.
Click to hide internal directories.