Documentation ¶
Index ¶
- type L2OOHelper
- func (h *L2OOHelper) GetL2Output(ctx context.Context, idx uint64) bindings.TypesOutputProposal
- func (h *L2OOHelper) GetL2OutputAfter(ctx context.Context, l2BlockNum uint64) bindings.TypesOutputProposal
- func (h *L2OOHelper) GetL2OutputBefore(ctx context.Context, l2BlockNum uint64) bindings.TypesOutputProposal
- func (h *L2OOHelper) PublishNextOutput(ctx context.Context, outputRoot common.Hash)
- func (h *L2OOHelper) WaitForProposals(ctx context.Context, req int64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type L2OOHelper ¶
type L2OOHelper struct {
// contains filtered or unexported fields
}
func NewL2OOHelper ¶
func NewL2OOHelper(t *testing.T, deployments *genesis.L1Deployments, client *ethclient.Client, proposerKey *ecdsa.PrivateKey, rollupCfg *rollup.Config) *L2OOHelper
func NewL2OOHelperReadOnly ¶
func NewL2OOHelperReadOnly(t *testing.T, deployments *genesis.L1Deployments, client *ethclient.Client) *L2OOHelper
func (*L2OOHelper) GetL2Output ¶
func (h *L2OOHelper) GetL2Output(ctx context.Context, idx uint64) bindings.TypesOutputProposal
func (*L2OOHelper) GetL2OutputAfter ¶
func (h *L2OOHelper) GetL2OutputAfter(ctx context.Context, l2BlockNum uint64) bindings.TypesOutputProposal
func (*L2OOHelper) GetL2OutputBefore ¶
func (h *L2OOHelper) GetL2OutputBefore(ctx context.Context, l2BlockNum uint64) bindings.TypesOutputProposal
func (*L2OOHelper) PublishNextOutput ¶
func (h *L2OOHelper) PublishNextOutput(ctx context.Context, outputRoot common.Hash)
func (*L2OOHelper) WaitForProposals ¶
func (h *L2OOHelper) WaitForProposals(ctx context.Context, req int64) uint64
WaitForProposals waits until there are at least the specified number of proposals in the output oracle Returns the index of the latest output proposal
Click to show internal directories.
Click to hide internal directories.