Skip to content

Commit

Permalink
add timelock txns
Browse files Browse the repository at this point in the history
  • Loading branch information
seongyun-ko committed Oct 17, 2024
1 parent be643a4 commit 962afe3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions operations/20241018_upgrade_liquifier.json
Original file line number Diff line number Diff line change
@@ -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"
}
] }
10 changes: 9 additions & 1 deletion test/EtherFiTimelock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 962afe3

Please sign in to comment.