From 962afe3d7ad79eadedb7697e6de92db9847e4163 Mon Sep 17 00:00:00 2001 From: ReposCollector Date: Thu, 17 Oct 2024 13:18:06 +0900 Subject: [PATCH] add timelock txns --- operations/20241018_upgrade_liquifier.json | 13 +++++++++++++ test/EtherFiTimelock.sol | 10 +++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 operations/20241018_upgrade_liquifier.json diff --git a/operations/20241018_upgrade_liquifier.json b/operations/20241018_upgrade_liquifier.json new file mode 100644 index 00000000..1eff3268 --- /dev/null +++ b/operations/20241018_upgrade_liquifier.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": "0x01d5062a0000000000000000000000009ffdf407cde9a93c47611799da23924af3ef764f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f48000000000000000000000000000000000000000000000000000000000000000243659cfe60000000000000000000000006b6d4e2dfcb864c83e29641429c528e8016bacdf00000000000000000000000000000000000000000000000000000000" +} +, +{ + "to": "0x9f26d4C958fD811A1F59B01B86Be7dFFc9d20761", + "value": "0", + "data": "0x134008d30000000000000000000000009ffdf407cde9a93c47611799da23924af3ef764f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000243659cfe60000000000000000000000006b6d4e2dfcb864c83e29641429c528e8016bacdf00000000000000000000000000000000000000000000000000000000" +} +] } diff --git a/test/EtherFiTimelock.sol b/test/EtherFiTimelock.sol index 62c7935c..8cb56dc2 100644 --- a/test/EtherFiTimelock.sol +++ b/test/EtherFiTimelock.sol @@ -318,10 +318,18 @@ contract TimelockTest is TestSetup { 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); } + + function test_upgrade_liquifier() public { + initializeRealisticFork(MAINNET_FORK); + { + address target = address(liquifierInstance); + bytes memory data = abi.encodeWithSelector(UUPSUpgradeable.upgradeTo.selector, 0x6B6D4e2DFcB864c83E29641429C528e8016BaCDf); + _execute_timelock(target, data, true, true, true, true); + } + } } // {"version":"1.0","chainId":"1 \ No newline at end of file