Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

automated configs #29

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added __pycache__/toml.cpython-311.pyc
Binary file not shown.
59 changes: 59 additions & 0 deletions deployment/bridge.config.example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[Log]
Level = "debug"
Outputs = ["stdout"]

[SyncDB]
Database = "postgres"
User = "test_user"
Password = "test_password"
Name = "test_db"
Host = "zkevm-bridge-db"
Port = "5432"
MaxConns = 200

[ClaimTxManager]
Enabled = true
FrequencyToMonitorTxs = "10s"
PrivateKey = {Path = "/pk/keystore.claimtxmanager", Password = "password"}
RetryInterval = "5s"
RetryNumber = 10

[Etherman]
URL = "https://sepolia.polygon.tst.validationcloud.io"
MultiGasProvider = false
L1ChainID = 11155111 #sepolia
L2ChainID = "" #autopopulated
L1URL = "https://sepolia.polygon.tst.validationcloud.io"
L2URLs = ["http://cdk-validium-json-rpc:8123"]
[Etherman.Etherscan]
ApiKey = "8NHTDUAHZKTP7R7ANT9MSHCC5X8CXQZGIP"

[Synchronizer]
SyncInterval = "10s"
SyncChunkSize = 100

[BridgeController]
Store = "postgres"
Height = 32

[BridgeServer]
GRPCPort = "9090"
HTTPPort = "8080"
CacheSize = 100000
DefaultPageLimit = 25
MaxPageLimit = 100
BridgeVersion = "v1"
[BridgeServer.DB]
Database = "postgres"
User = "test_user"
Password = "test_password"
Name = "test_db"
Host = "zkevm-bridge-db"
Port = "5432"
MaxConns = 200

[NetworkConfig]
GenBlockNumber = "" #autopopulated
PolygonBridgeAddress = "" #autopopulated
PolygonZkEVMGlobalExitRootAddress = "" #autopopulated
L2PolygonBridgeAddresses = [""] #autopopulated
64 changes: 64 additions & 0 deletions deployment/bridge.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[Log]
Level = "debug"
Outputs = ["stdout"]

[SyncDB]
Database = "postgres"
User = "test_user"
Password = "test_password"
Name = "test_db"
Host = "zkevm-bridge-db"
Port = "5432"
MaxConns = 200

[ClaimTxManager]
Enabled = true
FrequencyToMonitorTxs = "10s"
RetryInterval = "5s"
RetryNumber = 10

[ClaimTxManager.PrivateKey]
Path = "/pk/keystore.claimtxmanager"
Password = "password"

[Etherman]
URL = "https://sepolia.polygon.tst.validationcloud.io"
MultiGasProvider = false
L1ChainID = 11155111
L2ChainID = 4321
L1URL = "https://sepolia.polygon.tst.validationcloud.io"
L2URLs = ["http://cdk-validium-json-rpc:8123"]

[Etherman.Etherscan]
ApiKey = "8NHTDUAHZKTP7R7ANT9MSHCC5X8CXQZGIP"

[Synchronizer]
SyncInterval = "10s"
SyncChunkSize = 100

[BridgeController]
Store = "postgres"
Height = 32

[BridgeServer]
GRPCPort = "9090"
HTTPPort = "8080"
CacheSize = 100000
DefaultPageLimit = 25
MaxPageLimit = 100
BridgeVersion = "v1"

[BridgeServer.DB]
Database = "postgres"
User = "test_user"
Password = "test_password"
Name = "test_db"
Host = "zkevm-bridge-db"
Port = "5432"
MaxConns = 200

[NetworkConfig]
GenBlockNumber = 5226590
PolygonBridgeAddress = "0x51Febf7fFa1F4dF5Fe1fdbFC44F30b301D9C770a"
PolygonZkEVMGlobalExitRootAddress = "0xb31ca553a59bc114e13572F99793229932B40904"
L2PolygonBridgeAddresses = "0x8c0c012Ed5121BAF016C959ee61b4802C67CE3E0"
34 changes: 34 additions & 0 deletions deployment/dac.config.example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
PrivateKey = {Path = "/pk/dac-member.keystore", Password = "password"}

[L1]
WsURL = "ws://sepo-nlb-zkevm-f21be80f0be835aa.elb.eu-west-1.amazonaws.com:8546"
RpcURL = "https://sepolia.polygon.tst.validationcloud.io"
CDKValidiumAddress = "" #autopopulated
DataCommitteeAddress = "" #autopopulated
Timeout = "3m"
RetryPeriod = "5s"

[Log]
Environment = "development" # "production" or "development"
Level = "debug"
Outputs = ["stderr"]

[DB]
User = "committee_user"
Password = "committee_password"
Name = "committee_db"
Host = "cdk-data-availability-db"
Port = "5432"
EnableLog = false
MaxConns = 200

[RPC]
Host = "0.0.0.0"
Port = 8444
ReadTimeout = "60s"
WriteTimeout = "60s"
MaxRequestsPerIPAndSecond = 500
SequencerNodeURI = ""
EnableL2SuggestedGasPricePolling = false
[RPC.WebSockets]
Enabled = false
37 changes: 37 additions & 0 deletions deployment/dac.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[PrivateKey]
Path = "/pk/dac-member.keystore"
Password = "password"

[L1]
WsURL = "wss://necessary-orbital-fire.ethereum-sepolia.quiknode.pro/f61e5ec9632e79b9b09730f62536d41a2c033259"
RpcURL = "https://sepolia.polygon.tst.validationcloud.io"
CDKValidiumAddress = "0xf5A8C5A88deda27982aeEBA70812806549470fc9"
DataCommitteeAddress = "0x4f5624096Ffd4f7242c25d0b18c5e895E0205AFe"
Timeout = "3m"
RetryPeriod = "5s"

[Log]
Environment = "development"
Level = "debug"
Outputs = ["stderr"]

[DB]
User = "committee_user"
Password = "committee_password"
Name = "committee_db"
Host = "cdk-data-availability-db"
Port = "5432"
EnableLog = false
MaxConns = 200

[RPC]
Host = "0.0.0.0"
Port = 8444
ReadTimeout = "60s"
WriteTimeout = "60s"
MaxRequestsPerIPAndSecond = 500
SequencerNodeURI = ""
EnableL2SuggestedGasPricePolling = false

[RPC.WebSockets]
Enabled = false
56 changes: 28 additions & 28 deletions deployment/genesis.json

Large diffs are not rendered by default.

167 changes: 167 additions & 0 deletions deployment/node.config.example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
IsTrustedSequencer = true

[Log]
Environment = "development" # "production" or "development"
Level = "debug"
Outputs = ["stderr"]

[StateDB]
User = "state_user"
Password = "state_password"
Name = "state_db"
Host = "cdk-validium-state-db"
Port = "5432"
EnableLog = false
MaxConns = 200

[Pool]
FreeClaimGasLimit = 1500000
IntervalToRefreshBlockedAddresses = "5m"
IntervalToRefreshGasPrices = "5s"
MaxTxBytesSize=100132
MaxTxDataBytesSize=100000
DefaultMinGasPriceAllowed = 1000000000
MinAllowedGasPriceInterval = "5m"
PollMinAllowedGasPriceInterval = "15s"
[Pool.DB]
User = "pool_user"
Password = "pool_password"
Name = "pool_db"
Host = "cdk-validium-pool-db"
Port = "5432"
EnableLog = false
MaxConns = 200

[Etherman]
URL = "https://sepolia.polygon.tst.validationcloud.io"
MultiGasProvider = false
L1ChainID = 11155111 # sepolia
L2ChainID = "" #autopopulated
L1URL = "https://sepolia.polygon.tst.validationcloud.io"
L2URLs = ["http://cdk-validium-json-rpc:8123"]
[Etherman.Etherscan]
ApiKey = "8NHTDUAHZKTP7R7ANT9MSHCC5X8CXQZGIP"


[RPC]
Host = "0.0.0.0"
Port = 8123
ReadTimeout = "60s"
WriteTimeout = "60s"
MaxRequestsPerIPAndSecond = 5000
SequencerNodeURI = "" #autopopulated
EnableL2SuggestedGasPricePolling = true
[RPC.WebSockets]
Enabled = true
Port = 8133

[Synchronizer]
SyncInterval = "10s"
SyncChunkSize = 100
TrustedSequencerURL = "" #autopopulated

[Sequencer]
WaitPeriodPoolIsEmpty = "1s"
LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
BlocksAmountForTxsToBeDeleted = 100
FrequencyToCheckTxsForDelete = "12h"
MaxTxsPerBatch = 300
MaxBatchBytesSize = 120000
MaxCumulativeGasUsed = 30000000
MaxKeccakHashes = 2145
MaxPoseidonHashes = 252357
MaxPoseidonPaddings = 135191
MaxMemAligns = 236585
MaxArithmetics = 236585
MaxBinaries = 473170
MaxSteps = 7570538
TxLifetimeCheckTimeout = "10m"
MaxTxLifetime = "3h"
[Sequencer.Finalizer]
GERDeadlineTimeout = "2s"
ForcedBatchDeadlineTimeout = "5s"
SleepDuration = "100ms"
ResourcePercentageToCloseBatch = 10
GERFinalityNumberOfBlocks = 0
ClosingSignalsManagerWaitForCheckingL1Timeout = "10s"
ClosingSignalsManagerWaitForCheckingGER = "10s"
ClosingSignalsManagerWaitForCheckingForcedBatches = "10s"
ForcedBatchesFinalityNumberOfBlocks = 0
TimestampResolution = "10s"
StopSequencerOnBatchNum = 0
[Sequencer.DBManager]
PoolRetrievalInterval = "500ms"
L2ReorgRetrievalInterval = "5s"
[Sequencer.EffectiveGasPrice]
MaxBreakEvenGasPriceDeviationPercentage = 10
L1GasPriceFactor = 0.25
ByteGasCost = 16
MarginFactor = 1
Enabled = false

[SequenceSender]
WaitPeriodSendSequence = "15s"
LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
MaxTxSizeForL1 = 131072
L2Coinbase = "" #autopopulated
PrivateKey = {Path = "/pk/sequencer.keystore", Password = "password"}

[Aggregator]
Host = "0.0.0.0"
Port = 50081
RetryTime = "5s"
VerifyProofInterval = "10s"
TxProfitabilityCheckerType = "acceptall"
TxProfitabilityMinReward = "1.1"
ProofStatePollingInterval = "5s"
SenderAddress = "" #autopopulated
CleanupLockedProofsInterval = "2m"
GeneratingProofCleanupThreshold = "10m"

[EthTxManager]
ForcedGas = 10000000
PrivateKeys = [
{Path = "/pk/sequencer.keystore", Password = "password"},
{Path = "/pk/aggregator.keystore", Password = "password"}
]

[L2GasPriceSuggester]
Type = "default"
UpdatePeriod = "10s"
Factor = 0.5
DefaultGasPriceWei = 1000000000
MaxGasPriceWei = 0

[MTClient]
URI = "cdk-validium-prover:50061"

[Executor]
URI = "cdk-validium-prover:50071"
MaxGRPCMessageSize = 100000000

[Metrics]
Host = "0.0.0.0"
Port = 9091
Enabled = true
ProfilingHost = "0.0.0.0"
ProfilingPort = 6060
ProfilingEnabled = true

[EventLog]
[EventLog.DB]
User = "event_user"
Password = "event_password"
Name = "event_db"
Host = "cdk-validium-event-db"
Port = "5432"
EnableLog = false
MaxConns = 200

[HashDB]
User = "prover_user"
Password = "prover_pass"
Name = "prover_db"
Host = "cdk-validium-state-db"
Port = "5432"
EnableLog = false
MaxConns = 200
Loading