-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add core default config for missing chains (#16000)
* Bumping package.json * added default config for missing chains * nit * nit * removed package lock json * small linea update * regen docs * updated docs * cleanup * nit * nit on docs * Update configs to not change core defaults * Update Blase LimitDefault * Generate CONFIG.md * Remove LimitDefault=8M setting from core configs * Generate CONFIG.md * Revert set FinalityTagBypass=false for chains with FinalityDepth<1k --------- Co-authored-by: Mateusz Sekara <mateusz.sekara@gmail.com> Co-authored-by: Friedemann Fürst <friedemann.fuerst@smartcontract.com>
- Loading branch information
1 parent
53d04b8
commit 7b836d8
Showing
80 changed files
with
3,322 additions
and
1,710 deletions.
There are no files selected for viewing
This file was deleted.
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,37 +1,11 @@ | ||
ChainID = '81457' | ||
FinalityDepth = 200 | ||
FinalityTagEnabled = true | ||
ChainType = 'optimismBedrock' | ||
# block rate is ~2sec, so this ensures blocks are polled correctly | ||
LogPollInterval = '2s' | ||
|
||
[GasEstimator] | ||
EIP1559DynamicFees = true | ||
BumpThreshold = 60 | ||
BumpPercent = 20 | ||
BumpMin = '100 wei' | ||
PriceMax = '120 gwei' | ||
LimitDefault = 8000000 | ||
FeeCapDefault = '120 gwei' | ||
|
||
[GasEstimator.BlockHistory] | ||
# Default is 24, which leads to bumpy gas prices. In CCIP | ||
# we want to smooth out the gas prices, so we increase the sample size. | ||
BlockHistorySize = 200 | ||
# The formula for FeeCap is (current block base fee * (1.125 ^ EIP1559FeeCapBufferBlocks) + tipcap) | ||
# where tipcap is managed by the block history estimators. In the context of CCIP, | ||
# the gas price is relayed to other changes for quotes so we want accurate/avg not pessimistic values. | ||
# the gas price is relayed to other chains for quotes so we want accurate/avg not pessimistic values. | ||
# So we set this to zero so FeeCap = baseFee + tipcap. | ||
EIP1559FeeCapBufferBlocks = 0 | ||
|
||
[HeadTracker] | ||
HistoryDepth = 300 | ||
# FinalityDepth < 1k => FinalityTagBypass = false | ||
# https://smartcontract-it.atlassian.net/browse/SHIP-4078 | ||
FinalityTagBypass = false | ||
|
||
[NodePool] | ||
# 4 block sync time between nodes to ensure they aren't labelled unreachable too soon | ||
PollFailureThreshold = 4 | ||
# polls every 4sec to check if there is a block produced, since blockRate is ~3sec | ||
PollInterval = '4s' |
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
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
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,11 @@ | ||
ChainID = '17000' | ||
|
||
[GasEstimator.BlockHistory] | ||
# Default is 4!?, which leads to bumpy gas prices. In CCIP | ||
# we want to smooth out the gas prices, so we increase the sample size. | ||
BlockHistorySize = 200 | ||
# The formula for FeeCap is (current block base fee * (1.125 ^ EIP1559FeeCapBufferBlocks) + tipcap) | ||
# where tipcap is managed by the block history estimators. In the context of CCIP, | ||
# the gas price is relayed to other changes for quotes so we want accurate/avg not pessimistic values. | ||
# So we set this to zero so FeeCap = baseFee + tipcap. | ||
EIP1559FeeCapBufferBlocks = 0 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,34 +1,5 @@ | ||
ChainID = "37111" | ||
ChainType = "zksync" | ||
# finality depth for this chain is very inconsistent due to low network traffic. in testing blocks every ~1-2minutes were seen | ||
# confirmed this value with product | ||
FinalityDepth = 40 | ||
FinalityTagEnabled = false | ||
# block rate is dynamic, have seen block times as low as 1s | ||
LogPollInterval = "5s" | ||
# sufficient time for RPC to be labelled out of sync | ||
NoNewHeadsThreshold = "10m" | ||
|
||
[GasEstimator] | ||
EIP1559DynamicFees = false | ||
# limit default set for zk based chains | ||
LimitDefault = 2_500_000_000 | ||
# value given by ds&a | ||
FeeCapDefault = "2000 gwei" | ||
# estimators typically estimated with min of 75 with median of 86 | ||
PriceDefault = "70 gwei" | ||
PriceMax = "2000 gwei" | ||
PriceMin = "70 gwei" | ||
# bump gas aggressively to avoid high amounts of transmit errors | ||
BumpThreshold = 1 | ||
BumpPercent = 40 | ||
|
||
[GasEstimator.DAOracle] | ||
OracleType = 'zksync' | ||
|
||
[Transactions] | ||
ResendAfterThreshold = '7m0s' | ||
|
||
[HeadTracker] | ||
# l1 batching is done every 8hrs with low network activity setting this value to a rough calculation of ~1tx / 2min * 8hrs | ||
HistoryDepth = 250 |
Oops, something went wrong.