Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExRateFromStakeTokenToMainUnit ¶
func ExRateFromStakeTokenToMainUnit(cliCtx context.CLIContext) sdk.Rat
Types ¶
type DelegationOutput ¶
type DelegationOutput struct { DelegatorAddr sdk.AccAddress `json:"delegator_addr"` ValidatorAddr sdk.AccAddress `json:"validator_addr"` Height int64 `json:"height"` }
defines a delegation without type Rat for shares
func ConvertDelegationToDelegationOutput ¶
func ConvertDelegationToDelegationOutput(cliCtx context.CLIContext, delegation stake.Delegation) DelegationOutput
func (DelegationOutput) HumanReadableString ¶
func (d DelegationOutput) HumanReadableString() (string, error)
type RedelegationOutput ¶
type RedelegationOutput struct { DelegatorAddr sdk.AccAddress `json:"delegator_addr"` // delegator ValidatorSrcAddr sdk.AccAddress `json:"validator_src_addr"` // validator redelegation source owner addr ValidatorDstAddr sdk.AccAddress `json:"validator_dst_addr"` // validator redelegation destination owner addr CreationHeight int64 `json:"creation_height"` // height which the redelegation took place MinTime time.Time `json:"min_time"` // unix time for redelegation completion InitialBalance string `json:"initial_balance"` // initial balance when redelegation started Balance string `json:"balance"` // current balance }
func ConvertREDToREDOutput ¶
func ConvertREDToREDOutput(cliCtx context.CLIContext, red stake.Redelegation) RedelegationOutput
func (RedelegationOutput) HumanReadableString ¶
func (d RedelegationOutput) HumanReadableString() (string, error)
type UnbondingDelegationOutput ¶
type UnbondingDelegationOutput struct { DelegatorAddr sdk.AccAddress `json:"delegator_addr"` // delegator ValidatorAddr sdk.AccAddress `json:"validator_addr"` // validator unbonding from owner addr CreationHeight int64 `json:"creation_height"` // height which the unbonding took place MinTime time.Time `json:"min_time"` // unix time for unbonding completion InitialBalance string `json:"initial_balance"` // atoms initially scheduled to receive at completion Balance string `json:"balance"` // atoms to receive at completion }
UnbondingDelegation reflects a delegation's passive unbonding queue.
func ConvertUBDToUBDOutput ¶
func ConvertUBDToUBDOutput(cliCtx context.CLIContext, ubd stake.UnbondingDelegation) UnbondingDelegationOutput
func (UnbondingDelegationOutput) HumanReadableString ¶
func (d UnbondingDelegationOutput) HumanReadableString() (string, error)
type ValidatorOutput ¶
type ValidatorOutput struct { Owner sdk.AccAddress `json:"owner"` // in bech32 PubKey string `json:"pub_key"` // in bech32 Revoked bool `json:"revoked"` // has the validator been revoked from bonded status? Status sdk.BondStatus `json:"status"` // validator status (bonded/unbonding/unbonded) Tokens string `json:"tokens"` // delegated tokens (incl. self-delegation) Description stake.Description `json:"description"` // description terms for the validator BondHeight int64 `json:"bond_height"` // earliest height as a bonded validator BondIntraTxCounter int16 `json:"bond_intra_tx_counter"` // block-local tx index of validator change ProposerRewardPool []string `json:"proposer_reward_pool"` // XXX reward pool collected from being the proposer Commission sdk.Rat `json:"commission"` // XXX the commission rate of fees charged to any delegators CommissionMax sdk.Rat `json:"commission_max"` // XXX maximum commission rate which this validator can ever charge CommissionChangeRate sdk.Rat `json:"commission_change_rate"` // XXX maximum daily increase of the validator commission CommissionChangeToday sdk.Rat `json:"commission_change_today"` // XXX commission rate change today, reset each day (UTC time) // fee related LastBondedTokens sdk.Rat `json:"prev_bonded_shares"` // last bonded token amount }
func ConvertValidatorToValidatorOutput ¶
func ConvertValidatorToValidatorOutput(cliCtx context.CLIContext, v stake.Validator) (ValidatorOutput, error)
func (ValidatorOutput) HumanReadableString ¶
func (v ValidatorOutput) HumanReadableString() (string, error)
Click to show internal directories.
Click to hide internal directories.