Documentation ¶
Index ¶
Constants ¶
View Source
const (
AssetsURL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/"
)
Variables ¶
This section is empty.
Functions ¶
func GetValidatorsMap ¶
func GetValidatorsMap(api blockatlas.StakeAPI) (blockatlas.ValidatorMap, error)
Types ¶
type AssetValidator ¶
type AssetValidator struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Website string `json:"website"` Payout ValidatorPayout `json:"payout,omitempty"` Status ValidatorStatus `json:"status,omitempty"` Staking StakingInfo `json:"staking,omitempty"` }
type AssetValidatorMap ¶ added in v1.1.0
type AssetValidatorMap map[string]AssetValidator
type AssetValidators ¶ added in v1.1.0
type AssetValidators []AssetValidator
type StakingInfo ¶ added in v1.1.0
type StakingInfo struct {
MinDelegation float64 `json:"minDelegation"`
}
type ValidatorPayout ¶
type ValidatorPayout struct {
Commission float64 `json:"commission"`
}
type ValidatorStatus ¶
type ValidatorStatus struct {
Disabled bool `json:"disabled"`
}
Click to show internal directories.
Click to hide internal directories.