Skip to content

Commit

Permalink
Missing config defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-sekara committed Jan 20, 2025
1 parent cb6565d commit 98a9dff
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 0 deletions.
34 changes: 34 additions & 0 deletions core/chains/evm/config/toml/defaults/Blast_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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.
# So we set this to zero so FeeCap = baseFee + tipcap.
EIP1559FeeCapBufferBlocks = 0

[HeadTracker]
HistoryDepth = 300

[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'
34 changes: 34 additions & 0 deletions core/chains/evm/config/toml/defaults/Blast_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
# 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

[HeadTracker]
HistoryDepth = 300

[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'
33 changes: 33 additions & 0 deletions core/chains/evm/config/toml/defaults/Mode_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
ChainID = '34443'
FinalityDepth = 200
FinalityTagEnabled = true
ChainType = 'optimismBedrock'

[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.
# 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]
PollFailureThreshold = 2
PollInterval = '3s'
33 changes: 33 additions & 0 deletions core/chains/evm/config/toml/defaults/Mode_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
ChainID = '919'
FinalityDepth = 200
FinalityTagEnabled = true
ChainType = 'optimismBedrock'

[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.
# 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]
PollFailureThreshold = 2
PollInterval = '3s'

0 comments on commit 98a9dff

Please sign in to comment.