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

     1  package environment
     2  
     3  import (
     4  	"strconv"
     5  
     6  	"github.com/0xPolygon/supernets2-node/test/operations"
     7  	"github.com/0xPolygon/supernets2-node/test/testutils"
     8  )
     9  
    10  var (
    11  	// IntBase is the base for the conversion of strings to integers
    12  	IntBase = 10
    13  	// PrivateKey is the private key of the sequencer
    14  	PrivateKey = testutils.GetEnv("PRIVATE_KEY", operations.DefaultSequencerPrivateKey)
    15  	// L2ChainId is the chain id of the L2 network
    16  	L2ChainId = testutils.GetEnv("CHAIN_ID", strconv.FormatUint(operations.DefaultL2ChainID, IntBase))
    17  	//Erc20TokenAddress is the address of the ERC20 token
    18  	Erc20TokenAddress = testutils.GetEnv("ERC20_TOKEN_ADDRESS", "0x729fc461b26f69cf75a31182788eaf722b08c240")
    19  
    20  	l2NetworkRPCURL = testutils.GetEnv("L2_NETWORK_RPC_URL", operations.DefaultL2NetworkURL)
    21  
    22  	// StateDB Credentials
    23  	stateDbName = testutils.GetEnv("STATE_DB_NAME", "state_db")
    24  	stateDbUser = testutils.GetEnv("STATE_DB_USER", "state_user")
    25  	stateDbPass = testutils.GetEnv("STATE_DB_PASS", "state_password")
    26  	stateDbHost = testutils.GetEnv("STATE_DB_HOST", "localhost")
    27  	stateDbPort = testutils.GetEnv("STATE_DB_PORT", "5432")
    28  
    29  	// PoolDB Credentials
    30  	poolDbName = testutils.GetEnv("POOL_DB_NAME", "pool_db")
    31  	poolDbUser = testutils.GetEnv("POOL_DB_USER", "pool_user")
    32  	poolDbPass = testutils.GetEnv("POOL_DB_PASS", "pool_password")
    33  	poolDbHost = testutils.GetEnv("POOL_DB_HOST", "localhost")
    34  	poolDbPort = testutils.GetEnv("POOL_DB_PORT", "5433")
    35  )