From 5b64646ab8ff0d05c171136213bd3f722ccab088 Mon Sep 17 00:00:00 2001 From: Moon Date: Sun, 29 Jan 2023 13:12:01 -0500 Subject: [PATCH] rm opensea crap that never worked --- contracts/CurioERC1155Wrapper.sol | 20 -------------------- contracts/OpenSeaProxy.sol | 7 ------- 2 files changed, 27 deletions(-) delete mode 100644 contracts/OpenSeaProxy.sol diff --git a/contracts/CurioERC1155Wrapper.sol b/contracts/CurioERC1155Wrapper.sol index 8a5b020..b7ed7ad 100644 --- a/contracts/CurioERC1155Wrapper.sol +++ b/contracts/CurioERC1155Wrapper.sol @@ -4,7 +4,6 @@ import "./ERC1155.sol"; import "./ICurio.sol"; import "./SafeMath.sol"; import "./Address.sol"; -import "./OpenSeaProxy.sol"; import "./IERC1155Metadata.sol"; contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI { @@ -16,9 +15,6 @@ contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI { // nft id => nft metadata IPFS URI mapping (uint256 => string) public metadatas; - // OpenSea contract with an operator => proxy lister contract address - address public proxyRegistryAddress; - /** @notice Initialize an nft id's data. */ @@ -188,20 +184,4 @@ contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI { // burn emit TransferBatch(msg.sender, msg.sender, address(0), _ids, _quantities); } - - /** - @dev override isApprovedForAll to whitelist user's OpenSea proxy - accounts to enable gas-free listings. - */ - function isApprovedForAll(address owner, address operator) public view returns (bool) - { - // Whitelist OpenSea proxy contract for easy trading. - ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); - if (address(proxyRegistry.proxies(owner)) == operator) { - return true; - } - - return super.isApprovedForAll(owner, operator); - } - } diff --git a/contracts/OpenSeaProxy.sol b/contracts/OpenSeaProxy.sol deleted file mode 100644 index 8d23b91..0000000 --- a/contracts/OpenSeaProxy.sol +++ /dev/null @@ -1,7 +0,0 @@ -pragma solidity ^0.5.0; - -contract OwnableDelegateProxy {} - -contract ProxyRegistry { - mapping(address => OwnableDelegateProxy) public proxies; -}