Overview
TokenID
2147062710115617788492335618763839996512...
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PunksVoxels
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; /** * @notice PunksVoxels ERC721 wrapper contract and ApeVoxels ERC721 contract * @author DeMemeTree and MarbuR7 */ interface IERC165 { function supportsInterface(bytes4 interfaceId) external view returns (bool); } abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } modifier nonReentrant() { require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; _status = _NOT_ENTERED; } } interface IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); function balanceOf(address owner) external view returns (uint256 balance); function ownerOf(uint256 tokenId) external view returns (address owner); function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; function safeTransferFrom( address from, address to, uint256 tokenId ) external; function transferFrom( address from, address to, uint256 tokenId ) external; function approve(address to, uint256 tokenId) external; function setApprovalForAll(address operator, bool _approved) external; function getApproved(uint256 tokenId) external view returns (address operator); function isApprovedForAll(address owner, address operator) external view returns (bool); } interface IERC1155Receiver is IERC165 { function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } interface IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } library Address { function isContract(address account) internal view returns (bool) { return account.code.length > 0; } } abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } } abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { _transferOwnership(_msgSender()); } modifier onlyOwner() { _checkOwner(); _; } function owner() public view virtual returns (address) { return _owner; } function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } interface IERC1155 is IERC165 { event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); event ApprovalForAll(address indexed account, address indexed operator, bool approved); event URI(string value, uint256 indexed id); function balanceOf(address account, uint256 id) external view returns (uint256); function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); function setApprovalForAll(address operator, bool approved) external; function isApprovedForAll(address account, address operator) external view returns (bool); function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; } library Strings { function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } } interface IERC721Metadata is IERC721 { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } abstract contract ERC165 is IERC165 { function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) internal _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) external view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } function name() external view virtual override returns (string memory) { return _name; } function symbol() external view virtual override returns (string memory) { return _symbol; } function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _baseURI() internal view virtual returns (string memory) { return ""; } function approve(address to, uint256 tokenId) external virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) external virtual override { _setApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) external virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); // THE BALANCES GET UPDATED OUTSIDE OF THIS FUNCTION IN A MANNER OF ALL AT ONCE _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } } contract ApeVoxels is ERC721, ReentrancyGuard, Ownable { address private whoCanMint; string private baseURIForOGApeVoxels = "ipfs://"; string private baseExt = ".json"; string private baseURIForCollectionData = "ipfs://"; uint private totalMinted = 0; constructor(address owner_, address whoCanMint_) ERC721("ApeVoxels", "ApeVoxels") { transferOwnership(owner_); whoCanMint = whoCanMint_; } receive() external payable { (bool sent, ) = payable(owner()).call{value: msg.value}(""); require(sent, "Failed to send Ether"); } function mint(address user, uint id) external { require(msg.sender == whoCanMint, "Sorry you cant mint"); _mint(user, id); } function emergencyMint(uint id) external { require(msg.sender == owner(), "You are not the owner"); require(id >= 0, "Id must be in the range 0-9999"); require(id <= 9999, "Id must be in the range 0-9999"); _mint(msg.sender, id); } function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { return string(abi.encodePacked(baseURIForOGApeVoxels, Strings.toString(tokenId), baseExt)); } function updateOwner(address owner_) external { require(msg.sender == owner(), "You are not the owner"); require(owner_ != address(0)); transferOwnership(owner_); } function withdraw() external { require(msg.sender == owner(), "You are not the owner"); uint256 _balance = address(this).balance; require(payable(msg.sender).send(_balance)); } function setExtension(string calldata _baseExt) external { require(msg.sender == owner(), "You are not the owner"); baseExt = _baseExt; } function setURIOG(string calldata _baseURI) external { require(msg.sender == owner(), "You are not the owner"); baseURIForOGApeVoxels = _baseURI; } function setURIForCollection(string calldata _baseURICollection) external { require(msg.sender == owner(), "You are not the owner"); baseURIForCollectionData = _baseURICollection; } function contractURI() public view returns (string memory) { return string(abi.encodePacked(baseURIForCollectionData)); } function exists(uint256 tokenId) external view virtual returns (bool) { return _exists(tokenId); } function updateSupply(uint count, address whoToMintTo) external { require(msg.sender == whoCanMint, "Sorry you cant mint"); unchecked { _balances[whoToMintTo] += count; totalMinted += count; } } function totalSupply() external view returns (uint256) { return totalMinted; } } contract PunksVoxels is ERC721, ReentrancyGuard, IERC721Receiver, IERC1155Receiver, Ownable { string private baseURIForOGPunksVoxels = "ipfs://"; string private baseExt = ".json"; string private baseURIForCollectionData = "ipfs://"; IERC1155 internal punkVoxels; ApeVoxels punkApes; uint private totalMinted = 0; constructor(address punkVoxels_) ERC721("PunksVoxels", "PunksVoxels") { punkVoxels = IERC1155(punkVoxels_); punkApes = new ApeVoxels(msg.sender, address(this)); } receive() external payable { (bool sent, ) = payable(owner()).call{value: msg.value}(""); require(sent, "Failed to send Ether"); } function wrapMany(uint[] calldata tokenIds) nonReentrant external { require( punkVoxels.isApprovedForAll(msg.sender, address(this)), "You need approval" ); require(tokenIds.length > 0, "Must have something"); uint count = tokenIds.length; uint[] memory qty = new uint[](count); for(uint i = 0; i < count;) { require(_exists(tokenIds[i]) == false, "Token already minted"); require(isValidPunk(tokenIds[i]), "Not a valid PunkVoxels"); qty[i] = 1; unchecked { i++; } } punkVoxels.safeBatchTransferFrom(msg.sender, address(this), tokenIds, qty, ""); uint countToUpdatePunks = 0; uint countToUpdateApes = 0; for(uint i = 0; i < count;) { // Mint the PunkVoxel _mint(msg.sender, tokenIds[i]); countToUpdatePunks = countToUpdatePunks + 1; // Mint the ApeVoxel uint newId = toPunkId(tokenIds[i]); if(punkApes.exists(newId) == false) { punkApes.mint(msg.sender, newId); countToUpdateApes = countToUpdateApes + 1; } unchecked { i++; } } if (countToUpdatePunks > 0) { _balances[msg.sender] += countToUpdatePunks; totalMinted += countToUpdatePunks; } if (countToUpdateApes > 0) { punkApes.updateSupply(countToUpdateApes, msg.sender); } } function unwrapMany(uint[] calldata tokenIds) nonReentrant external { require(tokenIds.length > 0, "Must have something"); uint count = tokenIds.length; uint[] memory qty = new uint[](count); uint countToUpdatePunks = 0; for(uint i = 0; i < count;) { qty[i] = 1; require(msg.sender == ownerOf(tokenIds[i]), "Bruh.. you dont own that"); _burn(tokenIds[i]); countToUpdatePunks = countToUpdatePunks + 1; unchecked { i++; } } punkVoxels.safeBatchTransferFrom(address(this), msg.sender, tokenIds, qty, ""); if (countToUpdatePunks > 0) { totalMinted -= countToUpdatePunks; } } function isValidPunk(uint256 openseaId) public pure returns(bool) { if (openseaId >> 96 != 0x0000000000000000000000002f77f1bd06f98d2e7e537ab86bcba23559b5c03f) return false; if (openseaId & 0x000000000000000000000000000000000000000000000000000000ffffffffff != 1) return false; uint256 id = (openseaId & 0x0000000000000000000000000000000000000000ffffffffffffff0000000000) >> 40; if (id > 9999 || id == 0 || id == 1 || id == 41 || id == 51 || id == 68 || id == 100 || id == 101 || id == 102 || id == 107 || id == 114 || id == 3014 || id == 3195 || id == 4157) return false; return true; } function toPunkId(uint256 openseaId) public pure returns (uint256) { uint256 id = (openseaId & 0x0000000000000000000000000000000000000000ffffffffffffff0000000000) >> 40; if (id < 41) return id - 2; else if (id > 41 && id < 51) return id - 3; else if (id > 51 && id < 68) return id - 4; else if (id > 68 && id < 106) return id - 5; else if (id == 106) return id + 3944; else if (id == 108) return id + 4896; else if (id > 1103 && id < 1471) return id - 1003; else if (id == 1471) return id + 2863; else if (id > 1471 && id < 1768) return id - 1004; else if (id > 1767 && id < 2003) return id - 1003; else if (id > 108 && id < 114) return id + 891; else if (id > 114 && id < 135) return id + 890; else if (id > 134 && id < 231) return id + 891; else if (id > 230 && id < 249) return id + 892; else if (id > 248 && id < 264) return id + 893; else if (id > 263 && id < 342) return id + 894; else if (id > 341 && id < 1008) return id + 895; else if (id > 1007 && id < 1104) return id + 896; else if (id > 2002 && id < 3286) return id - 3; else if (id > 3285 && id < 4052) return id - 2; else if (id > 4051 && id < 4335) return id - 1; else if (id > 4334 && id < 5004) return id; else if (id > 5003 && id < 5452) return id + 1; else if (id > 5451 && id < 9998) return id + 2; else if (id == 9998) return id - 5842; else if (id == 9999) return id - 6988; return id; } function updateOwner(address owner_) external { require(msg.sender == owner(), "You are not the owner"); require(owner_ != address(0)); transferOwnership(owner_); } function withdraw() external { require(msg.sender == owner(), "You are not the owner"); uint256 _balance = address(this).balance; require(payable(msg.sender).send(_balance)); } function setExtension(string calldata _baseExt) external { require(msg.sender == owner(), "You are not the owner"); baseExt = _baseExt; } function onERC721Received(address, address, uint256, bytes calldata) pure external returns(bytes4) { return PunksVoxels.onERC721Received.selector; } function onERC1155Received( address, address, uint256, uint256, bytes calldata ) pure external returns (bytes4) { return PunksVoxels.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] calldata, uint256[] calldata, bytes calldata ) pure external returns (bytes4) { return PunksVoxels.onERC1155BatchReceived.selector; } function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { return string(abi.encodePacked(baseURIForOGPunksVoxels, Strings.toString(toPunkId(tokenId)), baseExt)); } function setURIOG(string calldata _baseURI) external { require(msg.sender == owner(), "You are not the owner"); baseURIForOGPunksVoxels = _baseURI; } function setURIForCollection(string calldata _baseURICollection) external { require(msg.sender == owner(), "You are not the owner"); baseURIForCollectionData = _baseURICollection; } function contractURI() public view returns (string memory) { return string(abi.encodePacked(baseURIForCollectionData)); } function totalSupply() external view returns (uint256) { return totalMinted; } function apesContractAddress() external view returns (address) { return address(punkApes); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"punkVoxels_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"apesContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"openseaId","type":"uint256"}],"name":"isValidPunk","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseExt","type":"string"}],"name":"setExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURICollection","type":"string"}],"name":"setURIForCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setURIOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"openseaId","type":"uint256"}],"name":"toPunkId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unwrapMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"updateOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"wrapMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526007608081905266697066733a2f2f60c81b60a09081526200002a91600891906200020a565b5060408051808201909152600580825264173539b7b760d91b602090920191825262000059916009916200020a565b5060408051808201909152600780825266697066733a2f2f60c81b60209092019182526200008a91600a916200020a565b506000600d553480156200009d57600080fd5b5060405162004d2738038062004d27833981016040819052620000c091620002be565b604080518082018252600b8082526a50756e6b73566f78656c7360a81b60208084018281528551808701909652928552840152815191929162000106916000916200020a565b5080516200011c9060019060208401906200020a565b50506001600655506200012f33620001b8565b600b80546001600160a01b0319166001600160a01b038316179055604051339030906200015c9062000299565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801562000190573d6000803e3d6000fd5b50600c80546001600160a01b0319166001600160a01b0392909216919091179055506200032d565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021890620002f0565b90600052602060002090601f0160209004810192826200023c576000855562000287565b82601f106200025757805160ff191683800117855562000287565b8280016001018555821562000287579182015b82811115620002875782518255916020019190600101906200026a565b5062000295929150620002a7565b5090565b611f7c8062002dab83390190565b5b80821115620002955760008155600101620002a8565b600060208284031215620002d157600080fd5b81516001600160a01b0381168114620002e957600080fd5b9392505050565b600181811c908216806200030557607f821691505b602082108114156200032757634e487b7160e01b600052602260045260246000fd5b50919050565b612a6e806200033d6000396000f3fe6080604052600436106101d15760003560e01c806395d89b41116100f7578063c87b56dd11610095578063e985e9c511610064578063e985e9c51461060d578063ef7441a414610656578063f23a6e6114610676578063f2fde38b146106a357600080fd5b8063c87b56dd1461059a578063cacbbd2c146105ba578063de16aa1c146105d8578063e8a3d485146105f857600080fd5b8063b88d4fde116100d1578063b88d4fde1461050b578063bc197c811461052b578063c1dcd1381461055a578063c3eb43121461057a57600080fd5b806395d89b41146104b6578063a22cb465146104cb578063aa4c129b146104eb57600080fd5b80633ccfd60b1161016f5780637e2285aa1161013e5780637e2285aa14610438578063880cdc31146104585780638da5cb5b1461047857806393ee670c1461049657600080fd5b80633ccfd60b146103c357806342842e0e146103d85780636352211e146103f857806370a082311461041857600080fd5b8063095ea7b3116101ab578063095ea7b31461031d578063150b7a021461033f57806318160ddd1461038457806323b872dd146103a357600080fd5b806301ffc9a71461028e57806306fdde03146102c3578063081812fc146102e557600080fd5b366102895760006101ea6007546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114610234576040519150601f19603f3d011682016040523d82523d6000602084013e610239565b606091505b50509050806102865760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b50005b600080fd5b34801561029a57600080fd5b506102ae6102a9366004612126565b6106c3565b60405190151581526020015b60405180910390f35b3480156102cf57600080fd5b506102d8610715565b6040516102ba919061219b565b3480156102f157600080fd5b506103056103003660046121ae565b6107a7565b6040516001600160a01b0390911681526020016102ba565b34801561032957600080fd5b5061033d6103383660046121e3565b6107ce565b005b34801561034b57600080fd5b5061036b61035a366004612256565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016102ba565b34801561039057600080fd5b50600d545b6040519081526020016102ba565b3480156103af57600080fd5b5061033d6103be3660046122c5565b6108e4565b3480156103cf57600080fd5b5061033d610915565b3480156103e457600080fd5b5061033d6103f33660046122c5565b610969565b34801561040457600080fd5b506103056104133660046121ae565b610984565b34801561042457600080fd5b50610395610433366004612301565b6109e4565b34801561044457600080fd5b5061033d61045336600461231c565b610a6a565b34801561046457600080fd5b5061033d610473366004612301565b610aa0565b34801561048457600080fd5b506007546001600160a01b0316610305565b3480156104a257600080fd5b5061033d6104b136600461231c565b610ae6565b3480156104c257600080fd5b506102d8610b1c565b3480156104d757600080fd5b5061033d6104e636600461236c565b610b2b565b3480156104f757600080fd5b506102ae6105063660046121ae565b610b3a565b34801561051757600080fd5b5061033d6105263660046123b9565b610c34565b34801561053757600080fd5b5061036b6105463660046124da565b63bc197c8160e01b98975050505050505050565b34801561056657600080fd5b5061033d610575366004612595565b610c6c565b34801561058657600080fd5b506103956105953660046121ae565b610eca565b3480156105a657600080fd5b506102d86105b53660046121ae565b611200565b3480156105c657600080fd5b50600c546001600160a01b0316610305565b3480156105e457600080fd5b5061033d6105f336600461231c565b61123f565b34801561060457600080fd5b506102d8611275565b34801561061957600080fd5b506102ae6106283660046125cb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561066257600080fd5b5061033d610671366004612595565b61129d565b34801561068257600080fd5b5061036b6106913660046125fe565b63f23a6e6160e01b9695505050505050565b3480156106af57600080fd5b5061033d6106be366004612301565b6117be565b60006001600160e01b031982166380ac58cd60e01b14806106f457506001600160e01b03198216635b5e139f60e01b145b8061070f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461072490612676565b80601f016020809104026020016040519081016040528092919081815260200182805461075090612676565b801561079d5780601f106107725761010080835404028352916020019161079d565b820191906000526020600020905b81548152906001019060200180831161078057829003601f168201915b5050505050905090565b60006107b282611834565b506000908152600460205260409020546001600160a01b031690565b60006107d982610984565b9050806001600160a01b0316836001600160a01b031614156108475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161027d565b336001600160a01b038216148061086357506108638133610628565b6108d55760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161027d565b6108df8383611893565b505050565b6108ee3382611901565b61090a5760405162461bcd60e51b815260040161027d906126b1565b6108df838383611980565b6007546001600160a01b0316331461093f5760405162461bcd60e51b815260040161027d906126ff565b6040514790339082156108fc029083906000818181858888f1935050505061096657600080fd5b50565b6108df83838360405180602001604052806000815250610c34565b6000818152600260205260408120546001600160a01b03168061070f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161027d565b60006001600160a01b038216610a4e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161027d565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610a945760405162461bcd60e51b815260040161027d906126ff565b6108df60098383612077565b6007546001600160a01b03163314610aca5760405162461bcd60e51b815260040161027d906126ff565b6001600160a01b038116610add57600080fd5b610966816117be565b6007546001600160a01b03163314610b105760405162461bcd60e51b815260040161027d906126ff565b6108df60088383612077565b60606001805461072490612676565b610b36338383611b1c565b5050565b6000606082901c732f77f1bd06f98d2e7e537ab86bcba23559b5c03f14610b6357506000919050565b8164ffffffffff16600114610b7a57506000919050565b66ffffffffffffff602883901c1661270f811180610b96575080155b80610ba15750806001145b80610bac5750806029145b80610bb75750806033145b80610bc25750806044145b80610bcd5750806064145b80610bd85750806065145b80610be35750806066145b80610bee575080606b145b80610bf95750806072145b80610c05575080610bc6145b80610c11575080610c7b145b80610c1d57508061103d145b15610c2b5750600092915050565b50600192915050565b610c3e3383611901565b610c5a5760405162461bcd60e51b815260040161027d906126b1565b610c6684848484611beb565b50505050565b60026006541415610cbf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161027d565b600260065580610d075760405162461bcd60e51b81526020600482015260136024820152724d757374206861766520736f6d657468696e6760681b604482015260640161027d565b8060008167ffffffffffffffff811115610d2357610d236123a3565b604051908082528060200260200182016040528015610d4c578160200160208202803683370190505b5090506000805b83811015610e32576001838281518110610d6f57610d6f61272e565b602002602001018181525050610d9c868683818110610d9057610d9061272e565b90506020020135610984565b6001600160a01b0316336001600160a01b031614610dfc5760405162461bcd60e51b815260206004820152601860248201527f427275682e2e20796f7520646f6e74206f776e20746861740000000000000000604482015260640161027d565b610e1d868683818110610e1157610e1161272e565b90506020020135611c1e565b610e2882600161275a565b9150600101610d53565b50600b54604051631759616b60e11b81526001600160a01b0390911690632eb2c2d690610e6b90309033908a908a908990600401612772565b600060405180830381600087803b158015610e8557600080fd5b505af1158015610e99573d6000803e3d6000fd5b505050506000811115610ebe5780600d6000828254610eb89190612826565b90915550505b50506001600655505050565b600066ffffffffffffff602883901c166029811015610ef557610eee600282612826565b9392505050565b602981118015610f055750603381105b15610f1557610eee600382612826565b603381118015610f255750604481105b15610f3557610eee600482612826565b604481118015610f455750606a81105b15610f5557610eee600582612826565b80606a1415610f6a57610eee81610f6861275a565b80606c1415610f7f57610eee8161132061275a565b61044f81118015610f9157506105bf81105b15610fa257610eee6103eb82612826565b806105bf1415610fb857610eee81610b2f61275a565b6105bf81118015610fca57506106e881105b15610fdb57610eee6103ec82612826565b6106e781118015610fed57506107d381105b15610ffe57610eee6103eb82612826565b606c8111801561100e5750607281105b1561101f57610eee8161037b61275a565b60728111801561102f5750608781105b1561104057610eee8161037a61275a565b608681118015611050575060e781105b1561106157610eee8161037b61275a565b60e681118015611071575060f981105b1561108257610eee8161037c61275a565b60f881118015611093575061010881105b156110a457610eee8161037d61275a565b610107811180156110b6575061015681105b156110c757610eee8161037e61275a565b610155811180156110d957506103f081105b156110ea57610eee8161037f61275a565b6103ef811180156110fc575061045081105b1561110d57610eee8161038061275a565b6107d28111801561111f5750610cd681105b1561112f57610eee600382612826565b610cd5811180156111415750610fd481105b1561115157610eee600282612826565b610fd38111801561116357506110ef81105b1561117357610eee600182612826565b6110ee81118015611185575061138c81105b156111905792915050565b61138b811180156111a2575061154c81105b156111b257610eee81600161275a565b61154b811180156111c4575061270e81105b156111d457610eee81600261275a565b8061270e14156111ea57610eee6116d282612826565b8061270f141561070f57610eee611b4c82612826565b6060600861121561121084610eca565b611cb9565b6009604051602001611229939291906128d7565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146112695760405162461bcd60e51b815260040161027d906126ff565b6108df600a8383612077565b6060600a604051602001611289919061290a565b604051602081830303815290604052905090565b600260065414156112f05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161027d565b6002600655600b5460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015611343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113679190612916565b6113a75760405162461bcd60e51b8152602060048201526011602482015270165bdd481b99595908185c1c1c9bdd985b607a1b604482015260640161027d565b806113ea5760405162461bcd60e51b81526020600482015260136024820152724d757374206861766520736f6d657468696e6760681b604482015260640161027d565b8060008167ffffffffffffffff811115611406576114066123a3565b60405190808252806020026020018201604052801561142f578160200160208202803683370190505b50905060005b82811015611547576114768585838181106114525761145261272e565b905060200201356000908152600260205260409020546001600160a01b0316151590565b156114ba5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b604482015260640161027d565b6114db8585838181106114cf576114cf61272e565b90506020020135610b3a565b6115205760405162461bcd60e51b81526020600482015260166024820152754e6f7420612076616c69642050756e6b566f78656c7360501b604482015260640161027d565b60018282815181106115345761153461272e565b6020908102919091010152600101611435565b50600b54604051631759616b60e11b81526001600160a01b0390911690632eb2c2d6906115809033903090899089908890600401612772565b600060405180830381600087803b15801561159a57600080fd5b505af11580156115ae573d6000803e3d6000fd5b5050505060008060005b84811015611701576115e2338888848181106115d6576115d661272e565b90506020020135611db7565b6115ed83600161275a565b925060006116128888848181106116065761160661272e565b90506020020135610eca565b600c54604051634f558e7960e01b8152600481018390529192506001600160a01b031690634f558e7990602401602060405180830381865afa15801561165c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116809190612916565b6116f857600c546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156116d057600080fd5b505af11580156116e4573d6000803e3d6000fd5b505050508260016116f5919061275a565b92505b506001016115b8565b50811561174657336000908152600360205260408120805484929061172790849061275a565b9250508190555081600d6000828254611740919061275a565b90915550505b80156117b157600c54604051631cdb69f560e01b8152600481018390523360248201526001600160a01b0390911690631cdb69f590604401600060405180830381600087803b15801561179857600080fd5b505af11580156117ac573d6000803e3d6000fd5b505050505b5050600160065550505050565b6117c6611ecb565b6001600160a01b03811661182b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161027d565b61096681611f27565b6000818152600260205260409020546001600160a01b03166109665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161027d565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118c882610984565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061190d83610984565b9050806001600160a01b0316846001600160a01b0316148061195457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119785750836001600160a01b031661196d846107a7565b6001600160a01b0316145b949350505050565b826001600160a01b031661199382610984565b6001600160a01b0316146119f75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161027d565b6001600160a01b038216611a595760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161027d565b611a64600082611893565b6001600160a01b0383166000908152600360205260408120805460019290611a8d908490612826565b90915550506001600160a01b0382166000908152600360205260408120805460019290611abb90849061275a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415611b7e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161027d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf6848484611980565b611c0284848484611f79565b610c665760405162461bcd60e51b815260040161027d90612933565b6000611c2982610984565b9050611c36600083611893565b6001600160a01b0381166000908152600360205260408120805460019290611c5f908490612826565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081611cdd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d075780611cf181612985565b9150611d009050600a836129b6565b9150611ce1565b60008167ffffffffffffffff811115611d2257611d226123a3565b6040519080825280601f01601f191660200182016040528015611d4c576020820181803683370190505b5090505b841561197857611d61600183612826565b9150611d6e600a866129ca565b611d7990603061275a565b60f81b818381518110611d8e57611d8e61272e565b60200101906001600160f81b031916908160001a905350611db0600a866129b6565b9450611d50565b6001600160a01b038216611e0d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161027d565b6000818152600260205260409020546001600160a01b031615611e725760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161027d565b60008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6007546001600160a01b03163314611f255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161027d565b565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561206c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fbd9033908990889088906004016129de565b6020604051808303816000875af1925050508015611ff8575060408051601f3d908101601f19168201909252611ff591810190612a1b565b60015b612052573d808015612026576040519150601f19603f3d011682016040523d82523d6000602084013e61202b565b606091505b50805161204a5760405162461bcd60e51b815260040161027d90612933565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611978565b506001949350505050565b82805461208390612676565b90600052602060002090601f0160209004810192826120a557600085556120eb565b82601f106120be5782800160ff198235161785556120eb565b828001600101855582156120eb579182015b828111156120eb5782358255916020019190600101906120d0565b506120f79291506120fb565b5090565b5b808211156120f757600081556001016120fc565b6001600160e01b03198116811461096657600080fd5b60006020828403121561213857600080fd5b8135610eee81612110565b60005b8381101561215e578181015183820152602001612146565b83811115610c665750506000910152565b60008151808452612187816020860160208601612143565b601f01601f19169290920160200192915050565b602081526000610eee602083018461216f565b6000602082840312156121c057600080fd5b5035919050565b80356001600160a01b03811681146121de57600080fd5b919050565b600080604083850312156121f657600080fd5b6121ff836121c7565b946020939093013593505050565b60008083601f84011261221f57600080fd5b50813567ffffffffffffffff81111561223757600080fd5b60208301915083602082850101111561224f57600080fd5b9250929050565b60008060008060006080868803121561226e57600080fd5b612277866121c7565b9450612285602087016121c7565b935060408601359250606086013567ffffffffffffffff8111156122a857600080fd5b6122b48882890161220d565b969995985093965092949392505050565b6000806000606084860312156122da57600080fd5b6122e3846121c7565b92506122f1602085016121c7565b9150604084013590509250925092565b60006020828403121561231357600080fd5b610eee826121c7565b6000806020838503121561232f57600080fd5b823567ffffffffffffffff81111561234657600080fd5b6123528582860161220d565b90969095509350505050565b801515811461096657600080fd5b6000806040838503121561237f57600080fd5b612388836121c7565b915060208301356123988161235e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156123cf57600080fd5b6123d8856121c7565b93506123e6602086016121c7565b925060408501359150606085013567ffffffffffffffff8082111561240a57600080fd5b818701915087601f83011261241e57600080fd5b813581811115612430576124306123a3565b604051601f8201601f19908116603f01168101908382118183101715612458576124586123a3565b816040528281528a602084870101111561247157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f8401126124a757600080fd5b50813567ffffffffffffffff8111156124bf57600080fd5b6020830191508360208260051b850101111561224f57600080fd5b60008060008060008060008060a0898b0312156124f657600080fd5b6124ff896121c7565b975061250d60208a016121c7565b9650604089013567ffffffffffffffff8082111561252a57600080fd5b6125368c838d01612495565b909850965060608b013591508082111561254f57600080fd5b61255b8c838d01612495565b909650945060808b013591508082111561257457600080fd5b506125818b828c0161220d565b999c989b5096995094979396929594505050565b600080602083850312156125a857600080fd5b823567ffffffffffffffff8111156125bf57600080fd5b61235285828601612495565b600080604083850312156125de57600080fd5b6125e7836121c7565b91506125f5602084016121c7565b90509250929050565b60008060008060008060a0878903121561261757600080fd5b612620876121c7565b955061262e602088016121c7565b94506040870135935060608701359250608087013567ffffffffffffffff81111561265857600080fd5b61266489828a0161220d565b979a9699509497509295939492505050565b600181811c9082168061268a57607f821691505b602082108114156126ab57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561276d5761276d612744565b500190565b6001600160a01b03868116825285811660208084019190915260a0604084018190528301859052600091906001600160fb1b038611156127b157600080fd5b8560051b9150818760c0860137600091840160c08181018481528683039091016060870152865190819052828701939160e001905b8083101561280657845182529383019360019290920191908301906127e6565b50858103608087015260008152602081019b9a5050505050505050505050565b60008282101561283857612838612744565b500390565b8054600090600181811c908083168061285757607f831692505b602080841082141561287957634e487b7160e01b600052602260045260246000fd5b81801561288d576001811461289e576128cb565b60ff198616895284890196506128cb565b60008881526020902060005b868110156128c35781548b8201529085019083016128aa565b505084890196505b50505050505092915050565b60006128e3828661283d565b84516128f3818360208901612143565b6128ff8183018661283d565b979650505050505050565b6000610eee828461283d565b60006020828403121561292857600080fd5b8151610eee8161235e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060001982141561299957612999612744565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826129c5576129c56129a0565b500490565b6000826129d9576129d96129a0565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a119083018461216f565b9695505050505050565b600060208284031215612a2d57600080fd5b8151610eee8161211056fea2646970667358221220e63d84a0404c5e1e3be3f08bc224b841e86433487b85ab4354a4d892cea2164a64736f6c634300080c003360c06040526007608081905266697066733a2f2f60c81b60a09081526200002a916009919062000292565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200005991600a9162000292565b5060408051808201909152600780825266697066733a2f2f60c81b60209092019182526200008a91600b9162000292565b506000600c553480156200009d57600080fd5b5060405162001f7c38038062001f7c833981016040819052620000c09162000355565b604080518082018252600980825268417065566f78656c7360b81b602080840182815285518087019096529285528401528151919291620001049160009162000292565b5080516200011a90600190602084019062000292565b50506001600655506200012d336200015f565b6200013882620001b1565b600880546001600160a01b0319166001600160a01b039290921691909117905550620003ca565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001bb62000234565b6001600160a01b038116620002265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b62000231816200015f565b50565b6007546001600160a01b03163314620002905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200021d565b565b828054620002a0906200038d565b90600052602060002090601f016020900481019282620002c457600085556200030f565b82601f10620002df57805160ff19168380011785556200030f565b828001600101855582156200030f579182015b828111156200030f578251825591602001919060010190620002f2565b506200031d92915062000321565b5090565b5b808211156200031d576000815560010162000322565b80516001600160a01b03811681146200035057600080fd5b919050565b600080604083850312156200036957600080fd5b620003748362000338565b9150620003846020840162000338565b90509250929050565b600181811c90821680620003a257607f821691505b60208210811415620003c457634e487b7160e01b600052602260045260246000fd5b50919050565b611ba280620003da6000396000f3fe6080604052600436106101855760003560e01c80637e2285aa116100d1578063b88d4fde1161008a578063e8a3d48511610064578063e8a3d4851461051a578063e985e9c51461052f578063f2fde38b14610578578063ffcc66dc1461059857600080fd5b8063b88d4fde146104ba578063c87b56dd146104da578063de16aa1c146104fa57600080fd5b80637e2285aa14610407578063880cdc31146104275780638da5cb5b1461044757806393ee670c1461046557806395d89b4114610485578063a22cb4651461049a57600080fd5b806323b872dd1161013e57806342842e0e1161011857806342842e0e146103875780634f558e79146103a75780636352211e146103c757806370a08231146103e757600080fd5b806323b872dd146103325780633ccfd60b1461035257806340c10f191461036757600080fd5b806301ffc9a71461024257806306fdde0314610277578063081812fc14610299578063095ea7b3146102d157806318160ddd146102f35780631cdb69f51461031257600080fd5b3661023d57600061019e6007546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d80600081146101e8576040519150601f19603f3d011682016040523d82523d6000602084013e6101ed565b606091505b505090508061023a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b50005b600080fd5b34801561024e57600080fd5b5061026261025d366004611540565b6105b8565b60405190151581526020015b60405180910390f35b34801561028357600080fd5b5061028c61060a565b60405161026e91906115bc565b3480156102a557600080fd5b506102b96102b43660046115cf565b61069c565b6040516001600160a01b03909116815260200161026e565b3480156102dd57600080fd5b506102f16102ec366004611604565b6106c3565b005b3480156102ff57600080fd5b50600c545b60405190815260200161026e565b34801561031e57600080fd5b506102f161032d36600461162e565b6107d9565b34801561033e57600080fd5b506102f161034d36600461165a565b610851565b34801561035e57600080fd5b506102f1610882565b34801561037357600080fd5b506102f1610382366004611604565b6108d6565b34801561039357600080fd5b506102f16103a236600461165a565b610934565b3480156103b357600080fd5b506102626103c23660046115cf565b61094f565b3480156103d357600080fd5b506102b96103e23660046115cf565b61096e565b3480156103f357600080fd5b50610304610402366004611696565b6109ce565b34801561041357600080fd5b506102f16104223660046116b1565b610a54565b34801561043357600080fd5b506102f1610442366004611696565b610a8a565b34801561045357600080fd5b506007546001600160a01b03166102b9565b34801561047157600080fd5b506102f16104803660046116b1565b610ad0565b34801561049157600080fd5b5061028c610b06565b3480156104a657600080fd5b506102f16104b5366004611723565b610b15565b3480156104c657600080fd5b506102f16104d5366004611775565b610b20565b3480156104e657600080fd5b5061028c6104f53660046115cf565b610b58565b34801561050657600080fd5b506102f16105153660046116b1565b610b8f565b34801561052657600080fd5b5061028c610bc5565b34801561053b57600080fd5b5061026261054a366004611851565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058457600080fd5b506102f1610593366004611696565b610bed565b3480156105a457600080fd5b506102f16105b33660046115cf565b610c63565b60006001600160e01b031982166380ac58cd60e01b14806105e957506001600160e01b03198216635b5e139f60e01b145b8061060457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106199061187b565b80601f01602080910402602001604051908101604052809291908181526020018280546106459061187b565b80156106925780601f1061066757610100808354040283529160200191610692565b820191906000526020600020905b81548152906001019060200180831161067557829003601f168201915b5050505050905090565b60006106a782610ce9565b506000908152600460205260409020546001600160a01b031690565b60006106ce8261096e565b9050806001600160a01b0316836001600160a01b0316141561073c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610231565b336001600160a01b03821614806107585750610758813361054a565b6107ca5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610231565b6107d48383610d48565b505050565b6008546001600160a01b031633146108295760405162461bcd60e51b815260206004820152601360248201527214dbdc9c9e481e5bdd4818d85b9d081b5a5b9d606a1b6044820152606401610231565b6001600160a01b03166000908152600360205260409020805482019055600c80549091019055565b61085b3382610db6565b6108775760405162461bcd60e51b8152600401610231906118b6565b6107d4838383610e35565b6007546001600160a01b031633146108ac5760405162461bcd60e51b815260040161023190611904565b6040514790339082156108fc029083906000818181858888f193505050506108d357600080fd5b50565b6008546001600160a01b031633146109265760405162461bcd60e51b815260206004820152601360248201527214dbdc9c9e481e5bdd4818d85b9d081b5a5b9d606a1b6044820152606401610231565b6109308282610fd1565b5050565b6107d483838360405180602001604052806000815250610b20565b6000818152600260205260408120546001600160a01b03161515610604565b6000818152600260205260408120546001600160a01b0316806106045760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610231565b60006001600160a01b038216610a385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610231565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161023190611904565b6107d4600a8383611491565b6007546001600160a01b03163314610ab45760405162461bcd60e51b815260040161023190611904565b6001600160a01b038116610ac757600080fd5b6108d381610bed565b6007546001600160a01b03163314610afa5760405162461bcd60e51b815260040161023190611904565b6107d460098383611491565b6060600180546106199061187b565b6109303383836110e5565b610b2a3383610db6565b610b465760405162461bcd60e51b8152600401610231906118b6565b610b52848484846111b4565b50505050565b60606009610b65836111e7565b600a604051602001610b79939291906119cd565b6040516020818303038152906040529050919050565b6007546001600160a01b03163314610bb95760405162461bcd60e51b815260040161023190611904565b6107d4600b8383611491565b6060600b604051602001610bd99190611a00565b604051602081830303815290604052905090565b610bf56112e5565b6001600160a01b038116610c5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610231565b6108d381611341565b6007546001600160a01b03163314610c8d5760405162461bcd60e51b815260040161023190611904565b61270f811115610cdf5760405162461bcd60e51b815260206004820152601e60248201527f4964206d75737420626520696e207468652072616e676520302d3939393900006044820152606401610231565b6108d33382610fd1565b6000818152600260205260409020546001600160a01b03166108d35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610231565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d7d8261096e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610dc28361096e565b9050806001600160a01b0316846001600160a01b03161480610e0957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610e2d5750836001600160a01b0316610e228461069c565b6001600160a01b0316145b949350505050565b826001600160a01b0316610e488261096e565b6001600160a01b031614610eac5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610231565b6001600160a01b038216610f0e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610231565b610f19600082610d48565b6001600160a01b0383166000908152600360205260408120805460019290610f42908490611a22565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f70908490611a39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166110275760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610231565b6000818152600260205260409020546001600160a01b03161561108c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610231565b60008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031614156111475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610231565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111bf848484610e35565b6111cb84848484611393565b610b525760405162461bcd60e51b815260040161023190611a51565b60608161120b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611235578061121f81611aa3565b915061122e9050600a83611ad4565b915061120f565b60008167ffffffffffffffff8111156112505761125061175f565b6040519080825280601f01601f19166020018201604052801561127a576020820181803683370190505b5090505b8415610e2d5761128f600183611a22565b915061129c600a86611ae8565b6112a7906030611a39565b60f81b8183815181106112bc576112bc611afc565b60200101906001600160f81b031916908160001a9053506112de600a86611ad4565b945061127e565b6007546001600160a01b0316331461133f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610231565b565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561148657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906113d7903390899088908890600401611b12565b6020604051808303816000875af1925050508015611412575060408051601f3d908101601f1916820190925261140f91810190611b4f565b60015b61146c573d808015611440576040519150601f19603f3d011682016040523d82523d6000602084013e611445565b606091505b5080516114645760405162461bcd60e51b815260040161023190611a51565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e2d565b506001949350505050565b82805461149d9061187b565b90600052602060002090601f0160209004810192826114bf5760008555611505565b82601f106114d85782800160ff19823516178555611505565b82800160010185558215611505579182015b828111156115055782358255916020019190600101906114ea565b50611511929150611515565b5090565b5b808211156115115760008155600101611516565b6001600160e01b0319811681146108d357600080fd5b60006020828403121561155257600080fd5b813561155d8161152a565b9392505050565b60005b8381101561157f578181015183820152602001611567565b83811115610b525750506000910152565b600081518084526115a8816020860160208601611564565b601f01601f19169290920160200192915050565b60208152600061155d6020830184611590565b6000602082840312156115e157600080fd5b5035919050565b80356001600160a01b03811681146115ff57600080fd5b919050565b6000806040838503121561161757600080fd5b611620836115e8565b946020939093013593505050565b6000806040838503121561164157600080fd5b82359150611651602084016115e8565b90509250929050565b60008060006060848603121561166f57600080fd5b611678846115e8565b9250611686602085016115e8565b9150604084013590509250925092565b6000602082840312156116a857600080fd5b61155d826115e8565b600080602083850312156116c457600080fd5b823567ffffffffffffffff808211156116dc57600080fd5b818501915085601f8301126116f057600080fd5b8135818111156116ff57600080fd5b86602082850101111561171157600080fd5b60209290920196919550909350505050565b6000806040838503121561173657600080fd5b61173f836115e8565b91506020830135801515811461175457600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561178b57600080fd5b611794856115e8565b93506117a2602086016115e8565b925060408501359150606085013567ffffffffffffffff808211156117c657600080fd5b818701915087601f8301126117da57600080fd5b8135818111156117ec576117ec61175f565b604051601f8201601f19908116603f011681019083821181831017156118145761181461175f565b816040528281528a602084870101111561182d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561186457600080fd5b61186d836115e8565b9150611651602084016115e8565b600181811c9082168061188f57607f821691505b602082108114156118b057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b8054600090600181811c908083168061194d57607f831692505b602080841082141561196f57634e487b7160e01b600052602260045260246000fd5b8180156119835760018114611994576119c1565b60ff198616895284890196506119c1565b60008881526020902060005b868110156119b95781548b8201529085019083016119a0565b505084890196505b50505050505092915050565b60006119d98286611933565b84516119e9818360208901611564565b6119f581830186611933565b979650505050505050565b600061155d8284611933565b634e487b7160e01b600052601160045260246000fd5b600082821015611a3457611a34611a0c565b500390565b60008219821115611a4c57611a4c611a0c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611ab757611ab7611a0c565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611ae357611ae3611abe565b500490565b600082611af757611af7611abe565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b4590830184611590565b9695505050505050565b600060208284031215611b6157600080fd5b815161155d8161152a56fea2646970667358221220b56dc5b2a45e45d2b42b247db0e4cf39df323b907b1e5b83c94adfadeb0f6fb764736f6c634300080c0033000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
Deployed Bytecode
0x6080604052600436106101d15760003560e01c806395d89b41116100f7578063c87b56dd11610095578063e985e9c511610064578063e985e9c51461060d578063ef7441a414610656578063f23a6e6114610676578063f2fde38b146106a357600080fd5b8063c87b56dd1461059a578063cacbbd2c146105ba578063de16aa1c146105d8578063e8a3d485146105f857600080fd5b8063b88d4fde116100d1578063b88d4fde1461050b578063bc197c811461052b578063c1dcd1381461055a578063c3eb43121461057a57600080fd5b806395d89b41146104b6578063a22cb465146104cb578063aa4c129b146104eb57600080fd5b80633ccfd60b1161016f5780637e2285aa1161013e5780637e2285aa14610438578063880cdc31146104585780638da5cb5b1461047857806393ee670c1461049657600080fd5b80633ccfd60b146103c357806342842e0e146103d85780636352211e146103f857806370a082311461041857600080fd5b8063095ea7b3116101ab578063095ea7b31461031d578063150b7a021461033f57806318160ddd1461038457806323b872dd146103a357600080fd5b806301ffc9a71461028e57806306fdde03146102c3578063081812fc146102e557600080fd5b366102895760006101ea6007546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114610234576040519150601f19603f3d011682016040523d82523d6000602084013e610239565b606091505b50509050806102865760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b50005b600080fd5b34801561029a57600080fd5b506102ae6102a9366004612126565b6106c3565b60405190151581526020015b60405180910390f35b3480156102cf57600080fd5b506102d8610715565b6040516102ba919061219b565b3480156102f157600080fd5b506103056103003660046121ae565b6107a7565b6040516001600160a01b0390911681526020016102ba565b34801561032957600080fd5b5061033d6103383660046121e3565b6107ce565b005b34801561034b57600080fd5b5061036b61035a366004612256565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016102ba565b34801561039057600080fd5b50600d545b6040519081526020016102ba565b3480156103af57600080fd5b5061033d6103be3660046122c5565b6108e4565b3480156103cf57600080fd5b5061033d610915565b3480156103e457600080fd5b5061033d6103f33660046122c5565b610969565b34801561040457600080fd5b506103056104133660046121ae565b610984565b34801561042457600080fd5b50610395610433366004612301565b6109e4565b34801561044457600080fd5b5061033d61045336600461231c565b610a6a565b34801561046457600080fd5b5061033d610473366004612301565b610aa0565b34801561048457600080fd5b506007546001600160a01b0316610305565b3480156104a257600080fd5b5061033d6104b136600461231c565b610ae6565b3480156104c257600080fd5b506102d8610b1c565b3480156104d757600080fd5b5061033d6104e636600461236c565b610b2b565b3480156104f757600080fd5b506102ae6105063660046121ae565b610b3a565b34801561051757600080fd5b5061033d6105263660046123b9565b610c34565b34801561053757600080fd5b5061036b6105463660046124da565b63bc197c8160e01b98975050505050505050565b34801561056657600080fd5b5061033d610575366004612595565b610c6c565b34801561058657600080fd5b506103956105953660046121ae565b610eca565b3480156105a657600080fd5b506102d86105b53660046121ae565b611200565b3480156105c657600080fd5b50600c546001600160a01b0316610305565b3480156105e457600080fd5b5061033d6105f336600461231c565b61123f565b34801561060457600080fd5b506102d8611275565b34801561061957600080fd5b506102ae6106283660046125cb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561066257600080fd5b5061033d610671366004612595565b61129d565b34801561068257600080fd5b5061036b6106913660046125fe565b63f23a6e6160e01b9695505050505050565b3480156106af57600080fd5b5061033d6106be366004612301565b6117be565b60006001600160e01b031982166380ac58cd60e01b14806106f457506001600160e01b03198216635b5e139f60e01b145b8061070f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461072490612676565b80601f016020809104026020016040519081016040528092919081815260200182805461075090612676565b801561079d5780601f106107725761010080835404028352916020019161079d565b820191906000526020600020905b81548152906001019060200180831161078057829003601f168201915b5050505050905090565b60006107b282611834565b506000908152600460205260409020546001600160a01b031690565b60006107d982610984565b9050806001600160a01b0316836001600160a01b031614156108475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161027d565b336001600160a01b038216148061086357506108638133610628565b6108d55760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161027d565b6108df8383611893565b505050565b6108ee3382611901565b61090a5760405162461bcd60e51b815260040161027d906126b1565b6108df838383611980565b6007546001600160a01b0316331461093f5760405162461bcd60e51b815260040161027d906126ff565b6040514790339082156108fc029083906000818181858888f1935050505061096657600080fd5b50565b6108df83838360405180602001604052806000815250610c34565b6000818152600260205260408120546001600160a01b03168061070f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161027d565b60006001600160a01b038216610a4e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161027d565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610a945760405162461bcd60e51b815260040161027d906126ff565b6108df60098383612077565b6007546001600160a01b03163314610aca5760405162461bcd60e51b815260040161027d906126ff565b6001600160a01b038116610add57600080fd5b610966816117be565b6007546001600160a01b03163314610b105760405162461bcd60e51b815260040161027d906126ff565b6108df60088383612077565b60606001805461072490612676565b610b36338383611b1c565b5050565b6000606082901c732f77f1bd06f98d2e7e537ab86bcba23559b5c03f14610b6357506000919050565b8164ffffffffff16600114610b7a57506000919050565b66ffffffffffffff602883901c1661270f811180610b96575080155b80610ba15750806001145b80610bac5750806029145b80610bb75750806033145b80610bc25750806044145b80610bcd5750806064145b80610bd85750806065145b80610be35750806066145b80610bee575080606b145b80610bf95750806072145b80610c05575080610bc6145b80610c11575080610c7b145b80610c1d57508061103d145b15610c2b5750600092915050565b50600192915050565b610c3e3383611901565b610c5a5760405162461bcd60e51b815260040161027d906126b1565b610c6684848484611beb565b50505050565b60026006541415610cbf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161027d565b600260065580610d075760405162461bcd60e51b81526020600482015260136024820152724d757374206861766520736f6d657468696e6760681b604482015260640161027d565b8060008167ffffffffffffffff811115610d2357610d236123a3565b604051908082528060200260200182016040528015610d4c578160200160208202803683370190505b5090506000805b83811015610e32576001838281518110610d6f57610d6f61272e565b602002602001018181525050610d9c868683818110610d9057610d9061272e565b90506020020135610984565b6001600160a01b0316336001600160a01b031614610dfc5760405162461bcd60e51b815260206004820152601860248201527f427275682e2e20796f7520646f6e74206f776e20746861740000000000000000604482015260640161027d565b610e1d868683818110610e1157610e1161272e565b90506020020135611c1e565b610e2882600161275a565b9150600101610d53565b50600b54604051631759616b60e11b81526001600160a01b0390911690632eb2c2d690610e6b90309033908a908a908990600401612772565b600060405180830381600087803b158015610e8557600080fd5b505af1158015610e99573d6000803e3d6000fd5b505050506000811115610ebe5780600d6000828254610eb89190612826565b90915550505b50506001600655505050565b600066ffffffffffffff602883901c166029811015610ef557610eee600282612826565b9392505050565b602981118015610f055750603381105b15610f1557610eee600382612826565b603381118015610f255750604481105b15610f3557610eee600482612826565b604481118015610f455750606a81105b15610f5557610eee600582612826565b80606a1415610f6a57610eee81610f6861275a565b80606c1415610f7f57610eee8161132061275a565b61044f81118015610f9157506105bf81105b15610fa257610eee6103eb82612826565b806105bf1415610fb857610eee81610b2f61275a565b6105bf81118015610fca57506106e881105b15610fdb57610eee6103ec82612826565b6106e781118015610fed57506107d381105b15610ffe57610eee6103eb82612826565b606c8111801561100e5750607281105b1561101f57610eee8161037b61275a565b60728111801561102f5750608781105b1561104057610eee8161037a61275a565b608681118015611050575060e781105b1561106157610eee8161037b61275a565b60e681118015611071575060f981105b1561108257610eee8161037c61275a565b60f881118015611093575061010881105b156110a457610eee8161037d61275a565b610107811180156110b6575061015681105b156110c757610eee8161037e61275a565b610155811180156110d957506103f081105b156110ea57610eee8161037f61275a565b6103ef811180156110fc575061045081105b1561110d57610eee8161038061275a565b6107d28111801561111f5750610cd681105b1561112f57610eee600382612826565b610cd5811180156111415750610fd481105b1561115157610eee600282612826565b610fd38111801561116357506110ef81105b1561117357610eee600182612826565b6110ee81118015611185575061138c81105b156111905792915050565b61138b811180156111a2575061154c81105b156111b257610eee81600161275a565b61154b811180156111c4575061270e81105b156111d457610eee81600261275a565b8061270e14156111ea57610eee6116d282612826565b8061270f141561070f57610eee611b4c82612826565b6060600861121561121084610eca565b611cb9565b6009604051602001611229939291906128d7565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146112695760405162461bcd60e51b815260040161027d906126ff565b6108df600a8383612077565b6060600a604051602001611289919061290a565b604051602081830303815290604052905090565b600260065414156112f05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161027d565b6002600655600b5460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015611343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113679190612916565b6113a75760405162461bcd60e51b8152602060048201526011602482015270165bdd481b99595908185c1c1c9bdd985b607a1b604482015260640161027d565b806113ea5760405162461bcd60e51b81526020600482015260136024820152724d757374206861766520736f6d657468696e6760681b604482015260640161027d565b8060008167ffffffffffffffff811115611406576114066123a3565b60405190808252806020026020018201604052801561142f578160200160208202803683370190505b50905060005b82811015611547576114768585838181106114525761145261272e565b905060200201356000908152600260205260409020546001600160a01b0316151590565b156114ba5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b604482015260640161027d565b6114db8585838181106114cf576114cf61272e565b90506020020135610b3a565b6115205760405162461bcd60e51b81526020600482015260166024820152754e6f7420612076616c69642050756e6b566f78656c7360501b604482015260640161027d565b60018282815181106115345761153461272e565b6020908102919091010152600101611435565b50600b54604051631759616b60e11b81526001600160a01b0390911690632eb2c2d6906115809033903090899089908890600401612772565b600060405180830381600087803b15801561159a57600080fd5b505af11580156115ae573d6000803e3d6000fd5b5050505060008060005b84811015611701576115e2338888848181106115d6576115d661272e565b90506020020135611db7565b6115ed83600161275a565b925060006116128888848181106116065761160661272e565b90506020020135610eca565b600c54604051634f558e7960e01b8152600481018390529192506001600160a01b031690634f558e7990602401602060405180830381865afa15801561165c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116809190612916565b6116f857600c546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156116d057600080fd5b505af11580156116e4573d6000803e3d6000fd5b505050508260016116f5919061275a565b92505b506001016115b8565b50811561174657336000908152600360205260408120805484929061172790849061275a565b9250508190555081600d6000828254611740919061275a565b90915550505b80156117b157600c54604051631cdb69f560e01b8152600481018390523360248201526001600160a01b0390911690631cdb69f590604401600060405180830381600087803b15801561179857600080fd5b505af11580156117ac573d6000803e3d6000fd5b505050505b5050600160065550505050565b6117c6611ecb565b6001600160a01b03811661182b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161027d565b61096681611f27565b6000818152600260205260409020546001600160a01b03166109665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161027d565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118c882610984565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061190d83610984565b9050806001600160a01b0316846001600160a01b0316148061195457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119785750836001600160a01b031661196d846107a7565b6001600160a01b0316145b949350505050565b826001600160a01b031661199382610984565b6001600160a01b0316146119f75760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161027d565b6001600160a01b038216611a595760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161027d565b611a64600082611893565b6001600160a01b0383166000908152600360205260408120805460019290611a8d908490612826565b90915550506001600160a01b0382166000908152600360205260408120805460019290611abb90849061275a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415611b7e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161027d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf6848484611980565b611c0284848484611f79565b610c665760405162461bcd60e51b815260040161027d90612933565b6000611c2982610984565b9050611c36600083611893565b6001600160a01b0381166000908152600360205260408120805460019290611c5f908490612826565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606081611cdd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d075780611cf181612985565b9150611d009050600a836129b6565b9150611ce1565b60008167ffffffffffffffff811115611d2257611d226123a3565b6040519080825280601f01601f191660200182016040528015611d4c576020820181803683370190505b5090505b841561197857611d61600183612826565b9150611d6e600a866129ca565b611d7990603061275a565b60f81b818381518110611d8e57611d8e61272e565b60200101906001600160f81b031916908160001a905350611db0600a866129b6565b9450611d50565b6001600160a01b038216611e0d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161027d565b6000818152600260205260409020546001600160a01b031615611e725760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161027d565b60008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6007546001600160a01b03163314611f255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161027d565b565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561206c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fbd9033908990889088906004016129de565b6020604051808303816000875af1925050508015611ff8575060408051601f3d908101601f19168201909252611ff591810190612a1b565b60015b612052573d808015612026576040519150601f19603f3d011682016040523d82523d6000602084013e61202b565b606091505b50805161204a5760405162461bcd60e51b815260040161027d90612933565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611978565b506001949350505050565b82805461208390612676565b90600052602060002090601f0160209004810192826120a557600085556120eb565b82601f106120be5782800160ff198235161785556120eb565b828001600101855582156120eb579182015b828111156120eb5782358255916020019190600101906120d0565b506120f79291506120fb565b5090565b5b808211156120f757600081556001016120fc565b6001600160e01b03198116811461096657600080fd5b60006020828403121561213857600080fd5b8135610eee81612110565b60005b8381101561215e578181015183820152602001612146565b83811115610c665750506000910152565b60008151808452612187816020860160208601612143565b601f01601f19169290920160200192915050565b602081526000610eee602083018461216f565b6000602082840312156121c057600080fd5b5035919050565b80356001600160a01b03811681146121de57600080fd5b919050565b600080604083850312156121f657600080fd5b6121ff836121c7565b946020939093013593505050565b60008083601f84011261221f57600080fd5b50813567ffffffffffffffff81111561223757600080fd5b60208301915083602082850101111561224f57600080fd5b9250929050565b60008060008060006080868803121561226e57600080fd5b612277866121c7565b9450612285602087016121c7565b935060408601359250606086013567ffffffffffffffff8111156122a857600080fd5b6122b48882890161220d565b969995985093965092949392505050565b6000806000606084860312156122da57600080fd5b6122e3846121c7565b92506122f1602085016121c7565b9150604084013590509250925092565b60006020828403121561231357600080fd5b610eee826121c7565b6000806020838503121561232f57600080fd5b823567ffffffffffffffff81111561234657600080fd5b6123528582860161220d565b90969095509350505050565b801515811461096657600080fd5b6000806040838503121561237f57600080fd5b612388836121c7565b915060208301356123988161235e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156123cf57600080fd5b6123d8856121c7565b93506123e6602086016121c7565b925060408501359150606085013567ffffffffffffffff8082111561240a57600080fd5b818701915087601f83011261241e57600080fd5b813581811115612430576124306123a3565b604051601f8201601f19908116603f01168101908382118183101715612458576124586123a3565b816040528281528a602084870101111561247157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f8401126124a757600080fd5b50813567ffffffffffffffff8111156124bf57600080fd5b6020830191508360208260051b850101111561224f57600080fd5b60008060008060008060008060a0898b0312156124f657600080fd5b6124ff896121c7565b975061250d60208a016121c7565b9650604089013567ffffffffffffffff8082111561252a57600080fd5b6125368c838d01612495565b909850965060608b013591508082111561254f57600080fd5b61255b8c838d01612495565b909650945060808b013591508082111561257457600080fd5b506125818b828c0161220d565b999c989b5096995094979396929594505050565b600080602083850312156125a857600080fd5b823567ffffffffffffffff8111156125bf57600080fd5b61235285828601612495565b600080604083850312156125de57600080fd5b6125e7836121c7565b91506125f5602084016121c7565b90509250929050565b60008060008060008060a0878903121561261757600080fd5b612620876121c7565b955061262e602088016121c7565b94506040870135935060608701359250608087013567ffffffffffffffff81111561265857600080fd5b61266489828a0161220d565b979a9699509497509295939492505050565b600181811c9082168061268a57607f821691505b602082108114156126ab57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561276d5761276d612744565b500190565b6001600160a01b03868116825285811660208084019190915260a0604084018190528301859052600091906001600160fb1b038611156127b157600080fd5b8560051b9150818760c0860137600091840160c08181018481528683039091016060870152865190819052828701939160e001905b8083101561280657845182529383019360019290920191908301906127e6565b50858103608087015260008152602081019b9a5050505050505050505050565b60008282101561283857612838612744565b500390565b8054600090600181811c908083168061285757607f831692505b602080841082141561287957634e487b7160e01b600052602260045260246000fd5b81801561288d576001811461289e576128cb565b60ff198616895284890196506128cb565b60008881526020902060005b868110156128c35781548b8201529085019083016128aa565b505084890196505b50505050505092915050565b60006128e3828661283d565b84516128f3818360208901612143565b6128ff8183018661283d565b979650505050505050565b6000610eee828461283d565b60006020828403121561292857600080fd5b8151610eee8161235e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060001982141561299957612999612744565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826129c5576129c56129a0565b500490565b6000826129d9576129d96129a0565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a119083018461216f565b9695505050505050565b600060208284031215612a2d57600080fd5b8151610eee8161211056fea2646970667358221220e63d84a0404c5e1e3be3f08bc224b841e86433487b85ab4354a4d892cea2164a64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
-----Decoded View---------------
Arg [0] : punkVoxels_ (address): 0x495f947276749Ce646f68AC8c248420045cb7b5e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.