rollupmanager

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// The mutex should be held whenever listeres or reorgCache are accessed or
	// set and whenever activeChain is going to be set (but not when it is accessed)
	sync.Mutex

	// These variables are only written by the constructor
	RollupAddress common.Address
	// contains filtered or unexported fields
}

func CreateManager

func CreateManager(
	ctx context.Context,
	rollupAddr common.Address,
	clnt arbbridge.ArbClient,
	aoFilePath string,
	dbPath string,
) (*Manager, error)

func CreateManagerAdvanced

func CreateManagerAdvanced(
	ctx context.Context,
	rollupAddr common.Address,
	updateOpinion bool,
	clnt arbbridge.ArbClient,
	checkpointer checkpointing.RollupCheckpointer,
	aoFilePath string,
) (*Manager, error)

func (*Manager) AddListener

func (man *Manager) AddListener(ctx context.Context, listener chainlistener.ChainListener)

func (*Manager) GetCheckpointer added in v0.6.0

func (man *Manager) GetCheckpointer() checkpointing.RollupCheckpointer

Jump to

Keyboard shortcuts

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