network

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelegatedInfo added in v1.1.45

func DelegatedInfo(c *gin.Context)

DelegatedInfo is the endpoint that will return the delegated list

func DirectStakedInfo added in v1.1.45

func DirectStakedInfo(c *gin.Context)

DirectStakedInfo is the endpoint that will return the directed staked info list

func EconomicsMetrics added in v1.1.3

func EconomicsMetrics(c *gin.Context)

EconomicsMetrics is the endpoint that will return the economics data such as total supply

func GetEnableEpochs added in v1.2.0

func GetEnableEpochs(c *gin.Context)

GetEnableEpochs returns metrics related to the activation epochs of the network

func GetNetworkConfig added in v1.0.125

func GetNetworkConfig(c *gin.Context)

GetNetworkConfig returns metrics related to the network configuration (shard independent)

func GetNetworkStatus added in v1.0.125

func GetNetworkStatus(c *gin.Context)

GetNetworkStatus returns metrics related to the network status (shard specific)

func Routes

func Routes(router *wrapper.RouterWrapper)

Routes defines address related routes

Types

type FacadeHandler

type FacadeHandler interface {
	GetTotalStakedValue() (*api.StakeValues, error)
	GetDirectStakedList() ([]*api.DirectStakedValue, error)
	GetDelegatorsList() ([]*api.Delegator, error)
	StatusMetrics() external.StatusMetricsHandler
	GetAllIssuedESDTs(tokenType string) ([]string, error)
	GetTokenSupply(token string) (string, error)
	IsInterfaceNil() bool
}

FacadeHandler interface defines methods that can be used by the gin webserver

Jump to

Keyboard shortcuts

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