network

package
v1.1.51 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: GPL-3.0 Imports: 8 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 GetAllIssuedESDTs added in v1.1.42

func GetAllIssuedESDTs(c *gin.Context)

GetAllIssuedESDTs returns all the issued esdts from the metachain

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() ([]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