This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
forked from 0xPolygonHermez/zkevm-contracts
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d549046
commit 424bc80
Showing
20 changed files
with
2,110 additions
and
242 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[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 = 5198867 | ||
PolygonBridgeAddress = "0x5E3585897f21E0d7351a4C2DBF8Bc53508017f62" | ||
PolygonZkEVMGlobalExitRootAddress = "0xFF286B04D54ba132E903B15334C91171d8520af0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 = "1" #autopopulated | ||
DataCommitteeAddress = "1" #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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "0x113930091e35803c339616Af2aE8C51dB66EB346" | ||
DataCommitteeAddress = "0x646BB9E96573CcB54C602D366EB04e0c08f752b2" | ||
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = 0 | ||
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 |
Oops, something went wrong.