mt_batcher

package module
v0.0.0-...-5cda5f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(gitVersion string) func(ctx *cli.Context) error

Types

type Config

type Config struct {
	BuildEnv                  string
	MtlNetworkName            string
	L1EthRpc                  string
	L2MtlRpc                  string
	DtlClientUrl              string
	DisperserEndpoint         string
	RetrieverSocket           string
	EigenDaHttpPort           int
	GrpcPort                  int64
	ChainId                   uint64
	GraphProvider             string
	PrivateKey                string
	Mnemonic                  string
	SequencerHDPath           string
	FeePrivateKey             string
	FeeMnemonic               string
	FeeHDPath                 string
	Passphrase                string
	EigenContractAddress      string
	EigenFeeContractAddress   string
	DataStoreDuration         uint64
	DataStoreTimeout          uint64
	SentryEnable              bool
	MainWorkerPollInterval    time.Duration
	CheckerWorkerPollInterval time.Duration
	FeeWorkerPollInterval     time.Duration
	BlockOffset               uint64
	RollUpMinTxn              uint64
	RollUpMaxSize             uint64
	EigenLayerNode            int
	EigenLogConfig            logging.Config
	MetricsServerEnable       bool
	MetricsHostname           string
	MetricsPort               uint64
	LogLevel                  string
	LogTerminal               bool
	SentryDsn                 string
	SentryTraceRate           time.Duration
	ResubmissionTimeout       time.Duration
	RetrieverTimeout          time.Duration
	PollingDuration           time.Duration
	NumConfirmations          uint64
	SafeAbortNonceTooLowCount uint64
	EchoDebug                 bool
	MtlBatcherEnable          bool
	FeeSizeSec                string
	FeePerBytePerTime         uint64
	FeeModelEnable            bool
	DisableHTTP2              bool
	DbPath                    string
	CheckerBatchIndex         uint64
	CheckerEnable             bool
	EnableHsm                 bool
	HsmAPIName                string
	HsmCreden                 string
	HsmAddress                string
	HsmFeeAPIName             string
	HsmFeeAddress             string
	MinTimeoutRollupTxn       uint64
	RollupTimeout             time.Duration
}

func NewConfig

func NewConfig(ctx *cli.Context) (Config, error)

type MantleBatch

type MantleBatch struct {
	// contains filtered or unexported fields
}

func NewMantleBatch

func NewMantleBatch(cfg Config) (*MantleBatch, error)

func (*MantleBatch) Start

func (mb *MantleBatch) Start() error

func (*MantleBatch) Stop

func (mb *MantleBatch) Stop()

Directories

Path Synopsis
cmd
services

Jump to

Keyboard shortcuts

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