From 2422d8c5b9b57839ccd0d60eab1f21448f141d4f Mon Sep 17 00:00:00 2001 From: Yuri Tkachenko Date: Thu, 30 Apr 2026 15:08:14 +0100 Subject: [PATCH 1/2] chore: convert CircuitBreaker config to YAML --- .../circuit_breaker_config.json | 29 ------------------- .../circuit_breaker_config.yaml | 26 +++++++++++++++++ 2 files changed, 26 insertions(+), 29 deletions(-) delete mode 100644 config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.json create mode 100644 config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.yaml diff --git a/config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.json b/config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.json deleted file mode 100644 index 4d342c7..0000000 --- a/config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "contracts": { - "0x6019cB557978296Ba3C08a7B73225C0975dfb2f7": "CircuitBreaker" - }, - "explorer_hostname": "api.etherscan.io", - "explorer_token_env_var": "ETHERSCAN_EXPLORER_TOKEN", - "explorer_chain_id": 1, - "github_repo": { - "url": "https://github.com/lidofinance/circuit-breaker/", - "commit": "780652f041f51596963dd028f1d59718adcd12be", - "relative_root": "" - }, - "dependencies": {}, - "fail_on_bytecode_comparison_error": true, - "bytecode_comparison": { - "constructor_calldata": {}, - "constructor_args": { - "0x6019cB557978296Ba3C08a7B73225C0975dfb2f7": [ - "0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c", - 432000, - 5184000, - 2592000, - 94608000, - 1814400, - 31536000 - ] - } - } -} diff --git a/config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.yaml b/config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.yaml new file mode 100644 index 0000000..739e105 --- /dev/null +++ b/config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.yaml @@ -0,0 +1,26 @@ +contracts: + "0x6019cB557978296Ba3C08a7B73225C0975dfb2f7": CircuitBreaker + +explorer_hostname: api.etherscan.io +explorer_token_env_var: ETHERSCAN_EXPLORER_TOKEN +explorer_chain_id: 1 + +github_repo: + url: https://github.com/lidofinance/circuit-breaker/ + # https://github.com/lidofinance/audits/blob/ec84cf548f04c98cabb144d1c457e3256c8c9ae9/Cyfrin%20CircuitBreaker%20Audit%20Report%2004-2026.pdf + commit: b4b2fbc921b3191560a3fc62d502d4bb98ad99e1 + relative_root: "" + +fail_on_bytecode_comparison_error: true + +bytecode_comparison: + constructor_calldata: {} + constructor_args: + "0x6019cB557978296Ba3C08a7B73225C0975dfb2f7": + - "0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c" + - 432000 + - 5184000 + - 2592000 + - 94608000 + - 1814400 + - 31536000 From 2aca2569bfe3e8d0b1b9845ec2b1b487ea0e2f11 Mon Sep 17 00:00:00 2001 From: Yuri Tkachenko Date: Thu, 30 Apr 2026 15:14:43 +0100 Subject: [PATCH 2/2] ci: add CircuitBreaker config to regression matrix --- .github/workflows/regression.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 61e8eb2..0a854ac 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -62,6 +62,9 @@ jobs: - config: config_samples/ethereum/mainnet/tw/tw_config.json network: mainnet flags: "" + - config: config_samples/ethereum/mainnet/circuit-breaker/circuit_breaker_config.yaml + network: mainnet + flags: "" - config: config_samples/ethereum/mainnet/tw/tw_easy_track_config.json network: mainnet flags: >