Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultDeadline is the default deadline for the sequencer DefaultDeadline = 6000 * time.Second // MaxCumulativeGasUsed is the maximum cumulative gas used MaxCumulativeGasUsed = 80000000000 // PrometheusPort is the port where prometheus is running PrometheusPort = 9092 )
Variables ¶
View Source
var ( // Ctx is the context Ctx = context.Background() // PoolDbConfig is the pool db config PoolDbConfig = dbutils.NewPoolConfigFromEnv() // SequencerPrivateKey is the private key of the sequencer SequencerPrivateKey = operations.DefaultSequencerPrivateKey // ChainID is the chain id ChainID = operations.DefaultL2ChainID // OpsCfg is the operations config OpsCfg = operations.GetDefaultOperationsConfig() // ToAddress is the address to send the txs ToAddress = "0x4d5Cf5032B2a844602278b01199ED191A86c93ff" // To is the address to send the txs To = common.HexToAddress(ToAddress) // PrivateKey is the private key of the sender PrivateKey, _ = crypto.HexToECDSA(strings.TrimPrefix(SequencerPrivateKey, "0x")) // Auth is the auth of the sender Auth, _ = bind.NewKeyedTransactorWithChainID(PrivateKey, new(big.Int).SetUint64(ChainID)) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.