storage

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddressQueueStorageLock sync.Mutex

Get contracts

View Source
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"`
}

func Scan added in v1.18.0

func Scan(rp *rocketpool.RocketPool, namespace [32]byte, startIndex *big.Int, count *big.Int, opts *bind.CallOpts) (Slice, error)

Returns a slice of the specified queue along with the next index, starting at the supplied index

Jump to

Keyboard shortcuts

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