Documentation ¶
Index ¶
- func ConnectP2P(t *testing.T, node1 *ethclient.Client, node2 *ethclient.Client)
- func InitL1(chainID uint64, blockTime uint64, genesis *core.Genesis, c clock.Clock, ...) (*node.Node, *eth.Ethereum, error)
- func InitL2(name string, l2ChainID *big.Int, genesis *core.Genesis, jwtPath string, ...) (*node.Node, *eth.Ethereum, error)
- func WaitForBlock(number *big.Int, client *ethclient.Client, timeout time.Duration) (*types.Block, error)
- func WaitForL1OriginOnL2(l1BlockNum uint64, client *ethclient.Client, timeout time.Duration) (*types.Block, error)
- func WaitForTransaction(hash common.Hash, client *ethclient.Client, timeout time.Duration) (*types.Receipt, error)
- func WithP2P() func(ethCfg *ethconfig.Config, nodeCfg *node.Config) error
- type Beacon
- type GethOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectP2P ¶
ConnectP2P creates a p2p peer connection between node1 and node2.
func InitL2 ¶
func InitL2(name string, l2ChainID *big.Int, genesis *core.Genesis, jwtPath string, opts ...GethOption) (*node.Node, *eth.Ethereum, error)
InitL2 inits a L2 geth node.
func WaitForBlock ¶
func WaitForL1OriginOnL2 ¶
func WaitForTransaction ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.