bakingbad

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New() *API

func (*API) GetBakers

func (api *API) GetBakers() (thirdPartyBakers []models.ThirdPartyBaker, err error)

type Baker

type Baker struct {
	Address           string  `json:"address"`
	Name              string  `json:"name"`
	Balance           float64 `json:"balance"`
	StakingBalance    float64 `json:"stakingBalance"`
	StakingCapacity   float64 `json:"stakingCapacity"`
	MaxStakingBalance float64 `json:"maxStakingBalance"`
	FreeSpace         float64 `json:"freeSpace"`
	Fee               float64 `json:"fee"`
	MinDelegation     float64 `json:"minDelegation"`
	EstimatedRoi      float64 `json:"estimatedRoi"`
	PayoutAccuracy    string  `json:"payoutAccuracy"`
	InsuranceCoverage float64 `json:"insuranceCoverage"`
}

Jump to

Keyboard shortcuts

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