From e3bdddc6bb1beacf554d81b369327b470cea3b5f Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Tue, 14 May 2024 11:56:18 -0300 Subject: [PATCH] ON-823: Upgrade network files --- .openzeppelin/polygon.json | 183 ++++++++++++++++++++ addresses/polygon/index.json | 6 +- scripts/orium-sft-marketplace/08-upgrade.ts | 16 ++ 3 files changed, 202 insertions(+), 3 deletions(-) create mode 100644 scripts/orium-sft-marketplace/08-upgrade.ts diff --git a/.openzeppelin/polygon.json b/.openzeppelin/polygon.json index 8a84a54..d993b62 100644 --- a/.openzeppelin/polygon.json +++ b/.openzeppelin/polygon.json @@ -3481,6 +3481,189 @@ }, "namespaces": {} } + }, + "b7a3f62e7af4b299c0318e34b8bfba7bfff6fb56a03eeeed33fead0da6915083": { + "address": "0x28c0DFe3e6B53ff3A25B9655A0B9D62120Ae34Fc", + "txHash": "0xf3ee6f93985ef1719249ca7ea3916d5e5cfe5219183ec5788e1cd00f9df2644f", + "layout": { + "solcVersion": "0.8.9", + "storage": [ + { + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_uint8", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool", + "contract": "Initializable", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage", + "contract": "ContextUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "label": "_owner", + "offset": 0, + "slot": "51", + "type": "t_address", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "label": "__gap", + "offset": 0, + "slot": "52", + "type": "t_array(t_uint256)49_storage", + "contract": "OwnableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "label": "_paused", + "offset": 0, + "slot": "101", + "type": "t_bool", + "contract": "PausableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29" + }, + { + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)49_storage", + "contract": "PausableUpgradeable", + "src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116" + }, + { + "label": "oriumMarketplaceRoyalties", + "offset": 0, + "slot": "151", + "type": "t_address", + "contract": "OriumSftMarketplace", + "src": "contracts/OriumSftMarketplace.sol:22" + }, + { + "label": "isCreated", + "offset": 0, + "slot": "152", + "type": "t_mapping(t_bytes32,t_bool)", + "contract": "OriumSftMarketplace", + "src": "contracts/OriumSftMarketplace.sol:25" + }, + { + "label": "nonceDeadline", + "offset": 0, + "slot": "153", + "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint64))", + "contract": "OriumSftMarketplace", + "src": "contracts/OriumSftMarketplace.sol:28" + }, + { + "label": "commitmentIdToNonce", + "offset": 0, + "slot": "154", + "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint256))", + "contract": "OriumSftMarketplace", + "src": "contracts/OriumSftMarketplace.sol:31" + }, + { + "label": "rentals", + "offset": 0, + "slot": "155", + "type": "t_mapping(t_bytes32,t_struct(Rental)1844_storage)", + "contract": "OriumSftMarketplace", + "src": "contracts/OriumSftMarketplace.sol:34" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_mapping(t_uint256,t_uint256))": { + "label": "mapping(address => mapping(uint256 => uint256))", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_mapping(t_uint256,t_uint64))": { + "label": "mapping(address => mapping(uint256 => uint64))", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_bool)": { + "label": "mapping(bytes32 => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_struct(Rental)1844_storage)": { + "label": "mapping(bytes32 => struct OriumSftMarketplace.Rental)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_uint256)": { + "label": "mapping(uint256 => uint256)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint256,t_uint64)": { + "label": "mapping(uint256 => uint64)", + "numberOfBytes": "32" + }, + "t_struct(Rental)1844_storage": { + "label": "struct OriumSftMarketplace.Rental", + "members": [ + { + "label": "borrower", + "type": "t_address", + "offset": 0, + "slot": "0" + }, + { + "label": "expirationDate", + "type": "t_uint64", + "offset": 20, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint64": { + "label": "uint64", + "numberOfBytes": "8" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": {} + } } } } diff --git a/addresses/polygon/index.json b/addresses/polygon/index.json index b588485..64dd92a 100644 --- a/addresses/polygon/index.json +++ b/addresses/polygon/index.json @@ -31,9 +31,9 @@ "operator": "0x359E1208DE02Af11461A37D72165Ef2dcD2Adfc8", "implementation": "0xd04d97d855A24b4E70D5723Bb90C194EC8946938", "proxyAdmin": "0x48c769f6a8de57d824f0e7330d7A27dee53a43cD", - "libraries": [ - "0x39CdF22FA80A9E7B95Db29efb2936A9561c70601" - ] + "libraries": { + "LibOriumSftMarketplace": "0x69C4c9D8B8D815c57Cb252f228159b2794094a17" + } }, "ERC7432WrapperForERC4907": { "address": "" diff --git a/scripts/orium-sft-marketplace/08-upgrade.ts b/scripts/orium-sft-marketplace/08-upgrade.ts new file mode 100644 index 0000000..219f1ab --- /dev/null +++ b/scripts/orium-sft-marketplace/08-upgrade.ts @@ -0,0 +1,16 @@ +import { upgradeProxy } from '../../utils/upgrade-proxy' + +async function main() { + const CONTRACT_NAME = 'OriumSftMarketplace' + const LIBRARY_NAME = 'LibOriumSftMarketplace' + await upgradeProxy(CONTRACT_NAME, [LIBRARY_NAME]) +} + +main() + .then(() => { + console.log('Done!') + }) + .catch(error => { + console.error(error) + process.exitCode = 1 + })