Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,283 WxMINT
Holders
595
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 WxMINTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WLNFT_MintPass
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } abstract contract NFT { function balanceOf(address owner) public view virtual returns (uint256 balance); } contract WLNFT_MintPass is ERC721A, Ownable { address constant WALLET1 = 0xffe5CBCDdF2bd1b4Dc3c00455d4cdCcf20F77587; address constant WALLET2 = 0xe5c07AcF973Ccda3a141efbb2e829049591F938e; address constant WALLET3 = 0xC87C8BF777701ccFfB1230051E33f0524E5975b5; uint256 public basePrice = 0.1 * 10 ** 18; uint256 public maxPerWallet = 1; uint256 public maxPerTransaction = 5; uint256 public maxSupply = 10000; uint256 public preSalePhase = 1; bool public preSaleIsActive = true; bool public saleIsActive = false; address[] public contracts; address proxyRegistryAddress; string _baseTokenURI; bytes32 private merkleRoot; constructor(address _proxyRegistryAddress, bytes32 _root) ERC721A("WhitelistNFT MintPass", "WxMINT", 100) { proxyRegistryAddress = _proxyRegistryAddress; merkleRoot = _root; } struct ContractWhitelist { bool exists; NFT nft; uint256 usedSpots; uint256 availSpots; } mapping(address => ContractWhitelist) public contractWhitelist; struct Minter { bool exists; uint256 hasMintedByAddress; uint256 hasMintedByContract; } mapping(address => Minter) minters; function setBaseTokenURI(string memory _uri) public onlyOwner { _baseTokenURI = _uri; } function setRoot(bytes32 _root) public onlyOwner { merkleRoot = _root; } function baseTokenURI() virtual public view returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId))); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function isWhitelistedByContract(address _address) public view returns (bool, uint256) { for (uint256 i = 0; i < contracts.length; i += 1) { if ( contractWhitelist[contracts[i]].nft.balanceOf(_address) > 0 && contractWhitelist[contracts[i]].usedSpots < contractWhitelist[contracts[i]].availSpots ) { return (true, i); } } return (false, 0); } function addContractToWhitelist(address _address, uint256 _availSpots) public onlyOwner returns (bool) { (bool _isWhitelisted, ) = isWhitelistedContract(_address); require(!_isWhitelisted, "Contract already whitelisted."); contractWhitelist[_address].exists = true; contractWhitelist[_address].nft = NFT(_address); contractWhitelist[_address].availSpots = _availSpots; contracts.push(_address); return true; } function updateContractWhitelist(address _address, uint256 _availSpots) public onlyOwner returns (bool) { (bool _isWhitelisted, ) = isWhitelistedContract(_address); require(_isWhitelisted, "Contract is not whitelisted."); contractWhitelist[_address].availSpots = _availSpots; return true; } function removeContractFromWhitelist(address _address) public onlyOwner returns (bool) { (bool _isWhitelisted, uint256 i) = isWhitelistedContract(_address); require(_isWhitelisted, "Contract is not whitelisted."); contracts[i] = contracts[contracts.length - 1]; contracts.pop(); delete contractWhitelist[_address]; return true; } function isWhitelistedContract(address _address) internal view returns (bool, uint256) { for (uint256 i = 0; i < contracts.length; i += 1) { if (_address == contracts[i] && contractWhitelist[_address].exists) return (true, i); } return (false, 0); } function setPreSalePhase(uint8 _phase) public onlyOwner { require(_phase == 1 || _phase == 2, "Invalid presale phase."); preSalePhase = _phase; } function setBasePrice(uint256 _price) public onlyOwner { basePrice = _price; } function setMaxPerWallet(uint256 _maxToMint) public onlyOwner { maxPerWallet = _maxToMint; } function setMaxPerTransaction(uint256 _maxToMint) public onlyOwner { maxPerTransaction = _maxToMint; } function flipSaleState() public onlyOwner { saleIsActive = !saleIsActive; } function flipPreSaleState() public onlyOwner { preSaleIsActive = !preSaleIsActive; } function reserve(address _address, uint256 _quantity) public onlyOwner { _safeMint(_address, _quantity); } function preSalePrice() public view returns (uint256) { return getPrice(); } function pubSalePrice() public view returns (uint256) { return getPrice(); } function getPrice() public view returns (uint256) { if (totalSupply() >= 6101) { return basePrice * 4; } else if (totalSupply() >= 3101) { return basePrice * 3; } else if (totalSupply() >= 1101) { return basePrice * 2; } else { return basePrice; } } function verify( bytes32 leaf, bytes32[] memory proof ) public view returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == merkleRoot; } // whitelist minting function mintPhase1(uint256 _quantity, bytes32[] memory proof) internal { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(verify(leaf, proof), "You are not on the whitelist."); require(minters[msg.sender].hasMintedByAddress + _quantity <= maxPerWallet, "Exceeds per wallet presale limit."); if (!minters[msg.sender].exists) minters[msg.sender].exists = true; minters[msg.sender].hasMintedByAddress = minters[msg.sender].hasMintedByAddress + _quantity; _safeMint(msg.sender, _quantity); } // partner minting function mintPhase2(uint256 _quantity) internal { (bool _isWhitelisted, uint256 idx) = isWhitelistedByContract(msg.sender); require(_isWhitelisted, "You are not a holder of a whitelisted collection with available spots remaining."); require(minters[msg.sender].hasMintedByContract + _quantity <= maxPerWallet, "Exceeds per wallet presale limit."); if (minters[msg.sender].exists) { if (minters[msg.sender].hasMintedByContract == 0) { contractWhitelist[contracts[idx]].usedSpots++; } minters[msg.sender].hasMintedByContract = minters[msg.sender].hasMintedByContract + _quantity; } else { minters[msg.sender].exists = true; minters[msg.sender].hasMintedByContract = _quantity; contractWhitelist[contracts[idx]].usedSpots++; } _safeMint(msg.sender, _quantity); } function mint( uint _quantity, bytes32[] memory proof ) public payable { uint256 currentSupply = totalSupply(); require(saleIsActive, "Sale is not active."); require(msg.value > 0, "Must send ETH to mint."); require(currentSupply <= maxSupply, "Sold out."); require(currentSupply + _quantity <= maxSupply, "Requested quantity would exceed total supply."); if(preSaleIsActive) { require(getPrice() * _quantity <= msg.value, "ETH sent is incorrect."); require(_quantity <= maxPerWallet, "Exceeds wallet presale limit."); if (preSalePhase == 1) { mintPhase1(_quantity, proof); } if (preSalePhase == 2) { mintPhase2(_quantity); } } else { require(getPrice() * _quantity <= msg.value, "ETH sent is incorrect."); require(_quantity <= maxPerTransaction, "Exceeds per transaction limit for public sale."); _safeMint(msg.sender, _quantity); } } function withdraw() external onlyOwner { uint256 totalBalance = address(this).balance; uint256 balance1 = totalBalance * 450/1000; uint256 balance2 = totalBalance * 225/1000; uint256 balance3 = totalBalance * 225/1000; payable(WALLET1).transfer(balance1); payable(WALLET2).transfer(balance2); payable(WALLET3).transfer(balance3); uint256 balance4 = totalBalance - (balance1 + balance2 + balance3); payable(msg.sender).transfer(balance4); } }
// 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 (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/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 (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 (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 (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); }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs 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"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // 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) private _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; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @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); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; 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())) : ""; } /** * @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 memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.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 tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; 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 <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = 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); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, 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] = TokenOwnership(prevOwnership.addr, 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); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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 owner 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 {} }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"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":"_address","type":"address"},{"internalType":"uint256","name":"_availSpots","type":"uint256"}],"name":"addContractToWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"basePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contractWhitelist","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"contract NFT","name":"nft","type":"address"},{"internalType":"uint256","name":"usedSpots","type":"uint256"},{"internalType":"uint256","name":"availSpots","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"contracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","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":[],"name":"getPrice","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":"_address","type":"address"}],"name":"isWhitelistedByContract","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeContractFromWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setBasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxToMint","type":"uint256"}],"name":"setMaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxToMint","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_phase","type":"uint8"}],"name":"setPreSalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","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":"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":"_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":"_address","type":"address"},{"internalType":"uint256","name":"_availSpots","type":"uint256"}],"name":"updateContractWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052600080805560075567016345785d8a00006009556001600a8190556005600b55612710600c55600d819055600e805461ffff191690911790553480156200004a57600080fd5b50604051620036e9380380620036e98339810160408190526200006d9162000288565b6040518060400160405280601581526020017f57686974656c6973744e4654204d696e745061737300000000000000000000008152506040518060400160405280600681526020016515de1352539560d21b815250606460008111620001295760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b82516200013e906001906020860190620001e2565b50815162000154906002906020850190620001e2565b50608052506200016690503362000190565b601080546001600160a01b0319166001600160a01b03939093169290921790915560125562000301565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f090620002c4565b90600052602060002090601f0160209004810192826200021457600085556200025f565b82601f106200022f57805160ff19168380011785556200025f565b828001600101855582156200025f579182015b828111156200025f57825182559160200191906001019062000242565b506200026d92915062000271565b5090565b5b808211156200026d576000815560010162000272565b600080604083850312156200029c57600080fd5b82516001600160a01b0381168114620002b457600080fd5b6020939093015192949293505050565b600181811c90821680620002d957607f821691505b60208210811415620002fb57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516133be6200032b600039600081816121b4015281816121de015261293f01526133be6000f3fe60806040526004361061023e5760003560e01c806370a082311161013557806370a0823114610593578063715018a6146105b35780638da5cb5b146105c85780638feec86a146105dd57806395d89b41146105fd57806398d5fdca14610612578063a22cb46514610627578063b480bfff14610647578063b88d4fde14610667578063ba41b0c614610687578063c7876ea41461069a578063c87b56dd146106b0578063cc47a40b146106d0578063ccfdd2f8146106f0578063d547cfb714610710578063d5abeb0114610725578063d7224ba01461073b578063dab5f34014610751578063de4b326214610771578063e268e4d314610791578063e757c17d1461040f578063e985e9c5146107b1578063eb8d2444146107d1578063f0325549146107f0578063f2fde38b1461080557600080fd5b806301ffc9a71461024357806306fdde0314610278578063081812fc1461029a578063095ea7b3146102c757806310abbfae146102e957806314a0c628146103095780631570eac21461034057806318160ddd146103605780631f0234d81461037f57806323b872dd146103995780632f745c59146103b957806330176e13146103d957806332322fa9146103f95780633318e2771461040f57806334918dfd146104245780633ccfd60b1461043957806342842e0e1461044e578063453c23101461046e578063474da79a146104845780634b980d67146104a45780634c999f5e146104ba5780634f6ccce7146105335780636352211e146105535780636df4d24114610573575b600080fd5b34801561024f57600080fd5b5061026361025e366004612c02565b610825565b60405190151581526020015b60405180910390f35b34801561028457600080fd5b5061028d610892565b60405161026f9190612c7e565b3480156102a657600080fd5b506102ba6102b5366004612c91565b610924565b60405161026f9190612caa565b3480156102d357600080fd5b506102e76102e2366004612cd3565b6109b4565b005b3480156102f557600080fd5b50610263610304366004612cd3565b610ac8565b34801561031557600080fd5b50610329610324366004612cff565b610bd5565b60408051921515835260208301919091520161026f565b34801561034c57600080fd5b5061026361035b366004612cd3565b610d63565b34801561036c57600080fd5b506000545b60405190815260200161026f565b34801561038b57600080fd5b50600e546102639060ff1681565b3480156103a557600080fd5b506102e76103b4366004612d1c565b610de4565b3480156103c557600080fd5b506103716103d4366004612cd3565b610def565b3480156103e557600080fd5b506102e76103f4366004612dfa565b610f5c565b34801561040557600080fd5b50610371600d5481565b34801561041b57600080fd5b50610371610fa2565b34801561043057600080fd5b506102e7610fb1565b34801561044557600080fd5b506102e7610ffd565b34801561045a57600080fd5b506102e7610469366004612d1c565b6111a2565b34801561047a57600080fd5b50610371600a5481565b34801561049057600080fd5b506102ba61049f366004612c91565b6111bd565b3480156104b057600080fd5b50610371600b5481565b3480156104c657600080fd5b506105096104d5366004612cff565b60136020526000908152604090208054600182015460029092015460ff8216926101009092046001600160a01b0316919084565b6040805194151585526001600160a01b03909316602085015291830152606082015260800161026f565b34801561053f57600080fd5b5061037161054e366004612c91565b6111e7565b34801561055f57600080fd5b506102ba61056e366004612c91565b611249565b34801561057f57600080fd5b5061026361058e366004612ec1565b61125b565b34801561059f57600080fd5b506103716105ae366004612cff565b61130b565b3480156105bf57600080fd5b506102e761139c565b3480156105d457600080fd5b506102ba6113d7565b3480156105e957600080fd5b506102e76105f8366004612f07565b6113e6565b34801561060957600080fd5b5061028d611477565b34801561061e57600080fd5b50610371611486565b34801561063357600080fd5b506102e7610642366004612f2a565b6114ec565b34801561065357600080fd5b50610263610662366004612cff565b6115ae565b34801561067357600080fd5b506102e7610682366004612f68565b6116f9565b6102e7610695366004612ec1565b611732565b3480156106a657600080fd5b5061037160095481565b3480156106bc57600080fd5b5061028d6106cb366004612c91565b6119d7565b3480156106dc57600080fd5b506102e76106eb366004612cd3565b611a11565b3480156106fc57600080fd5b506102e761070b366004612c91565b611a4a565b34801561071c57600080fd5b5061028d611a7e565b34801561073157600080fd5b50610371600c5481565b34801561074757600080fd5b5061037160075481565b34801561075d57600080fd5b506102e761076c366004612c91565b611a8d565b34801561077d57600080fd5b506102e761078c366004612c91565b611ac1565b34801561079d57600080fd5b506102e76107ac366004612c91565b611af5565b3480156107bd57600080fd5b506102636107cc366004612fe7565b611b29565b3480156107dd57600080fd5b50600e5461026390610100900460ff1681565b3480156107fc57600080fd5b506102e7611bee565b34801561081157600080fd5b506102e7610820366004612cff565b611c31565b60006001600160e01b031982166380ac58cd60e01b148061085657506001600160e01b03198216635b5e139f60e01b145b8061087157506001600160e01b0319821663780e9d6360e01b145b8061088c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108a190613015565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd90613015565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b5050505050905090565b6000610931826000541190565b6109985760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109bf82611249565b9050806001600160a01b0316836001600160a01b03161415610a2e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161098f565b336001600160a01b0382161480610a4a5750610a4a8133611b29565b610ab85760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f6044820152781ddb995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b603a1b606482015260840161098f565b610ac3838383611cd1565b505050565b600033610ad36113d7565b6001600160a01b031614610af95760405162461bcd60e51b815260040161098f90613050565b6000610b0484611d2d565b5090508015610b555760405162461bcd60e51b815260206004820152601d60248201527f436f6e747261637420616c72656164792077686974656c69737465642e000000604482015260640161098f565b50506001600160a01b03919091166000818152601360205260408120805460016001600160a81b031990911661010085021781178255600290910193909355600f8054808501825591527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b031916909117905590565b60008060005b600f54811015610d5757600060136000600f8481548110610bfe57610bfe613085565b60009182526020808320909101546001600160a01b03908116845290830193909352604091820190205490516370a0823160e01b8152610100909104909116906370a0823190610c52908890600401612caa565b602060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c93919061309b565b118015610d35575060136000600f8381548110610cb257610cb2613085565b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000206002015460136000600f8481548110610d0b57610d0b613085565b60009182526020808320909101546001600160a01b03168352820192909252604001902060010154105b15610d4557600194909350915050565b610d506001826130ca565b9050610bdb565b50600093849350915050565b600033610d6e6113d7565b6001600160a01b031614610d945760405162461bcd60e51b815260040161098f90613050565b6000610d9f84611d2d565b50905080610dbf5760405162461bcd60e51b815260040161098f906130e2565b50506001600160a01b0391909116600090815260136020526040902060020155600190565b610ac3838383611db0565b6000610dfa8361130b565b8210610e535760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161098f565b600080549080805b83811015610efc576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610ead57805192505b876001600160a01b0316836001600160a01b03161415610ee95786841415610edb5750935061088c92505050565b83610ee581613118565b9450505b5080610ef481613118565b915050610e5b565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161098f565b33610f656113d7565b6001600160a01b031614610f8b5760405162461bcd60e51b815260040161098f90613050565b8051610f9e906011906020840190612b5c565b5050565b6000610fac611486565b905090565b33610fba6113d7565b6001600160a01b031614610fe05760405162461bcd60e51b815260040161098f90613050565b600e805461ff001981166101009182900460ff1615909102179055565b336110066113d7565b6001600160a01b03161461102c5760405162461bcd60e51b815260040161098f90613050565b4760006103e861103e836101c2613133565b6110489190613168565b905060006103e861105a8460e1613133565b6110649190613168565b905060006103e86110768560e1613133565b6110809190613168565b60405190915073ffe5cbcddf2bd1b4dc3c00455d4cdccf20f775879084156108fc029085906000818181858888f193505050501580156110c4573d6000803e3d6000fd5b5060405173e5c07acf973ccda3a141efbb2e829049591f938e9083156108fc029084906000818181858888f19350505050158015611106573d6000803e3d6000fd5b5060405173c87c8bf777701ccffb1230051e33f0524e5975b59082156108fc029083906000818181858888f19350505050158015611148573d6000803e3d6000fd5b5060008161115684866130ca565b61116091906130ca565b61116a908661317c565b604051909150339082156108fc029083906000818181858888f1935050505015801561119a573d6000803e3d6000fd5b505050505050565b610ac3838383604051806020016040528060008152506116f9565b600f81815481106111cd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000805482106112455760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161098f565b5090565b600061125482612132565b5192915050565b600082815b83518110156112ff57600084828151811061127d5761127d613085565b602002602001015190508083116112bf5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506112ec565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806112f781613118565b915050611260565b50601254149392505050565b60006001600160a01b0382166113775760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161098f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b336113a56113d7565b6001600160a01b0316146113cb5760405162461bcd60e51b815260040161098f90613050565b6113d560006122db565b565b6008546001600160a01b031690565b336113ef6113d7565b6001600160a01b0316146114155760405162461bcd60e51b815260040161098f90613050565b8060ff166001148061142a57508060ff166002145b61146f5760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b210383932b9b0b63290383430b9b29760511b604482015260640161098f565b60ff16600d55565b6060600280546108a190613015565b60006117d561149460005490565b106114a757600954610fac906004613133565b610c1d6114b360005490565b106114c657600954610fac906003613133565b61044d6114d260005490565b106114e557600954610fac906002613133565b5060095490565b6001600160a01b0382163314156115425760405162461bcd60e51b815260206004820152601a60248201527922a9219b9918a09d1030b8383937bb32903a379031b0b63632b960311b604482015260640161098f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000336115b96113d7565b6001600160a01b0316146115df5760405162461bcd60e51b815260040161098f90613050565b6000806115eb84611d2d565b915091508161160c5760405162461bcd60e51b815260040161098f906130e2565b600f805461161c9060019061317c565b8154811061162c5761162c613085565b600091825260209091200154600f80546001600160a01b03909216918390811061165857611658613085565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600f80548061169757611697613193565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0386168252601390526040812080546001600160a81b0319168155600181810183905560029091019190915592505050919050565b611704848484611db0565b6117108484848461232d565b61172c5760405162461bcd60e51b815260040161098f906131a9565b50505050565b600054600e54610100900460ff166117825760405162461bcd60e51b815260206004820152601360248201527229b0b6329034b9903737ba1030b1ba34bb329760691b604482015260640161098f565b600034116117cb5760405162461bcd60e51b815260206004820152601660248201527526bab9ba1039b2b7321022aa24103a379036b4b73a1760511b604482015260640161098f565b600c548111156118095760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b604482015260640161098f565b600c5461181684836130ca565b111561187a5760405162461bcd60e51b815260206004820152602d60248201527f526571756573746564207175616e7469747920776f756c64206578636565642060448201526c3a37ba30b61039bab838363c9760991b606482015260840161098f565b600e5460ff161561193257348361188f611486565b6118999190613133565b11156118b75760405162461bcd60e51b815260040161098f906131fc565b600a548311156119095760405162461bcd60e51b815260206004820152601d60248201527f457863656564732077616c6c65742070726573616c65206c696d69742e000000604482015260640161098f565b600d546001141561191e5761191e838361242b565b600d5460021415610ac357610ac383612564565b348361193c611486565b6119469190613133565b11156119645760405162461bcd60e51b815260040161098f906131fc565b600b548311156119cd5760405162461bcd60e51b815260206004820152602e60248201527f4578636565647320706572207472616e73616374696f6e206c696d697420666f60448201526d3910383ab13634b19039b0b6329760911b606482015260840161098f565b610ac3338461276b565b60606119e1611a7e565b6119ea83612785565b6040516020016119fb92919061322c565b6040516020818303038152906040529050919050565b33611a1a6113d7565b6001600160a01b031614611a405760405162461bcd60e51b815260040161098f90613050565b610f9e828261276b565b33611a536113d7565b6001600160a01b031614611a795760405162461bcd60e51b815260040161098f90613050565b600b55565b6060601180546108a190613015565b33611a966113d7565b6001600160a01b031614611abc5760405162461bcd60e51b815260040161098f90613050565b601255565b33611aca6113d7565b6001600160a01b031614611af05760405162461bcd60e51b815260040161098f90613050565b600955565b33611afe6113d7565b6001600160a01b031614611b245760405162461bcd60e51b815260040161098f90613050565b600a55565b60105460405163c455279160e01b81526000916001600160a01b039081169190841690829063c455279190611b62908890600401612caa565b602060405180830381865afa158015611b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba3919061325b565b6001600160a01b03161415611bbc57600191505061088c565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b33611bf76113d7565b6001600160a01b031614611c1d5760405162461bcd60e51b815260040161098f90613050565b600e805460ff19811660ff90911615179055565b33611c3a6113d7565b6001600160a01b031614611c605760405162461bcd60e51b815260040161098f90613050565b6001600160a01b038116611cc55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161098f565b611cce816122db565b50565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008060005b600f54811015610d5757600f8181548110611d5057611d50613085565b6000918252602090912001546001600160a01b038581169116148015611d8e57506001600160a01b03841660009081526013602052604090205460ff165b15611d9e57600194909350915050565b611da96001826130ca565b9050611d33565b6000611dbb82612132565b80519091506000906001600160a01b0316336001600160a01b03161480611df2575033611de784610924565b6001600160a01b0316145b80611e0457508151611e049033611b29565b905080611e6e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161098f565b846001600160a01b031682600001516001600160a01b031614611ee25760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161098f565b6001600160a01b038416611f465760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161098f565b611f566000848460000151611cd1565b6001600160a01b0385166000908152600460205260408120805460019290611f889084906001600160801b0316613278565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611fd4918591166132a0565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561205b8460016130ca565b6000818152600360205260409020549091506001600160a01b03166120ec57612085816000541190565b156120ec5760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461119a565b6040805180820190915260008082526020820152612151826000541190565b6121b05760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161098f565b60007f00000000000000000000000000000000000000000000000000000000000000008310612211576122037f00000000000000000000000000000000000000000000000000000000000000008461317c565b61220e9060016130ca565b90505b825b81811061227a576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561226757949350505050565b5080612272816132c2565b915050612213565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161098f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561242057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123719033908990889088906004016132d9565b6020604051808303816000875af19250505080156123ac575060408051601f3d908101601f191682019092526123a991810190613316565b60015b612406573d8080156123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b5080516123fe5760405162461bcd60e51b815260040161098f906131a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611be6565b506001949350505050565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050612469818361125b565b6124b55760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f74206f6e207468652077686974656c6973742e000000604482015260640161098f565b600a54336000908152601460205260409020600101546124d69085906130ca565b11156124f45760405162461bcd60e51b815260040161098f90613333565b3360009081526014602052604090205460ff1661252657336000908152601460205260409020805460ff191660011790555b336000908152601460205260409020600101546125449084906130ca565b33600081815260146020526040902060010191909155610ac3908461276b565b60008061257033610bd5565b91509150816126005760405162461bcd60e51b815260206004820152605060248201527f596f7520617265206e6f74206120686f6c646572206f6620612077686974656c60448201527f697374656420636f6c6c656374696f6e207769746820617661696c61626c652060648201526f39b837ba39903932b6b0b4b734b7339760811b608482015260a40161098f565b600a54336000908152601460205260409020600201546126219085906130ca565b111561263f5760405162461bcd60e51b815260040161098f90613333565b3360009081526014602052604090205460ff16156126f457336000908152601460205260409020600201546126be5760136000600f838154811061268557612685613085565b60009182526020808320909101546001600160a01b0316835282019290925260400181206001018054916126b883613118565b91905055505b336000908152601460205260409020600201546126dc9084906130ca565b336000908152601460205260409020600201556119cd565b336000908152601460205260408120805460ff19166001178155600201849055600f805460139291908490811061272d5761272d613085565b60009182526020808320909101546001600160a01b03168352820192909252604001812060010180549161276083613118565b9190505550610ac333845b610f9e828260405180602001604052806000815250612882565b6060816127a95750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127d357806127bd81613118565b91506127cc9050600a83613168565b91506127ad565b6000816001600160401b038111156127ed576127ed612d5d565b6040519080825280601f01601f191660200182016040528015612817576020820181803683370190505b5090505b8415611be65761282c60018361317c565b9150612839600a86613374565b6128449060306130ca565b60f81b81838151811061285957612859613085565b60200101906001600160f81b031916908160001a90535061287b600a86613168565b945061281b565b6000546001600160a01b0384166128e55760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161098f565b6128f0816000541190565b1561293d5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161098f565b7f00000000000000000000000000000000000000000000000000000000000000008311156129b85760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161098f565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612a149087906132a0565b6001600160801b03168152602001858360200151612a3291906132a0565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612b515760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612b15600088848861232d565b612b315760405162461bcd60e51b815260040161098f906131a9565b81612b3b81613118565b9250508080612b4990613118565b915050612ac8565b50600081905561119a565b828054612b6890613015565b90600052602060002090601f016020900481019282612b8a5760008555612bd0565b82601f10612ba357805160ff1916838001178555612bd0565b82800160010185558215612bd0579182015b82811115612bd0578251825591602001919060010190612bb5565b506112459291505b808211156112455760008155600101612bd8565b6001600160e01b031981168114611cce57600080fd5b600060208284031215612c1457600080fd5b8135612c1f81612bec565b9392505050565b60005b83811015612c41578181015183820152602001612c29565b8381111561172c5750506000910152565b60008151808452612c6a816020860160208601612c26565b601f01601f19169290920160200192915050565b602081526000612c1f6020830184612c52565b600060208284031215612ca357600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b0381168114611cce57600080fd5b60008060408385031215612ce657600080fd5b8235612cf181612cbe565b946020939093013593505050565b600060208284031215612d1157600080fd5b8135612c1f81612cbe565b600080600060608486031215612d3157600080fd5b8335612d3c81612cbe565b92506020840135612d4c81612cbe565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612d9b57612d9b612d5d565b604052919050565b60006001600160401b03831115612dbc57612dbc612d5d565b612dcf601f8401601f1916602001612d73565b9050828152838383011115612de357600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e0c57600080fd5b81356001600160401b03811115612e2257600080fd5b8201601f81018413612e3357600080fd5b611be684823560208401612da3565b600082601f830112612e5357600080fd5b813560206001600160401b03821115612e6e57612e6e612d5d565b8160051b612e7d828201612d73565b9283528481018201928281019087851115612e9757600080fd5b83870192505b84831015612eb657823582529183019190830190612e9d565b979650505050505050565b60008060408385031215612ed457600080fd5b8235915060208301356001600160401b03811115612ef157600080fd5b612efd85828601612e42565b9150509250929050565b600060208284031215612f1957600080fd5b813560ff81168114612c1f57600080fd5b60008060408385031215612f3d57600080fd5b8235612f4881612cbe565b915060208301358015158114612f5d57600080fd5b809150509250929050565b60008060008060808587031215612f7e57600080fd5b8435612f8981612cbe565b93506020850135612f9981612cbe565b92506040850135915060608501356001600160401b03811115612fbb57600080fd5b8501601f81018713612fcc57600080fd5b612fdb87823560208401612da3565b91505092959194509250565b60008060408385031215612ffa57600080fd5b823561300581612cbe565b91506020830135612f5d81612cbe565b600181811c9082168061302957607f821691505b6020821081141561304a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130ad57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156130dd576130dd6130b4565b500190565b6020808252601c908201527b21b7b73a3930b1ba1034b9903737ba103bb434ba32b634b9ba32b21760211b604082015260600190565b600060001982141561312c5761312c6130b4565b5060010190565b600081600019048311821515161561314d5761314d6130b4565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261317757613177613152565b500490565b60008282101561318e5761318e6130b4565b500390565b634e487b7160e01b600052603160045260246000fd5b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60208082526016908201527522aa241039b2b73a1034b99034b731b7b93932b1ba1760511b604082015260600190565b6000835161323e818460208801612c26565b835190830190613252818360208801612c26565b01949350505050565b60006020828403121561326d57600080fd5b8151612c1f81612cbe565b60006001600160801b0383811690831681811015613298576132986130b4565b039392505050565b60006001600160801b03828116848216808303821115613252576132526130b4565b6000816132d1576132d16130b4565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061330c90830184612c52565b9695505050505050565b60006020828403121561332857600080fd5b8151612c1f81612bec565b60208082526021908201527f45786365656473207065722077616c6c65742070726573616c65206c696d69746040820152601760f91b606082015260800190565b60008261338357613383613152565b50069056fea264697066735822122080b8711563dad012125814ec4be3028f50ec5058ab04ba1701d2de1def1514ea64736f6c634300080b0033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c169513ce2d51add4136593950948b22bd419a5f880cd383d087524dc54f03743b
Deployed Bytecode
0x60806040526004361061023e5760003560e01c806370a082311161013557806370a0823114610593578063715018a6146105b35780638da5cb5b146105c85780638feec86a146105dd57806395d89b41146105fd57806398d5fdca14610612578063a22cb46514610627578063b480bfff14610647578063b88d4fde14610667578063ba41b0c614610687578063c7876ea41461069a578063c87b56dd146106b0578063cc47a40b146106d0578063ccfdd2f8146106f0578063d547cfb714610710578063d5abeb0114610725578063d7224ba01461073b578063dab5f34014610751578063de4b326214610771578063e268e4d314610791578063e757c17d1461040f578063e985e9c5146107b1578063eb8d2444146107d1578063f0325549146107f0578063f2fde38b1461080557600080fd5b806301ffc9a71461024357806306fdde0314610278578063081812fc1461029a578063095ea7b3146102c757806310abbfae146102e957806314a0c628146103095780631570eac21461034057806318160ddd146103605780631f0234d81461037f57806323b872dd146103995780632f745c59146103b957806330176e13146103d957806332322fa9146103f95780633318e2771461040f57806334918dfd146104245780633ccfd60b1461043957806342842e0e1461044e578063453c23101461046e578063474da79a146104845780634b980d67146104a45780634c999f5e146104ba5780634f6ccce7146105335780636352211e146105535780636df4d24114610573575b600080fd5b34801561024f57600080fd5b5061026361025e366004612c02565b610825565b60405190151581526020015b60405180910390f35b34801561028457600080fd5b5061028d610892565b60405161026f9190612c7e565b3480156102a657600080fd5b506102ba6102b5366004612c91565b610924565b60405161026f9190612caa565b3480156102d357600080fd5b506102e76102e2366004612cd3565b6109b4565b005b3480156102f557600080fd5b50610263610304366004612cd3565b610ac8565b34801561031557600080fd5b50610329610324366004612cff565b610bd5565b60408051921515835260208301919091520161026f565b34801561034c57600080fd5b5061026361035b366004612cd3565b610d63565b34801561036c57600080fd5b506000545b60405190815260200161026f565b34801561038b57600080fd5b50600e546102639060ff1681565b3480156103a557600080fd5b506102e76103b4366004612d1c565b610de4565b3480156103c557600080fd5b506103716103d4366004612cd3565b610def565b3480156103e557600080fd5b506102e76103f4366004612dfa565b610f5c565b34801561040557600080fd5b50610371600d5481565b34801561041b57600080fd5b50610371610fa2565b34801561043057600080fd5b506102e7610fb1565b34801561044557600080fd5b506102e7610ffd565b34801561045a57600080fd5b506102e7610469366004612d1c565b6111a2565b34801561047a57600080fd5b50610371600a5481565b34801561049057600080fd5b506102ba61049f366004612c91565b6111bd565b3480156104b057600080fd5b50610371600b5481565b3480156104c657600080fd5b506105096104d5366004612cff565b60136020526000908152604090208054600182015460029092015460ff8216926101009092046001600160a01b0316919084565b6040805194151585526001600160a01b03909316602085015291830152606082015260800161026f565b34801561053f57600080fd5b5061037161054e366004612c91565b6111e7565b34801561055f57600080fd5b506102ba61056e366004612c91565b611249565b34801561057f57600080fd5b5061026361058e366004612ec1565b61125b565b34801561059f57600080fd5b506103716105ae366004612cff565b61130b565b3480156105bf57600080fd5b506102e761139c565b3480156105d457600080fd5b506102ba6113d7565b3480156105e957600080fd5b506102e76105f8366004612f07565b6113e6565b34801561060957600080fd5b5061028d611477565b34801561061e57600080fd5b50610371611486565b34801561063357600080fd5b506102e7610642366004612f2a565b6114ec565b34801561065357600080fd5b50610263610662366004612cff565b6115ae565b34801561067357600080fd5b506102e7610682366004612f68565b6116f9565b6102e7610695366004612ec1565b611732565b3480156106a657600080fd5b5061037160095481565b3480156106bc57600080fd5b5061028d6106cb366004612c91565b6119d7565b3480156106dc57600080fd5b506102e76106eb366004612cd3565b611a11565b3480156106fc57600080fd5b506102e761070b366004612c91565b611a4a565b34801561071c57600080fd5b5061028d611a7e565b34801561073157600080fd5b50610371600c5481565b34801561074757600080fd5b5061037160075481565b34801561075d57600080fd5b506102e761076c366004612c91565b611a8d565b34801561077d57600080fd5b506102e761078c366004612c91565b611ac1565b34801561079d57600080fd5b506102e76107ac366004612c91565b611af5565b3480156107bd57600080fd5b506102636107cc366004612fe7565b611b29565b3480156107dd57600080fd5b50600e5461026390610100900460ff1681565b3480156107fc57600080fd5b506102e7611bee565b34801561081157600080fd5b506102e7610820366004612cff565b611c31565b60006001600160e01b031982166380ac58cd60e01b148061085657506001600160e01b03198216635b5e139f60e01b145b8061087157506001600160e01b0319821663780e9d6360e01b145b8061088c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108a190613015565b80601f01602080910402602001604051908101604052809291908181526020018280546108cd90613015565b801561091a5780601f106108ef5761010080835404028352916020019161091a565b820191906000526020600020905b8154815290600101906020018083116108fd57829003601f168201915b5050505050905090565b6000610931826000541190565b6109985760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109bf82611249565b9050806001600160a01b0316836001600160a01b03161415610a2e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161098f565b336001600160a01b0382161480610a4a5750610a4a8133611b29565b610ab85760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f6044820152781ddb995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b603a1b606482015260840161098f565b610ac3838383611cd1565b505050565b600033610ad36113d7565b6001600160a01b031614610af95760405162461bcd60e51b815260040161098f90613050565b6000610b0484611d2d565b5090508015610b555760405162461bcd60e51b815260206004820152601d60248201527f436f6e747261637420616c72656164792077686974656c69737465642e000000604482015260640161098f565b50506001600160a01b03919091166000818152601360205260408120805460016001600160a81b031990911661010085021781178255600290910193909355600f8054808501825591527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b031916909117905590565b60008060005b600f54811015610d5757600060136000600f8481548110610bfe57610bfe613085565b60009182526020808320909101546001600160a01b03908116845290830193909352604091820190205490516370a0823160e01b8152610100909104909116906370a0823190610c52908890600401612caa565b602060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c93919061309b565b118015610d35575060136000600f8381548110610cb257610cb2613085565b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000206002015460136000600f8481548110610d0b57610d0b613085565b60009182526020808320909101546001600160a01b03168352820192909252604001902060010154105b15610d4557600194909350915050565b610d506001826130ca565b9050610bdb565b50600093849350915050565b600033610d6e6113d7565b6001600160a01b031614610d945760405162461bcd60e51b815260040161098f90613050565b6000610d9f84611d2d565b50905080610dbf5760405162461bcd60e51b815260040161098f906130e2565b50506001600160a01b0391909116600090815260136020526040902060020155600190565b610ac3838383611db0565b6000610dfa8361130b565b8210610e535760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161098f565b600080549080805b83811015610efc576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610ead57805192505b876001600160a01b0316836001600160a01b03161415610ee95786841415610edb5750935061088c92505050565b83610ee581613118565b9450505b5080610ef481613118565b915050610e5b565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161098f565b33610f656113d7565b6001600160a01b031614610f8b5760405162461bcd60e51b815260040161098f90613050565b8051610f9e906011906020840190612b5c565b5050565b6000610fac611486565b905090565b33610fba6113d7565b6001600160a01b031614610fe05760405162461bcd60e51b815260040161098f90613050565b600e805461ff001981166101009182900460ff1615909102179055565b336110066113d7565b6001600160a01b03161461102c5760405162461bcd60e51b815260040161098f90613050565b4760006103e861103e836101c2613133565b6110489190613168565b905060006103e861105a8460e1613133565b6110649190613168565b905060006103e86110768560e1613133565b6110809190613168565b60405190915073ffe5cbcddf2bd1b4dc3c00455d4cdccf20f775879084156108fc029085906000818181858888f193505050501580156110c4573d6000803e3d6000fd5b5060405173e5c07acf973ccda3a141efbb2e829049591f938e9083156108fc029084906000818181858888f19350505050158015611106573d6000803e3d6000fd5b5060405173c87c8bf777701ccffb1230051e33f0524e5975b59082156108fc029083906000818181858888f19350505050158015611148573d6000803e3d6000fd5b5060008161115684866130ca565b61116091906130ca565b61116a908661317c565b604051909150339082156108fc029083906000818181858888f1935050505015801561119a573d6000803e3d6000fd5b505050505050565b610ac3838383604051806020016040528060008152506116f9565b600f81815481106111cd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000805482106112455760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161098f565b5090565b600061125482612132565b5192915050565b600082815b83518110156112ff57600084828151811061127d5761127d613085565b602002602001015190508083116112bf5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506112ec565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806112f781613118565b915050611260565b50601254149392505050565b60006001600160a01b0382166113775760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161098f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b336113a56113d7565b6001600160a01b0316146113cb5760405162461bcd60e51b815260040161098f90613050565b6113d560006122db565b565b6008546001600160a01b031690565b336113ef6113d7565b6001600160a01b0316146114155760405162461bcd60e51b815260040161098f90613050565b8060ff166001148061142a57508060ff166002145b61146f5760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b210383932b9b0b63290383430b9b29760511b604482015260640161098f565b60ff16600d55565b6060600280546108a190613015565b60006117d561149460005490565b106114a757600954610fac906004613133565b610c1d6114b360005490565b106114c657600954610fac906003613133565b61044d6114d260005490565b106114e557600954610fac906002613133565b5060095490565b6001600160a01b0382163314156115425760405162461bcd60e51b815260206004820152601a60248201527922a9219b9918a09d1030b8383937bb32903a379031b0b63632b960311b604482015260640161098f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000336115b96113d7565b6001600160a01b0316146115df5760405162461bcd60e51b815260040161098f90613050565b6000806115eb84611d2d565b915091508161160c5760405162461bcd60e51b815260040161098f906130e2565b600f805461161c9060019061317c565b8154811061162c5761162c613085565b600091825260209091200154600f80546001600160a01b03909216918390811061165857611658613085565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600f80548061169757611697613193565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0386168252601390526040812080546001600160a81b0319168155600181810183905560029091019190915592505050919050565b611704848484611db0565b6117108484848461232d565b61172c5760405162461bcd60e51b815260040161098f906131a9565b50505050565b600054600e54610100900460ff166117825760405162461bcd60e51b815260206004820152601360248201527229b0b6329034b9903737ba1030b1ba34bb329760691b604482015260640161098f565b600034116117cb5760405162461bcd60e51b815260206004820152601660248201527526bab9ba1039b2b7321022aa24103a379036b4b73a1760511b604482015260640161098f565b600c548111156118095760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b604482015260640161098f565b600c5461181684836130ca565b111561187a5760405162461bcd60e51b815260206004820152602d60248201527f526571756573746564207175616e7469747920776f756c64206578636565642060448201526c3a37ba30b61039bab838363c9760991b606482015260840161098f565b600e5460ff161561193257348361188f611486565b6118999190613133565b11156118b75760405162461bcd60e51b815260040161098f906131fc565b600a548311156119095760405162461bcd60e51b815260206004820152601d60248201527f457863656564732077616c6c65742070726573616c65206c696d69742e000000604482015260640161098f565b600d546001141561191e5761191e838361242b565b600d5460021415610ac357610ac383612564565b348361193c611486565b6119469190613133565b11156119645760405162461bcd60e51b815260040161098f906131fc565b600b548311156119cd5760405162461bcd60e51b815260206004820152602e60248201527f4578636565647320706572207472616e73616374696f6e206c696d697420666f60448201526d3910383ab13634b19039b0b6329760911b606482015260840161098f565b610ac3338461276b565b60606119e1611a7e565b6119ea83612785565b6040516020016119fb92919061322c565b6040516020818303038152906040529050919050565b33611a1a6113d7565b6001600160a01b031614611a405760405162461bcd60e51b815260040161098f90613050565b610f9e828261276b565b33611a536113d7565b6001600160a01b031614611a795760405162461bcd60e51b815260040161098f90613050565b600b55565b6060601180546108a190613015565b33611a966113d7565b6001600160a01b031614611abc5760405162461bcd60e51b815260040161098f90613050565b601255565b33611aca6113d7565b6001600160a01b031614611af05760405162461bcd60e51b815260040161098f90613050565b600955565b33611afe6113d7565b6001600160a01b031614611b245760405162461bcd60e51b815260040161098f90613050565b600a55565b60105460405163c455279160e01b81526000916001600160a01b039081169190841690829063c455279190611b62908890600401612caa565b602060405180830381865afa158015611b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba3919061325b565b6001600160a01b03161415611bbc57600191505061088c565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b33611bf76113d7565b6001600160a01b031614611c1d5760405162461bcd60e51b815260040161098f90613050565b600e805460ff19811660ff90911615179055565b33611c3a6113d7565b6001600160a01b031614611c605760405162461bcd60e51b815260040161098f90613050565b6001600160a01b038116611cc55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161098f565b611cce816122db565b50565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008060005b600f54811015610d5757600f8181548110611d5057611d50613085565b6000918252602090912001546001600160a01b038581169116148015611d8e57506001600160a01b03841660009081526013602052604090205460ff165b15611d9e57600194909350915050565b611da96001826130ca565b9050611d33565b6000611dbb82612132565b80519091506000906001600160a01b0316336001600160a01b03161480611df2575033611de784610924565b6001600160a01b0316145b80611e0457508151611e049033611b29565b905080611e6e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161098f565b846001600160a01b031682600001516001600160a01b031614611ee25760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161098f565b6001600160a01b038416611f465760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161098f565b611f566000848460000151611cd1565b6001600160a01b0385166000908152600460205260408120805460019290611f889084906001600160801b0316613278565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611fd4918591166132a0565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561205b8460016130ca565b6000818152600360205260409020549091506001600160a01b03166120ec57612085816000541190565b156120ec5760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461119a565b6040805180820190915260008082526020820152612151826000541190565b6121b05760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161098f565b60007f00000000000000000000000000000000000000000000000000000000000000648310612211576122037f00000000000000000000000000000000000000000000000000000000000000648461317c565b61220e9060016130ca565b90505b825b81811061227a576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561226757949350505050565b5080612272816132c2565b915050612213565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161098f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561242057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123719033908990889088906004016132d9565b6020604051808303816000875af19250505080156123ac575060408051601f3d908101601f191682019092526123a991810190613316565b60015b612406573d8080156123da576040519150601f19603f3d011682016040523d82523d6000602084013e6123df565b606091505b5080516123fe5760405162461bcd60e51b815260040161098f906131a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611be6565b506001949350505050565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050612469818361125b565b6124b55760405162461bcd60e51b815260206004820152601d60248201527f596f7520617265206e6f74206f6e207468652077686974656c6973742e000000604482015260640161098f565b600a54336000908152601460205260409020600101546124d69085906130ca565b11156124f45760405162461bcd60e51b815260040161098f90613333565b3360009081526014602052604090205460ff1661252657336000908152601460205260409020805460ff191660011790555b336000908152601460205260409020600101546125449084906130ca565b33600081815260146020526040902060010191909155610ac3908461276b565b60008061257033610bd5565b91509150816126005760405162461bcd60e51b815260206004820152605060248201527f596f7520617265206e6f74206120686f6c646572206f6620612077686974656c60448201527f697374656420636f6c6c656374696f6e207769746820617661696c61626c652060648201526f39b837ba39903932b6b0b4b734b7339760811b608482015260a40161098f565b600a54336000908152601460205260409020600201546126219085906130ca565b111561263f5760405162461bcd60e51b815260040161098f90613333565b3360009081526014602052604090205460ff16156126f457336000908152601460205260409020600201546126be5760136000600f838154811061268557612685613085565b60009182526020808320909101546001600160a01b0316835282019290925260400181206001018054916126b883613118565b91905055505b336000908152601460205260409020600201546126dc9084906130ca565b336000908152601460205260409020600201556119cd565b336000908152601460205260408120805460ff19166001178155600201849055600f805460139291908490811061272d5761272d613085565b60009182526020808320909101546001600160a01b03168352820192909252604001812060010180549161276083613118565b9190505550610ac333845b610f9e828260405180602001604052806000815250612882565b6060816127a95750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127d357806127bd81613118565b91506127cc9050600a83613168565b91506127ad565b6000816001600160401b038111156127ed576127ed612d5d565b6040519080825280601f01601f191660200182016040528015612817576020820181803683370190505b5090505b8415611be65761282c60018361317c565b9150612839600a86613374565b6128449060306130ca565b60f81b81838151811061285957612859613085565b60200101906001600160f81b031916908160001a90535061287b600a86613168565b945061281b565b6000546001600160a01b0384166128e55760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161098f565b6128f0816000541190565b1561293d5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161098f565b7f00000000000000000000000000000000000000000000000000000000000000648311156129b85760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161098f565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612a149087906132a0565b6001600160801b03168152602001858360200151612a3291906132a0565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612b515760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612b15600088848861232d565b612b315760405162461bcd60e51b815260040161098f906131a9565b81612b3b81613118565b9250508080612b4990613118565b915050612ac8565b50600081905561119a565b828054612b6890613015565b90600052602060002090601f016020900481019282612b8a5760008555612bd0565b82601f10612ba357805160ff1916838001178555612bd0565b82800160010185558215612bd0579182015b82811115612bd0578251825591602001919060010190612bb5565b506112459291505b808211156112455760008155600101612bd8565b6001600160e01b031981168114611cce57600080fd5b600060208284031215612c1457600080fd5b8135612c1f81612bec565b9392505050565b60005b83811015612c41578181015183820152602001612c29565b8381111561172c5750506000910152565b60008151808452612c6a816020860160208601612c26565b601f01601f19169290920160200192915050565b602081526000612c1f6020830184612c52565b600060208284031215612ca357600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b0381168114611cce57600080fd5b60008060408385031215612ce657600080fd5b8235612cf181612cbe565b946020939093013593505050565b600060208284031215612d1157600080fd5b8135612c1f81612cbe565b600080600060608486031215612d3157600080fd5b8335612d3c81612cbe565b92506020840135612d4c81612cbe565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612d9b57612d9b612d5d565b604052919050565b60006001600160401b03831115612dbc57612dbc612d5d565b612dcf601f8401601f1916602001612d73565b9050828152838383011115612de357600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e0c57600080fd5b81356001600160401b03811115612e2257600080fd5b8201601f81018413612e3357600080fd5b611be684823560208401612da3565b600082601f830112612e5357600080fd5b813560206001600160401b03821115612e6e57612e6e612d5d565b8160051b612e7d828201612d73565b9283528481018201928281019087851115612e9757600080fd5b83870192505b84831015612eb657823582529183019190830190612e9d565b979650505050505050565b60008060408385031215612ed457600080fd5b8235915060208301356001600160401b03811115612ef157600080fd5b612efd85828601612e42565b9150509250929050565b600060208284031215612f1957600080fd5b813560ff81168114612c1f57600080fd5b60008060408385031215612f3d57600080fd5b8235612f4881612cbe565b915060208301358015158114612f5d57600080fd5b809150509250929050565b60008060008060808587031215612f7e57600080fd5b8435612f8981612cbe565b93506020850135612f9981612cbe565b92506040850135915060608501356001600160401b03811115612fbb57600080fd5b8501601f81018713612fcc57600080fd5b612fdb87823560208401612da3565b91505092959194509250565b60008060408385031215612ffa57600080fd5b823561300581612cbe565b91506020830135612f5d81612cbe565b600181811c9082168061302957607f821691505b6020821081141561304a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130ad57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156130dd576130dd6130b4565b500190565b6020808252601c908201527b21b7b73a3930b1ba1034b9903737ba103bb434ba32b634b9ba32b21760211b604082015260600190565b600060001982141561312c5761312c6130b4565b5060010190565b600081600019048311821515161561314d5761314d6130b4565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261317757613177613152565b500490565b60008282101561318e5761318e6130b4565b500390565b634e487b7160e01b600052603160045260246000fd5b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60208082526016908201527522aa241039b2b73a1034b99034b731b7b93932b1ba1760511b604082015260600190565b6000835161323e818460208801612c26565b835190830190613252818360208801612c26565b01949350505050565b60006020828403121561326d57600080fd5b8151612c1f81612cbe565b60006001600160801b0383811690831681811015613298576132986130b4565b039392505050565b60006001600160801b03828116848216808303821115613252576132526130b4565b6000816132d1576132d16130b4565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061330c90830184612c52565b9695505050505050565b60006020828403121561332857600080fd5b8151612c1f81612bec565b60208082526021908201527f45786365656473207065722077616c6c65742070726573616c65206c696d69746040820152601760f91b606082015260800190565b60008261338357613383613152565b50069056fea264697066735822122080b8711563dad012125814ec4be3028f50ec5058ab04ba1701d2de1def1514ea64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c169513ce2d51add4136593950948b22bd419a5f880cd383d087524dc54f03743b
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _root (bytes32): 0x69513ce2d51add4136593950948b22bd419a5f880cd383d087524dc54f03743b
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 69513ce2d51add4136593950948b22bd419a5f880cd383d087524dc54f03743b
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.