network

package
v0.0.0-...-a5a7577 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstimateSubmitBalancesGas

func EstimateSubmitBalancesGas(rp *stader.PermissionlessNodeRegistryContractManager, block uint64, totalEth, stakingEth, rethSupply *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of SubmitBalances

func EstimateSubmitPenaltyGas

func EstimateSubmitPenaltyGas(rp *stader.PermissionlessNodeRegistryContractManager, minipoolAddress common.Address, block *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of SubmitPenalty

func EstimateSubmitPricesGas

func EstimateSubmitPricesGas(rp *stader.PermissionlessNodeRegistryContractManager, block uint64, rplPrice *big.Int, effectiveRplStake *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of SubmitPrices

func GetBalancesBlock

Get the block number which network balances are current for

func GetETHUtilizationRate

func GetETHUtilizationRate(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (float64, error)

Get the current network ETH utilization rate

func GetLatestReportableBalancesBlock

func GetLatestReportableBalancesBlock(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Returns the latest block number that oracles should be reporting balances for

func GetLatestReportablePricesBlock

func GetLatestReportablePricesBlock(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Returns the latest block number that oracles should be reporting prices for

func GetNodeDemand

Get the current network node demand in ETH

func GetNodeFee

Get the current network node commission rate

func GetNodeFeeByDemand

func GetNodeFeeByDemand(rp *stader.PermissionlessNodeRegistryContractManager, nodeDemand *big.Int, opts *bind.CallOpts) (float64, error)

Get the network node fee for a node demand value

func GetPricesBlock

Get the block number which network prices are current for

func GetRPLPrice

Get the current network RPL price in ETH

func GetStakingETHBalance

func GetStakingETHBalance(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the current network staking ETH balance

func GetTotalETHBalance

func GetTotalETHBalance(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the current network total ETH balance

func GetTotalRETHSupply

func GetTotalRETHSupply(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the current network total rETH supply

func InConsensus

Check if the network is currently in consensus about the RPL price, or if it is still reaching consensus

func SubmitBalances

func SubmitBalances(rp *stader.PermissionlessNodeRegistryContractManager, block uint64, totalEth, stakingEth, rethSupply *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Submit network balances for an epoch

func SubmitPenalty

func SubmitPenalty(rp *stader.PermissionlessNodeRegistryContractManager, minipoolAddress common.Address, block *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Submit penalty for given minipool

func SubmitPrices

func SubmitPrices(rp *stader.PermissionlessNodeRegistryContractManager, block uint64, rplPrice, effectiveRplStake *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Submit network prices and total effective RPL stake for an epoch

Types

This section is empty.

Jump to

Keyboard shortcuts

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