Documentation ¶
Index ¶
Constants ¶
View Source
const (
URL = "https://assets.trustwalletapp.com/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
func GetchValidatorsInfo ¶ added in v1.1.15
func GetchValidatorsInfo(coin coin.Coin) (AssetValidators, error)
func (AssetValidators) ToMap ¶ added in v1.1.15
func (av AssetValidators) ToMap() AssetValidatorMap
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.