Documentation
¶
Index ¶
- func BridgeL1NoClaim(ctx context.Context, env *envs.Env, l1Opts, l2Opts *bind.TransactOpts, ...) (*bridgeResult, error)
- func BridgeL1ToL2(ctx context.Context, env *envs.Env, l1Opts, l2Opts *bind.TransactOpts) error
- func BridgeL1ToL2WithResult(ctx context.Context, env *envs.Env, l1Opts, l2Opts *bind.TransactOpts, ...) (*bridgeResult, error)
- func BridgeL2ToL1(ctx context.Context, env *envs.Env, l1Opts, l2Opts *bind.TransactOpts, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeL1NoClaim ¶
func BridgeL1NoClaim(ctx context.Context, env *envs.Env, l1Opts, l2Opts *bind.TransactOpts, bridgeAmount *big.Int, label string) (*bridgeResult, error)
BridgeL1NoClaim performs a real L1->L2 bridge and waits for it to be fully indexed but does not claim. label is used in log messages to identify the caller context (e.g. "B1", "B2-1").
func BridgeL1ToL2 ¶
BridgeL1ToL2 runs the L1 -> L2 bridge flow using the given environment and transactors. Performs the full deposit and claim flows. Returns error for any non-successful operation.
func BridgeL1ToL2WithResult ¶
func BridgeL1ToL2WithResult(ctx context.Context, env *envs.Env, l1Opts, l2Opts *bind.TransactOpts, bridgeAmount *big.Int) (*bridgeResult, error)
BridgeL1ToL2WithResult performs a full L1->L2 bridge and claim using the given transactors. Uses l2Opts.From as the destination address. Returns detailed bridge and claim information.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.