github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/benchmarks/sequencer/common/params/variables.go (about)

     1  package params
     2  
     3  import (
     4  	"context"
     5  	"strings"
     6  
     7  	"github.com/0xPolygon/supernets2-node/test/dbutils"
     8  	"github.com/0xPolygon/supernets2-node/test/operations"
     9  	"github.com/ethereum/go-ethereum/common"
    10  	"github.com/ethereum/go-ethereum/crypto"
    11  )
    12  
    13  var (
    14  	// Ctx is the context
    15  	Ctx = context.Background()
    16  	// PoolDbConfig is the pool db config
    17  	PoolDbConfig = dbutils.NewPoolConfigFromEnv()
    18  	// SequencerPrivateKey is the private key of the sequencer
    19  	SequencerPrivateKey = operations.DefaultSequencerPrivateKey
    20  	// ChainID is the chain id
    21  	ChainID = operations.DefaultL2ChainID
    22  	// OpsCfg is the operations config
    23  	OpsCfg = operations.GetDefaultOperationsConfig()
    24  	// ToAddress is the address to send the txs
    25  	ToAddress = "0x4d5Cf5032B2a844602278b01199ED191A86c93ff"
    26  	// To is the address to send the txs
    27  	To = common.HexToAddress(ToAddress)
    28  	// PrivateKey is the private key of the sender
    29  	PrivateKey, _ = crypto.HexToECDSA(strings.TrimPrefix(SequencerPrivateKey, "0x"))
    30  )