-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
26 lines (22 loc) · 964 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package environment
import (
"strconv"
"github.com/hoaleee/zkevm-node/test/operations"
"github.com/hoaleee/zkevm-node/test/testutils"
)
var (
// IntBase is the base for the conversion of strings to integers
IntBase = 10
// PrivateKey is the private key of the sequencer
PrivateKey = testutils.GetEnv("PRIVATE_KEY", operations.DefaultSequencerPrivateKey)
// L2ChainId is the chain id of the L2 network
L2ChainId = testutils.GetEnv("CHAIN_ID", strconv.FormatUint(operations.DefaultL2ChainID, IntBase))
// L2NetworkRPCURL is the RPC URL of the L2 network
L2NetworkRPCURL = testutils.GetEnv("RPC_URL", operations.DefaultL2NetworkURL)
// PoolDB Credentials
poolDbName = testutils.GetEnv("POOLDB_DBNAME", "pool_db")
poolDbUser = testutils.GetEnv("POOLDB_USER", "pool_user")
poolDbPass = testutils.GetEnv("POOLDB_PASS", "pool_password")
poolDbHost = testutils.GetEnv("POOLDB_HOST", "localhost")
poolDbPort = testutils.GetEnv("POOLDB_PORT", "5433")
)