From 73bca64aadeb0f5b62a084bd8a65aa5e7a8a0af5 Mon Sep 17 00:00:00 2001 From: joaoluisam Date: Tue, 12 Nov 2024 10:37:34 +0000 Subject: [PATCH] add_lens_configs --- .../config/toml/defaults/Lens_Testnet.toml | 21 ++++++++++++++ .../ocr2/overrides/lens_sepolia.toml | 29 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 core/chains/evm/config/toml/defaults/Lens_Testnet.toml create mode 100644 integration-tests/testconfig/ocr2/overrides/lens_sepolia.toml diff --git a/core/chains/evm/config/toml/defaults/Lens_Testnet.toml b/core/chains/evm/config/toml/defaults/Lens_Testnet.toml new file mode 100644 index 00000000000..56b577d21b2 --- /dev/null +++ b/core/chains/evm/config/toml/defaults/Lens_Testnet.toml @@ -0,0 +1,21 @@ +ChainID = '37111' +ChainType = 'zksync' +# Lens has batches every 8 hours with a dynamic block time. Using 200 as compat tests gave 30-160 and adding cushioning +FinalityDepth = 200 +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, since blockRate is pretty fast +NoNewHeadsThreshold = '10m' + +[EVM.GasEstimator] +# no EIP1559 to ensure our estimator doesnot estimate gas with MaxPriorityFee which will break minFunding requirement +EIP1559DynamicFees = false +LimitDefault = 250_000_000 +Mode = 'FeeHistory' +# The FeeHistory estimator does not enforce PriceMin, setting it to 0 to not place any limits on the price +PriceMin = '0' +BumpPercent = 40 + +[EVM.HeadTracker] +HistoryDepth = 250 diff --git a/integration-tests/testconfig/ocr2/overrides/lens_sepolia.toml b/integration-tests/testconfig/ocr2/overrides/lens_sepolia.toml new file mode 100644 index 00000000000..8aed973019d --- /dev/null +++ b/integration-tests/testconfig/ocr2/overrides/lens_sepolia.toml @@ -0,0 +1,29 @@ +[ChainlinkImage] +version = "845a5ca616ad9f974316819cc29102da783307d9" + +[Network] +selected_networks = ["LENS_SEPOLIA"] + +[Soak.Common] +chainlink_node_funding = 10 + +[Soak.OCR2] +[Soak.OCR2.Common] +test_duration = "24h" + +[Soak.OCR2.Soak] +time_between_rounds = "5m" + +[OCR2.Common] +number_of_contracts = 2 + +[Network.EVMNetworks.LENS_SEPOLIA] +evm_name = "LENS_SEPOLIA" +evm_chain_id = 37111 +client_implementation = "Ethereum" +evm_simulated = false +evm_chainlink_transaction_limit = 5000 +evm_minimum_confirmations = 1 +evm_gas_estimation_buffer = 100000 +evm_supports_eip1559 = true +evm_default_gas_limit = 6000000