Skip to content

Commit

Permalink
Revert to oz contract 4.9.2 to fix storage issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-turek committed Aug 16, 2024
1 parent 8417602 commit 272df17
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 97 deletions.
2 changes: 2 additions & 0 deletions packages/deploy/deploy/500_marketplace/508_exchange_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ func.dependencies = [
'Land_deploy',
'PolygonSand_deploy',
'PolygonLand_deploy',
'PolygonLandV2_deploy',
'LandV4_deploy',
'ExchangeV2_deploy',
];
4 changes: 2 additions & 2 deletions packages/marketplace/contracts/Exchange.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

pragma solidity 0.8.23;

import {PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";
import {PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/extensions/AccessControlEnumerableUpgradeable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import {ContextUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import {ERC2771HandlerUpgradeable} from "@sandbox-smart-contracts/dependency-metatx/contracts/ERC2771HandlerUpgradeable.sol";
import {IOrderValidator} from "./interfaces/IOrderValidator.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/contracts/OrderValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {LibAsset} from "./libraries/LibAsset.sol";
import {SignatureChecker} from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import {EIP712Upgradeable, Initializable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
import {ERC165Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/extensions/AccessControlEnumerableUpgradeable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import {IOrderValidator} from "./interfaces/IOrderValidator.sol";
import {Whitelist} from "./Whitelist.sol";

Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/contracts/RoyaltiesRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ contract RoyaltiesRegistry is OwnableUpgradeable, IRoyaltiesProvider, ERC165Upgr

/// @notice Royalties registry initializer
function initialize() external initializer {
__Ownable_init(_msgSender());
__Ownable_init();
}

/// @notice Assigns an external provider for a token's royalties and sets the royalty type as 'EXTERNAL_PROVIDER' (2).
Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/contracts/Whitelist.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pragma solidity 0.8.23;

import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/extensions/AccessControlEnumerableUpgradeable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import {IWhitelist} from "./interfaces/IWhitelist.sol";

/// @author The Sandbox
Expand Down
180 changes: 90 additions & 90 deletions packages/marketplace/package.json
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
{
"name": "@sandbox-smart-contracts/marketplace",
"version": "1.0.2",
"description": "",
"mocha": {
"require": "hardhat/register",
"timeout": 40000,
"_": [
"test/**/*.ts"
]
"name": "@sandbox-smart-contracts/marketplace",
"version": "1.0.2",
"description": "",
"mocha": {
"require": "hardhat/register",
"timeout": 40000,
"_": [
"test/**/*.ts"
]
},
"files": [
"contracts",
"docs",
"README.md",
"CHANGELOG.md"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.1",
"@nomicfoundation/hardhat-ethers": "^3.0.3",
"@nomicfoundation/hardhat-network-helpers": "^1.0.8",
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@nomicfoundation/hardhat-verify": "^1.0.0",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@openzeppelin/hardhat-upgrades": "^2.2.1",
"@release-it/keep-a-changelog": "^4.0.0",
"@typechain/ethers-v6": "^0.4.0",
"@typechain/hardhat": "^8.0.0",
"@types/chai": "^4.3.6",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"chai": "^4.3.7",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^6.6.2",
"hardhat": "^2.14.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.9",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"prettier-plugin-solidity": "^1.1.3",
"release-it": "^16.2.1",
"solhint": "^3.6.2",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.3",
"ts-node": "^10.9.1",
"typechain": "^8.2.0",
"typescript": "5.0.4"
},
"scripts": {
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\" && solhint --max-warnings 0 \"contracts/**/*.sol\"",
"lint:fix": "eslint --fix \"**/*.{js,ts}\" && solhint --fix \"contracts/**/*.sol\"",
"format": "prettier --check \"**/*.{ts,js,sol,md}\"",
"format:fix": "prettier --write \"**/*.{ts,js,sol,md}\"",
"test": "hardhat test",
"coverage": "hardhat coverage --testfiles 'test/*.ts''test/*.js'",
"analyze": "slither .",
"hardhat": "hardhat",
"compile": "hardhat compile",
"release": "release-it"
},
"release-it": {
"git": {
"commitMessage": "chore: @sandbox-smart-contracts/marketplace release v${version}",
"tagAnnotation": "@sandbox-smart-contracts/marketplace release v${version}",
"tagName": "@sandbox-smart-contracts/marketplace@v${version}"
},
"files": [
"contracts",
"docs",
"README.md",
"CHANGELOG.md"
],
"publishConfig": {
"access": "public"
"plugins": {
"@release-it/keep-a-changelog": {}
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.1",
"@nomicfoundation/hardhat-ethers": "^3.0.3",
"@nomicfoundation/hardhat-network-helpers": "^1.0.8",
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@nomicfoundation/hardhat-verify": "^1.0.0",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@openzeppelin/hardhat-upgrades": "^2.2.1",
"@release-it/keep-a-changelog": "^4.0.0",
"@typechain/ethers-v6": "^0.4.0",
"@typechain/hardhat": "^8.0.0",
"@types/chai": "^4.3.6",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"chai": "^4.3.7",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^6.6.2",
"hardhat": "^2.14.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.9",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"prettier-plugin-solidity": "^1.1.3",
"release-it": "^16.2.1",
"solhint": "^3.6.2",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.3",
"ts-node": "^10.9.1",
"typechain": "^8.2.0",
"typescript": "5.0.4"
},
"scripts": {
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\" && solhint --max-warnings 0 \"contracts/**/*.sol\"",
"lint:fix": "eslint --fix \"**/*.{js,ts}\" && solhint --fix \"contracts/**/*.sol\"",
"format": "prettier --check \"**/*.{ts,js,sol,md}\"",
"format:fix": "prettier --write \"**/*.{ts,js,sol,md}\"",
"test": "hardhat test",
"coverage": "hardhat coverage --testfiles 'test/*.ts''test/*.js'",
"analyze": "slither .",
"hardhat": "hardhat",
"compile": "hardhat compile",
"release": "release-it"
},
"release-it": {
"git": {
"commitMessage": "chore: @sandbox-smart-contracts/marketplace release v${version}",
"tagAnnotation": "@sandbox-smart-contracts/marketplace release v${version}",
"tagName": "@sandbox-smart-contracts/marketplace@v${version}"
},
"plugins": {
"@release-it/keep-a-changelog": {}
},
"hooks": {
"before:init": [
"yarn lint",
"yarn test"
]
}
},
"author": "",
"license": "ISC",
"dependencies": {
"@manifoldxyz/royalty-registry-solidity": "^3.0.0",
"@openzeppelin/contracts": "5.0.2",
"@openzeppelin/contracts-upgradeable": "5.0.2",
"@sandbox-smart-contracts/dependency-metatx": "1.0.1",
"@sandbox-smart-contracts/dependency-royalty-management": "1.0.2",
"@sandbox-smart-contracts/land": "1.0.0-rc.1"
"hooks": {
"before:init": [
"yarn lint",
"yarn test"
]
}
},
"author": "",
"license": "ISC",
"dependencies": {
"@manifoldxyz/royalty-registry-solidity": "^3.0.0",
"@openzeppelin/contracts": "^4.9.2",
"@openzeppelin/contracts-upgradeable": "^4.9.2",
"@sandbox-smart-contracts/dependency-metatx": "1.0.1",
"@sandbox-smart-contracts/dependency-royalty-management": "1.0.2",
"@sandbox-smart-contracts/land": "1.0.0-rc.1"
}
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3124,8 +3124,8 @@ __metadata:
"@nomicfoundation/hardhat-toolbox": ^3.0.0
"@nomicfoundation/hardhat-verify": ^1.0.0
"@nomiclabs/hardhat-etherscan": ^3.1.7
"@openzeppelin/contracts": 5.0.2
"@openzeppelin/contracts-upgradeable": 5.0.2
"@openzeppelin/contracts": ^4.9.2
"@openzeppelin/contracts-upgradeable": ^4.9.2
"@openzeppelin/hardhat-upgrades": ^2.2.1
"@release-it/keep-a-changelog": ^4.0.0
"@sandbox-smart-contracts/dependency-metatx": 1.0.1
Expand Down

0 comments on commit 272df17

Please sign in to comment.