github.com/ethereum-optimism/optimism/l2geth@v0.0.0-20230612200230-50b04ade19e3/rollup/config.go (about)

     1  package rollup
     2  
     3  import (
     4  	"math/big"
     5  	"time"
     6  
     7  	"github.com/ethereum-optimism/optimism/l2geth/common"
     8  )
     9  
    10  type Config struct {
    11  	// Maximum calldata size for a Queue Origin Sequencer Tx
    12  	MaxCallDataSize int
    13  	// Verifier mode
    14  	IsVerifier bool
    15  	// Enable the sync service
    16  	Eth1SyncServiceEnable bool
    17  	// Gas Limit
    18  	GasLimit uint64
    19  	// HTTP endpoint of the data transport layer
    20  	RollupClientHttp string
    21  	// Owner of the GasPriceOracle contract
    22  	GasPriceOracleOwnerAddress common.Address
    23  	// Turns on checking of state for L2 gas price
    24  	EnableL2GasPolling bool
    25  	// Deployment Height of the canonical transaction chain
    26  	CanonicalTransactionChainDeployHeight *big.Int
    27  	// Polling interval for rollup client
    28  	PollInterval time.Duration
    29  	// Interval for updating the timestamp
    30  	TimestampRefreshThreshold time.Duration
    31  	// Represents the source of the transactions that is being synced
    32  	Backend Backend
    33  	// Only accept transactions with fees
    34  	EnforceFees bool
    35  	// Allow fees within a buffer upwards or downwards
    36  	// to take fee volatility into account between being
    37  	// quoted and the transaction being executed
    38  	FeeThresholdDown *big.Float
    39  	FeeThresholdUp   *big.Float
    40  	// HTTP endpoint of the sequencer
    41  	SequencerClientHttp string
    42  }