mytezosbaker

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: 8 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 {
	Rank                int     `json:"rank"`
	BakerName           string  `json:"baker_name"`
	DelegationCode      string  `json:"delegation_code"`
	Fee                 float64 `json:"fee,string"`
	BakerEfficiency     float64 `json:"baker_efficiency"`
	AvailableCapacity   float64 `json:"available_capacity,string"`
	NominalStakingYield string  `json:"nominal_staking_yield"`
	RealStakingYield    string  `json:"real_staking_yield"`
}

type BakerResponse

type BakerResponse struct {
	Bakers []Baker `json:"bakers"`
}

Jump to

Keyboard shortcuts

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