ERC-721
Overview
Max Total Supply
2,069 ApeVoxels
Holders
233
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ApeVoxelsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ApeVoxels
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":"owner_","type":"address"},{"internalType":"address","name":"whoCanMint_","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":[{"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":"id","type":"uint256"}],"name":"emergencyMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"user","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"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":"address","name":"owner_","type":"address"}],"name":"updateOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"whoToMintTo","type":"address"}],"name":"updateSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526007608081905266697066733a2f2f60c81b60a09081526200002a916009919062000292565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200005991600a9162000292565b5060408051808201909152600780825266697066733a2f2f60c81b60209092019182526200008a91600b9162000292565b506000600c553480156200009d57600080fd5b5060405162001f7c38038062001f7c833981016040819052620000c09162000355565b604080518082018252600980825268417065566f78656c7360b81b602080840182815285518087019096529285528401528151919291620001049160009162000292565b5080516200011a90600190602084019062000292565b50506001600655506200012d336200015f565b6200013882620001b1565b600880546001600160a01b0319166001600160a01b039290921691909117905550620003ca565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001bb62000234565b6001600160a01b038116620002265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b62000231816200015f565b50565b6007546001600160a01b03163314620002905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200021d565b565b828054620002a0906200038d565b90600052602060002090601f016020900481019282620002c457600085556200030f565b82601f10620002df57805160ff19168380011785556200030f565b828001600101855582156200030f579182015b828111156200030f578251825591602001919060010190620002f2565b506200031d92915062000321565b5090565b5b808211156200031d576000815560010162000322565b80516001600160a01b03811681146200035057600080fd5b919050565b600080604083850312156200036957600080fd5b620003748362000338565b9150620003846020840162000338565b90509250929050565b600181811c90821680620003a257607f821691505b60208210811415620003c457634e487b7160e01b600052602260045260246000fd5b50919050565b611ba280620003da6000396000f3fe6080604052600436106101855760003560e01c80637e2285aa116100d1578063b88d4fde1161008a578063e8a3d48511610064578063e8a3d4851461051a578063e985e9c51461052f578063f2fde38b14610578578063ffcc66dc1461059857600080fd5b8063b88d4fde146104ba578063c87b56dd146104da578063de16aa1c146104fa57600080fd5b80637e2285aa14610407578063880cdc31146104275780638da5cb5b1461044757806393ee670c1461046557806395d89b4114610485578063a22cb4651461049a57600080fd5b806323b872dd1161013e57806342842e0e1161011857806342842e0e146103875780634f558e79146103a75780636352211e146103c757806370a08231146103e757600080fd5b806323b872dd146103325780633ccfd60b1461035257806340c10f191461036757600080fd5b806301ffc9a71461024257806306fdde0314610277578063081812fc14610299578063095ea7b3146102d157806318160ddd146102f35780631cdb69f51461031257600080fd5b3661023d57600061019e6007546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d80600081146101e8576040519150601f19603f3d011682016040523d82523d6000602084013e6101ed565b606091505b505090508061023a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b50005b600080fd5b34801561024e57600080fd5b5061026261025d366004611540565b6105b8565b60405190151581526020015b60405180910390f35b34801561028357600080fd5b5061028c61060a565b60405161026e91906115bc565b3480156102a557600080fd5b506102b96102b43660046115cf565b61069c565b6040516001600160a01b03909116815260200161026e565b3480156102dd57600080fd5b506102f16102ec366004611604565b6106c3565b005b3480156102ff57600080fd5b50600c545b60405190815260200161026e565b34801561031e57600080fd5b506102f161032d36600461162e565b6107d9565b34801561033e57600080fd5b506102f161034d36600461165a565b610851565b34801561035e57600080fd5b506102f1610882565b34801561037357600080fd5b506102f1610382366004611604565b6108d6565b34801561039357600080fd5b506102f16103a236600461165a565b610934565b3480156103b357600080fd5b506102626103c23660046115cf565b61094f565b3480156103d357600080fd5b506102b96103e23660046115cf565b61096e565b3480156103f357600080fd5b50610304610402366004611696565b6109ce565b34801561041357600080fd5b506102f16104223660046116b1565b610a54565b34801561043357600080fd5b506102f1610442366004611696565b610a8a565b34801561045357600080fd5b506007546001600160a01b03166102b9565b34801561047157600080fd5b506102f16104803660046116b1565b610ad0565b34801561049157600080fd5b5061028c610b06565b3480156104a657600080fd5b506102f16104b5366004611723565b610b15565b3480156104c657600080fd5b506102f16104d5366004611775565b610b20565b3480156104e657600080fd5b5061028c6104f53660046115cf565b610b58565b34801561050657600080fd5b506102f16105153660046116b1565b610b8f565b34801561052657600080fd5b5061028c610bc5565b34801561053b57600080fd5b5061026261054a366004611851565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058457600080fd5b506102f1610593366004611696565b610bed565b3480156105a457600080fd5b506102f16105b33660046115cf565b610c63565b60006001600160e01b031982166380ac58cd60e01b14806105e957506001600160e01b03198216635b5e139f60e01b145b8061060457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106199061187b565b80601f01602080910402602001604051908101604052809291908181526020018280546106459061187b565b80156106925780601f1061066757610100808354040283529160200191610692565b820191906000526020600020905b81548152906001019060200180831161067557829003601f168201915b5050505050905090565b60006106a782610ce9565b506000908152600460205260409020546001600160a01b031690565b60006106ce8261096e565b9050806001600160a01b0316836001600160a01b0316141561073c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610231565b336001600160a01b03821614806107585750610758813361054a565b6107ca5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610231565b6107d48383610d48565b505050565b6008546001600160a01b031633146108295760405162461bcd60e51b815260206004820152601360248201527214dbdc9c9e481e5bdd4818d85b9d081b5a5b9d606a1b6044820152606401610231565b6001600160a01b03166000908152600360205260409020805482019055600c80549091019055565b61085b3382610db6565b6108775760405162461bcd60e51b8152600401610231906118b6565b6107d4838383610e35565b6007546001600160a01b031633146108ac5760405162461bcd60e51b815260040161023190611904565b6040514790339082156108fc029083906000818181858888f193505050506108d357600080fd5b50565b6008546001600160a01b031633146109265760405162461bcd60e51b815260206004820152601360248201527214dbdc9c9e481e5bdd4818d85b9d081b5a5b9d606a1b6044820152606401610231565b6109308282610fd1565b5050565b6107d483838360405180602001604052806000815250610b20565b6000818152600260205260408120546001600160a01b03161515610604565b6000818152600260205260408120546001600160a01b0316806106045760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610231565b60006001600160a01b038216610a385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610231565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161023190611904565b6107d4600a8383611491565b6007546001600160a01b03163314610ab45760405162461bcd60e51b815260040161023190611904565b6001600160a01b038116610ac757600080fd5b6108d381610bed565b6007546001600160a01b03163314610afa5760405162461bcd60e51b815260040161023190611904565b6107d460098383611491565b6060600180546106199061187b565b6109303383836110e5565b610b2a3383610db6565b610b465760405162461bcd60e51b8152600401610231906118b6565b610b52848484846111b4565b50505050565b60606009610b65836111e7565b600a604051602001610b79939291906119cd565b6040516020818303038152906040529050919050565b6007546001600160a01b03163314610bb95760405162461bcd60e51b815260040161023190611904565b6107d4600b8383611491565b6060600b604051602001610bd99190611a00565b604051602081830303815290604052905090565b610bf56112e5565b6001600160a01b038116610c5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610231565b6108d381611341565b6007546001600160a01b03163314610c8d5760405162461bcd60e51b815260040161023190611904565b61270f811115610cdf5760405162461bcd60e51b815260206004820152601e60248201527f4964206d75737420626520696e207468652072616e676520302d3939393900006044820152606401610231565b6108d33382610fd1565b6000818152600260205260409020546001600160a01b03166108d35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610231565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d7d8261096e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610dc28361096e565b9050806001600160a01b0316846001600160a01b03161480610e0957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610e2d5750836001600160a01b0316610e228461069c565b6001600160a01b0316145b949350505050565b826001600160a01b0316610e488261096e565b6001600160a01b031614610eac5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610231565b6001600160a01b038216610f0e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610231565b610f19600082610d48565b6001600160a01b0383166000908152600360205260408120805460019290610f42908490611a22565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f70908490611a39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166110275760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610231565b6000818152600260205260409020546001600160a01b03161561108c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610231565b60008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031614156111475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610231565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111bf848484610e35565b6111cb84848484611393565b610b525760405162461bcd60e51b815260040161023190611a51565b60608161120b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611235578061121f81611aa3565b915061122e9050600a83611ad4565b915061120f565b60008167ffffffffffffffff8111156112505761125061175f565b6040519080825280601f01601f19166020018201604052801561127a576020820181803683370190505b5090505b8415610e2d5761128f600183611a22565b915061129c600a86611ae8565b6112a7906030611a39565b60f81b8183815181106112bc576112bc611afc565b60200101906001600160f81b031916908160001a9053506112de600a86611ad4565b945061127e565b6007546001600160a01b0316331461133f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610231565b565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561148657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906113d7903390899088908890600401611b12565b6020604051808303816000875af1925050508015611412575060408051601f3d908101601f1916820190925261140f91810190611b4f565b60015b61146c573d808015611440576040519150601f19603f3d011682016040523d82523d6000602084013e611445565b606091505b5080516114645760405162461bcd60e51b815260040161023190611a51565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e2d565b506001949350505050565b82805461149d9061187b565b90600052602060002090601f0160209004810192826114bf5760008555611505565b82601f106114d85782800160ff19823516178555611505565b82800160010185558215611505579182015b828111156115055782358255916020019190600101906114ea565b50611511929150611515565b5090565b5b808211156115115760008155600101611516565b6001600160e01b0319811681146108d357600080fd5b60006020828403121561155257600080fd5b813561155d8161152a565b9392505050565b60005b8381101561157f578181015183820152602001611567565b83811115610b525750506000910152565b600081518084526115a8816020860160208601611564565b601f01601f19169290920160200192915050565b60208152600061155d6020830184611590565b6000602082840312156115e157600080fd5b5035919050565b80356001600160a01b03811681146115ff57600080fd5b919050565b6000806040838503121561161757600080fd5b611620836115e8565b946020939093013593505050565b6000806040838503121561164157600080fd5b82359150611651602084016115e8565b90509250929050565b60008060006060848603121561166f57600080fd5b611678846115e8565b9250611686602085016115e8565b9150604084013590509250925092565b6000602082840312156116a857600080fd5b61155d826115e8565b600080602083850312156116c457600080fd5b823567ffffffffffffffff808211156116dc57600080fd5b818501915085601f8301126116f057600080fd5b8135818111156116ff57600080fd5b86602082850101111561171157600080fd5b60209290920196919550909350505050565b6000806040838503121561173657600080fd5b61173f836115e8565b91506020830135801515811461175457600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561178b57600080fd5b611794856115e8565b93506117a2602086016115e8565b925060408501359150606085013567ffffffffffffffff808211156117c657600080fd5b818701915087601f8301126117da57600080fd5b8135818111156117ec576117ec61175f565b604051601f8201601f19908116603f011681019083821181831017156118145761181461175f565b816040528281528a602084870101111561182d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561186457600080fd5b61186d836115e8565b9150611651602084016115e8565b600181811c9082168061188f57607f821691505b602082108114156118b057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b8054600090600181811c908083168061194d57607f831692505b602080841082141561196f57634e487b7160e01b600052602260045260246000fd5b8180156119835760018114611994576119c1565b60ff198616895284890196506119c1565b60008881526020902060005b868110156119b95781548b8201529085019083016119a0565b505084890196505b50505050505092915050565b60006119d98286611933565b84516119e9818360208901611564565b6119f581830186611933565b979650505050505050565b600061155d8284611933565b634e487b7160e01b600052601160045260246000fd5b600082821015611a3457611a34611a0c565b500390565b60008219821115611a4c57611a4c611a0c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611ab757611ab7611a0c565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611ae357611ae3611abe565b500490565b600082611af757611af7611abe565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b4590830184611590565b9695505050505050565b600060208284031215611b6157600080fd5b815161155d8161152a56fea2646970667358221220b56dc5b2a45e45d2b42b247db0e4cf39df323b907b1e5b83c94adfadeb0f6fb764736f6c634300080c00330000000000000000000000002f77f1bd06f98d2e7e537ab86bcba23559b5c03f000000000000000000000000a218c4f6814d18b8b6db1dae854a6eee92dc3769
Deployed Bytecode
0x6080604052600436106101855760003560e01c80637e2285aa116100d1578063b88d4fde1161008a578063e8a3d48511610064578063e8a3d4851461051a578063e985e9c51461052f578063f2fde38b14610578578063ffcc66dc1461059857600080fd5b8063b88d4fde146104ba578063c87b56dd146104da578063de16aa1c146104fa57600080fd5b80637e2285aa14610407578063880cdc31146104275780638da5cb5b1461044757806393ee670c1461046557806395d89b4114610485578063a22cb4651461049a57600080fd5b806323b872dd1161013e57806342842e0e1161011857806342842e0e146103875780634f558e79146103a75780636352211e146103c757806370a08231146103e757600080fd5b806323b872dd146103325780633ccfd60b1461035257806340c10f191461036757600080fd5b806301ffc9a71461024257806306fdde0314610277578063081812fc14610299578063095ea7b3146102d157806318160ddd146102f35780631cdb69f51461031257600080fd5b3661023d57600061019e6007546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d80600081146101e8576040519150601f19603f3d011682016040523d82523d6000602084013e6101ed565b606091505b505090508061023a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b50005b600080fd5b34801561024e57600080fd5b5061026261025d366004611540565b6105b8565b60405190151581526020015b60405180910390f35b34801561028357600080fd5b5061028c61060a565b60405161026e91906115bc565b3480156102a557600080fd5b506102b96102b43660046115cf565b61069c565b6040516001600160a01b03909116815260200161026e565b3480156102dd57600080fd5b506102f16102ec366004611604565b6106c3565b005b3480156102ff57600080fd5b50600c545b60405190815260200161026e565b34801561031e57600080fd5b506102f161032d36600461162e565b6107d9565b34801561033e57600080fd5b506102f161034d36600461165a565b610851565b34801561035e57600080fd5b506102f1610882565b34801561037357600080fd5b506102f1610382366004611604565b6108d6565b34801561039357600080fd5b506102f16103a236600461165a565b610934565b3480156103b357600080fd5b506102626103c23660046115cf565b61094f565b3480156103d357600080fd5b506102b96103e23660046115cf565b61096e565b3480156103f357600080fd5b50610304610402366004611696565b6109ce565b34801561041357600080fd5b506102f16104223660046116b1565b610a54565b34801561043357600080fd5b506102f1610442366004611696565b610a8a565b34801561045357600080fd5b506007546001600160a01b03166102b9565b34801561047157600080fd5b506102f16104803660046116b1565b610ad0565b34801561049157600080fd5b5061028c610b06565b3480156104a657600080fd5b506102f16104b5366004611723565b610b15565b3480156104c657600080fd5b506102f16104d5366004611775565b610b20565b3480156104e657600080fd5b5061028c6104f53660046115cf565b610b58565b34801561050657600080fd5b506102f16105153660046116b1565b610b8f565b34801561052657600080fd5b5061028c610bc5565b34801561053b57600080fd5b5061026261054a366004611851565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058457600080fd5b506102f1610593366004611696565b610bed565b3480156105a457600080fd5b506102f16105b33660046115cf565b610c63565b60006001600160e01b031982166380ac58cd60e01b14806105e957506001600160e01b03198216635b5e139f60e01b145b8061060457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106199061187b565b80601f01602080910402602001604051908101604052809291908181526020018280546106459061187b565b80156106925780601f1061066757610100808354040283529160200191610692565b820191906000526020600020905b81548152906001019060200180831161067557829003601f168201915b5050505050905090565b60006106a782610ce9565b506000908152600460205260409020546001600160a01b031690565b60006106ce8261096e565b9050806001600160a01b0316836001600160a01b0316141561073c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610231565b336001600160a01b03821614806107585750610758813361054a565b6107ca5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610231565b6107d48383610d48565b505050565b6008546001600160a01b031633146108295760405162461bcd60e51b815260206004820152601360248201527214dbdc9c9e481e5bdd4818d85b9d081b5a5b9d606a1b6044820152606401610231565b6001600160a01b03166000908152600360205260409020805482019055600c80549091019055565b61085b3382610db6565b6108775760405162461bcd60e51b8152600401610231906118b6565b6107d4838383610e35565b6007546001600160a01b031633146108ac5760405162461bcd60e51b815260040161023190611904565b6040514790339082156108fc029083906000818181858888f193505050506108d357600080fd5b50565b6008546001600160a01b031633146109265760405162461bcd60e51b815260206004820152601360248201527214dbdc9c9e481e5bdd4818d85b9d081b5a5b9d606a1b6044820152606401610231565b6109308282610fd1565b5050565b6107d483838360405180602001604052806000815250610b20565b6000818152600260205260408120546001600160a01b03161515610604565b6000818152600260205260408120546001600160a01b0316806106045760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610231565b60006001600160a01b038216610a385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610231565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161023190611904565b6107d4600a8383611491565b6007546001600160a01b03163314610ab45760405162461bcd60e51b815260040161023190611904565b6001600160a01b038116610ac757600080fd5b6108d381610bed565b6007546001600160a01b03163314610afa5760405162461bcd60e51b815260040161023190611904565b6107d460098383611491565b6060600180546106199061187b565b6109303383836110e5565b610b2a3383610db6565b610b465760405162461bcd60e51b8152600401610231906118b6565b610b52848484846111b4565b50505050565b60606009610b65836111e7565b600a604051602001610b79939291906119cd565b6040516020818303038152906040529050919050565b6007546001600160a01b03163314610bb95760405162461bcd60e51b815260040161023190611904565b6107d4600b8383611491565b6060600b604051602001610bd99190611a00565b604051602081830303815290604052905090565b610bf56112e5565b6001600160a01b038116610c5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610231565b6108d381611341565b6007546001600160a01b03163314610c8d5760405162461bcd60e51b815260040161023190611904565b61270f811115610cdf5760405162461bcd60e51b815260206004820152601e60248201527f4964206d75737420626520696e207468652072616e676520302d3939393900006044820152606401610231565b6108d33382610fd1565b6000818152600260205260409020546001600160a01b03166108d35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610231565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d7d8261096e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610dc28361096e565b9050806001600160a01b0316846001600160a01b03161480610e0957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610e2d5750836001600160a01b0316610e228461069c565b6001600160a01b0316145b949350505050565b826001600160a01b0316610e488261096e565b6001600160a01b031614610eac5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610231565b6001600160a01b038216610f0e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610231565b610f19600082610d48565b6001600160a01b0383166000908152600360205260408120805460019290610f42908490611a22565b90915550506001600160a01b0382166000908152600360205260408120805460019290610f70908490611a39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166110275760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610231565b6000818152600260205260409020546001600160a01b03161561108c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610231565b60008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031614156111475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610231565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111bf848484610e35565b6111cb84848484611393565b610b525760405162461bcd60e51b815260040161023190611a51565b60608161120b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611235578061121f81611aa3565b915061122e9050600a83611ad4565b915061120f565b60008167ffffffffffffffff8111156112505761125061175f565b6040519080825280601f01601f19166020018201604052801561127a576020820181803683370190505b5090505b8415610e2d5761128f600183611a22565b915061129c600a86611ae8565b6112a7906030611a39565b60f81b8183815181106112bc576112bc611afc565b60200101906001600160f81b031916908160001a9053506112de600a86611ad4565b945061127e565b6007546001600160a01b0316331461133f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610231565b565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561148657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906113d7903390899088908890600401611b12565b6020604051808303816000875af1925050508015611412575060408051601f3d908101601f1916820190925261140f91810190611b4f565b60015b61146c573d808015611440576040519150601f19603f3d011682016040523d82523d6000602084013e611445565b606091505b5080516114645760405162461bcd60e51b815260040161023190611a51565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e2d565b506001949350505050565b82805461149d9061187b565b90600052602060002090601f0160209004810192826114bf5760008555611505565b82601f106114d85782800160ff19823516178555611505565b82800160010185558215611505579182015b828111156115055782358255916020019190600101906114ea565b50611511929150611515565b5090565b5b808211156115115760008155600101611516565b6001600160e01b0319811681146108d357600080fd5b60006020828403121561155257600080fd5b813561155d8161152a565b9392505050565b60005b8381101561157f578181015183820152602001611567565b83811115610b525750506000910152565b600081518084526115a8816020860160208601611564565b601f01601f19169290920160200192915050565b60208152600061155d6020830184611590565b6000602082840312156115e157600080fd5b5035919050565b80356001600160a01b03811681146115ff57600080fd5b919050565b6000806040838503121561161757600080fd5b611620836115e8565b946020939093013593505050565b6000806040838503121561164157600080fd5b82359150611651602084016115e8565b90509250929050565b60008060006060848603121561166f57600080fd5b611678846115e8565b9250611686602085016115e8565b9150604084013590509250925092565b6000602082840312156116a857600080fd5b61155d826115e8565b600080602083850312156116c457600080fd5b823567ffffffffffffffff808211156116dc57600080fd5b818501915085601f8301126116f057600080fd5b8135818111156116ff57600080fd5b86602082850101111561171157600080fd5b60209290920196919550909350505050565b6000806040838503121561173657600080fd5b61173f836115e8565b91506020830135801515811461175457600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561178b57600080fd5b611794856115e8565b93506117a2602086016115e8565b925060408501359150606085013567ffffffffffffffff808211156117c657600080fd5b818701915087601f8301126117da57600080fd5b8135818111156117ec576117ec61175f565b604051601f8201601f19908116603f011681019083821181831017156118145761181461175f565b816040528281528a602084870101111561182d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561186457600080fd5b61186d836115e8565b9150611651602084016115e8565b600181811c9082168061188f57607f821691505b602082108114156118b057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601590820152742cb7ba9030b932903737ba103a34329037bbb732b960591b604082015260600190565b8054600090600181811c908083168061194d57607f831692505b602080841082141561196f57634e487b7160e01b600052602260045260246000fd5b8180156119835760018114611994576119c1565b60ff198616895284890196506119c1565b60008881526020902060005b868110156119b95781548b8201529085019083016119a0565b505084890196505b50505050505092915050565b60006119d98286611933565b84516119e9818360208901611564565b6119f581830186611933565b979650505050505050565b600061155d8284611933565b634e487b7160e01b600052601160045260246000fd5b600082821015611a3457611a34611a0c565b500390565b60008219821115611a4c57611a4c611a0c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611ab757611ab7611a0c565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611ae357611ae3611abe565b500490565b600082611af757611af7611abe565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b4590830184611590565b9695505050505050565b600060208284031215611b6157600080fd5b815161155d8161152a56fea2646970667358221220b56dc5b2a45e45d2b42b247db0e4cf39df323b907b1e5b83c94adfadeb0f6fb764736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002f77f1bd06f98d2e7e537ab86bcba23559b5c03f000000000000000000000000a218c4f6814d18b8b6db1dae854a6eee92dc3769
-----Decoded View---------------
Arg [0] : owner_ (address): 0x2F77F1BD06f98D2E7E537ab86bcba23559B5C03f
Arg [1] : whoCanMint_ (address): 0xa218c4f6814d18B8B6db1dAE854a6EEe92DC3769
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f77f1bd06f98d2e7e537ab86bcba23559b5c03f
Arg [1] : 000000000000000000000000a218c4f6814d18b8b6db1dae854a6eee92dc3769
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.