assets

package
v1.0.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 5 Imported by: 9

Documentation

Index

Constants

View Source
const (
	AssetsURL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/"
)

Variables

This section is empty.

Functions

func GetCoinInfo

func GetCoinInfo(coinId int, token string) (info *blockatlas.CoinInfo, err error)

func GetValidators

func GetValidators(api blockatlas.StakeAPI) ([]blockatlas.StakeValidator, error)

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"`
}

type ValidatorPayout

type ValidatorPayout struct {
	Commission float64 `json:"commission"`
}

type ValidatorStatus

type ValidatorStatus struct {
	Disabled bool `json:"disabled"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL