Documentation
¶
Index ¶
- func EstimateForceMegapoolExitGas(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (gaslimit.Limits, error)
- func EstimateForceMinipoolExitGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, ...) (gaslimit.Limits, error)
- func EstimatePenaliseMegapoolValidatorGas(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (gaslimit.Limits, error)
- func EstimatePenaliseMinipoolGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, ...) (gaslimit.Limits, error)
- func EstimateRequestMegapoolExitGas(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (gaslimit.Limits, error)
- func EstimateRequestMinipoolExitGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, ...) (gaslimit.Limits, error)
- func EstimateSetVotingDelegateGas(rp *rocketpool.RocketPool, newDelegate common.Address, opts *bind.TransactOpts) (gaslimit.Limits, error)
- func EstimateSubmitBalancesGas(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, ...) (gaslimit.Limits, error)
- func EstimateSubmitPenaltyGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, block *big.Int, ...) (gaslimit.Limits, error)
- func EstimateSubmitPricesGas(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, ...) (gaslimit.Limits, error)
- func ForceMegapoolExit(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (common.Hash, error)
- func ForceMinipoolExit(rp *rocketpool.RocketPool, minipoolAddress common.Address, ...) (common.Hash, error)
- func GetBalancesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
- func GetBalancesBlockRaw(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetBalancesSubmissions(rp *rocketpool.RocketPool, nodeAddress common.Address, fromBlock uint64, ...) (*[]uint64, error)
- func GetCurrentNodeShare(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetCurrentVotingDelegate(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (common.Address, error)
- func GetETHUtilizationRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
- func GetLatestBalancesSubmissions(rp *rocketpool.RocketPool, fromBlock uint64, intervalSize *big.Int, ...) ([]common.Address, error)
- func GetLatestPricesSubmissions(rp *rocketpool.RocketPool, fromBlock uint64, intervalSize *big.Int, ...) ([]common.Address, error)
- func GetMegapoolCooperativeExitStart(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (time.Time, error)
- func GetMinipoolCooperativeExitStart(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (time.Time, error)
- func GetMinipoolLastExit(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (time.Time, error)
- func GetNodeDemand(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetNodeFee(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
- func GetNodeFeeByDemand(rp *rocketpool.RocketPool, nodeDemand *big.Int, opts *bind.CallOpts) (float64, error)
- func GetNodeInfoSnapshotFast(rp *rocketpool.RocketPool, blockNumber uint32, multicallAddress common.Address, ...) ([]types.NodeVotingInfo, error)
- func GetPricesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
- func GetPricesSubmissions(rp *rocketpool.RocketPool, nodeAddress common.Address, fromBlock uint64, ...) (*[]uint64, error)
- func GetRPLPrice(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRequestedEth(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetRocketNetworkVotingVersion(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint8, error)
- func GetStakingETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetTotalETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetTotalRETHSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
- func GetVotingDelegate(rp *rocketpool.RocketPool, address common.Address, blockNumber uint32, ...) (common.Address, error)
- func GetVotingNodeCount(rp *rocketpool.RocketPool, blockNumber uint32, opts *bind.CallOpts) (*big.Int, error)
- func GetVotingPower(rp *rocketpool.RocketPool, address common.Address, blockNumber uint32, ...) (*big.Int, error)
- func PenaliseMegapoolValidator(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (common.Hash, error)
- func PenaliseMinipool(rp *rocketpool.RocketPool, minipoolAddress common.Address, ...) (common.Hash, error)
- func RequestMegapoolExit(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, ...) (common.Hash, error)
- func RequestMinipoolExit(rp *rocketpool.RocketPool, minipoolAddress common.Address, ...) (common.Hash, error)
- func SetVotingDelegate(rp *rocketpool.RocketPool, newDelegate common.Address, opts *bind.TransactOpts) (common.Hash, error)
- func SubmitBalances(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, ...) (common.Hash, error)
- func SubmitPenalty(rp *rocketpool.RocketPool, minipoolAddress common.Address, block *big.Int, ...) (common.Hash, error)
- func SubmitPrices(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, ...) (common.Hash, error)
- type BalancesUpdatedEvent
- type MegapoolExitRequest
- type MinipoolExitRequest
- type PriceUpdatedEvent
- type RevenueSplit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateForceMegapoolExitGas ¶ added in v1.24.0
func EstimateForceMegapoolExitGas(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of ForceMegapoolExit
func EstimateForceMinipoolExitGas ¶ added in v1.24.0
func EstimateForceMinipoolExitGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of ForceMinipoolExit
func EstimatePenaliseMegapoolValidatorGas ¶ added in v1.24.0
func EstimatePenaliseMegapoolValidatorGas(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of PenaliseMegapoolValidator
func EstimatePenaliseMinipoolGas ¶ added in v1.24.0
func EstimatePenaliseMinipoolGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, slotTimestamp uint64, validatorProof megapool.ValidatorProof, slotProof megapool.SlotProof, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of PenaliseMinipool
func EstimateRequestMegapoolExitGas ¶ added in v1.24.0
func EstimateRequestMegapoolExitGas(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of RequestMegapoolExit
func EstimateRequestMinipoolExitGas ¶ added in v1.24.0
func EstimateRequestMinipoolExitGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of RequestMinipoolExit
func EstimateSetVotingDelegateGas ¶
func EstimateSetVotingDelegateGas(rp *rocketpool.RocketPool, newDelegate common.Address, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of SetVotingDelegate
func EstimateSubmitBalancesGas ¶
func EstimateSubmitBalancesGas(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, totalEth, stakingEth, rethSupply *big.Int, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of SubmitBalances
func EstimateSubmitPenaltyGas ¶
func EstimateSubmitPenaltyGas(rp *rocketpool.RocketPool, minipoolAddress common.Address, block *big.Int, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of SubmitPenalty
func EstimateSubmitPricesGas ¶
func EstimateSubmitPricesGas(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, rplPrice *big.Int, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of SubmitPrices
func ForceMegapoolExit ¶ added in v1.24.0
func ForceMegapoolExit(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.TransactOpts) (common.Hash, error)
Force a Megapool validator to exit after the cooperative exit phase
func ForceMinipoolExit ¶ added in v1.24.0
func ForceMinipoolExit(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Force a Minipool to exit after the cooperative exit phase
func GetBalancesBlock ¶
func GetBalancesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
Get the block number which network balances are current for
func GetBalancesBlockRaw ¶
func GetBalancesBlockRaw(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the block number which network balances are current for
func GetBalancesSubmissions ¶
func GetBalancesSubmissions(rp *rocketpool.RocketPool, nodeAddress common.Address, fromBlock uint64, intervalSize *big.Int, opts *bind.CallOpts) (*[]uint64, error)
Returns an array of block numbers for balances submissions the given trusted node has submitted since fromBlock
func GetCurrentNodeShare ¶ added in v1.18.0
func GetCurrentNodeShare(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the current node share
func GetCurrentVotingDelegate ¶
func GetCurrentVotingDelegate(rp *rocketpool.RocketPool, address common.Address, opts *bind.CallOpts) (common.Address, error)
Get the address that the provided node has currently delegated voting power to
func GetETHUtilizationRate ¶
func GetETHUtilizationRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
Get the current network ETH utilization rate
func GetLatestBalancesSubmissions ¶
func GetLatestBalancesSubmissions(rp *rocketpool.RocketPool, fromBlock uint64, intervalSize *big.Int, opts *bind.CallOpts) ([]common.Address, error)
Returns an array of members who submitted a balance since fromBlock
func GetLatestPricesSubmissions ¶
func GetLatestPricesSubmissions(rp *rocketpool.RocketPool, fromBlock uint64, intervalSize *big.Int, opts *bind.CallOpts) ([]common.Address, error)
Returns an array of members who submitted prices since fromBlock
func GetMegapoolCooperativeExitStart ¶ added in v1.24.0
func GetMegapoolCooperativeExitStart(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.CallOpts) (time.Time, error)
Get the start of the cooperative exit phase for a Megapool validator
func GetMinipoolCooperativeExitStart ¶ added in v1.24.0
func GetMinipoolCooperativeExitStart(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (time.Time, error)
Get the start of the cooperative exit phase for a Minipool
func GetMinipoolLastExit ¶ added in v1.24.0
func GetMinipoolLastExit(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.CallOpts) (time.Time, error)
Get the timestamp of the last exit request for a Minipool (or zero time if never requested)
func GetNodeDemand ¶
func GetNodeDemand(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the current network node demand in ETH
func GetNodeFee ¶
func GetNodeFee(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)
Get the current network node commission rate
func GetNodeFeeByDemand ¶
func GetNodeFeeByDemand(rp *rocketpool.RocketPool, nodeDemand *big.Int, opts *bind.CallOpts) (float64, error)
Get the network node fee for a node demand value
func GetNodeInfoSnapshotFast ¶
func GetNodeInfoSnapshotFast(rp *rocketpool.RocketPool, blockNumber uint32, multicallAddress common.Address, opts *bind.CallOpts) ([]types.NodeVotingInfo, error)
Gets the voting power and delegation info for every node at the specified block using multicall
func GetPricesBlock ¶
func GetPricesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)
Get the block number which network prices are current for
func GetPricesSubmissions ¶
func GetPricesSubmissions(rp *rocketpool.RocketPool, nodeAddress common.Address, fromBlock uint64, intervalSize *big.Int, opts *bind.CallOpts) (*[]uint64, error)
Returns an array of block numbers for prices submissions the given trusted node has submitted since fromBlock
func GetRPLPrice ¶
func GetRPLPrice(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the current network RPL price in ETH
func GetRequestedEth ¶ added in v1.24.0
func GetRequestedEth(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the amount of ETH currently requested to exit
func GetRocketNetworkVotingVersion ¶
func GetRocketNetworkVotingVersion(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint8, error)
Get the version of the Rocket Network Voting Contract
func GetStakingETHBalance ¶
func GetStakingETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the current network staking ETH balance
func GetTotalETHBalance ¶
func GetTotalETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the current network total ETH balance
func GetTotalRETHSupply ¶
func GetTotalRETHSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)
Get the current network total rETH supply
func GetVotingDelegate ¶
func GetVotingDelegate(rp *rocketpool.RocketPool, address common.Address, blockNumber uint32, opts *bind.CallOpts) (common.Address, error)
Get the address that the provided node has delegated voting power to on the given block
func GetVotingNodeCount ¶
func GetVotingNodeCount(rp *rocketpool.RocketPool, blockNumber uint32, opts *bind.CallOpts) (*big.Int, error)
Get the number of nodes that were present in the network at the provided block
func GetVotingPower ¶
func GetVotingPower(rp *rocketpool.RocketPool, address common.Address, blockNumber uint32, opts *bind.CallOpts) (*big.Int, error)
Get the voting power of the given node on the provided block
func PenaliseMegapoolValidator ¶ added in v1.24.0
func PenaliseMegapoolValidator(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.TransactOpts) (common.Hash, error)
Penalise a megapool validator that failed to exit within the cooperative exit phase
func PenaliseMinipool ¶ added in v1.24.0
func PenaliseMinipool(rp *rocketpool.RocketPool, minipoolAddress common.Address, slotTimestamp uint64, validatorProof megapool.ValidatorProof, slotProof megapool.SlotProof, opts *bind.TransactOpts) (common.Hash, error)
Penalise a Minipool that failed to exit cooperatively (or force-exits if the delegate supports it)
func RequestMegapoolExit ¶ added in v1.24.0
func RequestMegapoolExit(rp *rocketpool.RocketPool, megapoolAddress common.Address, validatorId uint32, opts *bind.TransactOpts) (common.Hash, error)
Request a Megapool validator to exit cooperatively
func RequestMinipoolExit ¶ added in v1.24.0
func RequestMinipoolExit(rp *rocketpool.RocketPool, minipoolAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Request a Minipool to exit cooperatively
func SetVotingDelegate ¶
func SetVotingDelegate(rp *rocketpool.RocketPool, newDelegate common.Address, opts *bind.TransactOpts) (common.Hash, error)
Set the voting delegate for the node
func SubmitBalances ¶
func SubmitBalances(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, totalEth, stakingEth, rethSupply *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Submit network balances for an epoch
func SubmitPenalty ¶
func SubmitPenalty(rp *rocketpool.RocketPool, minipoolAddress common.Address, block *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Submit penalty for given minipool
func SubmitPrices ¶
func SubmitPrices(rp *rocketpool.RocketPool, block uint64, slotTimestamp uint64, rplPrice *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Submit network prices and total effective RPL stake for an epoch
Types ¶
type BalancesUpdatedEvent ¶
type BalancesUpdatedEvent struct {
BlockNumber *big.Int `json:"blockNumber"`
SlotTimestamp *big.Int `json:"slotTimestamp"`
TotalEth *big.Int `json:"totalEth"`
StakingEth *big.Int `json:"stakingEth"`
RethSupply *big.Int `json:"rethSupply"`
BlockTimestamp *big.Int `json:"blockTimestamp"`
}
Info for a balances updated event
func GetBalancesUpdatedEvent ¶
func GetBalancesUpdatedEvent(rp *rocketpool.RocketPool, blockNumber uint64, opts *bind.CallOpts) (bool, BalancesUpdatedEvent, error)
type MegapoolExitRequest ¶ added in v1.24.0
type MegapoolExitRequest struct {
MegapoolAddress common.Address `json:"megapoolAddress"`
ValidatorId uint32 `json:"validatorId"`
Pubkey types.ValidatorPubkey `json:"pubkey"`
RequestTimestamp uint64 `json:"requestTimestamp"`
BlockNumber uint64 `json:"blockNumber"`
}
A MegapoolExitRequested event from rocketNetworkExit
func GetMegapoolExitRequests ¶ added in v1.24.0
func GetMegapoolExitRequests(rp *rocketpool.RocketPool, intervalSize *big.Int, fromBlock *big.Int, toBlock *big.Int, opts *bind.CallOpts) ([]MegapoolExitRequest, error)
Get MegapoolExitRequested events emitted during the given block range
type MinipoolExitRequest ¶ added in v1.24.0
type MinipoolExitRequest struct {
MinipoolAddress common.Address `json:"minipoolAddress"`
Pubkey types.ValidatorPubkey `json:"pubkey"`
RequestTimestamp uint64 `json:"requestTimestamp"`
BlockNumber uint64 `json:"blockNumber"`
}
A MinipoolExitRequested event from rocketNetworkExit
func GetMinipoolExitRequests ¶ added in v1.24.0
func GetMinipoolExitRequests(rp *rocketpool.RocketPool, intervalSize *big.Int, fromBlock *big.Int, toBlock *big.Int, opts *bind.CallOpts) ([]MinipoolExitRequest, error)
Get MinipoolExitRequested events emitted during the given block range
type PriceUpdatedEvent ¶
type PriceUpdatedEvent struct {
BlockNumber *big.Int `json:"blockNumber"`
SlotTimestamp *big.Int `json:"slotTimestamp"`
RplPrice *big.Int `json:"rplPrice"`
Time *big.Int `json:"time"`
}
Info for a price updated event
func GetPriceUpdatedEvent ¶
func GetPriceUpdatedEvent(rp *rocketpool.RocketPool, blockNumber uint64, opts *bind.CallOpts) (bool, PriceUpdatedEvent, error)
Get the event info for a price update
type RevenueSplit ¶ added in v1.18.0
type RevenueSplit struct {
}
func CalculateSplit ¶ added in v1.18.0
func CalculateSplit(rp *rocketpool.RocketPool, sinceBlock uint64, opts *bind.CallOpts) (RevenueSplit, error)
Calculates the time-weighted average revenue split values between the supplied block number and now