ERC-721
Overview
Max Total Supply
421 SPIRITS
Holders
55
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SPIRITSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SpiritsOfPunksville
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; // import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; /** * .__ .__ __ _____ __ .__.__ .__ ____________ |__|______|__|/ |_ ______ _____/ ____\ ______ __ __ ____ | | __ _________ _|__| | | | ____ / ___/\____ \| \_ __ \ \ __\/ ___/ / _ \ __\ \____ \| | \/ \| |/ / / ___/\ \/ / | | | | _/ __ \ \___ \ | |_> > || | \/ || | \___ \ ( <_> ) | | |_> > | / | \ < \___ \ \ /| | |_| |_\ ___/ /____ >| __/|__||__| |__||__| /____ > \____/|__| | __/|____/|___| /__|_ \/____ > \_/ |__|____/____/\___ > \/ |__| \/ |__| \/ \/ \/ \/ * **/ contract SpiritsOfPunksville is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable, Ownable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } // represents starting point counters for common spirits, black, titanium, and blue. uint256[4] public indexes = [940,1,13,176]; mapping(uint256 => uint256) public tokenToColor; // common spirit index = 0 // black spirit index = 1 // titanium spirit index = 2 // blue spirit index = 3 // Token name string private _name; mapping(uint256 => bool) public tokenExists; // TODO: Update to prod v3 artifact contract before deployment. address public V3ArtifactContract = 0x5647717E536E4a6D3e6cde2d848fb6D933dB7Acb; uint256 public totalMinted = 0; uint256 public price = 6900000000000000; string public baseURI = 'ipfs://Qmcj58ShBdniPqNRit89TLckp1GZDbt7rtaUkNEvGLhzTJ/'; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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_; uint16[12] memory blackArtifactTokenIds = [848,234,254,137,312,415,549,597,636,753,660,527]; uint16[163] memory titaniumArtifact = [862,818,857,694,284,143,253,62,256,64,73,429,331,439,337,299,454,394,509,512,515,534,535,537,603,605,628,635,642,647,649,657,662,926,779,784,750,754,875,821,175,176,178,180,186,227,231,232,237,745,563,567,700,704,717,829,757,760,798,84,763,765,846,770,802,810,876,820,823,887,106,109,113,122,150,152,162,169,129,130,138,156,208,217,223,52,268,61,66,276,277,280,291,298,438,440,442,301,308,310,311,315,407,410,419,377,449,461,475,479,487,492,496,506,518,542,543,544,579,586,351,600,601,602,370,728,661,552,929,562,751,902,912,914,916,917,921,7,13,36,81,92,96,97,98,24,56,609,627,629,564,933,566,570,780,716,790,755,892,144,140,683,5]; for (uint i=0;i<blackArtifactTokenIds.length;i++) { tokenToColor[blackArtifactTokenIds[i]] = 1; } for (uint i=0;i<titaniumArtifact.length;i++) { tokenToColor[titaniumArtifact[i]] = 2; } } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return totalMinted; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), 'ERC721A: global index out of bounds'); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), 'ERC721A: owner index out of bounds'); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert('ERC721A: unable to get token of owner by index'); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), 'ERC721A: balance query for the zero address'); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), 'ERC721A: number minted query for the zero address'); return uint256(_addressData[owner].numberMinted); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), 'ERC721A: owner query for nonexistent token'); for (uint256 curr = tokenId; ; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert('ERC721A: unable to determine the owner of token'); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token'); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), '.json')) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string storage) { return baseURI; } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = SpiritsOfPunksville.ownerOf(tokenId); require(to != owner, 'ERC721A: approval to current owner'); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), 'ERC721A: approve caller is not owner nor approved for all' ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), 'ERC721A: approved query for nonexistent token'); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), 'ERC721A: approve to caller'); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), 'ERC721A: transfer to non ERC721Receiver implementer' ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenExists[tokenId]; } function mint(address to, uint256 quantity) external payable { require(msg.value == quantity * price); require(quantity <= 30 && quantity > 0); require(indexes[0] + quantity <= 10001); _safeMint(to, quantity, 0); } function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function reserve(address to, uint256 quantity) external onlyOwner { _safeMint(to, quantity, 0); } function mintBlue(address to, uint256 quantity) internal { require(quantity <= 30 && quantity > 0); _safeMint(to, quantity, 3); } function mintBlack(address to, uint256 quantity) internal { require(quantity <= 30 && quantity > 0); _safeMint(to, quantity, 1); } function mintTitanium(address to, uint256 quantity) internal { require(quantity <= 30 && quantity > 0); _safeMint(to, quantity, 2); } function setPrice(uint256 newPrice) external onlyOwner { price = newPrice; } function consume(uint256 tokenId) external { IERC721(V3ArtifactContract).transferFrom(msg.sender, address(this), tokenId); if (tokenToColor[tokenId] == 1) { mintBlack(msg.sender, 1); } else if (tokenToColor[tokenId] == 2 ) { mintTitanium(msg.sender, 1); } else { mintBlue(msg.sender, 1); } } function _safeMint(address to, uint256 quantity, uint256 index) internal { _safeMint(to, quantity, '', index); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data, uint256 index ) internal { _mint(to, quantity, _data, true, index); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe, uint256 index ) internal { uint256 startTokenId = indexes[index]; require(to != address(0), 'ERC721A: mint to the zero address'); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), 'ERC721A: token already minted'); require(quantity > 0, 'ERC721A: quantity must be greater than 0'); _beforeTokenTransfers(address(0), to, startTokenId, quantity); _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { require( _checkOnERC721Received(address(0), to, updatedIndex, _data), 'ERC721A: transfer to non ERC721Receiver implementer' ); } tokenExists[updatedIndex] = true; totalMinted++; updatedIndex++; } indexes[index] = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, 'ERC721A: transfer caller is not owner nor approved'); require(prevOwnership.addr == from, 'ERC721A: transfer from incorrect owner'); require(to != address(0), 'ERC721A: transfer to the zero address'); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; } _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous ownefr of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert('ERC721A: transfer to non ERC721Receiver implementer'); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ 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); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"V3ArtifactContract","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"consume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"indexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToColor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040526103ac6080908152600160a0819052600d60c05260b060e0526200002b91600462000854565b50600880546001600160a01b031916735647717e536e4a6d3e6cde2d848fb6d933db7acb17905560006009556618838370f34000600a55604080516060810190915260368082526200316a602083013980516200009191600b916020909101906200089d565b503480156200009f57600080fd5b50604051620031a0380380620031a0833981016040819052620000c291620009dc565b620000d6620000d062000800565b62000804565b8151620000eb9060069060208501906200089d565b5080516200010190600c9060208401906200089d565b50604080516101808082018352610350825260ea60208084019190915260fe83850152608960608085019190915261013860808086019190915261019f60a08087019190915261022560c08088019190915261025560e08089019190915261027c610100808a01919091526102f1610120808b0191909152610294610140808c019190915261020f610160808d01919091528c5161146081018e5261035e81526103329a81019a909a526103598a8e01526102b68a8a015261011c978a0197909752608f9589019590955260fd93880193909352603e91870191909152858101528401969096526049958301959095526101ad9482019490945261014b918101919091526101b76101a08201526101516101c082015261012b6101e08201526101c66102008083019190915261018a610220808401919091526101fd6102408401526102608301919091526102036102808301526102166102a08301526102176102c0808401919091526102196102e084015261025b61030084015261025d61032084015261027461034084015261027b6103608401526102826103808401526102876103a08401526102896103c08401526102916103e084015261029661040084015261039e61042084015261030b6104408401526103106104608401526102ee6104808401526102f26104a084015261036b6104c08401526103356104e084015260af61050084015260b061052084015260b261054084015260b461056084015260ba61058084015260e36105a084015260e76105c084015260e86105e084015260ed6106008401526102e96106208401526102336106408401526102376106608401526102bc6106808401526106a08301526102cd6106c083015261033d6106e08301526102f56107008301526102f861072083015261031e61074083015260546107608301526102fb6107808301526102fd6107a083015261034e6107c08301526103026107e083015261032261080083015261032a61082083015261036c6108408301526103346108608301526103376108808301526103776108a0830152606a6108c0830152606d6108e08301526071610900830152607a6109208301526096610940830152609861096083015260a261098083015260a96109a083015260816109c083015260826109e0830152608a610a00830152609c610a2083015260d0610a4083015260d9610a6083015260df610a808301526034610aa083015261010c610ac0830152603d610ae08301526042610b00830152610114610b20830152610115610b40830152610118610b60830152610123610b8083015261012a610ba08301526101b6610bc08301526101b8610be08301526101ba610c0083015261012d610c20830152610134610c40830152610136610c60830152610137610c8083015261013b610ca0830152610197610cc083015261019a610ce08301526101a3610d00830152610179610d208301526101c1610d408301526101cd610d608301526101db610d808301526101df610da08301526101e7610dc08301526101ec610de08301526101f0610e008301526101fa610e20830152610206610e4083015261021e610e6083015261021f610e80830152610ea0820152610243610ec082015261024a610ee082015261015f610f00820152610258610f20820152610259610f4082015261025a610f60820152610172610f808201526102d8610fa0820152610295610fc0820152610228610fe08201526103a16110008201526102326110208201526102ef6110408201526103866110608201526103906110808201526103926110a08201526103946110c08201526103956110e08201526103996111008201526007611120820152600d61114082015260246111608201526051611180820152605c6111a08201526111c081019290925260616111e08301526062611200830152601861122083015260386112408301526102616112608301526102736112808301526102756112a08301526102346112c08301526103a56112e083015261023661130083015261023a61132083015261030c6113408301526102cc6113608301526103166113808301526102f36113a083015261037c6113c083015260906113e0830152608c6114008301526102ab61142083015260056114408301529060005b600c8110156200078f576001600560008584600c81106200075e57634e487b7160e01b600052603260045260246000fd5b602002015161ffff168152602001908152602001600020819055508080620007869062000a80565b9150506200072d565b5060005b60a3811015620007f557600260056000848460a38110620007c457634e487b7160e01b600052603260045260246000fd5b602002015161ffff168152602001908152602001600020819055508080620007ec9062000a80565b91505062000793565b505050505062000abe565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82600481019282156200088b579160200282015b828111156200088b578251829061ffff1690559160200191906001019062000868565b50620008999291506200091a565b5090565b828054620008ab9062000a43565b90600052602060002090601f016020900481019282620008cf57600085556200088b565b82601f10620008ea57805160ff19168380011785556200088b565b828001600101855582156200088b579182015b828111156200088b578251825591602001919060010190620008fd565b5b808211156200089957600081556001016200091b565b600082601f83011262000942578081fd5b81516001600160401b03808211156200095f576200095f62000aa8565b6040516020601f8401601f191682018101838111838210171562000987576200098762000aa8565b60405283825285840181018710156200099e578485fd5b8492505b83831015620009c15785830181015182840182015291820191620009a2565b83831115620009d257848185840101525b5095945050505050565b60008060408385031215620009ef578182fd5b82516001600160401b038082111562000a06578384fd5b62000a148683870162000931565b9350602085015191508082111562000a2a578283fd5b5062000a398582860162000931565b9150509250929050565b60028104600182168062000a5857607f821691505b6020821081141562000a7a57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000aa157634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b61269c8062000ace6000396000f3fe6080604052600436106101e25760003560e01c80636c0360eb11610102578063a22cb46511610095578063c87b56dd11610064578063c87b56dd1461052b578063cc47a40b1461054b578063e985e9c51461056b578063f2fde38b1461058b576101e2565b8063a22cb465146104c1578063a2309ff8146104e1578063b06ce18d146104f6578063b88d4fde1461050b576101e2565b806391b7f5ed116100d157806391b7f5ed1461045757806392f8eb941461047757806395d89b4114610497578063a035b1fe146104ac576101e2565b80636c0360eb146103f857806370a082311461040d578063715018a61461042d5780638da5cb5b14610442576101e2565b80633ccfd60b1161017a5780634f6ccce7116101495780634f6ccce71461037857806355f804b314610398578063600e7761146103b85780636352211e146103d8576101e2565b80633ccfd60b1461031057806340c10f191461032557806342842e0e14610338578063483f31ab14610358576101e2565b8063095ea7b3116101b6578063095ea7b31461028c57806318160ddd146102ae57806323b872dd146102d05780632f745c59146102f0576101e2565b8062923f9e146101e757806301ffc9a71461021d57806306fdde031461023d578063081812fc1461025f575b600080fd5b3480156101f357600080fd5b50610207610202366004611d22565b6105ab565b6040516102149190611e31565b60405180910390f35b34801561022957600080fd5b50610207610238366004611ca4565b6105c0565b34801561024957600080fd5b5061025261066e565b6040516102149190611e3c565b34801561026b57600080fd5b5061027f61027a366004611d22565b610700565b6040516102149190611dbd565b34801561029857600080fd5b506102ac6102a7366004611c7b565b61074c565b005b3480156102ba57600080fd5b506102c36107e5565b60405161021491906124c2565b3480156102dc57600080fd5b506102ac6102eb366004611b8d565b6107eb565b3480156102fc57600080fd5b506102c361030b366004611c7b565b6107f6565b34801561031c57600080fd5b506102ac6108f2565b6102ac610333366004611c7b565b610960565b34801561034457600080fd5b506102ac610353366004611b8d565b6109bf565b34801561036457600080fd5b506102ac610373366004611d22565b6109da565b34801561038457600080fd5b506102c3610393366004611d22565b610aae565b3480156103a457600080fd5b506102ac6103b3366004611cdc565b610ada565b3480156103c457600080fd5b506102c36103d3366004611d22565b610b2c565b3480156103e457600080fd5b5061027f6103f3366004611d22565b610b3e565b34801561040457600080fd5b50610252610b50565b34801561041957600080fd5b506102c3610428366004611b41565b610bde565b34801561043957600080fd5b506102ac610c34565b34801561044e57600080fd5b5061027f610c7f565b34801561046357600080fd5b506102ac610472366004611d22565b610c8e565b34801561048357600080fd5b506102c3610492366004611d22565b610cd2565b3480156104a357600080fd5b50610252610ce9565b3480156104b857600080fd5b506102c3610cf8565b3480156104cd57600080fd5b506102ac6104dc366004611c41565b610cfe565b3480156104ed57600080fd5b506102c3610dcc565b34801561050257600080fd5b5061027f610dd2565b34801561051757600080fd5b506102ac610526366004611bc8565b610de1565b34801561053757600080fd5b50610252610546366004611d22565b610e1a565b34801561055757600080fd5b506102ac610566366004611c7b565b610f26565b34801561057757600080fd5b50610207610586366004611b5b565b610f65565b34801561059757600080fd5b506102ac6105a6366004611b41565b610f93565b60076020526000908152604090205460ff1681565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061062357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061065757506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610666575061066682611001565b90505b919050565b60606006805461067d906125a4565b80601f01602080910402602001604051908101604052809291908181526020018280546106a9906125a4565b80156106f65780601f106106cb576101008083540402835291602001916106f6565b820191906000526020600020905b8154815290600101906020018083116106d957829003601f168201915b5050505050905090565b600061070b82611033565b6107305760405162461bcd60e51b815260040161072790612465565b60405180910390fd5b506000908152600f60205260409020546001600160a01b031690565b600061075782610b3e565b9050806001600160a01b0316836001600160a01b0316141561078b5760405162461bcd60e51b81526004016107279061225d565b806001600160a01b031661079d611048565b6001600160a01b031614806107b957506107b981610586611048565b6107d55760405162461bcd60e51b815260040161072790612020565b6107e083838361104c565b505050565b60095490565b6107e08383836110a8565b600061080183610bde565b821061081f5760405162461bcd60e51b815260040161072790611e4f565b60006108296107e5565b905060008060005b838110156108d3576000818152600d60209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561088457805192505b876001600160a01b0316836001600160a01b031614156108c057868414156108b2575093506108ec92505050565b836108bc816125df565b9450505b50806108cb816125df565b915050610831565b5060405162461bcd60e51b815260040161072790612408565b92915050565b6108fa611048565b6001600160a01b031661090b610c7f565b6001600160a01b0316146109315760405162461bcd60e51b815260040161072790612137565b60405133904780156108fc02916000818181858888f1935050505015801561095d573d6000803e3d6000fd5b50565b600a5461096d908261252b565b341461097857600080fd5b601e81111580156109895750600081115b61099257600080fd5b600154612711906109a49083906124ff565b11156109af57600080fd5b6109bb82826000611350565b5050565b6107e083838360405180602001604052806000815250610de1565b6008546040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906323b872dd90610a2790339030908690600401611dd1565b600060405180830381600087803b158015610a4157600080fd5b505af1158015610a55573d6000803e3d6000fd5b505050600082815260056020526040902054600114159050610a8157610a7c33600161136b565b61095d565b60008181526005602052604090205460021415610aa357610a7c336001611391565b61095d3360016113b7565b6000610ab86107e5565b8210610ad65760405162461bcd60e51b815260040161072790611f66565b5090565b610ae2611048565b6001600160a01b0316610af3610c7f565b6001600160a01b031614610b195760405162461bcd60e51b815260040161072790612137565b80516109bb90600b906020840190611a0e565b60056020526000908152604090205481565b6000610b49826113dd565b5192915050565b600b8054610b5d906125a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b89906125a4565b8015610bd65780601f10610bab57610100808354040283529160200191610bd6565b820191906000526020600020905b815481529060010190602001808311610bb957829003601f168201915b505050505081565b60006001600160a01b038216610c065760405162461bcd60e51b81526004016107279061207d565b506001600160a01b03166000908152600e60205260409020546fffffffffffffffffffffffffffffffff1690565b610c3c611048565b6001600160a01b0316610c4d610c7f565b6001600160a01b031614610c735760405162461bcd60e51b815260040161072790612137565b610c7d600061146e565b565b6000546001600160a01b031690565b610c96611048565b6001600160a01b0316610ca7610c7f565b6001600160a01b031614610ccd5760405162461bcd60e51b815260040161072790612137565b600a55565b60018160048110610ce257600080fd5b0154905081565b6060600c805461067d906125a4565b600a5481565b610d06611048565b6001600160a01b0316826001600160a01b03161415610d375760405162461bcd60e51b8152600401610727906121c9565b8060106000610d44611048565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d88611048565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610dc09190611e31565b60405180910390a35050565b60095481565b6008546001600160a01b031681565b610dec8484846110a8565b610df8848484846114be565b610e145760405162461bcd60e51b8152600401610727906122ba565b50505050565b6060610e2582611033565b610e415760405162461bcd60e51b81526004016107279061216c565b6000610e4b6115f3565b8054610e56906125a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e82906125a4565b8015610ecf5780601f10610ea457610100808354040283529160200191610ecf565b820191906000526020600020905b815481529060010190602001808311610eb257829003601f168201915b505050505090506000815111610ef45760405180602001604052806000815250610f1f565b80610efe846115f8565b604051602001610f0f929190611d66565b6040516020818303038152906040525b9392505050565b610f2e611048565b6001600160a01b0316610f3f610c7f565b6001600160a01b0316146109af5760405162461bcd60e51b815260040161072790612137565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205460ff1690565b610f9b611048565b6001600160a01b0316610fac610c7f565b6001600160a01b031614610fd25760405162461bcd60e51b815260040161072790612137565b6001600160a01b038116610ff85760405162461bcd60e51b815260040161072790611eac565b61095d8161146e565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b60009081526007602052604090205460ff1690565b3390565b6000828152600f602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006110b3826113dd565b9050600081600001516001600160a01b03166110cd611048565b6001600160a01b0316148061110257506110e5611048565b6001600160a01b03166110f784610700565b6001600160a01b0316145b806111165750815161111690610586611048565b9050806111355760405162461bcd60e51b815260040161072790612200565b846001600160a01b031682600001516001600160a01b03161461116a5760405162461bcd60e51b8152600401610727906120da565b6001600160a01b0384166111905760405162461bcd60e51b815260040161072790611fc3565b61119d8585856001610e14565b6111ad600084846000015161104c565b6001600160a01b038581166000908152600e6020908152604080832080547fffffffffffffffffffffffffffffffff000000000000000000000000000000008082166fffffffffffffffffffffffffffffffff928316600019018316179092559489168085528285208054928316928716600190810190971692909217909155878452600d909252822080546001600160a01b03191690911767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff1602179055906112749085906124ff565b6000818152600d60205260409020549091506001600160a01b03166112fa5761129c81611033565b156112fa5782516000828152600d6020908152604090912080549186015167ffffffffffffffff16600160a01b0267ffffffffffffffff60a01b196001600160a01b039094166001600160a01b031990931692909217929092161790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113488686866001610e14565b505050505050565b6107e083836040518060200160405280600081525084611747565b601e811115801561137c5750600081115b61138557600080fd5b6109bb82826001611350565b601e81111580156113a25750600081115b6113ab57600080fd5b6109bb82826002611350565b601e81111580156113c85750600081115b6113d157600080fd5b6109bb82826003611350565b6113e5611a8e565b6113ee82611033565b61140a5760405162461bcd60e51b815260040161072790611f09565b815b6000818152600d60209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561145b5791506106699050565b50806114668161258d565b91505061140c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114d2846001600160a01b0316611755565b156115e757836001600160a01b031663150b7a026114ee611048565b8786866040518563ffffffff1660e01b81526004016115109493929190611df5565b602060405180830381600087803b15801561152a57600080fd5b505af192505050801561155a575060408051601f3d908101601f1916820190925261155791810190611cc0565b60015b6115b4573d808015611588576040519150601f19603f3d011682016040523d82523d6000602084013e61158d565b606091505b5080516115ac5760405162461bcd60e51b8152600401610727906122ba565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506115eb565b5060015b949350505050565b600b90565b606081611639575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610669565b8160005b8115611663578061164d816125df565b915061165c9050600a83612517565b915061163d565b60008167ffffffffffffffff81111561168c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116b6576020820181803683370190505b5090505b84156115eb576116cb60018361254a565b91506116d8600a866125fa565b6116e39060306124ff565b60f81b81838151811061170657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611740600a86612517565b94506116ba565b610e1484848460018561175b565b3b151590565b60006001826004811061177e57634e487b7160e01b600052603260045260246000fd5b015490506001600160a01b0386166117a85760405162461bcd60e51b81526004016107279061234e565b6117b181611033565b156117ce5760405162461bcd60e51b815260040161072790612317565b600085116117ee5760405162461bcd60e51b8152600401610727906123ab565b6117fb6000878388610e14565b6001600160a01b0386166000908152600e6020526040812080548792906118359084906fffffffffffffffffffffffffffffffff166124cb565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b0388166000908152600e60205260409020805488935090916010916118a09185917001000000000000000000000000000000009004166124cb565b82546101009290920a6fffffffffffffffffffffffffffffffff818102199093169190921691909102179055506000818152600d6020526040812080546001600160a01b0319166001600160a01b0389161767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff160217905581905b868110156119d35760405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a484156119865761196a60008984896114be565b6119865760405162461bcd60e51b8152600401610727906122ba565b6000828152600760205260408120805460ff1916600117905560098054916119ad836125df565b919050555081806119bd906125df565b92505080806119cb906125df565b915050611917565b5080600184600481106119f657634e487b7160e01b600052603260045260246000fd5b0155611a056000888489610e14565b50505050505050565b828054611a1a906125a4565b90600052602060002090601f016020900481019282611a3c5760008555611a82565b82601f10611a5557805160ff1916838001178555611a82565b82800160010185558215611a82579182015b82811115611a82578251825591602001919060010190611a67565b50610ad6929150611aa5565b604080518082019091526000808252602082015290565b5b80821115610ad65760008155600101611aa6565b600067ffffffffffffffff80841115611ad557611ad561263a565b604051601f8501601f191681016020018281118282101715611af957611af961263a565b604052848152915081838501861015611b1157600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461066957600080fd5b600060208284031215611b52578081fd5b610f1f82611b2a565b60008060408385031215611b6d578081fd5b611b7683611b2a565b9150611b8460208401611b2a565b90509250929050565b600080600060608486031215611ba1578081fd5b611baa84611b2a565b9250611bb860208501611b2a565b9150604084013590509250925092565b60008060008060808587031215611bdd578081fd5b611be685611b2a565b9350611bf460208601611b2a565b925060408501359150606085013567ffffffffffffffff811115611c16578182fd5b8501601f81018713611c26578182fd5b611c3587823560208401611aba565b91505092959194509250565b60008060408385031215611c53578182fd5b611c5c83611b2a565b915060208301358015158114611c70578182fd5b809150509250929050565b60008060408385031215611c8d578182fd5b611c9683611b2a565b946020939093013593505050565b600060208284031215611cb5578081fd5b8135610f1f81612650565b600060208284031215611cd1578081fd5b8151610f1f81612650565b600060208284031215611ced578081fd5b813567ffffffffffffffff811115611d03578182fd5b8201601f81018413611d13578182fd5b6115eb84823560208401611aba565b600060208284031215611d33578081fd5b5035919050565b60008151808452611d52816020860160208601612561565b601f01601f19169290920160200192915050565b60008351611d78818460208801612561565b835190830190611d8c818360208801612561565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611e276080830184611d3a565b9695505050505050565b901515815260200190565b600060208252610f1f6020830184611d3a565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360408201527f74656e7420746f6b656e00000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560408201527f6e64730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460408201527f206f776e65720000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201527f6572000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243373231413a207175616e74697479206d7573742062652067726561746560408201527f72207468616e2030000000000000000000000000000000000000000000000000606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201527f6f776e657220627920696e646578000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201527f78697374656e7420746f6b656e00000000000000000000000000000000000000606082015260800190565b90815260200190565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156124f6576124f661260e565b01949350505050565b600082198211156125125761251261260e565b500190565b60008261252657612526612624565b500490565b60008160001904831182151516156125455761254561260e565b500290565b60008282101561255c5761255c61260e565b500390565b60005b8381101561257c578181015183820152602001612564565b83811115610e145750506000910152565b60008161259c5761259c61260e565b506000190190565b6002810460018216806125b857607f821691505b602082108114156125d957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125f3576125f361260e565b5060010190565b60008261260957612609612624565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095d57600080fdfea26469706673582212206fc8f23ffda6a823844209d61bb312ca68e5c761e76ebbd49f492af7acca576b64736f6c63430008000033697066733a2f2f516d636a3538536842646e6950714e5269743839544c636b7031475a44627437727461556b4e4576474c687a544a2f000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000013537069726974734f6650756e6b7376696c6c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075350495249545300000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101e25760003560e01c80636c0360eb11610102578063a22cb46511610095578063c87b56dd11610064578063c87b56dd1461052b578063cc47a40b1461054b578063e985e9c51461056b578063f2fde38b1461058b576101e2565b8063a22cb465146104c1578063a2309ff8146104e1578063b06ce18d146104f6578063b88d4fde1461050b576101e2565b806391b7f5ed116100d157806391b7f5ed1461045757806392f8eb941461047757806395d89b4114610497578063a035b1fe146104ac576101e2565b80636c0360eb146103f857806370a082311461040d578063715018a61461042d5780638da5cb5b14610442576101e2565b80633ccfd60b1161017a5780634f6ccce7116101495780634f6ccce71461037857806355f804b314610398578063600e7761146103b85780636352211e146103d8576101e2565b80633ccfd60b1461031057806340c10f191461032557806342842e0e14610338578063483f31ab14610358576101e2565b8063095ea7b3116101b6578063095ea7b31461028c57806318160ddd146102ae57806323b872dd146102d05780632f745c59146102f0576101e2565b8062923f9e146101e757806301ffc9a71461021d57806306fdde031461023d578063081812fc1461025f575b600080fd5b3480156101f357600080fd5b50610207610202366004611d22565b6105ab565b6040516102149190611e31565b60405180910390f35b34801561022957600080fd5b50610207610238366004611ca4565b6105c0565b34801561024957600080fd5b5061025261066e565b6040516102149190611e3c565b34801561026b57600080fd5b5061027f61027a366004611d22565b610700565b6040516102149190611dbd565b34801561029857600080fd5b506102ac6102a7366004611c7b565b61074c565b005b3480156102ba57600080fd5b506102c36107e5565b60405161021491906124c2565b3480156102dc57600080fd5b506102ac6102eb366004611b8d565b6107eb565b3480156102fc57600080fd5b506102c361030b366004611c7b565b6107f6565b34801561031c57600080fd5b506102ac6108f2565b6102ac610333366004611c7b565b610960565b34801561034457600080fd5b506102ac610353366004611b8d565b6109bf565b34801561036457600080fd5b506102ac610373366004611d22565b6109da565b34801561038457600080fd5b506102c3610393366004611d22565b610aae565b3480156103a457600080fd5b506102ac6103b3366004611cdc565b610ada565b3480156103c457600080fd5b506102c36103d3366004611d22565b610b2c565b3480156103e457600080fd5b5061027f6103f3366004611d22565b610b3e565b34801561040457600080fd5b50610252610b50565b34801561041957600080fd5b506102c3610428366004611b41565b610bde565b34801561043957600080fd5b506102ac610c34565b34801561044e57600080fd5b5061027f610c7f565b34801561046357600080fd5b506102ac610472366004611d22565b610c8e565b34801561048357600080fd5b506102c3610492366004611d22565b610cd2565b3480156104a357600080fd5b50610252610ce9565b3480156104b857600080fd5b506102c3610cf8565b3480156104cd57600080fd5b506102ac6104dc366004611c41565b610cfe565b3480156104ed57600080fd5b506102c3610dcc565b34801561050257600080fd5b5061027f610dd2565b34801561051757600080fd5b506102ac610526366004611bc8565b610de1565b34801561053757600080fd5b50610252610546366004611d22565b610e1a565b34801561055757600080fd5b506102ac610566366004611c7b565b610f26565b34801561057757600080fd5b50610207610586366004611b5b565b610f65565b34801561059757600080fd5b506102ac6105a6366004611b41565b610f93565b60076020526000908152604090205460ff1681565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061062357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061065757506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610666575061066682611001565b90505b919050565b60606006805461067d906125a4565b80601f01602080910402602001604051908101604052809291908181526020018280546106a9906125a4565b80156106f65780601f106106cb576101008083540402835291602001916106f6565b820191906000526020600020905b8154815290600101906020018083116106d957829003601f168201915b5050505050905090565b600061070b82611033565b6107305760405162461bcd60e51b815260040161072790612465565b60405180910390fd5b506000908152600f60205260409020546001600160a01b031690565b600061075782610b3e565b9050806001600160a01b0316836001600160a01b0316141561078b5760405162461bcd60e51b81526004016107279061225d565b806001600160a01b031661079d611048565b6001600160a01b031614806107b957506107b981610586611048565b6107d55760405162461bcd60e51b815260040161072790612020565b6107e083838361104c565b505050565b60095490565b6107e08383836110a8565b600061080183610bde565b821061081f5760405162461bcd60e51b815260040161072790611e4f565b60006108296107e5565b905060008060005b838110156108d3576000818152600d60209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561088457805192505b876001600160a01b0316836001600160a01b031614156108c057868414156108b2575093506108ec92505050565b836108bc816125df565b9450505b50806108cb816125df565b915050610831565b5060405162461bcd60e51b815260040161072790612408565b92915050565b6108fa611048565b6001600160a01b031661090b610c7f565b6001600160a01b0316146109315760405162461bcd60e51b815260040161072790612137565b60405133904780156108fc02916000818181858888f1935050505015801561095d573d6000803e3d6000fd5b50565b600a5461096d908261252b565b341461097857600080fd5b601e81111580156109895750600081115b61099257600080fd5b600154612711906109a49083906124ff565b11156109af57600080fd5b6109bb82826000611350565b5050565b6107e083838360405180602001604052806000815250610de1565b6008546040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906323b872dd90610a2790339030908690600401611dd1565b600060405180830381600087803b158015610a4157600080fd5b505af1158015610a55573d6000803e3d6000fd5b505050600082815260056020526040902054600114159050610a8157610a7c33600161136b565b61095d565b60008181526005602052604090205460021415610aa357610a7c336001611391565b61095d3360016113b7565b6000610ab86107e5565b8210610ad65760405162461bcd60e51b815260040161072790611f66565b5090565b610ae2611048565b6001600160a01b0316610af3610c7f565b6001600160a01b031614610b195760405162461bcd60e51b815260040161072790612137565b80516109bb90600b906020840190611a0e565b60056020526000908152604090205481565b6000610b49826113dd565b5192915050565b600b8054610b5d906125a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b89906125a4565b8015610bd65780601f10610bab57610100808354040283529160200191610bd6565b820191906000526020600020905b815481529060010190602001808311610bb957829003601f168201915b505050505081565b60006001600160a01b038216610c065760405162461bcd60e51b81526004016107279061207d565b506001600160a01b03166000908152600e60205260409020546fffffffffffffffffffffffffffffffff1690565b610c3c611048565b6001600160a01b0316610c4d610c7f565b6001600160a01b031614610c735760405162461bcd60e51b815260040161072790612137565b610c7d600061146e565b565b6000546001600160a01b031690565b610c96611048565b6001600160a01b0316610ca7610c7f565b6001600160a01b031614610ccd5760405162461bcd60e51b815260040161072790612137565b600a55565b60018160048110610ce257600080fd5b0154905081565b6060600c805461067d906125a4565b600a5481565b610d06611048565b6001600160a01b0316826001600160a01b03161415610d375760405162461bcd60e51b8152600401610727906121c9565b8060106000610d44611048565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d88611048565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610dc09190611e31565b60405180910390a35050565b60095481565b6008546001600160a01b031681565b610dec8484846110a8565b610df8848484846114be565b610e145760405162461bcd60e51b8152600401610727906122ba565b50505050565b6060610e2582611033565b610e415760405162461bcd60e51b81526004016107279061216c565b6000610e4b6115f3565b8054610e56906125a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e82906125a4565b8015610ecf5780601f10610ea457610100808354040283529160200191610ecf565b820191906000526020600020905b815481529060010190602001808311610eb257829003601f168201915b505050505090506000815111610ef45760405180602001604052806000815250610f1f565b80610efe846115f8565b604051602001610f0f929190611d66565b6040516020818303038152906040525b9392505050565b610f2e611048565b6001600160a01b0316610f3f610c7f565b6001600160a01b0316146109af5760405162461bcd60e51b815260040161072790612137565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205460ff1690565b610f9b611048565b6001600160a01b0316610fac610c7f565b6001600160a01b031614610fd25760405162461bcd60e51b815260040161072790612137565b6001600160a01b038116610ff85760405162461bcd60e51b815260040161072790611eac565b61095d8161146e565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b60009081526007602052604090205460ff1690565b3390565b6000828152600f602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006110b3826113dd565b9050600081600001516001600160a01b03166110cd611048565b6001600160a01b0316148061110257506110e5611048565b6001600160a01b03166110f784610700565b6001600160a01b0316145b806111165750815161111690610586611048565b9050806111355760405162461bcd60e51b815260040161072790612200565b846001600160a01b031682600001516001600160a01b03161461116a5760405162461bcd60e51b8152600401610727906120da565b6001600160a01b0384166111905760405162461bcd60e51b815260040161072790611fc3565b61119d8585856001610e14565b6111ad600084846000015161104c565b6001600160a01b038581166000908152600e6020908152604080832080547fffffffffffffffffffffffffffffffff000000000000000000000000000000008082166fffffffffffffffffffffffffffffffff928316600019018316179092559489168085528285208054928316928716600190810190971692909217909155878452600d909252822080546001600160a01b03191690911767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff1602179055906112749085906124ff565b6000818152600d60205260409020549091506001600160a01b03166112fa5761129c81611033565b156112fa5782516000828152600d6020908152604090912080549186015167ffffffffffffffff16600160a01b0267ffffffffffffffff60a01b196001600160a01b039094166001600160a01b031990931692909217929092161790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113488686866001610e14565b505050505050565b6107e083836040518060200160405280600081525084611747565b601e811115801561137c5750600081115b61138557600080fd5b6109bb82826001611350565b601e81111580156113a25750600081115b6113ab57600080fd5b6109bb82826002611350565b601e81111580156113c85750600081115b6113d157600080fd5b6109bb82826003611350565b6113e5611a8e565b6113ee82611033565b61140a5760405162461bcd60e51b815260040161072790611f09565b815b6000818152600d60209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561145b5791506106699050565b50806114668161258d565b91505061140c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114d2846001600160a01b0316611755565b156115e757836001600160a01b031663150b7a026114ee611048565b8786866040518563ffffffff1660e01b81526004016115109493929190611df5565b602060405180830381600087803b15801561152a57600080fd5b505af192505050801561155a575060408051601f3d908101601f1916820190925261155791810190611cc0565b60015b6115b4573d808015611588576040519150601f19603f3d011682016040523d82523d6000602084013e61158d565b606091505b5080516115ac5760405162461bcd60e51b8152600401610727906122ba565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506115eb565b5060015b949350505050565b600b90565b606081611639575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610669565b8160005b8115611663578061164d816125df565b915061165c9050600a83612517565b915061163d565b60008167ffffffffffffffff81111561168c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116b6576020820181803683370190505b5090505b84156115eb576116cb60018361254a565b91506116d8600a866125fa565b6116e39060306124ff565b60f81b81838151811061170657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611740600a86612517565b94506116ba565b610e1484848460018561175b565b3b151590565b60006001826004811061177e57634e487b7160e01b600052603260045260246000fd5b015490506001600160a01b0386166117a85760405162461bcd60e51b81526004016107279061234e565b6117b181611033565b156117ce5760405162461bcd60e51b815260040161072790612317565b600085116117ee5760405162461bcd60e51b8152600401610727906123ab565b6117fb6000878388610e14565b6001600160a01b0386166000908152600e6020526040812080548792906118359084906fffffffffffffffffffffffffffffffff166124cb565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b0388166000908152600e60205260409020805488935090916010916118a09185917001000000000000000000000000000000009004166124cb565b82546101009290920a6fffffffffffffffffffffffffffffffff818102199093169190921691909102179055506000818152600d6020526040812080546001600160a01b0319166001600160a01b0389161767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff160217905581905b868110156119d35760405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a484156119865761196a60008984896114be565b6119865760405162461bcd60e51b8152600401610727906122ba565b6000828152600760205260408120805460ff1916600117905560098054916119ad836125df565b919050555081806119bd906125df565b92505080806119cb906125df565b915050611917565b5080600184600481106119f657634e487b7160e01b600052603260045260246000fd5b0155611a056000888489610e14565b50505050505050565b828054611a1a906125a4565b90600052602060002090601f016020900481019282611a3c5760008555611a82565b82601f10611a5557805160ff1916838001178555611a82565b82800160010185558215611a82579182015b82811115611a82578251825591602001919060010190611a67565b50610ad6929150611aa5565b604080518082019091526000808252602082015290565b5b80821115610ad65760008155600101611aa6565b600067ffffffffffffffff80841115611ad557611ad561263a565b604051601f8501601f191681016020018281118282101715611af957611af961263a565b604052848152915081838501861015611b1157600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461066957600080fd5b600060208284031215611b52578081fd5b610f1f82611b2a565b60008060408385031215611b6d578081fd5b611b7683611b2a565b9150611b8460208401611b2a565b90509250929050565b600080600060608486031215611ba1578081fd5b611baa84611b2a565b9250611bb860208501611b2a565b9150604084013590509250925092565b60008060008060808587031215611bdd578081fd5b611be685611b2a565b9350611bf460208601611b2a565b925060408501359150606085013567ffffffffffffffff811115611c16578182fd5b8501601f81018713611c26578182fd5b611c3587823560208401611aba565b91505092959194509250565b60008060408385031215611c53578182fd5b611c5c83611b2a565b915060208301358015158114611c70578182fd5b809150509250929050565b60008060408385031215611c8d578182fd5b611c9683611b2a565b946020939093013593505050565b600060208284031215611cb5578081fd5b8135610f1f81612650565b600060208284031215611cd1578081fd5b8151610f1f81612650565b600060208284031215611ced578081fd5b813567ffffffffffffffff811115611d03578182fd5b8201601f81018413611d13578182fd5b6115eb84823560208401611aba565b600060208284031215611d33578081fd5b5035919050565b60008151808452611d52816020860160208601612561565b601f01601f19169290920160200192915050565b60008351611d78818460208801612561565b835190830190611d8c818360208801612561565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611e276080830184611d3a565b9695505050505050565b901515815260200190565b600060208252610f1f6020830184611d3a565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360408201527f74656e7420746f6b656e00000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560408201527f6e64730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460408201527f206f776e65720000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201527f6572000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243373231413a207175616e74697479206d7573742062652067726561746560408201527f72207468616e2030000000000000000000000000000000000000000000000000606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201527f6f776e657220627920696e646578000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201527f78697374656e7420746f6b656e00000000000000000000000000000000000000606082015260800190565b90815260200190565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156124f6576124f661260e565b01949350505050565b600082198211156125125761251261260e565b500190565b60008261252657612526612624565b500490565b60008160001904831182151516156125455761254561260e565b500290565b60008282101561255c5761255c61260e565b500390565b60005b8381101561257c578181015183820152602001612564565b83811115610e145750506000910152565b60008161259c5761259c61260e565b506000190190565b6002810460018216806125b857607f821691505b602082108114156125d957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125f3576125f361260e565b5060010190565b60008261260957612609612624565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095d57600080fdfea26469706673582212206fc8f23ffda6a823844209d61bb312ca68e5c761e76ebbd49f492af7acca576b64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000013537069726974734f6650756e6b7376696c6c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075350495249545300000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): SpiritsOfPunksville
Arg [1] : symbol_ (string): SPIRITS
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [3] : 537069726974734f6650756e6b7376696c6c6500000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 5350495249545300000000000000000000000000000000000000000000000000
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.