nta

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 41 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 DslTotalRequestsResponse added in v0.6.23

type DslTotalRequestsResponse struct {
	TotalRequests int64 `json:"total_requests"`
}

type GetTokensSupplyResponse added in v0.7.0

type GetTokensSupplyResponse struct {
	TotalSupply decimal.Decimal `json:"total_supply"`
}

type GetTvlResponse added in v0.7.0

type GetTvlResponse struct {
	Tvl decimal.Decimal `json:"tvl"`
}

type NTA

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

func NewNTA

func NewNTA(_ context.Context, configFile *config.File, databaseClient database.Client, stakingContract *l2.StakingV2MulticallClient, networkParamsContract *l2.NetworkParams, contractGovernanceToken *bindings.GovernanceToken, geoLite2 *geolite2.Client, cacheClient cache.Client, httpClient httputil.Client, erc20TokenMap map[common.Address]*bindings.GovernanceToken, chainL1ID, chainL2ID uint64) *NTA

func (*NTA) GetAssets added in v0.6.17

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

GetAssets returns all assets supported by the DSL.

func (*NTA) GetBridgeTransaction

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

func (*NTA) GetBridgeTransactions

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

func (*NTA) GetDslTotalRequests added in v0.6.23

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

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) GetNetworkConfig added in v0.8.0

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

GetNetworkConfig returns the network configuration for the current epoch.

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) GetStakingStat added in v0.6.4

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

func (*NTA) GetTokenSupply added in v0.7.0

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

func (*NTA) GetTvl added in v0.7.0

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

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

type TokenPrice added in v0.7.0

type TokenPrice struct {
	Data struct {
		ID         string `json:"id"`
		Type       string `json:"type"`
		Attributes struct {
			TokenPrices map[string]string `json:"token_prices"`
		} `json:"attributes"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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