From 40f6653e22e47a159bba826eee314759ce54fbea Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Wed, 11 Dec 2024 20:47:52 +0100 Subject: [PATCH 1/6] add PolygonMigration 1.2.0 upgrade script --- script/1.2.0/UpgradeEmissionManager.s.sol | 2 +- script/1.2.0/UpgradePolygonMigration.sol | 79 +++++++++++++++++++++++ script/1.2.0/input.json | 8 ++- 3 files changed, 86 insertions(+), 3 deletions(-) create mode 100644 script/1.2.0/UpgradePolygonMigration.sol diff --git a/script/1.2.0/UpgradeEmissionManager.s.sol b/script/1.2.0/UpgradeEmissionManager.s.sol index ab64260..f0bf1bf 100644 --- a/script/1.2.0/UpgradeEmissionManager.s.sol +++ b/script/1.2.0/UpgradeEmissionManager.s.sol @@ -19,7 +19,7 @@ contract UpgradeEmissionManager is Script { string memory input = vm.readFile("script/1.2.0/input.json"); string memory chainIdSlug = string(abi.encodePacked('["', vm.toString(block.chainid), '"]')); address emProxyAddress = input.readAddress(string.concat(chainIdSlug, ".emissionManagerProxy")); - address emProxyAdmin = input.readAddress(string.concat(chainIdSlug, ".emProxyAdmin")); + address emProxyAdmin = input.readAddress(string.concat(chainIdSlug, ".proxyAdmin")); address newTreasury = input.readAddress(string.concat(chainIdSlug, ".treasury")); vm.startBroadcast(deployerPrivateKey); diff --git a/script/1.2.0/UpgradePolygonMigration.sol b/script/1.2.0/UpgradePolygonMigration.sol new file mode 100644 index 0000000..5d30a61 --- /dev/null +++ b/script/1.2.0/UpgradePolygonMigration.sol @@ -0,0 +1,79 @@ +// SPDX-License-Identifier: MIT +pragma solidity 0.8.21; + +import {Script, stdJson, console2 as console} from "forge-std/Script.sol"; + +import { + ProxyAdmin, + TransparentUpgradeableProxy, + ITransparentUpgradeableProxy +} from "openzeppelin-contracts/contracts/proxy/transparent/ProxyAdmin.sol"; +import {ERC20PresetMinterPauser} from "openzeppelin-contracts/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; +import {PolygonEcosystemToken} from "src/PolygonEcosystemToken.sol"; +import {PolygonMigration} from "../../src/PolygonMigration.sol"; + +contract UpgradeEmissionManager is Script { + using stdJson for string; + + function run() public { + uint256 deployerPrivateKey = vm.promptSecretUint("Enter private key:"); + + string memory input = vm.readFile("script/1.2.0/input.json"); + string memory chainIdSlug = string(abi.encodePacked('["', vm.toString(block.chainid), '"]')); + address pmProxyAddress = input.readAddress(string.concat(chainIdSlug, ".polygonMigrationProxy")); + address pmProxyAdmin = input.readAddress(string.concat(chainIdSlug, ".proxyAdmin")); + address proxyAdminOwner = input.readAddress(string.concat(chainIdSlug, ".proxyAdminOwner")); + + vm.startBroadcast(deployerPrivateKey); + + PolygonMigration pmProxy = PolygonMigration(pmProxyAddress); + + address matic = address(pmProxy.matic()); + + PolygonMigration newEmImpl = new PolygonMigration(matic); + + vm.stopBroadcast(); + + bytes memory payload = abi.encodeWithSelector( + ProxyAdmin.upgrade.selector, ITransparentUpgradeableProxy(pmProxyAddress), address(newEmImpl) + ); + + console.log("newImpl: ", address(newEmImpl)); + console.log( + "current Impl: ", + ProxyAdmin(pmProxyAdmin).getProxyImplementation(ITransparentUpgradeableProxy(pmProxyAddress)) + ); + + // test execution + vm.prank(proxyAdminOwner); + (bool success, /* bytes memory returnData */ ) = pmProxyAdmin.call(payload); + + assert(success); + + // check new implementation address + assert( + ProxyAdmin(pmProxyAdmin).getProxyImplementation(ITransparentUpgradeableProxy(pmProxyAddress)) + == address(newEmImpl) + ); + + // test migrateTo + ERC20PresetMinterPauser maticContract = ERC20PresetMinterPauser(matic); + address user = makeAddr("user"); + address migrateTo = makeAddr("migrateTo"); + uint256 amount = 1000; + uint256 balanceBefore = maticContract.balanceOf(address(pmProxyAddress)); + + vm.startPrank(matic); + maticContract.transfer(user, amount); + vm.startPrank(user); + maticContract.approve(address(pmProxyAddress), amount); + PolygonMigration(pmProxyAddress).migrateTo(migrateTo, amount); + + vm.assertEq(maticContract.balanceOf(user), 0); + vm.assertEq(maticContract.balanceOf(address(pmProxyAddress)), balanceBefore + amount); + vm.assertEq(PolygonEcosystemToken(0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6).balanceOf(migrateTo), amount); + + console.log("Send this payload to: ", pmProxyAdmin); + console.logBytes(payload); + } +} diff --git a/script/1.2.0/input.json b/script/1.2.0/input.json index 698a6b0..312b166 100644 --- a/script/1.2.0/input.json +++ b/script/1.2.0/input.json @@ -1,12 +1,16 @@ { "1": { "emissionManagerProxy": "0xbC9f74b3b14f460a6c47dCdDFd17411cBc7b6c53", - "emProxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3", + "polygonMigrationProxy": "0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e", + "proxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3", + "proxyAdminOwner": "0x37D085ca4a24f6b29214204E8A8666f12cf19516", "treasury": "0x86380e136A3AaD5677A210Ad02713694c4E6a5b9" }, "11155111": { "emissionManagerProxy": "0x20393fF3B3C38b72a16eB7d7A474cd38ABD8Ff27", - "emProxyAdmin": "0x28cDCE6FfE44D03da1F7b15b474a0e72243873F2", + "polygonMigrationProxy": "0x3A3B750E7d4d389Bc1d0be20E5D09530F82B9911", + "proxyAdmin": "0x28cDCE6FfE44D03da1F7b15b474a0e72243873F2", + "proxyAdminOwner": "0xeE76bECaF80fFe451c8B8AFEec0c21518Def02f9", "treasury": "0xeE76bECaF80fFe451c8B8AFEec0c21518Def02f9" } } From 50ab5ec04d038cae0a9fd89db989e7c0112cd225 Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Wed, 11 Dec 2024 20:48:19 +0100 Subject: [PATCH 2/6] fix EmissionManager 1.3.0 script --- foundry.toml | 1 + lib/forge-std | 2 +- script/1.3.0/UpgradeEmissionManager.s.sol | 2 +- script/1.3.0/input.json | 0 4 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 script/1.3.0/input.json diff --git a/foundry.toml b/foundry.toml index 3a743fd..87c8d3b 100644 --- a/foundry.toml +++ b/foundry.toml @@ -12,6 +12,7 @@ fs_permissions = [ { access = "read", path = "script/1.0.0/input.json" }, { access = "read", path = "script/1.1.0/input.json" }, { access = "read", path = "script/1.2.0/input.json" }, + { access = "read", path = "script/1.3.0/input.json" }, ] [rpc_endpoints] diff --git a/lib/forge-std b/lib/forge-std index e8a047e..1714bee 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit e8a047e3f40f13fa37af6fe14e6e06283d9a060e +Subproject commit 1714bee72e286e73f76e320d110e0eaf5c4e649d diff --git a/script/1.3.0/UpgradeEmissionManager.s.sol b/script/1.3.0/UpgradeEmissionManager.s.sol index 34846d4..037260b 100644 --- a/script/1.3.0/UpgradeEmissionManager.s.sol +++ b/script/1.3.0/UpgradeEmissionManager.s.sol @@ -16,7 +16,7 @@ contract UpgradeEmissionManager is Script { function run() public { uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); - string memory input = vm.readFile("script/1.2.0/input.json"); + string memory input = vm.readFile("script/1.3.0/input.json"); string memory chainIdSlug = string(abi.encodePacked('["', vm.toString(block.chainid), '"]')); address emProxyAddress = input.readAddress(string.concat(chainIdSlug, ".emissionManagerProxy")); address emProxyAdmin = input.readAddress(string.concat(chainIdSlug, ".emProxyAdmin")); diff --git a/script/1.3.0/input.json b/script/1.3.0/input.json old mode 100644 new mode 100755 From 4a49ea0563c1e01239e787743b2e807e99c1b6ad Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Wed, 11 Dec 2024 22:59:08 +0100 Subject: [PATCH 3/6] prepare sepolia deployment --- script/1.2.0/UpgradePolygonMigration.sol | 3 ++- script/1.2.0/input.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/script/1.2.0/UpgradePolygonMigration.sol b/script/1.2.0/UpgradePolygonMigration.sol index 5d30a61..b1fd97e 100644 --- a/script/1.2.0/UpgradePolygonMigration.sol +++ b/script/1.2.0/UpgradePolygonMigration.sol @@ -23,6 +23,7 @@ contract UpgradeEmissionManager is Script { address pmProxyAddress = input.readAddress(string.concat(chainIdSlug, ".polygonMigrationProxy")); address pmProxyAdmin = input.readAddress(string.concat(chainIdSlug, ".proxyAdmin")); address proxyAdminOwner = input.readAddress(string.concat(chainIdSlug, ".proxyAdminOwner")); + address pol = input.readAddress(string.concat(chainIdSlug, ".polToken")); vm.startBroadcast(deployerPrivateKey); @@ -71,7 +72,7 @@ contract UpgradeEmissionManager is Script { vm.assertEq(maticContract.balanceOf(user), 0); vm.assertEq(maticContract.balanceOf(address(pmProxyAddress)), balanceBefore + amount); - vm.assertEq(PolygonEcosystemToken(0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6).balanceOf(migrateTo), amount); + vm.assertEq(PolygonEcosystemToken(pol).balanceOf(migrateTo), amount); console.log("Send this payload to: ", pmProxyAdmin); console.logBytes(payload); diff --git a/script/1.2.0/input.json b/script/1.2.0/input.json index 312b166..c9f7949 100644 --- a/script/1.2.0/input.json +++ b/script/1.2.0/input.json @@ -4,13 +4,15 @@ "polygonMigrationProxy": "0x29e7DF7b6A1B2b07b731457f499E1696c60E2C4e", "proxyAdmin": "0xEBea33f2c92D03556b417F4F572B2FbbE62C39c3", "proxyAdminOwner": "0x37D085ca4a24f6b29214204E8A8666f12cf19516", - "treasury": "0x86380e136A3AaD5677A210Ad02713694c4E6a5b9" + "treasury": "0x86380e136A3AaD5677A210Ad02713694c4E6a5b9", + "polToken": "0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6" }, "11155111": { "emissionManagerProxy": "0x20393fF3B3C38b72a16eB7d7A474cd38ABD8Ff27", "polygonMigrationProxy": "0x3A3B750E7d4d389Bc1d0be20E5D09530F82B9911", "proxyAdmin": "0x28cDCE6FfE44D03da1F7b15b474a0e72243873F2", "proxyAdminOwner": "0xeE76bECaF80fFe451c8B8AFEec0c21518Def02f9", - "treasury": "0xeE76bECaF80fFe451c8B8AFEec0c21518Def02f9" + "treasury": "0xeE76bECaF80fFe451c8B8AFEec0c21518Def02f9", + "polToken": "0x44499312f493F62f2DFd3C6435Ca3603EbFCeeBa" } } From cc70d0bb35e474c8ec25dd93800cb6cba9ba6dc1 Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Wed, 11 Dec 2024 22:59:38 +0100 Subject: [PATCH 4/6] deploy: PolygonMigration 1.2.0 sepolia --- .../11155111/run-1733947305.json | 62 +++++++++++++++++++ .../11155111/run-latest.json | 62 +++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 broadcast/UpgradePolygonMigration.sol/11155111/run-1733947305.json create mode 100644 broadcast/UpgradePolygonMigration.sol/11155111/run-latest.json diff --git a/broadcast/UpgradePolygonMigration.sol/11155111/run-1733947305.json b/broadcast/UpgradePolygonMigration.sol/11155111/run-1733947305.json new file mode 100644 index 0000000..fb2e809 --- /dev/null +++ b/broadcast/UpgradePolygonMigration.sol/11155111/run-1733947305.json @@ -0,0 +1,62 @@ +{ + "transactions": [ + { + "hash": "0xd13c8aadfc7ff180490235cf704a8946c8d0016195a4bb7482943cbfd8f1cb94", + "transactionType": "CREATE", + "contractName": "PolygonMigration", + "contractAddress": "0xeba42dcab2c8264e6c2f5cb45c352bae7c74b9b4", + "function": null, + "arguments": [ + "0x3fd0A53F4Bf853985a95F4Eb3F9C9FDE1F8e2b53" + ], + "transaction": { + "from": "0x0724d72eb61e508d81ca701881f2248f092953bf", + "gas": "0x125752", + "value": "0x0", + "input": "0x60a03461014957601f6110a638819003918201601f19168301916001600160401b0383118484101761014e5780849260209460405283398101031261014957516001600160a01b038116908190036101495780156101375760805260005460ff8160081c166100e25760ff808216036100a7575b604051610f41908161016582396080518181816101cf0152818161027301528181610591015281816109100152610aa40152f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610073565b60405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60405163e6c4247b60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040908082526004918236101561001757600080fd5b600092833560e01c9283630d213d3114610a3f575082632398344c146109c757826342966c6814610947578263454b0608146108bb5782634b052e7b146108945782634c0f54ea1461082357826354fd4d50146107e2578263715018a61461077b57826379ba5097146106f65782638129fc1c146105c3578263899d2590146105175782638da5cb5b146104ee578263a0ae9ff0146102a2578263b6b0b0971461025e578263b8c97ded14610235578263e30c397814610208578263efeff0c11461015d57505063f2fde38b146100ed57600080fd5b3461015a57602036600319011261015a57610106610ad9565b61010e610b8e565b606580546001600160a01b0319166001600160a01b039283169081179091556033549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b80fd5b90915034610204576020366003190112610204578035916097549160ff8360a01c166101f65750826101f393926101cc925182815233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a3309033906001600160a01b0316610cdd565b337f0000000000000000000000000000000000000000000000000000000000000000610c9a565b80f35b9051630608786960e51b8152fd5b8280fd5b83823461023157816003193601126102315760655490516001600160a01b039091168152602090f35b5080fd5b83823461023157816003193601126102315760975490516001600160a01b039091168152602090f35b838234610231578160031936011261023157517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9150346102045760a036600319011261020457813591602460443560ff81168091036104ea576097549360ff8560a01c166104db5780519186835260209233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b853392a38151623f675f60e91b80825233878301526001600160a01b039791929188169185848881865afa93841561049e578b946104ac575b50823b156104a85784519063d505accf60e01b8252338983015230888301528a604483015287356064830152608482015260643560a482015260843560c48201528a8160e48183875af1801561049e57610471575b508490868551809481938252338b8301525afa908115610467578991610435575b506001820180921161042357036103da57866101f3876101cc81893090339060975416610cdd565b5162461bcd60e51b8152928301526021908201527f5361666545524332303a207065726d697420646964206e6f74207375636365656044820152601960fa1b6064820152608490fd5b634e487b7160e01b8952601186528489fd5b90508381813d8311610460575b61044c8183610c78565b8101031261045b5751386103b2565b600080fd5b503d610442565b83513d8b823e3d90fd5b67ffffffffffffffff819b929b1161048c5784529884610391565b634e487b7160e01b8252604188528682fd5b85513d8d823e3d90fd5b8a80fd5b9093508581813d83116104d4575b6104c48183610c78565b810103126104a85751923861033c565b503d6104ba565b51630608786960e51b81528390fd5b8580fd5b83823461023157816003193601126102315760335490516001600160a01b039091168152602090f35b839034610231578260031936011261023157610531610ad9565b602435916097549060ff8260a01c166105b55750826101f3949561058f9260018060a01b039151838152828616907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a33091339116610cdd565b7f0000000000000000000000000000000000000000000000000000000000000000610c9a565b8551630608786960e51b8152fd5b90915034610204578260031936011261020457825460ff8160081c1615918280936106e9575b80156106d2575b15610678575060ff198116600117845581610667575b5061062060ff845460081c1661061b81610be6565b610be6565b61062933610b38565b610631575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff191661010117835538610606565b608490602085519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156105f05750600160ff8316146105f0565b50600160ff8316106105e9565b915034610204578260031936011261020457606554336001600160a01b039091160361072657826101f333610b38565b906020608492519162461bcd60e51b8352820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152fd5b833461015a578060031936011261015a57610794610b8e565b606580546001600160a01b031990811690915560338054918216905581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b838234610231578160031936011261023157805161081f9161080382610c46565b60058252640312e322e360dc1b60208301525191829182610aef565b0390f35b909150346102045760203660031901126102045735908115158092036102045760207f1ed408ff40af8e4c6a92f1a45718084bb1c8448f7e4617c83784a42c1be30d959161086f610b8e565b51838152a16097805460ff60a01b191660a09290921b60ff60a01b1691909117905580f35b83823461023157816003193601126102315760209060ff60975460a01c1690519015158152f35b9150346102045760203660031901126102045751338082529135602082018190526101f39290917f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a26109348130337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b60975433906001600160a01b0316610c9a565b83823461023157602036600319011261023157610962610b8e565b60018060a01b036097541681519163a9059cbb60e01b602084015261dead60248401528435604484015260448352608083019083821067ffffffffffffffff8311176109b4576101f394955052610d32565b634e487b7160e01b855260418652602485fd5b90915034610204576020366003190112610204576109e3610ad9565b916109ec610b8e565b6001600160a01b03928316928315908115610a31575b50610a245750506bffffffffffffffffffffffff60a01b609754161760975580f35b5163a323cf1960e01b8152fd5b905060975416151538610a02565b9250503461020457366003190112610231576101f390610a5d610ad9565b6001600160a01b0381168252602435602083018190529133907f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a2610ac88230337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b6097546001600160a01b0316610c9a565b600435906001600160a01b038216820361045b57565b6020808252825181830181905290939260005b828110610b2457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610b02565b6bffffffffffffffffffffffff60a01b90816065541660655560335460018060a01b038092168093821617603355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6033546001600160a01b03163303610ba257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610bed57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b6040810190811067ffffffffffffffff821117610c6257604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610c6257604052565b60405163a9059cbb60e01b60208201526001600160a01b03929092166024830152604480830193909352918152610cdb91610cd6606483610c78565b610d32565b565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610c6257610cdb926040525b60018060a01b031690604051610d4781610c46565b6020928382527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848301526000808486829651910182855af13d15610e6c573d9167ffffffffffffffff8311610e585790610dc293929160405192610db588601f19601f8401160185610c78565b83523d868885013e610e76565b805191821591848315610e34575b505050905015610ddd5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b9193818094500103126102315782015190811515820361015a575080388084610dd0565b634e487b7160e01b85526041600452602485fd5b90610dc292916060915b91929015610ed85750815115610e8a575090565b3b15610e935790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610eeb5750805190602001fd5b60405162461bcd60e51b8152908190610f079060048301610aef565b0390fdfea264697066735822122068238cb90a8d47614d758a832fae293600fdd70d27eda24d77dea2e7c85ffd4964736f6c634300081500330000000000000000000000003fd0a53f4bf853985a95f4eb3f9c9fde1f8e2b53", + "nonce": "0x92", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x12f1d8f", + "logs": [ + { + "address": "0xeba42dcab2c8264e6c2f5cb45c352bae7c74b9b4", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xe607900b88d987376193b4d50066ce98fc6e11b6b00b7d2230968ccfdea1cf7a", + "blockNumber": "0x6ec423", + "transactionHash": "0xd13c8aadfc7ff180490235cf704a8946c8d0016195a4bb7482943cbfd8f1cb94", + "transactionIndex": "0xc0", + "logIndex": "0x12c", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000", + "type": "0x2", + "transactionHash": "0xd13c8aadfc7ff180490235cf704a8946c8d0016195a4bb7482943cbfd8f1cb94", + "transactionIndex": "0xc0", + "blockHash": "0xe607900b88d987376193b4d50066ce98fc6e11b6b00b7d2230968ccfdea1cf7a", + "blockNumber": "0x6ec423", + "gasUsed": "0xe1cd7", + "effectiveGasPrice": "0x980cef1f", + "from": "0x0724d72eb61e508d81ca701881f2248f092953bf", + "to": null, + "contractAddress": "0xeba42dcab2c8264e6c2f5cb45c352bae7c74b9b4" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1733947305, + "chain": 11155111, + "commit": "50ab5ec" +} \ No newline at end of file diff --git a/broadcast/UpgradePolygonMigration.sol/11155111/run-latest.json b/broadcast/UpgradePolygonMigration.sol/11155111/run-latest.json new file mode 100644 index 0000000..fb2e809 --- /dev/null +++ b/broadcast/UpgradePolygonMigration.sol/11155111/run-latest.json @@ -0,0 +1,62 @@ +{ + "transactions": [ + { + "hash": "0xd13c8aadfc7ff180490235cf704a8946c8d0016195a4bb7482943cbfd8f1cb94", + "transactionType": "CREATE", + "contractName": "PolygonMigration", + "contractAddress": "0xeba42dcab2c8264e6c2f5cb45c352bae7c74b9b4", + "function": null, + "arguments": [ + "0x3fd0A53F4Bf853985a95F4Eb3F9C9FDE1F8e2b53" + ], + "transaction": { + "from": "0x0724d72eb61e508d81ca701881f2248f092953bf", + "gas": "0x125752", + "value": "0x0", + "input": "0x60a03461014957601f6110a638819003918201601f19168301916001600160401b0383118484101761014e5780849260209460405283398101031261014957516001600160a01b038116908190036101495780156101375760805260005460ff8160081c166100e25760ff808216036100a7575b604051610f41908161016582396080518181816101cf0152818161027301528181610591015281816109100152610aa40152f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610073565b60405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60405163e6c4247b60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040908082526004918236101561001757600080fd5b600092833560e01c9283630d213d3114610a3f575082632398344c146109c757826342966c6814610947578263454b0608146108bb5782634b052e7b146108945782634c0f54ea1461082357826354fd4d50146107e2578263715018a61461077b57826379ba5097146106f65782638129fc1c146105c3578263899d2590146105175782638da5cb5b146104ee578263a0ae9ff0146102a2578263b6b0b0971461025e578263b8c97ded14610235578263e30c397814610208578263efeff0c11461015d57505063f2fde38b146100ed57600080fd5b3461015a57602036600319011261015a57610106610ad9565b61010e610b8e565b606580546001600160a01b0319166001600160a01b039283169081179091556033549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b80fd5b90915034610204576020366003190112610204578035916097549160ff8360a01c166101f65750826101f393926101cc925182815233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a3309033906001600160a01b0316610cdd565b337f0000000000000000000000000000000000000000000000000000000000000000610c9a565b80f35b9051630608786960e51b8152fd5b8280fd5b83823461023157816003193601126102315760655490516001600160a01b039091168152602090f35b5080fd5b83823461023157816003193601126102315760975490516001600160a01b039091168152602090f35b838234610231578160031936011261023157517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9150346102045760a036600319011261020457813591602460443560ff81168091036104ea576097549360ff8560a01c166104db5780519186835260209233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b853392a38151623f675f60e91b80825233878301526001600160a01b039791929188169185848881865afa93841561049e578b946104ac575b50823b156104a85784519063d505accf60e01b8252338983015230888301528a604483015287356064830152608482015260643560a482015260843560c48201528a8160e48183875af1801561049e57610471575b508490868551809481938252338b8301525afa908115610467578991610435575b506001820180921161042357036103da57866101f3876101cc81893090339060975416610cdd565b5162461bcd60e51b8152928301526021908201527f5361666545524332303a207065726d697420646964206e6f74207375636365656044820152601960fa1b6064820152608490fd5b634e487b7160e01b8952601186528489fd5b90508381813d8311610460575b61044c8183610c78565b8101031261045b5751386103b2565b600080fd5b503d610442565b83513d8b823e3d90fd5b67ffffffffffffffff819b929b1161048c5784529884610391565b634e487b7160e01b8252604188528682fd5b85513d8d823e3d90fd5b8a80fd5b9093508581813d83116104d4575b6104c48183610c78565b810103126104a85751923861033c565b503d6104ba565b51630608786960e51b81528390fd5b8580fd5b83823461023157816003193601126102315760335490516001600160a01b039091168152602090f35b839034610231578260031936011261023157610531610ad9565b602435916097549060ff8260a01c166105b55750826101f3949561058f9260018060a01b039151838152828616907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a33091339116610cdd565b7f0000000000000000000000000000000000000000000000000000000000000000610c9a565b8551630608786960e51b8152fd5b90915034610204578260031936011261020457825460ff8160081c1615918280936106e9575b80156106d2575b15610678575060ff198116600117845581610667575b5061062060ff845460081c1661061b81610be6565b610be6565b61062933610b38565b610631575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff191661010117835538610606565b608490602085519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156105f05750600160ff8316146105f0565b50600160ff8316106105e9565b915034610204578260031936011261020457606554336001600160a01b039091160361072657826101f333610b38565b906020608492519162461bcd60e51b8352820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152fd5b833461015a578060031936011261015a57610794610b8e565b606580546001600160a01b031990811690915560338054918216905581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b838234610231578160031936011261023157805161081f9161080382610c46565b60058252640312e322e360dc1b60208301525191829182610aef565b0390f35b909150346102045760203660031901126102045735908115158092036102045760207f1ed408ff40af8e4c6a92f1a45718084bb1c8448f7e4617c83784a42c1be30d959161086f610b8e565b51838152a16097805460ff60a01b191660a09290921b60ff60a01b1691909117905580f35b83823461023157816003193601126102315760209060ff60975460a01c1690519015158152f35b9150346102045760203660031901126102045751338082529135602082018190526101f39290917f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a26109348130337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b60975433906001600160a01b0316610c9a565b83823461023157602036600319011261023157610962610b8e565b60018060a01b036097541681519163a9059cbb60e01b602084015261dead60248401528435604484015260448352608083019083821067ffffffffffffffff8311176109b4576101f394955052610d32565b634e487b7160e01b855260418652602485fd5b90915034610204576020366003190112610204576109e3610ad9565b916109ec610b8e565b6001600160a01b03928316928315908115610a31575b50610a245750506bffffffffffffffffffffffff60a01b609754161760975580f35b5163a323cf1960e01b8152fd5b905060975416151538610a02565b9250503461020457366003190112610231576101f390610a5d610ad9565b6001600160a01b0381168252602435602083018190529133907f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a2610ac88230337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b6097546001600160a01b0316610c9a565b600435906001600160a01b038216820361045b57565b6020808252825181830181905290939260005b828110610b2457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610b02565b6bffffffffffffffffffffffff60a01b90816065541660655560335460018060a01b038092168093821617603355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6033546001600160a01b03163303610ba257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610bed57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b6040810190811067ffffffffffffffff821117610c6257604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610c6257604052565b60405163a9059cbb60e01b60208201526001600160a01b03929092166024830152604480830193909352918152610cdb91610cd6606483610c78565b610d32565b565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610c6257610cdb926040525b60018060a01b031690604051610d4781610c46565b6020928382527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848301526000808486829651910182855af13d15610e6c573d9167ffffffffffffffff8311610e585790610dc293929160405192610db588601f19601f8401160185610c78565b83523d868885013e610e76565b805191821591848315610e34575b505050905015610ddd5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b9193818094500103126102315782015190811515820361015a575080388084610dd0565b634e487b7160e01b85526041600452602485fd5b90610dc292916060915b91929015610ed85750815115610e8a575090565b3b15610e935790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610eeb5750805190602001fd5b60405162461bcd60e51b8152908190610f079060048301610aef565b0390fdfea264697066735822122068238cb90a8d47614d758a832fae293600fdd70d27eda24d77dea2e7c85ffd4964736f6c634300081500330000000000000000000000003fd0a53f4bf853985a95f4eb3f9c9fde1f8e2b53", + "nonce": "0x92", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x12f1d8f", + "logs": [ + { + "address": "0xeba42dcab2c8264e6c2f5cb45c352bae7c74b9b4", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0xe607900b88d987376193b4d50066ce98fc6e11b6b00b7d2230968ccfdea1cf7a", + "blockNumber": "0x6ec423", + "transactionHash": "0xd13c8aadfc7ff180490235cf704a8946c8d0016195a4bb7482943cbfd8f1cb94", + "transactionIndex": "0xc0", + "logIndex": "0x12c", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000", + "type": "0x2", + "transactionHash": "0xd13c8aadfc7ff180490235cf704a8946c8d0016195a4bb7482943cbfd8f1cb94", + "transactionIndex": "0xc0", + "blockHash": "0xe607900b88d987376193b4d50066ce98fc6e11b6b00b7d2230968ccfdea1cf7a", + "blockNumber": "0x6ec423", + "gasUsed": "0xe1cd7", + "effectiveGasPrice": "0x980cef1f", + "from": "0x0724d72eb61e508d81ca701881f2248f092953bf", + "to": null, + "contractAddress": "0xeba42dcab2c8264e6c2f5cb45c352bae7c74b9b4" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1733947305, + "chain": 11155111, + "commit": "50ab5ec" +} \ No newline at end of file From fe9b37ec536e97302e0e0355bfb50cadb9dde17e Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Wed, 11 Dec 2024 23:20:20 +0100 Subject: [PATCH 5/6] deploy: PolygonMigration 1.2.0 mainnet --- .../1/run-1733954531.json | 62 +++++++++++++++++++ .../1/run-latest.json | 62 +++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 broadcast/UpgradePolygonMigration.sol/1/run-1733954531.json create mode 100644 broadcast/UpgradePolygonMigration.sol/1/run-latest.json diff --git a/broadcast/UpgradePolygonMigration.sol/1/run-1733954531.json b/broadcast/UpgradePolygonMigration.sol/1/run-1733954531.json new file mode 100644 index 0000000..3ab868c --- /dev/null +++ b/broadcast/UpgradePolygonMigration.sol/1/run-1733954531.json @@ -0,0 +1,62 @@ +{ + "transactions": [ + { + "hash": "0xcdfcfc3551a6a606127d0596b1d19de3dacf80583d956431320d4545e596e538", + "transactionType": "CREATE", + "contractName": "PolygonMigration", + "contractAddress": "0xb037347ef306db3b41ab0b250f891887039d9231", + "function": null, + "arguments": [ + "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0" + ], + "transaction": { + "from": "0x32bdc6a4e8c654df65503cbb0edc82b4ce9158e6", + "gas": "0x125752", + "value": "0x0", + "input": "0x60a03461014957601f6110a638819003918201601f19168301916001600160401b0383118484101761014e5780849260209460405283398101031261014957516001600160a01b038116908190036101495780156101375760805260005460ff8160081c166100e25760ff808216036100a7575b604051610f41908161016582396080518181816101cf0152818161027301528181610591015281816109100152610aa40152f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610073565b60405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60405163e6c4247b60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040908082526004918236101561001757600080fd5b600092833560e01c9283630d213d3114610a3f575082632398344c146109c757826342966c6814610947578263454b0608146108bb5782634b052e7b146108945782634c0f54ea1461082357826354fd4d50146107e2578263715018a61461077b57826379ba5097146106f65782638129fc1c146105c3578263899d2590146105175782638da5cb5b146104ee578263a0ae9ff0146102a2578263b6b0b0971461025e578263b8c97ded14610235578263e30c397814610208578263efeff0c11461015d57505063f2fde38b146100ed57600080fd5b3461015a57602036600319011261015a57610106610ad9565b61010e610b8e565b606580546001600160a01b0319166001600160a01b039283169081179091556033549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b80fd5b90915034610204576020366003190112610204578035916097549160ff8360a01c166101f65750826101f393926101cc925182815233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a3309033906001600160a01b0316610cdd565b337f0000000000000000000000000000000000000000000000000000000000000000610c9a565b80f35b9051630608786960e51b8152fd5b8280fd5b83823461023157816003193601126102315760655490516001600160a01b039091168152602090f35b5080fd5b83823461023157816003193601126102315760975490516001600160a01b039091168152602090f35b838234610231578160031936011261023157517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9150346102045760a036600319011261020457813591602460443560ff81168091036104ea576097549360ff8560a01c166104db5780519186835260209233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b853392a38151623f675f60e91b80825233878301526001600160a01b039791929188169185848881865afa93841561049e578b946104ac575b50823b156104a85784519063d505accf60e01b8252338983015230888301528a604483015287356064830152608482015260643560a482015260843560c48201528a8160e48183875af1801561049e57610471575b508490868551809481938252338b8301525afa908115610467578991610435575b506001820180921161042357036103da57866101f3876101cc81893090339060975416610cdd565b5162461bcd60e51b8152928301526021908201527f5361666545524332303a207065726d697420646964206e6f74207375636365656044820152601960fa1b6064820152608490fd5b634e487b7160e01b8952601186528489fd5b90508381813d8311610460575b61044c8183610c78565b8101031261045b5751386103b2565b600080fd5b503d610442565b83513d8b823e3d90fd5b67ffffffffffffffff819b929b1161048c5784529884610391565b634e487b7160e01b8252604188528682fd5b85513d8d823e3d90fd5b8a80fd5b9093508581813d83116104d4575b6104c48183610c78565b810103126104a85751923861033c565b503d6104ba565b51630608786960e51b81528390fd5b8580fd5b83823461023157816003193601126102315760335490516001600160a01b039091168152602090f35b839034610231578260031936011261023157610531610ad9565b602435916097549060ff8260a01c166105b55750826101f3949561058f9260018060a01b039151838152828616907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a33091339116610cdd565b7f0000000000000000000000000000000000000000000000000000000000000000610c9a565b8551630608786960e51b8152fd5b90915034610204578260031936011261020457825460ff8160081c1615918280936106e9575b80156106d2575b15610678575060ff198116600117845581610667575b5061062060ff845460081c1661061b81610be6565b610be6565b61062933610b38565b610631575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff191661010117835538610606565b608490602085519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156105f05750600160ff8316146105f0565b50600160ff8316106105e9565b915034610204578260031936011261020457606554336001600160a01b039091160361072657826101f333610b38565b906020608492519162461bcd60e51b8352820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152fd5b833461015a578060031936011261015a57610794610b8e565b606580546001600160a01b031990811690915560338054918216905581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b838234610231578160031936011261023157805161081f9161080382610c46565b60058252640312e322e360dc1b60208301525191829182610aef565b0390f35b909150346102045760203660031901126102045735908115158092036102045760207f1ed408ff40af8e4c6a92f1a45718084bb1c8448f7e4617c83784a42c1be30d959161086f610b8e565b51838152a16097805460ff60a01b191660a09290921b60ff60a01b1691909117905580f35b83823461023157816003193601126102315760209060ff60975460a01c1690519015158152f35b9150346102045760203660031901126102045751338082529135602082018190526101f39290917f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a26109348130337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b60975433906001600160a01b0316610c9a565b83823461023157602036600319011261023157610962610b8e565b60018060a01b036097541681519163a9059cbb60e01b602084015261dead60248401528435604484015260448352608083019083821067ffffffffffffffff8311176109b4576101f394955052610d32565b634e487b7160e01b855260418652602485fd5b90915034610204576020366003190112610204576109e3610ad9565b916109ec610b8e565b6001600160a01b03928316928315908115610a31575b50610a245750506bffffffffffffffffffffffff60a01b609754161760975580f35b5163a323cf1960e01b8152fd5b905060975416151538610a02565b9250503461020457366003190112610231576101f390610a5d610ad9565b6001600160a01b0381168252602435602083018190529133907f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a2610ac88230337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b6097546001600160a01b0316610c9a565b600435906001600160a01b038216820361045b57565b6020808252825181830181905290939260005b828110610b2457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610b02565b6bffffffffffffffffffffffff60a01b90816065541660655560335460018060a01b038092168093821617603355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6033546001600160a01b03163303610ba257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610bed57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b6040810190811067ffffffffffffffff821117610c6257604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610c6257604052565b60405163a9059cbb60e01b60208201526001600160a01b03929092166024830152604480830193909352918152610cdb91610cd6606483610c78565b610d32565b565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610c6257610cdb926040525b60018060a01b031690604051610d4781610c46565b6020928382527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848301526000808486829651910182855af13d15610e6c573d9167ffffffffffffffff8311610e585790610dc293929160405192610db588601f19601f8401160185610c78565b83523d868885013e610e76565b805191821591848315610e34575b505050905015610ddd5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b9193818094500103126102315782015190811515820361015a575080388084610dd0565b634e487b7160e01b85526041600452602485fd5b90610dc292916060915b91929015610ed85750815115610e8a575090565b3b15610e935790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610eeb5750805190602001fd5b60405162461bcd60e51b8152908190610f079060048301610aef565b0390fdfea264697066735822122068238cb90a8d47614d758a832fae293600fdd70d27eda24d77dea2e7c85ffd4964736f6c634300081500330000000000000000000000007d1afa7b718fb893db30a3abc0cfc608aacfebb0", + "nonce": "0xf", + "chainId": "0x1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x985c54", + "logs": [ + { + "address": "0xb037347ef306db3b41ab0b250f891887039d9231", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x704e264b8a48106c1f42b82d95da98a03d9609c9f595ecfd051098dda7815e66", + "blockNumber": "0x14643e0", + "transactionHash": "0xcdfcfc3551a6a606127d0596b1d19de3dacf80583d956431320d4545e596e538", + "transactionIndex": "0x36", + "logIndex": "0xd9", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000010000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xcdfcfc3551a6a606127d0596b1d19de3dacf80583d956431320d4545e596e538", + "transactionIndex": "0x36", + "blockHash": "0x704e264b8a48106c1f42b82d95da98a03d9609c9f595ecfd051098dda7815e66", + "blockNumber": "0x14643e0", + "gasUsed": "0xe1cd7", + "effectiveGasPrice": "0x5521d61c3", + "from": "0x32bdc6a4e8c654df65503cbb0edc82b4ce9158e6", + "to": null, + "contractAddress": "0xb037347ef306db3b41ab0b250f891887039d9231" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1733954531, + "chain": 1, + "commit": "cc70d0b" +} \ No newline at end of file diff --git a/broadcast/UpgradePolygonMigration.sol/1/run-latest.json b/broadcast/UpgradePolygonMigration.sol/1/run-latest.json new file mode 100644 index 0000000..3ab868c --- /dev/null +++ b/broadcast/UpgradePolygonMigration.sol/1/run-latest.json @@ -0,0 +1,62 @@ +{ + "transactions": [ + { + "hash": "0xcdfcfc3551a6a606127d0596b1d19de3dacf80583d956431320d4545e596e538", + "transactionType": "CREATE", + "contractName": "PolygonMigration", + "contractAddress": "0xb037347ef306db3b41ab0b250f891887039d9231", + "function": null, + "arguments": [ + "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0" + ], + "transaction": { + "from": "0x32bdc6a4e8c654df65503cbb0edc82b4ce9158e6", + "gas": "0x125752", + "value": "0x0", + "input": "0x60a03461014957601f6110a638819003918201601f19168301916001600160401b0383118484101761014e5780849260209460405283398101031261014957516001600160a01b038116908190036101495780156101375760805260005460ff8160081c166100e25760ff808216036100a7575b604051610f41908161016582396080518181816101cf0152818161027301528181610591015281816109100152610aa40152f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610073565b60405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b60405163e6c4247b60e01b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040908082526004918236101561001757600080fd5b600092833560e01c9283630d213d3114610a3f575082632398344c146109c757826342966c6814610947578263454b0608146108bb5782634b052e7b146108945782634c0f54ea1461082357826354fd4d50146107e2578263715018a61461077b57826379ba5097146106f65782638129fc1c146105c3578263899d2590146105175782638da5cb5b146104ee578263a0ae9ff0146102a2578263b6b0b0971461025e578263b8c97ded14610235578263e30c397814610208578263efeff0c11461015d57505063f2fde38b146100ed57600080fd5b3461015a57602036600319011261015a57610106610ad9565b61010e610b8e565b606580546001600160a01b0319166001600160a01b039283169081179091556033549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b80fd5b90915034610204576020366003190112610204578035916097549160ff8360a01c166101f65750826101f393926101cc925182815233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a3309033906001600160a01b0316610cdd565b337f0000000000000000000000000000000000000000000000000000000000000000610c9a565b80f35b9051630608786960e51b8152fd5b8280fd5b83823461023157816003193601126102315760655490516001600160a01b039091168152602090f35b5080fd5b83823461023157816003193601126102315760975490516001600160a01b039091168152602090f35b838234610231578160031936011261023157517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b9150346102045760a036600319011261020457813591602460443560ff81168091036104ea576097549360ff8560a01c166104db5780519186835260209233907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b853392a38151623f675f60e91b80825233878301526001600160a01b039791929188169185848881865afa93841561049e578b946104ac575b50823b156104a85784519063d505accf60e01b8252338983015230888301528a604483015287356064830152608482015260643560a482015260843560c48201528a8160e48183875af1801561049e57610471575b508490868551809481938252338b8301525afa908115610467578991610435575b506001820180921161042357036103da57866101f3876101cc81893090339060975416610cdd565b5162461bcd60e51b8152928301526021908201527f5361666545524332303a207065726d697420646964206e6f74207375636365656044820152601960fa1b6064820152608490fd5b634e487b7160e01b8952601186528489fd5b90508381813d8311610460575b61044c8183610c78565b8101031261045b5751386103b2565b600080fd5b503d610442565b83513d8b823e3d90fd5b67ffffffffffffffff819b929b1161048c5784529884610391565b634e487b7160e01b8252604188528682fd5b85513d8d823e3d90fd5b8a80fd5b9093508581813d83116104d4575b6104c48183610c78565b810103126104a85751923861033c565b503d6104ba565b51630608786960e51b81528390fd5b8580fd5b83823461023157816003193601126102315760335490516001600160a01b039091168152602090f35b839034610231578260031936011261023157610531610ad9565b602435916097549060ff8260a01c166105b55750826101f3949561058f9260018060a01b039151838152828616907f629178b8fee085046b0ced2d5b2fff5e4d54196b555e978250009b74af28739b60203392a33091339116610cdd565b7f0000000000000000000000000000000000000000000000000000000000000000610c9a565b8551630608786960e51b8152fd5b90915034610204578260031936011261020457825460ff8160081c1615918280936106e9575b80156106d2575b15610678575060ff198116600117845581610667575b5061062060ff845460081c1661061b81610be6565b610be6565b61062933610b38565b610631575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff191661010117835538610606565b608490602085519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b1580156105f05750600160ff8316146105f0565b50600160ff8316106105e9565b915034610204578260031936011261020457606554336001600160a01b039091160361072657826101f333610b38565b906020608492519162461bcd60e51b8352820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152fd5b833461015a578060031936011261015a57610794610b8e565b606580546001600160a01b031990811690915560338054918216905581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b838234610231578160031936011261023157805161081f9161080382610c46565b60058252640312e322e360dc1b60208301525191829182610aef565b0390f35b909150346102045760203660031901126102045735908115158092036102045760207f1ed408ff40af8e4c6a92f1a45718084bb1c8448f7e4617c83784a42c1be30d959161086f610b8e565b51838152a16097805460ff60a01b191660a09290921b60ff60a01b1691909117905580f35b83823461023157816003193601126102315760209060ff60975460a01c1690519015158152f35b9150346102045760203660031901126102045751338082529135602082018190526101f39290917f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a26109348130337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b60975433906001600160a01b0316610c9a565b83823461023157602036600319011261023157610962610b8e565b60018060a01b036097541681519163a9059cbb60e01b602084015261dead60248401528435604484015260448352608083019083821067ffffffffffffffff8311176109b4576101f394955052610d32565b634e487b7160e01b855260418652602485fd5b90915034610204576020366003190112610204576109e3610ad9565b916109ec610b8e565b6001600160a01b03928316928315908115610a31575b50610a245750506bffffffffffffffffffffffff60a01b609754161760975580f35b5163a323cf1960e01b8152fd5b905060975416151538610a02565b9250503461020457366003190112610231576101f390610a5d610ad9565b6001600160a01b0381168252602435602083018190529133907f928fd5531324ee87d76cc5307dc37580174da76b85cd546da631b2670bc266b590604090a2610ac88230337f0000000000000000000000000000000000000000000000000000000000000000610cdd565b6097546001600160a01b0316610c9a565b600435906001600160a01b038216820361045b57565b6020808252825181830181905290939260005b828110610b2457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610b02565b6bffffffffffffffffffffffff60a01b90816065541660655560335460018060a01b038092168093821617603355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6033546001600160a01b03163303610ba257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610bed57565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b6040810190811067ffffffffffffffff821117610c6257604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610c6257604052565b60405163a9059cbb60e01b60208201526001600160a01b03929092166024830152604480830193909352918152610cdb91610cd6606483610c78565b610d32565b565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117610c6257610cdb926040525b60018060a01b031690604051610d4781610c46565b6020928382527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564848301526000808486829651910182855af13d15610e6c573d9167ffffffffffffffff8311610e585790610dc293929160405192610db588601f19601f8401160185610c78565b83523d868885013e610e76565b805191821591848315610e34575b505050905015610ddd5750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b9193818094500103126102315782015190811515820361015a575080388084610dd0565b634e487b7160e01b85526041600452602485fd5b90610dc292916060915b91929015610ed85750815115610e8a575090565b3b15610e935790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610eeb5750805190602001fd5b60405162461bcd60e51b8152908190610f079060048301610aef565b0390fdfea264697066735822122068238cb90a8d47614d758a832fae293600fdd70d27eda24d77dea2e7c85ffd4964736f6c634300081500330000000000000000000000007d1afa7b718fb893db30a3abc0cfc608aacfebb0", + "nonce": "0xf", + "chainId": "0x1" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x985c54", + "logs": [ + { + "address": "0xb037347ef306db3b41ab0b250f891887039d9231", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x704e264b8a48106c1f42b82d95da98a03d9609c9f595ecfd051098dda7815e66", + "blockNumber": "0x14643e0", + "transactionHash": "0xcdfcfc3551a6a606127d0596b1d19de3dacf80583d956431320d4545e596e538", + "transactionIndex": "0x36", + "logIndex": "0xd9", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000010000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0xcdfcfc3551a6a606127d0596b1d19de3dacf80583d956431320d4545e596e538", + "transactionIndex": "0x36", + "blockHash": "0x704e264b8a48106c1f42b82d95da98a03d9609c9f595ecfd051098dda7815e66", + "blockNumber": "0x14643e0", + "gasUsed": "0xe1cd7", + "effectiveGasPrice": "0x5521d61c3", + "from": "0x32bdc6a4e8c654df65503cbb0edc82b4ce9158e6", + "to": null, + "contractAddress": "0xb037347ef306db3b41ab0b250f891887039d9231" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1733954531, + "chain": 1, + "commit": "cc70d0b" +} \ No newline at end of file From e72c717275171db30645125ad2fb45ac48b71161 Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Wed, 11 Dec 2024 23:22:13 +0100 Subject: [PATCH 6/6] forge install: forge-chronicles 0.2.0 --- .gitmodules | 3 +++ lib/forge-chronicles | 1 + 2 files changed, 4 insertions(+) create mode 160000 lib/forge-chronicles diff --git a/.gitmodules b/.gitmodules index 566b661..3c8aa47 100644 --- a/.gitmodules +++ b/.gitmodules @@ -9,3 +9,6 @@ [submodule "lib/openzeppelin-contracts-upgradeable"] path = lib/openzeppelin-contracts-upgradeable url = https://github.com/openzeppelin/openzeppelin-contracts-upgradeable +[submodule "lib/forge-chronicles"] + path = lib/forge-chronicles + url = https://github.com/0xPolygon/forge-chronicles diff --git a/lib/forge-chronicles b/lib/forge-chronicles new file mode 160000 index 0000000..c2be7a4 --- /dev/null +++ b/lib/forge-chronicles @@ -0,0 +1 @@ +Subproject commit c2be7a462d87b8e3a72f7e2b739cdf12807a71e4