nta

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinDeposit = new(big.Int).Mul(big.NewInt(10000), big.NewInt(1e18))

Functions

This section is empty.

Types

type NTA

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

func NewNTA

func NewNTA(_ context.Context, databaseClient database.Client, stakingContract *l2.Staking, geoLite2 *geolite2.Client, cacheClient cache.Client, httpClient httputil.Client) *NTA

func (*NTA) BatchGetNodeMinTokensToStakeSnapshots

func (n *NTA) BatchGetNodeMinTokensToStakeSnapshots(c echo.Context) error

func (*NTA) GetBridgeTransaction

func (n *NTA) GetBridgeTransaction(c echo.Context) error

func (*NTA) GetBridgeTransactions

func (n *NTA) GetBridgeTransactions(c echo.Context) error

func (*NTA) GetEndpointConfig added in v0.5.0

func (n *NTA) GetEndpointConfig(c echo.Context) error

GetEndpointConfig returns possible configurations for an endpoint.

func (*NTA) GetEpoch

func (n *NTA) GetEpoch(c echo.Context) error

func (*NTA) GetEpochDistribution

func (n *NTA) GetEpochDistribution(c echo.Context) error

func (*NTA) GetEpochNodeRewards

func (n *NTA) GetEpochNodeRewards(c echo.Context) error

func (*NTA) GetEpochs

func (n *NTA) GetEpochs(c echo.Context) error

func (*NTA) GetEpochsAPY added in v0.4.18

func (n *NTA) GetEpochsAPY(c echo.Context) error

func (*NTA) GetEpochsAPYSnapshots added in v0.4.18

func (n *NTA) GetEpochsAPYSnapshots(c echo.Context) error

func (*NTA) GetNetworks added in v0.4.8

func (n *NTA) GetNetworks(c echo.Context) error

GetNetworks returns all networks supported by the DSL.

func (*NTA) GetNode

func (n *NTA) GetNode(c echo.Context) error

func (*NTA) GetNodeAvatar

func (n *NTA) GetNodeAvatar(c echo.Context) error

func (*NTA) GetNodeChallenge

func (n *NTA) GetNodeChallenge(c echo.Context) error

func (*NTA) GetNodeCountSnapshots

func (n *NTA) GetNodeCountSnapshots(c echo.Context) error

func (*NTA) GetNodeEvents

func (n *NTA) GetNodeEvents(c echo.Context) error

func (*NTA) GetNodeOperationProfit added in v0.5.0

func (n *NTA) GetNodeOperationProfit(c echo.Context) error

func (*NTA) GetNodeOperationProfitSnapshots added in v0.5.0

func (n *NTA) GetNodeOperationProfitSnapshots(c echo.Context) error

func (*NTA) GetNodes

func (n *NTA) GetNodes(c echo.Context) error

func (*NTA) GetStakeChip

func (n *NTA) GetStakeChip(c echo.Context) error

func (*NTA) GetStakeChipImage

func (n *NTA) GetStakeChipImage(c echo.Context) error

TODO: add redis cache

func (*NTA) GetStakeChips

func (n *NTA) GetStakeChips(c echo.Context) error

func (*NTA) GetStakeStakings

func (n *NTA) GetStakeStakings(c echo.Context) error

func (*NTA) GetStakeTransaction

func (n *NTA) GetStakeTransaction(c echo.Context) error

func (*NTA) GetStakeTransactions

func (n *NTA) GetStakeTransactions(c echo.Context) error

func (*NTA) GetStakerCountSnapshots

func (n *NTA) GetStakerCountSnapshots(c echo.Context) error

func (*NTA) GetStakerProfit added in v0.5.18

func (n *NTA) GetStakerProfit(c echo.Context) error

func (*NTA) GetStakerProfitSnapshots added in v0.4.17

func (n *NTA) GetStakerProfitSnapshots(c echo.Context) error

func (*NTA) GetWorkerDetail added in v0.4.17

func (n *NTA) GetWorkerDetail(c echo.Context) error

GetWorkerDetail returns a worker's detail and possible configuration.

func (*NTA) GetWorkersByNetwork added in v0.4.8

func (n *NTA) GetWorkersByNetwork(c echo.Context) error

GetWorkersByNetwork returns all available workers on a specific Network.

func (*NTA) NodeHeartbeat

func (n *NTA) NodeHeartbeat(c echo.Context) error

func (*NTA) PostNodeHideTaxRate

func (n *NTA) PostNodeHideTaxRate(c echo.Context) error

func (*NTA) RegisterNode

func (n *NTA) RegisterNode(c echo.Context) error

Jump to

Keyboard shortcuts

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