Skip to content

Commit

Permalink
CCIP Config backported from CCIP repo (#15856)
Browse files Browse the repository at this point in the history
* Moving configs directly from CCIP repo

* Moving configs directly from CCIP repo
  • Loading branch information
mateusz-sekara authored Jan 8, 2025
1 parent ab46d04 commit da03b85
Show file tree
Hide file tree
Showing 75 changed files with 955 additions and 54 deletions.
8 changes: 7 additions & 1 deletion ccip/config/evm/Astar_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
ChainID = '592'
ChainType = 'astar'
FinalityTagEnabled = true
FinalityDepth = 100
LogPollInterval = '6s'

[GasEstimator]
EIP1559DynamicFees = false
PriceMax = '100000 gwei'
LimitDefault = 8000000
LimitDefault = 8000000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
7 changes: 6 additions & 1 deletion ccip/config/evm/Astar_Shibuya.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ LogPollInterval = '6s'
[GasEstimator]
EIP1559DynamicFees = false
PriceMax = '100000 gwei'
LimitDefault = 8000000
LimitDefault = 8000000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
4 changes: 3 additions & 1 deletion ccip/config/evm/Avalanche_ANZ_testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ PriceMin = '25 gwei'
BlockHistorySize = 24

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

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
PersistenceEnabled = false
4 changes: 3 additions & 1 deletion ccip/config/evm/Avalanche_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ PriceDefault = '1 gwei'
BlockHistorySize = 24

[HeadTracker]
PersistenceEnabled = false
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
28 changes: 28 additions & 0 deletions ccip/config/evm/BOB_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ChainID = '60808'
# OP stack https://docs.gobob.xyz/learn/introduction/stack-overview#rollup-layer
ChainType = 'optimismBedrock'
# FinalityDepth in mainnet showed more than 3k
FinalityDepth = 3150
# block_time was: 2s, adding 1 second buffer
LogPollInterval = '3s'

# finality_depth * block_time / 60 secs = ~105 min (finality time)
NoNewFinalizedHeadsThreshold = '110m'

FinalityTagEnabled = true

[GasEstimator]
EIP1559DynamicFees = true
Mode = 'FeeHistory'

[GasEstimator.FeeHistory]
# block_time was: 2s, per recommendation skip 1-2 blocks
CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
28 changes: 28 additions & 0 deletions ccip/config/evm/BOB_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ChainID = '808813'
# OP stack https://docs.gobob.xyz/learn/introduction/stack-overview#rollup-layer
ChainType = 'optimismBedrock'
# FinalityDepth in mainnet showed more than 3k
FinalityDepth = 3150
# block_time was: 2s, adding 1 second buffer
LogPollInterval = '3s'

# finality_depth * block_time / 60 secs = ~105 min (finality time)
NoNewFinalizedHeadsThreshold = '110m'

FinalityTagEnabled = true

[GasEstimator]
EIP1559DynamicFees = true
Mode = 'FeeHistory'

[GasEstimator.FeeHistory]
# block_time was: 2s, per recommendation skip 1-2 blocks
CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

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

[GasEstimator]
PriceDefault = '5 gwei'
# Set to the BSC node's default Eth.Miner.GasPrice config
PriceMin = '3 gwei'
# 15s delay since feeds update every minute in volatile situations
BumpThreshold = 5

Expand All @@ -26,3 +28,8 @@ ObservationGracePeriod = '500ms'

[NodePool]
SyncThreshold = 10

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

[OCR]
DatabaseTimeout = '2s'
Expand Down
3 changes: 3 additions & 0 deletions ccip/config/evm/Base_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ 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: 3 additions & 0 deletions ccip/config/evm/Base_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ ResendAfterThreshold = '30s'

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

[NodePool]
SyncThreshold = 10
Expand Down
24 changes: 24 additions & 0 deletions ccip/config/evm/Berachain_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ChainID = '80084'
# finality_depth: instant
FinalityDepth = 10
# block_time: 5s, adding 1 second buffer
LogPollInterval = '6s'

# finality_depth * block_time / 60 secs = ~0.8 min (finality time)
NoNewFinalizedHeadsThreshold = '5m'

[GasEstimator]
EIP1559DynamicFees = true
Mode = 'FeeHistory'

[GasEstimator.FeeHistory]
# block_time was: 5s, per recommendation skip 1-2 blocks
CacheTimeout = '10s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
16 changes: 16 additions & 0 deletions ccip/config/evm/Bitlayer_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ChainID = '200901'
FinalityTagEnabled = false
FinalityDepth = 21 # confirmed with Bitlayer team and recommended by docs: https://docs.bitlayer.org/docs/Learn/BitlayerNetwork/AboutFinality/#about-finality-at-stage-bitlayer-pos-bitlayer-mainnet-v1

[GasEstimator]
Mode = 'FeeHistory'
EIP1559DynamicFees = false
PriceMax = '1 gwei' # DS&A recommended value
PriceMin = '40 mwei' # During testing, we saw minimum gas prices ~50 mwei
PriceDefault = '1 gwei' # As we set PriceMax to '1 gwei' and PriceDefault must be less than or equal to PriceMax
FeeCapDefault = '1 gwei' # As we set PriceMax to '1 gwei' and FeeCapDefault must be less than or equal to PriceMax

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
16 changes: 16 additions & 0 deletions ccip/config/evm/Bitlayer_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ChainID = '200810'
FinalityTagEnabled = false
FinalityDepth = 21 # confirmed with Bitlayer team and recommended by docs: https://docs.bitlayer.org/docs/Learn/BitlayerNetwork/AboutFinality/#about-finality-at-stage-bitlayer-pos-bitlayer-mainnet-v1

[GasEstimator]
Mode='FeeHistory'
EIP1559DynamicFees = false
PriceMax = '1 gwei' # DS&A recommended value
PriceMin = '40 mwei' # During testing, we saw minimum gas prices ~50 mwei
PriceDefault = '1 gwei' # As we set PriceMax to '1 gwei' and PriceDefault must be less than or equal to PriceMax
FeeCapDefault = '1 gwei' # As we set PriceMax to '1 gwei' and FeeCapDefault must be less than or equal to PriceMax

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 4 additions & 1 deletion ccip/config/evm/Blast_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ 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'
PollInterval = '4s'
5 changes: 4 additions & 1 deletion ccip/config/evm/Blast_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ 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'
PollInterval = '4s'
23 changes: 23 additions & 0 deletions ccip/config/evm/Bsquared_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ChainID = '223'
# OP stack from questionnaire https://docs.google.com/spreadsheets/d/1l8dx1GzxEnjgwH5x3vB60FUr5iFALzPcs6W_wOAiuDs/edit?gid=625078687#gid=625078687
ChainType = 'optimismBedrock'
# finality_depth was: ~1900
FinalityDepth = 2000
# block_time: ~2s, adding 1 second buffer
LogPollInterval = '3s'

# finality_depth * block_time / 60 secs = ~66 min (finality time)
NoNewFinalizedHeadsThreshold = '70m'

FinalityTagEnabled = true

[GasEstimator]
EIP1559DynamicFees = true
Mode = 'FeeHistory'

[GasEstimator.FeeHistory]
# block_time was: 2s, per recommendation skip 1-2 blocks
CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100
23 changes: 23 additions & 0 deletions ccip/config/evm/Bsquared_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ChainID = '1123'
# OP stack from questionnaire https://docs.google.com/spreadsheets/d/1l8dx1GzxEnjgwH5x3vB60FUr5iFALzPcs6W_wOAiuDs/edit?gid=625078687#gid=625078687
ChainType = 'optimismBedrock'
# finality_depth was: ~1900
FinalityDepth = 2000
# block_time: ~2s, adding 1 second buffer
LogPollInterval = '3s'

# finality_depth * block_time / 60 secs = ~66 min (finality time)
NoNewFinalizedHeadsThreshold = '70m'

FinalityTagEnabled = true

[GasEstimator]
EIP1559DynamicFees = true
Mode = 'FeeHistory'

[GasEstimator.FeeHistory]
# block_time was: 2s, per recommendation skip 1-2 blocks
CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100
8 changes: 7 additions & 1 deletion ccip/config/evm/Celo_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ChainID = '42220'
ChainType = 'celo'
# FT and FD are both present here because the dev effort rely only on FinalityTagEnabled are still in progress.
# We expect to be able to rely only on FinalityTagEnabled=true in the short future.
# https://chainlink-core.slack.com/archives/C05CS33N08N/p1715102940763339?thread_ts=1715102478.537529&cid=C05CS33N08N
FinalityDepth = 10
FinalityTagEnabled = true
LogPollInterval = '5s'
MinIncomingConfirmations = 1
NoNewHeadsThreshold = '1m'
Expand All @@ -18,4 +22,6 @@ BlockHistorySize = 12

[HeadTracker]
HistoryDepth = 50
PersistenceEnabled = false
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
3 changes: 3 additions & 0 deletions ccip/config/evm/Celo_Testnet.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChainID = '44787'
ChainType = 'celo'
# FT and FD are both present here because the dev effort rely only on FinalityTagEnabled are still in progress.
# We expect to be able to rely only on FinalityTagEnabled=true in the short future.
# https://chainlink-core.slack.com/archives/C05CS33N08N/p1715102940763339?thread_ts=1715102478.537529&cid=C05CS33N08N
FinalityTagEnabled = true
FinalityDepth = 2750 # mean finality time of ~37 minutes + 500 block buffer
LogPollInterval = '1s' # 1 sec block rate
Expand Down
5 changes: 5 additions & 0 deletions ccip/config/evm/Ethereum_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000

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

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
7 changes: 6 additions & 1 deletion ccip/config/evm/Fantom_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ RPCBlockQueryDelay = 2
Mode = 'SuggestedPrice'

[OCR2.Automation]
GasLimit = 3800000
GasLimit = 3800000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
7 changes: 6 additions & 1 deletion ccip/config/evm/Fantom_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ RPCBlockQueryDelay = 2
Mode = 'SuggestedPrice'

[OCR2.Automation]
GasLimit = 3800000
GasLimit = 3800000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 5 additions & 0 deletions ccip/config/evm/Gnosis_Chiado.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ 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: 5 additions & 0 deletions ccip/config/evm/Gnosis_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ 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
13 changes: 13 additions & 0 deletions ccip/config/evm/Harmony_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ChainID = '1666600000'
LinkContractAddress = '0x218532a12a389a4a92fC0C5Fb22901D1c19198aA'
LogPollInterval = '2s'
MinIncomingConfirmations = 1
NoNewHeadsThreshold = '30s'

[GasEstimator]
PriceDefault = '5 gwei'

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

0 comments on commit da03b85

Please sign in to comment.