Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commission ¶
type Delegation ¶
type Delegation struct { DelegatorAddress string `json:"delegator_address"` ValidatorAddress string `json:"validator_address"` Balance common.Coin `json:"balance"` }
func NewDelegationFromRaw ¶
func NewDelegationFromRaw(item stakingtypes.DelegationResponse) Delegation
type Delegations ¶
type Delegations []Delegation
func NewDelegationsFromRaw ¶
func NewDelegationsFromRaw(items stakingtypes.DelegationResponses) Delegations
type Description ¶
type Validator ¶
type Validator struct { OperatorAddress string `json:"operator_address"` ConsensusPubKey string `json:"consensus_pub_key"` Jailed bool `json:"jailed"` Status string `json:"status"` Tokens int64 `json:"tokens"` Description Description `json:"description"` UnbondingHeight int64 `json:"unbonding_height"` UnbondingTime time.Time `json:"unbonding_time"` Commission Commission `json:"commission"` MinSelfDelegation int64 `json:"min_self_delegation"` ConsensusPower int64 `json:"consensus_power"` }
func NewValidatorFromRaw ¶
func NewValidatorFromRaw(item *stakingtypes.Validator) Validator
type Validators ¶
type Validators []Validator
func NewValidatorsFromRaw ¶
func NewValidatorsFromRaw(items stakingtypes.Validators) Validators
Click to show internal directories.
Click to hide internal directories.