Skip to content

Commit

Permalink
Add core default config for missing chains (#16000)
Browse files Browse the repository at this point in the history
* 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
3 people authored Jan 21, 2025
1 parent 53d04b8 commit 7b836d8
Show file tree
Hide file tree
Showing 80 changed files with 3,322 additions and 1,710 deletions.
14 changes: 0 additions & 14 deletions ccip/config/evm/Astar_Shibuya.toml

This file was deleted.

5 changes: 0 additions & 5 deletions ccip/config/evm/Avalanche_ANZ_testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ PriceMin = '25 gwei'

[GasEstimator.BlockHistory]
BlockHistorySize = 24

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Avalanche_Fuji.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,3 @@ PriceDefault = '1 gwei'

[GasEstimator.BlockHistory]
BlockHistorySize = 24

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Avalanche_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ PriceDefault = '1 gwei'
[GasEstimator.BlockHistory]
# Average block time of 2s
BlockHistorySize = 24

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/BOB_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/BOB_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/BSC_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ ObservationGracePeriod = '500ms'

[NodePool]
SyncThreshold = 10

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
2 changes: 0 additions & 2 deletions ccip/config/evm/BSC_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ BlockHistorySize = 24
[HeadTracker]
HistoryDepth = 100
SamplingInterval = '1s'
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[OCR]
Expand Down
3 changes: 0 additions & 3 deletions ccip/config/evm/Base_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 300
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
3 changes: 0 additions & 3 deletions ccip/config/evm/Base_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 300
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
5 changes: 0 additions & 5 deletions ccip/config/evm/Berachain_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ CacheTimeout = '10s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
28 changes: 1 addition & 27 deletions ccip/config/evm/Blast_Mainnet.toml
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'
26 changes: 0 additions & 26 deletions ccip/config/evm/Blast_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
ChainID = '168587773'
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
Expand All @@ -23,15 +9,3 @@ BlockHistorySize = 200
# 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

[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'
3 changes: 0 additions & 3 deletions ccip/config/evm/Celo_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ BlockHistorySize = 12

[HeadTracker]
HistoryDepth = 50
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
11 changes: 11 additions & 0 deletions ccip/config/evm/Ethereum_Holesky.toml
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
5 changes: 0 additions & 5 deletions ccip/config/evm/Ethereum_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,3 @@ TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Ethereum_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Fantom_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ Mode = 'SuggestedPrice'

[OCR2.Automation]
GasLimit = 3800000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Fantom_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ Mode = 'SuggestedPrice'

[OCR2.Automation]
GasLimit = 3800000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Gnosis_Chiado.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ NoNewFinalizedHeadsThreshold = '2m'
[GasEstimator]
EIP1559DynamicFees = true
PriceMax = '500 gwei'

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Gnosis_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ PriceDefault = '1 gwei'
PriceMax = '500 gwei'
# 1 Gwei is the minimum accepted by the validators (unless whitelisted)
PriceMin = '1 gwei'

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Harmony_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ NoNewHeadsThreshold = '30s'

[GasEstimator]
PriceDefault = '5 gwei'

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Harmony_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ NoNewHeadsThreshold = '30s'

[GasEstimator]
PriceDefault = '5 gwei'

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Heco_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,3 @@ ObservationGracePeriod = '500ms'

[NodePool]
SyncThreshold = 10

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Hedera_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ ResendAfterThreshold = '2m'

[NodePool]
SyncThreshold = 10

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Hedera_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ ResendAfterThreshold = '2m'

[NodePool]
SyncThreshold = 10

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Klaytn_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ OCR.ContractConfirmations = 1
Mode = 'SuggestedPrice'
PriceDefault = '750 gwei' # gwei = ston
BumpThreshold = 5

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Klaytn_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ OCR.ContractConfirmations = 1
Mode = 'SuggestedPrice'
PriceDefault = '750 gwei' # gwei = ston
BumpThreshold = 5

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
3 changes: 0 additions & 3 deletions ccip/config/evm/Kroma_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 400
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
3 changes: 0 additions & 3 deletions ccip/config/evm/Kroma_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 400
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
5 changes: 0 additions & 5 deletions ccip/config/evm/L3X_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ PriceMin = '0'
PriceDefault = '0.1 gwei'
FeeCapDefault = '1000 gwei'
BumpThreshold = 5

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/L3X_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ PriceMin = '0'
PriceDefault = '0.1 gwei'
FeeCapDefault = '1000 gwei'
BumpThreshold = 5

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
29 changes: 0 additions & 29 deletions ccip/config/evm/Lens_Sepolia.toml
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
Loading

0 comments on commit 7b836d8

Please sign in to comment.