tzstats

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 Account

type Account struct {
	Address          string  `json:"address"`
	DelegatedBalance float64 `json:"delegated_balance"`
	StakingBalance   float64 `json:"staking_balance"`
	BlocksBaked      int64   `json:"blocks_baked"`
	BlocksMissed     int64   `json:"blocks_missed"`
	SpendableBalance float64 `json:"spendable_balance"`
	FrozenDeposits   float64 `json:"frozen_deposits"`
	FrozenFees       float64 `json:"frozen_fees"`
	IsActiveDelegate bool    `json:"is_active_delegate"`
}

type Config

type Config struct {
	BlockSecurityDeposit       float64 `json:"block_security_deposit"`
	BlocksPerCycle             float64 `json:"blocks_per_cycle"`
	EndorsersPerBlock          float64 `json:"endorsers_per_block"`
	EndorsementSecurityDeposit float64 `json:"endorsement_security_deposit"`
	PreservedCycles            float64 `json:"preserved_cycles"`
	TokensPerRoll              float64 `json:"tokens_per_roll"`
}

type Tip

type Tip struct {
	Cycle int64   `json:"cycle"`
	Rolls float64 `json:"rolls"`
}

Jump to

Keyboard shortcuts

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