Skip to content

Commit dea4360

Browse files
committed
feat: create evm v1.1.0 jsons
1 parent 0f6ba36 commit dea4360

22 files changed

+214
-13
lines changed

scripts/ops/V110/destinations/UpgradeV110Destinations.s.sol

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1+
pragma solidity ^0.8.0;
2+
13
import "scripts/DeployFraxOFTProtocol/DeployFraxOFTProtocol.s.sol";
24

35
import { ERC1967Utils } from "@openzeppelin-5/contracts/proxy/ERC1967/ERC1967Utils.sol";
46

57
import { FraxOFTUpgradeable } from "contracts/FraxOFTUpgradeable.sol";
68
import { FrxUSDOFTUpgradeable } from "contracts/frxUsd/FrxUSDOFTUpgradeable.sol";
7-
import { SFrxUSDUpgradeable } from "contracts/frxUsd/SFrxUSDUpgradeable.sol";
9+
import { SFrxUSDOFTUpgradeable } from "contracts/frxUsd/SFrxUSDOFTUpgradeable.sol";
810
import { WFRAXTokenOFTUpgradeable } from "contracts/WFRAXTokenOFTUpgradeable.sol";
911

10-
abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
12+
13+
abstract contract UpgradeV110Destinations is DeployFraxOFTProtocol {
14+
using stdJson for string;
15+
using Strings for uint256;
1116

1217
address public oftImplementation;
1318
address public frxUsdImplementation;
1419
address public sfrxUsdImplementation;
1520
address public wfraxImplementation;
1621

17-
function filename() public override returns (string memory) {
22+
function filename() public view override returns (string memory) {
1823
string memory root = vm.projectRoot();
19-
root = string.concat(root, "/scripts/ops/V110/Destination/txs/");
24+
root = string.concat(root, "/scripts/ops/V110/destinations/txs/");
2025
string memory name = string.concat("UpgradeV110Destination-", simulateConfig.chainid.toString());
2126
name = string.concat(name, ".json");
2227

@@ -27,7 +32,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
2732

2833
// Setup environment
2934
vm.createSelectFork(_config.RPC);
30-
simulateConfig = _simulateConfig;
35+
simulateConfig = _config;
3136
_populateConnectedOfts();
3237
delete serializedTxs;
3338

@@ -41,7 +46,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
4146
implementations[0] = wfraxImplementation;
4247

4348
connectedOfts = new address[](1);
44-
connectedOfts[0] = ethereumFraxOft;
49+
connectedOfts[0] = ethFraxOft;
4550

4651
submitUpgrades(implementations);
4752
} else {
@@ -53,7 +58,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
5358
// align implementations to the order of connectedOfts array
5459
address[] memory implementations = new address[](6);
5560
implementations[0] = wfraxImplementation; // WFRAX
56-
implementations[1] = oftImplementation; // sfrxUSD
61+
implementations[1] = sfrxUsdImplementation; // sfrxUSD
5762
implementations[2] = oftImplementation; // sfrxETH
5863
implementations[3] = frxUsdImplementation; // frxUSD
5964
implementations[4] = oftImplementation; // frxETH
@@ -63,7 +68,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
6368
}
6469
}
6570

66-
function deployImplementations(address memory _endpoint) public {
71+
function deployImplementations(address _endpoint) public {
6772
deployOftImplementation(_endpoint);
6873
deployFrxUsdImplementation(_endpoint);
6974
deploySFrxUsdImplementation(_endpoint);
@@ -79,7 +84,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
7984
}
8085

8186
function deploySFrxUsdImplementation(address _endpoint) public {
82-
sfrxUsdImplementation = address(new SFrxUSDUpgradeable(_endpoint));
87+
sfrxUsdImplementation = address(new SFrxUSDOFTUpgradeable(_endpoint));
8388
}
8489

8590
function deployWFraxImplementation(address _endpoint) public {
@@ -100,7 +105,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
100105
address implementation = _implementations[i];
101106

102107
// cache the symbol to ensure we're upgrading to the right implementation
103-
string memory symbolBefore = IERC20Metadata(oft).symbol();
108+
string memory symbolBefore = FraxOFTUpgradeable(oft).symbol();
104109

105110
// Generate the msig slot
106111
bytes memory initData = abi.encodeWithSignature("initializeV110()");
@@ -122,7 +127,7 @@ abstract contract UpgradeV110Destination is DeployFraxOFTProtocol {
122127

123128
// post-upgrade validations
124129
require(
125-
isStringEqual(symbolBefore, IERC20Metadata(oft).symbol()),
130+
isStringEqual(symbolBefore, FraxOFTUpgradeable(oft).symbol()),
126131
"Upgrade failed: Symbol changed unexpectedly"
127132
);
128133

scripts/ops/V110/destinations/UpgradeV110DestinationsEVM.s.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import {UpgradeV110Destinations} from "./UpgradeV110Destinations.s.sol";
1+
pragma solidity ^0.8.0;
22

3+
import {UpgradeV110Destinations, L0Config} from "./UpgradeV110Destinations.s.sol";
4+
5+
// forge script scrtips/ops/V110/destinations/UpgradeV110DestinationsEVM.s.sol
36
contract UpgradeV110DestinationsEVM is UpgradeV110Destinations {
47

58
function run() public override {

scripts/ops/V110/destinations/UpgradeV110DestinationsZK.s.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import {UpgradeV110Destinations} from "./UpgradeV110Destinations.s.sol";
1+
pragma solidity ^0.8.0;
2+
3+
import {UpgradeV110Destinations, L0Config} from "./UpgradeV110Destinations.s.sol";
4+
25

36
contract UpgradeV110DestinationsZK is UpgradeV110Destinations {
47

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chainId": 1,
3+
"createdAt": 1755114947000,
4+
"meta": {
5+
"description": "",
6+
"name": "Transactions Batch"
7+
},
8+
"transactions": [{"data":"0x9623609d00000000000000000000000004acaf8d2865c0714f79da09645c13fd2888977f0000000000000000000000008b71237c759052c29a97408ce4b3b7cfebc525e0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"}],
9+
"version": "1.0"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chainId": 10,
3+
"createdAt": 1755114895000,
4+
"meta": {
5+
"description": "",
6+
"name": "Transactions Batch"
7+
},
8+
"transactions": [{"data":"0x9623609d00000000000000000000000064445f0aecc51e94ad52d8ac56b7190e764e561a000000000000000000000000aa2d2f45d1f84f9597dd3d750c3ba293ca6fc766000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000005bff88ca1442c2496f7e475e9e7786383bc070c0000000000000000000000000681975ddfebaeeeb7400b2407e4cbfe6c41573ad000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000003ec3849c33291a9ef4c5db86de593eb4a37fde4500000000000000000000000008f27a096cc262b9d100f169b5510ffda6596a99000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000080eede496655fb9047dd39d9f418d5483ed600df0000000000000000000000002581533557620cf6d2cafef9d64957a483e40288000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000043edd7f3831b08fe70b7555ddd373c8bf65a905000000000000000000000000008f27a096cc262b9d100f169b5510ffda6596a99000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000090581eca9469d8d7f5d3b60f4715027adfcf792700000000000000000000000008f27a096cc262b9d100f169b5510ffda6596a99000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"}],
9+
"version": "1.0"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chainId": 1101,
3+
"createdAt": 1755114928000,
4+
"meta": {
5+
"description": "",
6+
"name": "Transactions Batch"
7+
},
8+
"transactions": [{"data":"0x9623609d00000000000000000000000064445f0aecc51e94ad52d8ac56b7190e764e561a000000000000000000000000444c29c5a8f9e9062897a86962701e0bfbc111e2000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000005bff88ca1442c2496f7e475e9e7786383bc070c0000000000000000000000000ab172011d646d26d64c7497883ef287126259620000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000003ec3849c33291a9ef4c5db86de593eb4a37fde450000000000000000000000000d306f11b93aa60881ab271b1365b2f3db144388000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000080eede496655fb9047dd39d9f418d5483ed600df000000000000000000000000f74e2e0bb994fd7833dfad67b7d582fe7d84a450000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000043edd7f3831b08fe70b7555ddd373c8bf65a90500000000000000000000000000d306f11b93aa60881ab271b1365b2f3db144388000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000090581eca9469d8d7f5d3b60f4715027adfcf79270000000000000000000000000d306f11b93aa60881ab271b1365b2f3db144388000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"}],
9+
"version": "1.0"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chainId": 130,
3+
"createdAt": 1755115001000,
4+
"meta": {
5+
"description": "",
6+
"name": "Transactions Batch"
7+
},
8+
"transactions": [{"data":"0x9623609d00000000000000000000000064445f0aecc51e94ad52d8ac56b7190e764e561a00000000000000000000000036c28ef9a8116a64752efd6b9efa3056f24a82ae000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000005bff88ca1442c2496f7e475e9e7786383bc070c00000000000000000000000004e7f19d86a81857c46e87182a14b4e894b8ada1a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000003ec3849c33291a9ef4c5db86de593eb4a37fde4500000000000000000000000091a3f8a8d7a881fbdfcfecd7a2dc92a46dcfa14e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000080eede496655fb9047dd39d9f418d5483ed600df000000000000000000000000231788c09f3936cd343c4f1bded89f0fbe80719c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000043edd7f3831b08fe70b7555ddd373c8bf65a905000000000000000000000000091a3f8a8d7a881fbdfcfecd7a2dc92a46dcfa14e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000090581eca9469d8d7f5d3b60f4715027adfcf792700000000000000000000000091a3f8a8d7a881fbdfcfecd7a2dc92a46dcfa14e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"}],
9+
"version": "1.0"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chainId": 1329,
3+
"createdAt": 1755114822000,
4+
"meta": {
5+
"description": "",
6+
"name": "Transactions Batch"
7+
},
8+
"transactions": [{"data":"0x9623609d00000000000000000000000064445f0aecc51e94ad52d8ac56b7190e764e561a000000000000000000000000a140ac7d8eda834933bbb94a575ec7037386079d000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000005bff88ca1442c2496f7e475e9e7786383bc070c0000000000000000000000000bc36cb5a521458c41a9ce6199bc9cc62e4069c7f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000003ec3849c33291a9ef4c5db86de593eb4a37fde450000000000000000000000003d9ec5191af8447bbcb61ff460944056be350013000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000080eede496655fb9047dd39d9f418d5483ed600df000000000000000000000000b5e839659bb9070cce2bec3db8f038f0e7950cd5000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000043edd7f3831b08fe70b7555ddd373c8bf65a90500000000000000000000000003d9ec5191af8447bbcb61ff460944056be350013000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000090581eca9469d8d7f5d3b60f4715027adfcf79270000000000000000000000003d9ec5191af8447bbcb61ff460944056be350013000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"}],
9+
"version": "1.0"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"chainId": 137,
3+
"createdAt": 1755114910000,
4+
"meta": {
5+
"description": "",
6+
"name": "Transactions Batch"
7+
},
8+
"transactions": [{"data":"0x9623609d00000000000000000000000064445f0aecc51e94ad52d8ac56b7190e764e561a0000000000000000000000006d5791e23e026ca13e1ce74de2f7beea29d5aa7e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000005bff88ca1442c2496f7e475e9e7786383bc070c000000000000000000000000002a7a4bff1edac698bac1a2380a208f2e6a56697000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d0000000000000000000000003ec3849c33291a9ef4c5db86de593eb4a37fde450000000000000000000000008383edf0b101249a632d1d5372baf0d7709d65fe000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000080eede496655fb9047dd39d9f418d5483ed600df0000000000000000000000002e760c086fbcac54437153999eedef3a9f29013e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000043edd7f3831b08fe70b7555ddd373c8bf65a90500000000000000000000000008383edf0b101249a632d1d5372baf0d7709d65fe000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"},{"data":"0x9623609d00000000000000000000000090581eca9469d8d7f5d3b60f4715027adfcf79270000000000000000000000008383edf0b101249a632d1d5372baf0d7709d65fe000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000043714fffa00000000000000000000000000000000000000000000000000000000","operation":"0","to":"0x223a681fc5c5522c85C96157c0efA18cd6c5405c","value":"0"}],
9+
"version": "1.0"
10+
}

0 commit comments

Comments
 (0)