rm opensea crap that never worked
This commit is contained in:
parent
eee7b9a88c
commit
5b64646ab8
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
pragma solidity ^0.5.0;
|
||||
|
||||
contract OwnableDelegateProxy {}
|
||||
|
||||
contract ProxyRegistry {
|
||||
mapping(address => OwnableDelegateProxy) public proxies;
|
||||
}
|
Loading…
Reference in New Issue