Documentation ¶
Index ¶
- type Config
- type Driver
- func (d *Driver) ChainSyncer() *chainSyncer.L2ChainSyncer
- func (d *Driver) Close(_ context.Context)
- func (d *Driver) InitFromCli(ctx context.Context, c *cli.Context) error
- func (d *Driver) InitFromConfig(ctx context.Context, cfg *Config) (err error)
- func (d *Driver) Name() string
- func (d *Driver) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *rpc.ClientConfig P2PSync bool P2PSyncTimeout time.Duration RetryInterval time.Duration MaxExponent uint64 BlobServerEndpoint *url.URL SocialScanEndpoint *url.URL }
Config contains the configurations to initialize a Taiko driver.
func NewConfigFromCliContext ¶
NewConfigFromCliContext creates a new config instance from the command line inputs.
type Driver ¶
type Driver struct { *Config // contains filtered or unexported fields }
Driver keeps the L2 execution engine's local block chain in sync with the TaikoL1 contract.
func (*Driver) ChainSyncer ¶
func (d *Driver) ChainSyncer() *chainSyncer.L2ChainSyncer
ChainSyncer returns the driver's chain syncer, this method should only be used for testing.
func (*Driver) InitFromCli ¶
InitFromCli initializes the given driver instance based on the command line flags.
func (*Driver) InitFromConfig ¶
InitFromConfig initializes the driver instance based on the given configurations.
Click to show internal directories.
Click to hide internal directories.