Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add core default config for missing chains #16000

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
32 changes: 0 additions & 32 deletions ccip/config/evm/Metis_Mainnet.toml

This file was deleted.

20 changes: 0 additions & 20 deletions ccip/config/evm/Metis_Sepolia.toml

This file was deleted.

36 changes: 0 additions & 36 deletions ccip/config/evm/Zircuit_Mainnet.toml

This file was deleted.

36 changes: 0 additions & 36 deletions ccip/config/evm/Zircuit_Sepolia.toml

This file was deleted.

16 changes: 16 additions & 0 deletions core/chains/evm/config/toml/defaults/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 core/chains/evm/config/toml/defaults/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
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ FinalityTagBypass = false
PollFailureThreshold = 4
# polls every 4sec to check if there is a block produced, since blockRate is ~3sec
PollInterval = '4s'

[GasEstimator.DAOracle]
OracleType = 'opstack'
OracleAddress = '0x420000000000000000000000000000000000000F'
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ FinalityTagBypass = false
PollFailureThreshold = 4
# polls every 4sec to check if there is a block produced, since blockRate is ~3sec
PollInterval = '4s'

[GasEstimator.DAOracle]
OracleType = 'opstack'
OracleAddress = '0x420000000000000000000000000000000000000F'
14 changes: 14 additions & 0 deletions core/chains/evm/config/toml/defaults/Corn_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ChainID = '21000000'
FinalityTagEnabled = true
ChainType = 'arbitrum'

[GasEstimator]
Mode = 'Arbitrum'
LimitMax = 1_000_000_000
# Arbitrum uses the suggested gas price, so we don't want to place any limits on the minimum
PriceMin = '0'
PriceDefault = '0.1 gwei'
PriceMax = '1000 gwei'

[GasEstimator.DAOracle]
OracleType = 'arbitrum'
14 changes: 14 additions & 0 deletions core/chains/evm/config/toml/defaults/Corn_Testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ChainID = '21000001'
FinalityTagEnabled = true
ChainType = 'arbitrum'

[GasEstimator]
Mode = 'Arbitrum'
LimitMax = 1_000_000_000
# Arbitrum uses the suggested gas price, so we don't want to place any limits on the minimum
PriceMin = '0'
PriceDefault = '0.1 gwei'
PriceMax = '1000 gwei'

[GasEstimator.DAOracle]
OracleType = 'arbitrum'
22 changes: 22 additions & 0 deletions core/chains/evm/config/toml/defaults/Holesky_testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ChainID = '17000'
FinalityTagEnabled = true

[GasEstimator]
EIP1559DynamicFees = true
PriceMax = '1000 gwei'
LimitDefault = 8000000
Comment on lines +6 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are ccip specific configs, if moved to core, it will override with this value, not sure what config we used in the infra cluster

FeeCapDefault = '1000 gwei'

[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

[NodePool]
PollFailureThreshold = 2
PollInterval = '3s'
27 changes: 19 additions & 8 deletions core/chains/evm/config/toml/defaults/Linea_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
ChainID = '59141'
FinalityDepth = 900
NoNewHeadsThreshold = '0'
FinalityTagEnabled = false
FinalityDepth = 200 #3s block time ~ 20m finality based on committee decision
NoNewHeadsThreshold = '0' #No empty blocks

[GasEstimator]
EIP1559DynamicFees = true
PriceMin = '1 wei'
[HeadTracker]
HistoryDepth = 200

[Transactions]
ResendAfterThreshold = '3m'
ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 1000
[GasEstimator]
PriceMax = '2500 gwei' #higher max price to account for zkoverflow replacement txs
BumpPercent = 10
BumpThreshold = 10
EIP1559DynamicFees = true
FeeCapDefault = '2500 gwei'
TipCapDefault = '5 gwei'
TipCapMin = '1 gwei'
LimitDefault = 8000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldnt not have LimitDefault as 8M for Data feeds, this is only for ccip


[GasEstimator.BlockHistory]
BlockHistorySize = 200
CheckInclusionBlocks = 0 #required for AutoPurge zkoverflow replacement

[Transactions.AutoPurge]
Enabled = true
Expand Down
20 changes: 18 additions & 2 deletions core/chains/evm/config/toml/defaults/Metis_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Metis is an L2 chain based on Optimism.
ChainID = '1088'
ChainType = 'metis'
ChainType = 'optimismBedrock'
# Sequencer offers absolute finality
FinalityDepth = 10
# High variation on finality depth triggered a commitee to investigate
# and set 500 as a secure finality depth.
# https://chainlink-core.slack.com/archives/C0725LNLJLA/p1717118469587219
FinalityDepth = 500
# 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
MinIncomingConfirmations = 1
NoNewHeadsThreshold = '0'
Expand All @@ -19,3 +25,13 @@ BlockHistorySize = 0

[NodePool]
SyncThreshold = 10

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


[GasEstimator.DAOracle]
OracleType = 'opstack'
OracleAddress = '0x420000000000000000000000000000000000000F'
11 changes: 9 additions & 2 deletions core/chains/evm/config/toml/defaults/Metis_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
ChainID = '59902'
ChainType = 'metis'
FinalityDepth = 10
ChainType = 'optimismBedrock'
# 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 = 3000
FinalityTagEnabled = true
MinIncomingConfirmations = 1
NoNewHeadsThreshold = '0'
Expand All @@ -15,3 +18,7 @@ BlockHistorySize = 0

[NodePool]
SyncThreshold = 10

[GasEstimator.DAOracle]
OracleType = 'opstack'
OracleAddress = '0x420000000000000000000000000000000000000F'
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ FinalityTagBypass = false
[NodePool]
PollFailureThreshold = 2
PollInterval = '3s'

[GasEstimator.DAOracle]
OracleType = 'opstack'
OracleAddress = '0x420000000000000000000000000000000000000F'
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ FinalityTagBypass = false
[NodePool]
PollFailureThreshold = 2
PollInterval = '3s'

[GasEstimator.DAOracle]
OracleType = 'opstack'
OracleAddress = '0x420000000000000000000000000000000000000F'
38 changes: 38 additions & 0 deletions core/chains/evm/config/toml/defaults/Shibarium_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
ChainID = '109'
FinalityTagEnabled = true
LinkContractAddress = '0x71052BAe71C25C78E37fD12E5ff1101A71d9018F'
LogPollInterval = '1s'
MinIncomingConfirmations = 5
NoNewHeadsThreshold = '30s'
RPCBlockQueryDelay = 10
RPCDefaultBatchSize = 100

[Transactions]
ResendAfterThreshold = '1m'

[BalanceMonitor]
Enabled = true

[GasEstimator]
EIP1559DynamicFees = true
PriceDefault = '10 gwei'
PriceMin = '2 gwei'
BumpMin = '5 gwei'
BumpThreshold = 5
PriceMax = '10000 gwei'
LimitDefault = 8000000
FeeCapDefault = '10000 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

[HeadTracker]
HistoryDepth = 300
SamplingInterval = '1s'

[NodePool]
PollFailureThreshold = 2
PollInterval = '3s'
SyncThreshold = 10
Loading
Loading