From 619ac190b32ca819fedafc86ef59770ab8dc5520 Mon Sep 17 00:00:00 2001 From: ReposCollector Date: Tue, 15 Oct 2024 11:05:12 +0900 Subject: [PATCH] whitelist EigenLayer RewardsCoordinator's processClaim to claim AVS rewards --- ...4_whitelist_RewardsCoordinator_processClaim.json | 13 +++++++++++++ test/EtherFiTimelock.sol | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 operations/20241014_whitelist_RewardsCoordinator_processClaim.json diff --git a/operations/20241014_whitelist_RewardsCoordinator_processClaim.json b/operations/20241014_whitelist_RewardsCoordinator_processClaim.json new file mode 100644 index 00000000..97b247d2 --- /dev/null +++ b/operations/20241014_whitelist_RewardsCoordinator_processClaim.json @@ -0,0 +1,13 @@ +{ "version": "1.0", "chainId": "1", "meta": { "name": "Transactions Batch", "description": "", "txBuilderVersion": "1.16.5", "createdFromSafeAddress": "0xcdd57D11476c22d265722F68390b036f3DA48c21" }, "transactions": [ +{ + "to": "0x9f26d4C958fD811A1F59B01B86Be7dFFc9d20761", + "value": "0", + "data": "0x01d5062a0000000000000000000000008b71140ad2e5d1e7018d2a7f8a288bd3cd38916f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f4800000000000000000000000000000000000000000000000000000000000000064c7f61eec3ccc861d000000000000000000000000000000000000000000000000000000000000000000000000000000007750d328b314effa365a0402ccfd489b80b0adda000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000" +} +, +{ + "to": "0x9f26d4C958fD811A1F59B01B86Be7dFFc9d20761", + "value": "0", + "data": "0x134008d30000000000000000000000008b71140ad2e5d1e7018d2a7f8a288bd3cd38916f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c7f61eec3ccc861d000000000000000000000000000000000000000000000000000000000000000000000000000000007750d328b314effa365a0402ccfd489b80b0adda000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000" +} +] } diff --git a/test/EtherFiTimelock.sol b/test/EtherFiTimelock.sol index 433c95e6..62c7935c 100644 --- a/test/EtherFiTimelock.sol +++ b/test/EtherFiTimelock.sol @@ -313,6 +313,15 @@ contract TimelockTest is TestSetup { _execute_timelock(target, data, true, true, true, true); } } + + function test_whitelist_RewardsCoordinator_processClaim() public { + initializeRealisticFork(MAINNET_FORK); + address target = address(managerInstance); + bytes4 selector = 0x3ccc861d; + + bytes memory data = abi.encodeWithSelector(EtherFiNodesManager.updateAllowedForwardedExternalCalls.selector, selector, 0x7750d328b314EfFa365A0402CcfD489B80B0adda, true); + _execute_timelock(target, data, true, true, true, true); + } } // {"version":"1.0","chainId":"1 \ No newline at end of file