Skip to content

Commit

Permalink
Add Lens TOML Config and Error Mapping (#15624)
Browse files Browse the repository at this point in the history
* add lens config

* add changeset
  • Loading branch information
flodesi authored Dec 11, 2024
1 parent 3e74cb9 commit 8f6c3b4
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-yaks-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#added Lens Sepolia config
34 changes: 34 additions & 0 deletions ccip/config/evm/Lens_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
2 changes: 1 addition & 1 deletion core/chains/evm/client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ var harmony = ClientErrors{
var zkSync = ClientErrors{
NonceTooLow: regexp.MustCompile(`(?:: |^)nonce too low\..+actual: \d*$`),
NonceTooHigh: regexp.MustCompile(`(?:: |^)nonce too high\..+actual: \d*$`),
TerminallyUnderpriced: regexp.MustCompile(`(?:: |^)(max fee per gas less than block base fee|virtual machine entered unexpected state. please contact developers and provide transaction details that caused this error. Error description: The operator included transaction with an unacceptable gas price)$`),
TerminallyUnderpriced: regexp.MustCompile(`(?:: |^)(max fee per gas less than block base fee|virtual machine entered unexpected state. (?:P|p)lease contact developers and provide transaction details that caused this error. Error description: (?:The operator included transaction with an unacceptable gas price|Assertion error: Fair pubdata price too high))$`),
InsufficientEth: regexp.MustCompile(`(?:: |^)(?:insufficient balance for transfer$|insufficient funds for gas + value)`),
TxFeeExceedsCap: regexp.MustCompile(`(?:: |^)max priority fee per gas higher than max fee per gas$`),
// intrinsic gas too low - gas limit less than 14700
Expand Down
1 change: 1 addition & 0 deletions core/chains/evm/client/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func Test_Eth_Errors(t *testing.T) {
{"intrinsic gas too low", true, "Klaytn"},
{"max fee per gas less than block base fee", true, "zkSync"},
{"virtual machine entered unexpected state. please contact developers and provide transaction details that caused this error. Error description: The operator included transaction with an unacceptable gas price", true, "zkSync"},
{"failed to validate the transaction. reason: Validation revert: virtual machine entered unexpected state. Please contact developers and provide transaction details that caused this error. Error description: Assertion error: Fair pubdata price too high", true, "zkSync"},
{"client error terminally underpriced", true, "tomlConfig"},
{"gas price less than block base fee", true, "aStar"},
{"[Request ID: e4d09e44-19a4-4eb7-babe-270db4c2ebc9] Gas price '830000000000' is below configured minimum gas price '950000000000'", true, "hedera"},
Expand Down

0 comments on commit 8f6c3b4

Please sign in to comment.