utils

package
v1.5.0-a1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAddress

func GenerateAddress(rp *rocketpool.RocketPool, nodeAddress common.Address, depositType rptypes.MinipoolDeposit, salt *big.Int, minipoolBytecode []byte, legacyRocketMinipoolManagerAddress *common.Address, opts *bind.CallOpts) (common.Address, error)

Precompute the address of a minipool based on the node wallet, deposit type, and unique salt If you set minipoolBytecode to nil, this will retrieve it from the contracts using minipool.GetMinipoolBytecode().

func GetNodeSalt

func GetNodeSalt(nodeAddress common.Address, salt *big.Int) common.Hash

Combine a node's address and a salt to retreive a new salt compatible with depositing

Types

This section is empty.

Jump to

Keyboard shortcuts

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