rpc

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchNode

func LaunchNode(
	ctx context.Context,
	client ethutils.EthClient,
	rollupAddress common.Address,
	db *txdb.TxDB,
	web3RPCPort string,
	web3WSPort string,
	flags utils2.RPCFlags,
	maxBatchTime time.Duration,
	batcherMode BatcherMode,
) error

func LaunchNodeAdvanced

func LaunchNodeAdvanced(
	db *txdb.TxDB,
	rollupAddress common.Address,
	web3RPCPort string,
	web3WSPort string,
	flags utils2.RPCFlags,
	batch batcher.TransactionBatcher,
	privateKeys []*ecdsa.PrivateKey,
	ganacheMode bool,
	plugins map[string]interface{},
) error

Types

type BatcherMode

type BatcherMode interface {
	// contains filtered or unexported methods
}

type ForwarderBatcherMode

type ForwarderBatcherMode struct {
	NodeURL string
}

type StatefulBatcherMode

type StatefulBatcherMode struct {
	Auth         *bind.TransactOpts
	InboxAddress common.Address
}

type StatelessBatcherMode

type StatelessBatcherMode struct {
	Auth         *bind.TransactOpts
	InboxAddress common.Address
}

Jump to

Keyboard shortcuts

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