Skip to content

Commit

Permalink
add Ronin configs (#1517)
Browse files Browse the repository at this point in the history
## Motivation


## Solution
  • Loading branch information
amaechiokolobi authored Nov 8, 2024
1 parent b6f48ec commit ab7fa09
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ccip/config/evm/Ronin_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ChainID = "2020"
FinalityTagEnabled = true
LinkContractAddress = "0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b"
# Ronin produces blocks every 3 seconds
LogPollInterval = "3s"
NoNewHeadsThreshold = "3m"

[GasEstimator]
# Ronin uses default gas price of 20 gwei https://docs.skymavis.com/mavis/mpc/guides/estimate-gas#overview
Mode = 'FeeHistory'
PriceMax = "1000 gwei"
11 changes: 11 additions & 0 deletions ccip/config/evm/Ronin_Saigon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ChainID = "2021"
FinalityTagEnabled = true
LinkContractAddress = "0x5bB50A6888ee6a67E22afFDFD9513be7740F1c15"
# Ronin produces blocks every 3 seconds
LogPollInterval = "3s"
NoNewHeadsThreshold = "3m"

[GasEstimator]
# Ronin uses default gas price of 20 gwei https://docs.skymavis.com/mavis/mpc/guides/estimate-gas#overview
Mode = 'FeeHistory'
PriceMax = "1000 gwei"
11 changes: 11 additions & 0 deletions core/chains/evm/config/toml/defaults/Ronin_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ChainID = "2020"
FinalityTagEnabled = true
LinkContractAddress = "0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b"
# Ronin produces blocks every 3 seconds
LogPollInterval = "3s"
NoNewHeadsThreshold = "3m"

[GasEstimator]
# Ronin uses default gas price of 20 gwei https://docs.skymavis.com/mavis/mpc/guides/estimate-gas#overview
Mode = 'FeeHistory'
PriceMax = "1000 gwei"
11 changes: 11 additions & 0 deletions core/chains/evm/config/toml/defaults/Ronin_Saigon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ChainID = "2021"
FinalityTagEnabled = true
LinkContractAddress = "0x5bB50A6888ee6a67E22afFDFD9513be7740F1c15"
# Ronin produces blocks every 3 seconds
LogPollInterval = "3s"
NoNewHeadsThreshold = "3m"

[GasEstimator]
# Ronin uses default gas price of 20 gwei https://docs.skymavis.com/mavis/mpc/guides/estimate-gas#overview
Mode = 'FeeHistory'
PriceMax = "1000 gwei"
206 changes: 206 additions & 0 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5874,6 +5874,212 @@ GasLimitDefault = 400000

</p></details>

<details><summary>Ronin Mainnet (2020)</summary><p>

```toml
AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 50
FinalityTagEnabled = true
LinkContractAddress = '0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b'
LogBackfillBatchSize = 1000
LogPollInterval = '3s'
LogKeepBlocksDepth = 100000
LogPrunePageSize = 10000
BackupLogPollerBlockDelay = 100
MinIncomingConfirmations = 3
MinContractPayment = '0.00001 link'
NonceAutoSync = true
NoNewHeadsThreshold = '3m0s'
LogBroadcasterEnabled = true
RPCDefaultBatchSize = 250
RPCBlockQueryDelay = 1
FinalizedBlockOffset = 0
NoNewFinalizedHeadsThreshold = '0s'

[Transactions]
ForwardersEnabled = false
MaxInFlight = 16
MaxQueued = 250
ReaperInterval = '1h0m0s'
ReaperThreshold = '168h0m0s'
ResendAfterThreshold = '1m0s'

[Transactions.AutoPurge]
Enabled = false

[BalanceMonitor]
Enabled = true

[GasEstimator]
Mode = 'FeeHistory'
PriceDefault = '20 gwei'
PriceMax = '1 micro'
PriceMin = '1 gwei'
LimitDefault = 8000000
LimitMax = 8000000
LimitMultiplier = '1'
LimitTransfer = 21000
EstimateLimit = false
BumpMin = '5 gwei'
BumpPercent = 20
BumpThreshold = 3
EIP1559DynamicFees = false
FeeCapDefault = '100 gwei'
TipCapDefault = '1 wei'
TipCapMin = '1 wei'

[GasEstimator.BlockHistory]
BatchSize = 25
BlockHistorySize = 8
CheckInclusionBlocks = 12
CheckInclusionPercentile = 90
TransactionPercentile = 60

[GasEstimator.FeeHistory]
CacheTimeout = '10s'

[HeadTracker]
HistoryDepth = 100
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true

[NodePool]
PollFailureThreshold = 5
PollInterval = '10s'
SelectionMode = 'HighestHead'
SyncThreshold = 5
LeaseDuration = '0s'
NodeIsSyncingEnabled = false
FinalizedBlockPollInterval = '5s'
EnforceRepeatableRead = false
DeathDeclarationDelay = '10s'
NewHeadsPollInterval = '0s'

[OCR]
ContractConfirmations = 4
ContractTransmitterTransmitTimeout = '10s'
DatabaseTimeout = '10s'
DeltaCOverride = '168h0m0s'
DeltaCJitterOverride = '1h0m0s'
ObservationGracePeriod = '1s'

[OCR2]
[OCR2.Automation]
GasLimit = 5400000

[Workflow]
GasLimitDefault = 400000
```

</p></details>

<details><summary>Ronin Saigon (2021)</summary><p>

```toml
AutoCreateKey = true
BlockBackfillDepth = 10
BlockBackfillSkip = false
FinalityDepth = 50
FinalityTagEnabled = true
LinkContractAddress = '0x5bB50A6888ee6a67E22afFDFD9513be7740F1c15'
LogBackfillBatchSize = 1000
LogPollInterval = '3s'
LogKeepBlocksDepth = 100000
LogPrunePageSize = 10000
BackupLogPollerBlockDelay = 100
MinIncomingConfirmations = 3
MinContractPayment = '0.00001 link'
NonceAutoSync = true
NoNewHeadsThreshold = '3m0s'
LogBroadcasterEnabled = true
RPCDefaultBatchSize = 250
RPCBlockQueryDelay = 1
FinalizedBlockOffset = 0
NoNewFinalizedHeadsThreshold = '0s'

[Transactions]
ForwardersEnabled = false
MaxInFlight = 16
MaxQueued = 250
ReaperInterval = '1h0m0s'
ReaperThreshold = '168h0m0s'
ResendAfterThreshold = '1m0s'

[Transactions.AutoPurge]
Enabled = false

[BalanceMonitor]
Enabled = true

[GasEstimator]
Mode = 'FeeHistory'
PriceDefault = '20 gwei'
PriceMax = '1 micro'
PriceMin = '1 gwei'
LimitDefault = 8000000
LimitMax = 8000000
LimitMultiplier = '1'
LimitTransfer = 21000
EstimateLimit = false
BumpMin = '5 gwei'
BumpPercent = 20
BumpThreshold = 3
EIP1559DynamicFees = false
FeeCapDefault = '100 gwei'
TipCapDefault = '1 wei'
TipCapMin = '1 wei'

[GasEstimator.BlockHistory]
BatchSize = 25
BlockHistorySize = 8
CheckInclusionBlocks = 12
CheckInclusionPercentile = 90
TransactionPercentile = 60

[GasEstimator.FeeHistory]
CacheTimeout = '10s'

[HeadTracker]
HistoryDepth = 100
MaxBufferSize = 3
SamplingInterval = '1s'
MaxAllowedFinalityDepth = 10000
FinalityTagBypass = true

[NodePool]
PollFailureThreshold = 5
PollInterval = '10s'
SelectionMode = 'HighestHead'
SyncThreshold = 5
LeaseDuration = '0s'
NodeIsSyncingEnabled = false
FinalizedBlockPollInterval = '5s'
EnforceRepeatableRead = false
DeathDeclarationDelay = '10s'
NewHeadsPollInterval = '0s'

[OCR]
ContractConfirmations = 4
ContractTransmitterTransmitTimeout = '10s'
DatabaseTimeout = '10s'
DeltaCOverride = '168h0m0s'
DeltaCJitterOverride = '1h0m0s'
ObservationGracePeriod = '1s'

[OCR2]
[OCR2.Automation]
GasLimit = 5400000

[Workflow]
GasLimitDefault = 400000
```

</p></details>

<details><summary>Kroma Sepolia (2358)</summary><p>

```toml
Expand Down

0 comments on commit ab7fa09

Please sign in to comment.