Documentation ¶
Index ¶
- func CalculateTotalEffectiveRPLStake(rp *rocketpool.RocketPool, offset, limit, rplPrice *big.Int, ...) (*big.Int, error)
- func Deposit(rp *rocketpool.RocketPool, minimumNodeFee float64, ...) (*types.Transaction, error)
- func EstimateDepositGas(rp *rocketpool.RocketPool, minimumNodeFee float64, ...) (rocketpool.GasInfo, error)
- func EstimateStakeGas(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, ...) (rocketpool.GasInfo, error)
- func EstimateWithdrawRPLGas(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, ...) (rocketpool.GasInfo, error)
- func GetDepositType(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.CallOpts, ...) (rptypes.MinipoolDeposit, error)
- func GetNodeEffectiveRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetNodeMaximumRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetNodeMinimumRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetNodeMinipoolLimit(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, ...) (uint64, error)
- func GetNodeRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetNodeRPLStakedTime(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, ...) (uint64, error)
- func GetNodeStakingVersion(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (uint8, error)
- func GetTotalEffectiveRPLStake(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (*big.Int, error)
- func GetTotalRPLStake(rp *rocketpool.RocketPool, opts *bind.CallOpts, ...) (*big.Int, error)
- func StakeRPL(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, ...) (common.Hash, error)
- func WithdrawRPL(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, ...) (common.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateTotalEffectiveRPLStake ¶
func CalculateTotalEffectiveRPLStake(rp *rocketpool.RocketPool, offset, limit, rplPrice *big.Int, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Calculate total effective RPL stake
func Deposit ¶
func Deposit(rp *rocketpool.RocketPool, minimumNodeFee float64, validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, salt *big.Int, expectedMinipoolAddress common.Address, opts *bind.TransactOpts, legacyRocketNodeDepositAddress *common.Address) (*types.Transaction, error)
Make a node deposit
func EstimateDepositGas ¶
func EstimateDepositGas(rp *rocketpool.RocketPool, minimumNodeFee float64, validatorPubkey rptypes.ValidatorPubkey, validatorSignature rptypes.ValidatorSignature, depositDataRoot common.Hash, salt *big.Int, expectedMinipoolAddress common.Address, opts *bind.TransactOpts, legacyRocketNodeDepositAddress *common.Address) (rocketpool.GasInfo, error)
Estimate the gas of Deposit
func EstimateStakeGas ¶
func EstimateStakeGas(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, legacyRocketNodeStakingAddress *common.Address) (rocketpool.GasInfo, error)
Estimate the gas of Stake
func EstimateWithdrawRPLGas ¶
func EstimateWithdrawRPLGas(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, legacyRocketNodeStakingAddress *common.Address) (rocketpool.GasInfo, error)
Estimate the gas of WithdrawRPL
func GetDepositType ¶
func GetDepositType(rp *rocketpool.RocketPool, amount *big.Int, opts *bind.CallOpts, legacyRocketNodeDepositAddress *common.Address) (rptypes.MinipoolDeposit, error)
Get the type of a deposit based on the amount
func GetNodeEffectiveRPLStake ¶
func GetNodeEffectiveRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Get a node's effective RPL stake
func GetNodeMaximumRPLStake ¶
func GetNodeMaximumRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Get a node's maximum RPL stake to collateralize their minipools
func GetNodeMinimumRPLStake ¶
func GetNodeMinimumRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Get a node's minimum RPL stake to collateralize their minipools
func GetNodeMinipoolLimit ¶
func GetNodeMinipoolLimit(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (uint64, error)
Get a node's minipool limit based on RPL stake
func GetNodeRPLStake ¶
func GetNodeRPLStake(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Get a node's RPL stake
func GetNodeRPLStakedTime ¶
func GetNodeRPLStakedTime(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (uint64, error)
Get the time a node last staked RPL
func GetNodeStakingVersion ¶
func GetNodeStakingVersion(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (uint8, error)
Get the version of the Node Staking contract
func GetTotalEffectiveRPLStake ¶
func GetTotalEffectiveRPLStake(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Get the effective RPL staked in the network
func GetTotalRPLStake ¶
func GetTotalRPLStake(rp *rocketpool.RocketPool, opts *bind.CallOpts, legacyRocketNodeStakingAddress *common.Address) (*big.Int, error)
Get the total RPL staked in the network
func StakeRPL ¶
func StakeRPL(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, legacyRocketNodeStakingAddress *common.Address) (common.Hash, error)
Stake RPL
func WithdrawRPL ¶
func WithdrawRPL(rp *rocketpool.RocketPool, rplAmount *big.Int, opts *bind.TransactOpts, legacyRocketNodeStakingAddress *common.Address) (common.Hash, error)
Withdraw staked RPL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.