Documentation ¶
Index ¶
- Constants
- type ConstellationNode
- func (n *ConstellationNode) Close() error
- func (n *ConstellationNode) CreateSubNode(hdNode *hdtesting.HyperdriveNode, address string, port uint16) (*ConstellationNode, error)
- func (n *ConstellationNode) GetApiClient() *csclient.ApiClient
- func (n *ConstellationNode) GetHyperdriveNode() *hdtesting.HyperdriveNode
- func (n *ConstellationNode) GetServerManager() *csserver.ServerManager
- func (n *ConstellationNode) GetServiceProvider() cscommon.IConstellationServiceProvider
- type ConstellationTestManager
- func (m *ConstellationTestManager) Close() error
- func (m *ConstellationTestManager) Constellation_DepositToRplVault(rplVault contracts.IErc4626Token, amount *big.Int, ...) error
- func (m *ConstellationTestManager) Constellation_DepositToWethVault(weth *contracts.Weth, wethVault contracts.IErc4626Token, amount *big.Int, ...) error
- func (m *ConstellationTestManager) GetNode() *ConstellationNode
- func (m *ConstellationTestManager) MineTx(t *testing.T, txInfo *eth.TransactionInfo, opts *bind.TransactOpts, ...)
- func (m *ConstellationTestManager) MineTxBeforeTest(txInfo *eth.TransactionInfo, opts *bind.TransactOpts) error
- func (m *ConstellationTestManager) MineTxViaHyperdrive(hdClient *hdclient.ApiClient, txInfo *eth.TransactionInfo) error
- func (m *ConstellationTestManager) RocketPool_CreateOracleDaoNodes(details []OracleDaoNodeCreationDetails, owner *bind.TransactOpts) ([]*node.Node, error)
- func (m *ConstellationTestManager) RocketPool_CreateOracleDaoNodesWithDefaults(keygen *keys.KeyGenerator, chainID *big.Int, indices []uint, ...) ([]*node.Node, []*bind.TransactOpts, error)
- func (m *ConstellationTestManager) RocketPool_MintLegacyRpl(receiver common.Address, amount *big.Int, owner *bind.TransactOpts) (*eth.TransactionInfo, error)
- func (m *ConstellationTestManager) RocketPool_RegisterNodes(timezones []string, opts []*bind.TransactOpts) ([]*node.Node, error)
- type OracleDaoNodeCreationDetails
Constants ¶
const ( // Address of the Directory contract DirectoryAddress string = "0x71C95911E9a5D330f4D621842EC243EE1343292e" // Address of RocketStorage RocketStorageAddress string = "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512" // Address of RocketSmoothingPool SmoothingPoolAddress string = "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF" // Address of the rETH token RethAddress string = "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707" // Address of the RPL token RplAddress string = "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" // Multicall address MulticallAddress string = "0x05Aa229Aec102f78CE0E852A812a388F076Aa555" // Balance batcher address BalanceBatcherAddressString string = "0x0b48aF34f4c854F5ae1A3D587da471FeA45bAD52" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstellationNode ¶
type ConstellationNode struct {
// contains filtered or unexported fields
}
A complete Constellation node instance
func (*ConstellationNode) Close ¶
func (n *ConstellationNode) Close() error
Closes the Constellation node. The caller is responsible for stopping the Hyperdrive daemon owning this module.
func (*ConstellationNode) CreateSubNode ¶
func (n *ConstellationNode) CreateSubNode(hdNode *hdtesting.HyperdriveNode, address string, port uint16) (*ConstellationNode, error)
Create a new Constellation node based on this one's configuration, but with a custom folder, address, and port.
func (*ConstellationNode) GetApiClient ¶
func (n *ConstellationNode) GetApiClient() *csclient.ApiClient
Get the HTTP API client for interacting with the node's daemon server
func (*ConstellationNode) GetHyperdriveNode ¶
func (n *ConstellationNode) GetHyperdriveNode() *hdtesting.HyperdriveNode
Get the Hyperdrive node for this Constellation module
func (*ConstellationNode) GetServerManager ¶
func (n *ConstellationNode) GetServerManager() *csserver.ServerManager
Get the HTTP API server for the node's daemon
func (*ConstellationNode) GetServiceProvider ¶
func (n *ConstellationNode) GetServiceProvider() cscommon.IConstellationServiceProvider
Get the daemon's service provider
type ConstellationTestManager ¶
type ConstellationTestManager struct { *hdtesting.HyperdriveTestManager // contains filtered or unexported fields }
ConstellationTestManager for managing testing resources and services
func NewConstellationTestManager ¶
func NewConstellationTestManager() (*ConstellationTestManager, error)
Creates a new TestManager instance
func (*ConstellationTestManager) Close ¶
func (m *ConstellationTestManager) Close() error
Closes the test manager, shutting down the nodeset mock server and all other resources
func (*ConstellationTestManager) Constellation_DepositToRplVault ¶
func (m *ConstellationTestManager) Constellation_DepositToRplVault(rplVault contracts.IErc4626Token, amount *big.Int, depositOpts *bind.TransactOpts, owner *bind.TransactOpts) error
Mint RPL and deposit it into the RPL Vault
func (*ConstellationTestManager) Constellation_DepositToWethVault ¶
func (m *ConstellationTestManager) Constellation_DepositToWethVault(weth *contracts.Weth, wethVault contracts.IErc4626Token, amount *big.Int, opts *bind.TransactOpts) error
Swap ETH for WETH and deposit it into the WETH Vault
func (*ConstellationTestManager) GetNode ¶
func (m *ConstellationTestManager) GetNode() *ConstellationNode
Get the Constellation node handle
func (*ConstellationTestManager) MineTx ¶
func (m *ConstellationTestManager) MineTx(t *testing.T, txInfo *eth.TransactionInfo, opts *bind.TransactOpts, logMessage string)
Mines a new block with the provided transaction
func (*ConstellationTestManager) MineTxBeforeTest ¶
func (m *ConstellationTestManager) MineTxBeforeTest(txInfo *eth.TransactionInfo, opts *bind.TransactOpts) error
Mines a new block with the provided transaction
func (*ConstellationTestManager) MineTxViaHyperdrive ¶
func (m *ConstellationTestManager) MineTxViaHyperdrive(hdClient *hdclient.ApiClient, txInfo *eth.TransactionInfo) error
Mines a new block with the provided transaction via the Hyperdrive daemon instead of submitting it directly to the EC
func (*ConstellationTestManager) RocketPool_CreateOracleDaoNodes ¶
func (m *ConstellationTestManager) RocketPool_CreateOracleDaoNodes(details []OracleDaoNodeCreationDetails, owner *bind.TransactOpts) ([]*node.Node, error)
Registers a set of nodes and bootstraps them into the Oracle DAO, taking care of all of the details involved
func (*ConstellationTestManager) RocketPool_CreateOracleDaoNodesWithDefaults ¶
func (m *ConstellationTestManager) RocketPool_CreateOracleDaoNodesWithDefaults(keygen *keys.KeyGenerator, chainID *big.Int, indices []uint, owner *bind.TransactOpts) ([]*node.Node, []*bind.TransactOpts, error)
Creates a set of Oracle DAO nodes and transact opts with the given mnemonic recovery indices, using the provided key generator and chain ID
func (*ConstellationTestManager) RocketPool_MintLegacyRpl ¶
func (m *ConstellationTestManager) RocketPool_MintLegacyRpl(receiver common.Address, amount *big.Int, owner *bind.TransactOpts) (*eth.TransactionInfo, error)
Mints legacy RPL and sends it to the specified address
func (*ConstellationTestManager) RocketPool_RegisterNodes ¶
func (m *ConstellationTestManager) RocketPool_RegisterNodes(timezones []string, opts []*bind.TransactOpts) ([]*node.Node, error)
Register multiple nodes at once with Rocket Pool
type OracleDaoNodeCreationDetails ¶
type OracleDaoNodeCreationDetails struct { Opts *bind.TransactOpts Timezone string ID string URL string }