Documentation
¶
Index ¶
- Variables
- func ConfirmWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
- func EstimateConfirmWithdrawalAddressGas(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
- func EstimateSetWithdrawalAddressGas(rp *rocketpool.RocketPool, nodeAddress common.Address, ...) (rocketpool.GasInfo, error)
- func GetAddressQueueIndexOf(rp *rocketpool.RocketPool, opts *bind.CallOpts, key [32]byte, ...) (int64, error)
- func GetAddressQueueItem(rp *rocketpool.RocketPool, opts *bind.CallOpts, key [32]byte, index *big.Int) (common.Address, error)
- func GetAddressQueueLength(rp *rocketpool.RocketPool, opts *bind.CallOpts, key [32]byte) (uint64, error)
- func GetDeployBlock(rp *rocketpool.RocketPool) (*big.Int, error)
- func GetListLength(rp *rocketpool.RocketPool, namespace [32]byte, opts *bind.CallOpts) (*big.Int, error)
- func GetListQueueIndexOf(rp *rocketpool.RocketPool, namespace [32]byte, value DepositQueueValue, ...) (*big.Int, error)
- func GetNodePendingWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (common.Address, error)
- func GetNodeWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (common.Address, error)
- func SetWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, ...) (common.Hash, error)
- type DepositQueueValue
- type Slice
Constants ¶
This section is empty.
Variables ¶
var AddressQueueStorageLock sync.Mutex
Get contracts
var LinkedListStorageLock sync.Mutex
Get contracts
Functions ¶
func ConfirmWithdrawalAddress ¶
func ConfirmWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Set a node's withdrawal address
func EstimateConfirmWithdrawalAddressGas ¶
func EstimateConfirmWithdrawalAddressGas(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of ConfirmWithdrawalAddress
func EstimateSetWithdrawalAddressGas ¶
func EstimateSetWithdrawalAddressGas(rp *rocketpool.RocketPool, nodeAddress common.Address, withdrawalAddress common.Address, confirm bool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of SetWithdrawalAddress
func GetAddressQueueIndexOf ¶
func GetAddressQueueIndexOf(rp *rocketpool.RocketPool, opts *bind.CallOpts, key [32]byte, address common.Address) (int64, error)
Return index of the input address for the given key. -1 if not present.
func GetAddressQueueItem ¶
func GetAddressQueueItem(rp *rocketpool.RocketPool, opts *bind.CallOpts, key [32]byte, index *big.Int) (common.Address, error)
Return address item at index for the given key
func GetAddressQueueLength ¶
func GetAddressQueueLength(rp *rocketpool.RocketPool, opts *bind.CallOpts, key [32]byte) (uint64, error)
Return the length of all addresses matching the given key in the queue
func GetDeployBlock ¶
func GetDeployBlock(rp *rocketpool.RocketPool) (*big.Int, error)
Get the number of the block that Rocket Pool was deployed on
func GetListLength ¶ added in v1.18.0
func GetListLength(rp *rocketpool.RocketPool, namespace [32]byte, opts *bind.CallOpts) (*big.Int, error)
Return the number of items in queue
func GetListQueueIndexOf ¶ added in v1.18.0
func GetListQueueIndexOf(rp *rocketpool.RocketPool, namespace [32]byte, value DepositQueueValue, opts *bind.CallOpts) (*big.Int, error)
Returns the index of an item in queue. Returns 0 if the value is not found
func GetNodePendingWithdrawalAddress ¶
func GetNodePendingWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (common.Address, error)
Get a node's pending withdrawal address
func GetNodeWithdrawalAddress ¶
func GetNodeWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, opts *bind.CallOpts) (common.Address, error)
Get a node's withdrawal address
func SetWithdrawalAddress ¶
func SetWithdrawalAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, withdrawalAddress common.Address, confirm bool, opts *bind.TransactOpts) (common.Hash, error)
Set a node's withdrawal address
Types ¶
type DepositQueueValue ¶ added in v1.18.0
type DepositQueueValue struct {
Receiver common.Address `abi:"receiver"`
ValidatorID uint32 `abi:"validatorId"`
SuppliedValue uint32 `abi:"suppliedValue"`
RequestedValue uint32 `abi:"requestedValue"`
}
func GetListItem ¶ added in v1.18.0
func GetListItem(rp *rocketpool.RocketPool, namespace [32]byte, index *big.Int, opts *bind.CallOpts) (DepositQueueValue, error)
Return the item in queue by index
func PeekListItem ¶ added in v1.18.0
func PeekListItem(rp *rocketpool.RocketPool, namespace [32]byte, opts *bind.CallOpts) (DepositQueueValue, error)
Returns the item from the start of the queue without removing it
type Slice ¶ added in v1.18.0
type Slice struct {
Entries []DepositQueueValue `abi:"entries"`
NextIndex *big.Int `abi:"nextIndex"`
}