|
| 1 | +// SPDX-License-Identifier: Apache-2.0 |
| 2 | + |
| 3 | +/****************************************************************************** |
| 4 | + * Copyright 2024-2025 IEXEC BLOCKCHAIN TECH * |
| 5 | + * * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); * |
| 7 | + * you may not use this file except in compliance with the License. * |
| 8 | + * You may obtain a copy of the License at * |
| 9 | + * * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 * |
| 11 | + * * |
| 12 | + * Unless required by applicable law or agreed to in writing, software * |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, * |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * |
| 15 | + * See the License for the specific language governing permissions and * |
| 16 | + * limitations under the License. * |
| 17 | + ******************************************************************************/ |
| 18 | + |
| 19 | +pragma solidity ^0.8.24; |
| 20 | + |
| 21 | +import {ERC721BurnableUpgradeable, ERC721Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721BurnableUpgradeable.sol"; |
| 22 | +import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; |
| 23 | +import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; |
| 24 | +import {MulticallUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/MulticallUpgradeable.sol"; |
| 25 | +import {ERC721Holder} from "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; |
| 26 | +import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; |
| 27 | +import {DataProtectorSharing} from "../DataProtectorSharing.sol"; |
| 28 | +import {AddOnlyAppWhitelistRegistry, IAddOnlyAppWhitelist} from "../registry/AddOnlyAppWhitelistRegistry.sol"; |
| 29 | +import {IRegistry} from "../interfaces/IRegistry.sol"; |
| 30 | +import {ManageOrders} from "../ManageOrders.sol"; |
| 31 | + |
| 32 | +/** |
| 33 | + * @notice This contract is for upgradeability testing purposes only. |
| 34 | + */ |
| 35 | + |
| 36 | +contract DataProtectorSharingV2Mock is DataProtectorSharing { |
| 37 | + |
| 38 | + string public newStorage; |
| 39 | + |
| 40 | + /// @custom:oz-upgrades-unsafe-allow constructor |
| 41 | + constructor() DataProtectorSharing( |
| 42 | + address(0), |
| 43 | + IRegistry(address(0)), |
| 44 | + AddOnlyAppWhitelistRegistry(address(0)) |
| 45 | + ) {} |
| 46 | + |
| 47 | + function initializeV2(string calldata foo) public reinitializer(2) { |
| 48 | + newStorage = foo; |
| 49 | + } |
| 50 | +} |
0 commit comments