ERC-721
Overview
Max Total Supply
1,212 MORPHIES
Holders
217
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
12 MORPHIESLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaMorphies
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /** __ __ _ __ __ _ _ | \/ | | | | \/ | | | (_) | \ / | ___| |_ __ _| \ / | ___ _ __ _ __ | |__ _ ___ ___ | |\/| |/ _ | __/ _` | |\/| |/ _ \| '__| '_ \| '_ \| |/ _ / __| | | | | __| || (_| | | | | (_) | | | |_) | | | | | __\__ \ |_| |_|\___|\__\__,_|_| |_|\___/|_| | .__/|_| |_|_|\___|___/ | | |_| */ import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract MetaMorphies is ERC721A, Ownable, ReentrancyGuard { using SafeMath for uint256; string _baseTokenURI; bool internal _isWhitelistMintActive = false; bool internal _isPublicMintActive = false; /* Withdraw adddresses */ address t1 = 0x7E9b094cE2BB9d9fe8761BDa3A53B6de02a35Bd6; address t2 = 0x180b7621b0B957e5CD68dC0C0a469adC996F314E; address t3 = 0x5d860c2E6Dd51BEB36F63f410fA00332e7B8e813; address t4 = 0x3c238729d5076f9C5d7eD4DBa88C8c209BF508F5; address t5 = 0xfb94D6cC53Ca85E77Dfd494988E40F38DA9B3278; address t6 = 0x1632e583835246Cb485BCbc39d84160a1A9324dD; /* emergency address */ address public emergencyAddress = 0x7E9b094cE2BB9d9fe8761BDa3A53B6de02a35Bd6; /* Whitelist mint price */ uint256 public whitelistMintPrice; /* Public mint price */ uint256 public publicMintPrice; /* Max token supply */ uint256 public MAX_SUPPLY = 5000; uint256 public maxWhitelistMintable = 2001; /* Number of tokens minted from whitelist mint */ uint256 public numberOfWhitelistMints; /* Merkle root for verifying the whitelist */ bytes32 public whitelistMerkleRoot; /* Event for new morphie mint */ event MorphieAdopted( address indexed owner, uint256 amountOfTokens, uint256 totalPrice ); constructor() ERC721A("MetaMorphies", "MORPHIES") { whitelistMintPrice = 0.01 ether; publicMintPrice = 0.02 ether; } /** * @dev Mints 'num' number of morphies to msg.sender. * @param num the number of tokens to be minted. * Only 10 tokens can be minted per wallet, including the whitelist mints. */ function adoptMorphies(uint256 num) external payable nonReentrant { require(_isPublicMintActive, "MetaMorphies: Public mint is not active"); require(_numberMinted(msg.sender) + num < 11, "MetaMorphies: Per wallet mint limit reached"); uint256 totalPrice = publicMintPrice.mul(num); require( totalPrice == msg.value, "MetaMorphies: Incorrect amount of eth sent" ); require( totalSupply() + num <= MAX_SUPPLY, "MetaMorphies: Exceeds maximum Morphies supply" ); _safeMint(msg.sender, num); emit MorphieAdopted(msg.sender, num, totalPrice); } /** * @dev Gives away reserved morphies. * @param _to the address to which the tokens will be minted. * @param _amount the amount of tokens to give away. */ function giveAway(address _to, uint256 _amount) external onlyOwner { _safeMint(_to, _amount); } /** * @dev Whitelist mints a morphie. * @param count the amount of tokens to be whitelist minted. * @param allowance the amount of tokens the address is allowed to whitelist mint. * @param proof the merkle proof for the address. */ function whitelistMint( uint256 count, uint256 allowance, bytes32[] calldata proof ) external payable nonReentrant { string memory payload = string(abi.encodePacked(_msgSender())); require( _isWhitelistMintActive, "MetaMorphies: Whitelist minting is not active" ); require(numberOfWhitelistMints + count < maxWhitelistMintable, "MetaMorphies: Whitelist limit maxxed out."); require( _verify( _leaf(Strings.toString(allowance), payload), proof, whitelistMerkleRoot ), "Invalid Merkle Tree proof supplied." ); uint64 wlMinted = _getWlMinted(msg.sender); require( wlMinted + count <= allowance, "Exceeds whitelist mint limit." ); uint256 totalPrice = whitelistMintPrice.mul(count); require(totalPrice == msg.value, "Insufficient ETH sent."); numberOfWhitelistMints = numberOfWhitelistMints + count; _setWlMinted(msg.sender, wlMinted + uint64(count)); _safeMint(msg.sender, count); emit MorphieAdopted(msg.sender, count, totalPrice); } /** * @dev Changes the public mint active state. @param isActive the new value for _isPublicMintActive */ function setPublicMintActive(bool isActive) external onlyOwner { _isPublicMintActive = isActive; } /** * @dev Changes the whitelist mint active state. * @param isActive The new value for _isWhitelistMintActive */ function setWhitelistMintActive(bool isActive) external onlyOwner { _isWhitelistMintActive = isActive; } /** * @dev Verify merkle proof. * @param leaf the leaf of the tree to verify. * @param proof the merkle proof. */ function _verify( bytes32 leaf, bytes32[] memory proof, bytes32 root ) internal pure returns (bool) { return MerkleProof.verify(proof, root, leaf); } /** * @dev Get a leaf of the merkle tree. * @param allowance The whitelist mint allownace for msg.sender. * @param payload string encoded address of msg.sender. */ function _leaf(string memory allowance, string memory payload) internal pure returns (bytes32) { return keccak256(abi.encodePacked(payload, allowance)); } /** * @dev Get whitelist allowance for msg.sender. * @param allowance The whitelist mint allowance for msg.sender. * @param proof The merkle proof. */ function getAllowance(string memory allowance, bytes32[] calldata proof) external view returns (string memory) { string memory payload = string(abi.encodePacked(_msgSender())); require( _verify(_leaf(allowance, payload), proof, whitelistMerkleRoot), "Invalid Merkle Tree proof supplied." ); return allowance; } /** * @dev Returns the number of tokens minted via whitelistMint * @param user The address of the user. */ function _getWlMinted(address user) private view returns (uint64) { return _getAux(user); } /** * @dev Sets the number of tokens minted per user via whitelistMint * @param user The user who mints the tokens. * @param wlMinted The amount of tokens. */ function _setWlMinted(address user, uint64 wlMinted) private { _setAux(user, wlMinted); } /** * @dev Update the root of the whitelist merkle tree. * @param _whitelistMerkleRoot The new root of the tree. */ function setWhitelistMerkleRoot(bytes32 _whitelistMerkleRoot) external onlyOwner { whitelistMerkleRoot = _whitelistMerkleRoot; } /** * @dev Set base URI. * @param baseURI The new base URI. */ function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } /** * @dev Returns the token URI for a token. * @param _tokenId The id of the token. */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "MetaMorphies: Token does not exist"); return string(abi.encodePacked(_baseTokenURI, Strings.toString(_tokenId))); } /** @dev Sets the public mint price @param _publicMintPrice The new public mint price */ function setPublicMintPrice(uint256 _publicMintPrice) external onlyOwner { require(!_isPublicMintActive, "MetaMorphies: Public mint is active"); publicMintPrice = _publicMintPrice; } /** * @dev Sets the whitelist mint price. * @param _whitelistMintPrice the new whitelist mint price. */ function setWhitelistMintPrice(uint256 _whitelistMintPrice) external onlyOwner { require( !_isWhitelistMintActive, "MetaMorphies: Whitelist mint is active" ); whitelistMintPrice = _whitelistMintPrice; } /** * @dev Sets the emergency safe address. * @param _emergencyAddress The new emergency address. */ function setEmergencyAddress(address _emergencyAddress) external onlyOwner { require( _emergencyAddress != address(0), "MetaMorphies: Emergency address can't be set to zero address" ); emergencyAddress = _emergencyAddress; } /** * @dev Sets the max whitelist mintable amount. * @param maxMintable The new max whitelist mintable amount. */ function setMaxWhitelistMintable(uint256 maxMintable) external onlyOwner { maxWhitelistMintable = maxMintable; } /** * @dev Check if whitelist mint is currently active. */ function isWhitelistMintActive() external view returns (bool) { return _isWhitelistMintActive; } /** * @dev Check if public mint is currently active. */ function isPublicMintActive() external view returns (bool) { return _isPublicMintActive; } /** * @dev Pays out revenue from the contract. */ function withdrawAll() external payable onlyOwner nonReentrant { uint256 _balance = address(this).balance; uint256 amountOne = _balance.mul(3200).div(10000); uint256 amountTwo = _balance.mul(3100).div(10000); uint256 amountThree = _balance.mul(2600).div(10000); uint256 amountFour = _balance.mul(500).div(10000); uint256 amountFive = _balance.mul(400).div(10000); uint256 amountSix = _balance.mul(200).div(10000); (bool t1Success, ) = t1.call{value: amountOne}(""); require(t1Success, "Failed t1 payout."); (bool t2Success, ) = t2.call{value: amountTwo}(""); require(t2Success, "Failed t2 payout."); (bool t3Success, ) = t3.call{value: amountThree}(""); require(t3Success, "Failed t3 payout."); (bool t4Success, ) = t4.call{value: amountFour}(""); require(t4Success, "Failed t4 payout."); (bool t5Success, ) = t5.call{value: amountFive}(""); require(t5Success, "Failed t5 payout."); (bool t6Success, ) = t6.call{value: amountSix}(""); require(t6Success, "Failed t6 payout."); } /** @dev Emergency withdraws everything. */ function emergencyWithdraw() external onlyOwner { (bool success, ) = emergencyAddress.call{value: address(this).balance}(""); require(success, "MetaMorphies: Withdraw failed."); } } /* *(%&@@@&%/, ,%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# /@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@& @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@& #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.@@@@@@@& .. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@& .. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, &@@@@@@@@@@@, @@@@@@@@@@@@/ #@@@@@@& @@@@@@@, */
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; 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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // 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) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev See {IERC721Enumerable-totalSupply}. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public override view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _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 virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _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 || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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 TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * 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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * 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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public override view returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). 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 override view 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"); } }
// 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 (last updated v4.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { 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 = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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); /** * @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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"AuxQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPrice","type":"uint256"}],"name":"MorphieAdopted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"adoptMorphies","outputs":[],"stateMutability":"payable","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":"emergencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"allowance","type":"string"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"getAllowance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isPublicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWhitelistMintable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfWhitelistMints","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":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_emergencyAddress","type":"address"}],"name":"setEmergencyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintable","type":"uint256"}],"name":"setMaxWhitelistMintable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setWhitelistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistMintPrice","type":"uint256"}],"name":"setWhitelistMintPrice","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":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600b8054757e9b094ce2bb9d9fe8761bda3a53b6de02a35bd600006001600160b01b0319909116179055600c80546001600160a01b031990811673180b7621b0b957e5cd68dc0c0a469adc996f314e17909155600d80548216735d860c2e6dd51beb36f63f410fa00332e7b8e813179055600e80548216733c238729d5076f9c5d7ed4dba88c8c209bf508f5179055600f8054821673fb94d6cc53ca85e77dfd494988e40f38da9b3278179055601080548216731632e583835246cb485bcbc39d84160a1a9324dd17905560118054909116737e9b094ce2bb9d9fe8761bda3a53b6de02a35bd61790556113886014556107d16015553480156200010757600080fd5b50604080518082018252600c81526b4d6574614d6f72706869657360a01b6020808301918252835180850190945260088452674d4f52504849455360c01b9084015281519192916200015c91600291620001f7565b50805162000172906003906020840190620001f7565b505060008055506200018433620001a5565b6001600955662386f26fc1000060125566470de4df820000601355620002da565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000205906200029d565b90600052602060002090601f01602090048101928262000229576000855562000274565b82601f106200024457805160ff191683800117855562000274565b8280016001018555821562000274579182015b828111156200027457825182559160200191906001019062000257565b506200028292915062000286565b5090565b5b8082111562000282576000815560010162000287565b600181811c90821680620002b257607f821691505b60208210811415620002d457634e487b7160e01b600052602260045260246000fd5b50919050565b612e8580620002ea6000396000f3fe6080604052600436106102515760003560e01c806370a0823111610139578063bd32fb66116100b6578063dc53fd921161007a578063dc53fd9214610684578063e985e9c51461069a578063ec387c6a146106e3578063f2fde38b14610703578063fabd1d2d14610723578063fddf3f731461073b57600080fd5b8063bd32fb66146105fc578063c4be5b591461061c578063c87b56dd1461062f578063ca8001441461064f578063db2e21bc1461066f57600080fd5b806395d89b41116100fd57806395d89b4114610571578063a22cb46514610586578063a611708e146105a6578063aa98e0c6146105c6578063b88d4fde146105dc57600080fd5b806370a0823114610503578063715018a6146105235780637b1e370914610538578063853828b61461054b5780638da5cb5b1461055357600080fd5b80632d6b6224116101d257806342842e0e1161019657806342842e0e146104435780634f6ccce71461046357806355f804b3146104835780635d82cf6e146104a35780636352211e146104c357806366fddfa9146104e357600080fd5b80632d6b6224146103c45780632f745c59146103e157806332cb6b0c1461040157806335528cad1461041757806335c6aaf81461042d57600080fd5b806318160ddd1161021957806318160ddd1461032b57806318bea1c41461034457806323b872dd146103645780632aa11ffb146103845780632b707c71146103a457600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e55780631721e9f014610307575b600080fd5b34801561026257600080fd5b50610276610271366004612982565b61075b565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107ad565b6040516102829190612c05565b3480156102b957600080fd5b506102cd6102c8366004612969565b61083f565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004612924565b610883565b005b34801561031357600080fd5b5061031d60165481565b604051908152602001610282565b34801561033757600080fd5b506001546000540361031d565b34801561035057600080fd5b5061030561035f36600461294e565b610911565b34801561037057600080fd5b5061030561037f366004612843565b610957565b34801561039057600080fd5b5061030561039f3660046127f5565b610962565b3480156103b057600080fd5b506103056103bf36600461294e565b610a2a565b3480156103d057600080fd5b50600b54610100900460ff16610276565b3480156103ed57600080fd5b5061031d6103fc366004612924565b610a6e565b34801561040d57600080fd5b5061031d60145481565b34801561042357600080fd5b5061031d60155481565b34801561043957600080fd5b5061031d60125481565b34801561044f57600080fd5b5061030561045e366004612843565b610bfd565b34801561046f57600080fd5b5061031d61047e366004612969565b610c18565b34801561048f57600080fd5b5061030561049e3660046129bc565b610c85565b3480156104af57600080fd5b506103056104be366004612969565b610cc6565b3480156104cf57600080fd5b506102cd6104de366004612969565b610d59565b3480156104ef57600080fd5b506102a06104fe3660046129f0565b610d6b565b34801561050f57600080fd5b5061031d61051e3660046127f5565b610e18565b34801561052f57600080fd5b50610305610e66565b610305610546366004612969565b610e9c565b6103056110e3565b34801561055f57600080fd5b506008546001600160a01b03166102cd565b34801561057d57600080fd5b506102a0611565565b34801561059257600080fd5b506103056105a13660046128fa565b611574565b3480156105b257600080fd5b506103056105c1366004612969565b61160a565b3480156105d257600080fd5b5061031d60175481565b3480156105e857600080fd5b506103056105f736600461287f565b61169b565b34801561060857600080fd5b50610305610617366004612969565b6116ec565b61030561062a366004612a58565b61171b565b34801561063b57600080fd5b506102a061064a366004612969565b6119f7565b34801561065b57600080fd5b5061030561066a366004612924565b611a8b565b34801561067b57600080fd5b50610305611abf565b34801561069057600080fd5b5061031d60135481565b3480156106a657600080fd5b506102766106b5366004612810565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106ef57600080fd5b506103056106fe366004612969565b611b8f565b34801561070f57600080fd5b5061030561071e3660046127f5565b611bbe565b34801561072f57600080fd5b50600b5460ff16610276565b34801561074757600080fd5b506011546102cd906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b148061078c57506001600160e01b03198216635b5e139f60e01b145b806107a757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546107bc90612d77565b80601f01602080910402602001604051908101604052809291908181526020018280546107e890612d77565b80156108355780601f1061080a57610100808354040283529160200191610835565b820191906000526020600020905b81548152906001019060200180831161081857829003601f168201915b5050505050905090565b600061084a82611c56565b610867576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061088e82610d59565b9050806001600160a01b0316836001600160a01b031614156108c35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108e357506108e181336106b5565b155b15610901576040516367d9dca160e11b815260040160405180910390fd5b61090c838383611c81565b505050565b6008546001600160a01b031633146109445760405162461bcd60e51b815260040161093b90612c5b565b60405180910390fd5b600b805460ff1916911515919091179055565b61090c838383611cdd565b6008546001600160a01b0316331461098c5760405162461bcd60e51b815260040161093b90612c5b565b6001600160a01b038116610a085760405162461bcd60e51b815260206004820152603c60248201527f4d6574614d6f7270686965733a20456d657267656e637920616464726573732060448201527f63616e27742062652073657420746f207a65726f206164647265737300000000606482015260840161093b565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610a545760405162461bcd60e51b815260040161093b90612c5b565b600b80549115156101000261ff0019909216919091179055565b6000610a7983610e18565b8210610ad25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161093b565b6000610ae16001546000540390565b905060008060005b83811015610b9d57600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215610b4e57805192505b876001600160a01b0316836001600160a01b03161415610b8a5786841415610b7c575093506107a792505050565b83610b8681612db2565b9450505b5080610b9581612db2565b915050610ae9565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161093b565b61090c8383836040518060200160405280600081525061169b565b6000610c276001546000540390565b8210610c815760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161093b565b5090565b6008546001600160a01b03163314610caf5760405162461bcd60e51b815260040161093b90612c5b565b8051610cc290600a906020840190612659565b5050565b6008546001600160a01b03163314610cf05760405162461bcd60e51b815260040161093b90612c5b565b600b54610100900460ff1615610d545760405162461bcd60e51b815260206004820152602360248201527f4d6574614d6f7270686965733a205075626c6963206d696e742069732061637460448201526269766560e81b606482015260840161093b565b601355565b6000610d6482611ef1565b5192915050565b6060600033604051602001610d98919060609190911b6bffffffffffffffffffffffff1916815260140190565b6040516020818303038152906040529050610df3610db6868361200b565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601754915061203e9050565b610e0f5760405162461bcd60e51b815260040161093b90612c18565b50929392505050565b60006001600160a01b038216610e41576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610e905760405162461bcd60e51b815260040161093b90612c5b565b610e9a6000612053565b565b60026009541415610ebf5760405162461bcd60e51b815260040161093b90612c90565b6002600955600b54610100900460ff16610f2b5760405162461bcd60e51b815260206004820152602760248201527f4d6574614d6f7270686965733a205075626c6963206d696e74206973206e6f746044820152662061637469766560c81b606482015260840161093b565b600b81610f37336120a5565b610f419190612cc7565b10610fa25760405162461bcd60e51b815260206004820152602b60248201527f4d6574614d6f7270686965733a205065722077616c6c6574206d696e74206c6960448201526a1b5a5d081c995858da195960aa1b606482015260840161093b565b601354600090610fb290836120fa565b90503481146110165760405162461bcd60e51b815260206004820152602a60248201527f4d6574614d6f7270686965733a20496e636f727265637420616d6f756e74206f6044820152691988195d1a081cd95b9d60b21b606482015260840161093b565b601454826110276001546000540390565b6110319190612cc7565b11156110955760405162461bcd60e51b815260206004820152602d60248201527f4d6574614d6f7270686965733a2045786365656473206d6178696d756d204d6f60448201526c72706869657320737570706c7960981b606482015260840161093b565b61109f338361210d565b604080518381526020810183905233917fedc1e4a1e940345f6fc5a7b8db6832366adc2f8c9b170d964c40ddb035ed0f85910160405180910390a250506001600955565b6008546001600160a01b0316331461110d5760405162461bcd60e51b815260040161093b90612c5b565b600260095414156111305760405162461bcd60e51b815260040161093b90612c90565b600260095547600061115061271061114a84610c806120fa565b90612127565b9050600061116661271061114a85610c1c6120fa565b9050600061117c61271061114a86610a286120fa565b9050600061119261271061114a876101f46120fa565b905060006111a861271061114a886101906120fa565b905060006111bd61271061114a8960c86120fa565b600b54604051919250600091620100009091046001600160a01b03169088908381818185875af1925050503d8060008114611214576040519150601f19603f3d011682016040523d82523d6000602084013e611219565b606091505b505090508061125e5760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a18903830bcb7baba1760791b604482015260640161093b565b600c546040516000916001600160a01b03169088908381818185875af1925050503d80600081146112ab576040519150601f19603f3d011682016040523d82523d6000602084013e6112b0565b606091505b50509050806112f55760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a19103830bcb7baba1760791b604482015260640161093b565b600d546040516000916001600160a01b03169088908381818185875af1925050503d8060008114611342576040519150601f19603f3d011682016040523d82523d6000602084013e611347565b606091505b505090508061138c5760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a19903830bcb7baba1760791b604482015260640161093b565b600e546040516000916001600160a01b03169088908381818185875af1925050503d80600081146113d9576040519150601f19603f3d011682016040523d82523d6000602084013e6113de565b606091505b50509050806114235760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a1a103830bcb7baba1760791b604482015260640161093b565b600f546040516000916001600160a01b03169088908381818185875af1925050503d8060008114611470576040519150601f19603f3d011682016040523d82523d6000602084013e611475565b606091505b50509050806114ba5760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a1a903830bcb7baba1760791b604482015260640161093b565b6010546040516000916001600160a01b03169088908381818185875af1925050503d8060008114611507576040519150601f19603f3d011682016040523d82523d6000602084013e61150c565b606091505b50509050806115515760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a1b103830bcb7baba1760791b604482015260640161093b565b505060016009555050505050505050505050565b6060600380546107bc90612d77565b6001600160a01b03821633141561159e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146116345760405162461bcd60e51b815260040161093b90612c5b565b600b5460ff16156116965760405162461bcd60e51b815260206004820152602660248201527f4d6574614d6f7270686965733a2057686974656c697374206d696e742069732060448201526561637469766560d01b606482015260840161093b565b601255565b6116a6848484611cdd565b6001600160a01b0383163b151580156116c857506116c684848484612133565b155b156116e6576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146117165760405162461bcd60e51b815260040161093b90612c5b565b601755565b6002600954141561173e5760405162461bcd60e51b815260040161093b90612c90565b6002600955604080513360601b6bffffffffffffffffffffffff19166020820152815160148183030181526034909101909152600b5460ff166117d95760405162461bcd60e51b815260206004820152602d60248201527f4d6574614d6f7270686965733a2057686974656c697374206d696e74696e672060448201526c6973206e6f742061637469766560981b606482015260840161093b565b601554856016546117ea9190612cc7565b106118495760405162461bcd60e51b815260206004820152602960248201527f4d6574614d6f7270686965733a2057686974656c697374206c696d6974206d616044820152683c3c32b21037baba1760b91b606482015260840161093b565b61189b61185e6118588661222a565b8361200b565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601754915061203e9050565b6118b75760405162461bcd60e51b815260040161093b90612c18565b60006118c233612327565b9050846118d8876001600160401b038416612cc7565b11156119265760405162461bcd60e51b815260206004820152601d60248201527f457863656564732077686974656c697374206d696e74206c696d69742e000000604482015260640161093b565b60125460009061193690886120fa565b90503481146119805760405162461bcd60e51b815260206004820152601660248201527524b739bab33334b1b4b2b73a1022aa241039b2b73a1760511b604482015260640161093b565b8660165461198e9190612cc7565b6016556119a43361199f8985612cdf565b612332565b6119ae338861210d565b604080518881526020810183905233917fedc1e4a1e940345f6fc5a7b8db6832366adc2f8c9b170d964c40ddb035ed0f85910160405180910390a2505060016009555050505050565b6060611a0282611c56565b611a595760405162461bcd60e51b815260206004820152602260248201527f4d6574614d6f7270686965733a20546f6b656e20646f6573206e6f74206578696044820152611cdd60f21b606482015260840161093b565b600a611a648361222a565b604051602001611a75929190612b21565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611ab55760405162461bcd60e51b815260040161093b90612c5b565b610cc2828261210d565b6008546001600160a01b03163314611ae95760405162461bcd60e51b815260040161093b90612c5b565b6011546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611b36576040519150601f19603f3d011682016040523d82523d6000602084013e611b3b565b606091505b5050905080611b8c5760405162461bcd60e51b815260206004820152601e60248201527f4d6574614d6f7270686965733a205769746864726177206661696c65642e0000604482015260640161093b565b50565b6008546001600160a01b03163314611bb95760405162461bcd60e51b815260040161093b90612c5b565b601555565b6008546001600160a01b03163314611be85760405162461bcd60e51b815260040161093b90612c5b565b6001600160a01b038116611c4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093b565b611b8c81612053565b60008054821080156107a7575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611ce882611ef1565b80519091506000906001600160a01b0316336001600160a01b03161480611d1657508151611d1690336106b5565b80611d31575033611d268461083f565b6001600160a01b0316145b905080611d5157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611d865760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611dad57604051633a954ecd60e21b815260040160405180910390fd5b611dbd6000848460000151611c81565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611ea757600054811015611ea757825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600054811015611ff257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611ff05780516001600160a01b031615611f87579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611feb579392505050565b611f87565b505b604051636f96cda160e11b815260040160405180910390fd5b60008183604051602001612020929190612af2565b60405160208183030381529060405280519060200120905092915050565b600061204b83838661233c565b949350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0382166120ce576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b60006121068284612d15565b9392505050565b610cc2828260405180602001604052806000815250612352565b60006121068284612d01565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612168903390899088908890600401612bc8565b602060405180830381600087803b15801561218257600080fd5b505af19250505080156121b2575060408051601f3d908101601f191682019092526121af9181019061299f565b60015b61220d573d8080156121e0576040519150601f19603f3d011682016040523d82523d6000602084013e6121e5565b606091505b508051612205576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60608161224e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612278578061226281612db2565b91506122719050600a83612d01565b9150612252565b6000816001600160401b0381111561229257612292612e23565b6040519080825280601f01601f1916602001820160405280156122bc576020820181803683370190505b5090505b841561204b576122d1600183612d34565b91506122de600a86612dcd565b6122e9906030612cc7565b60f81b8183815181106122fe576122fe612e0d565b60200101906001600160f81b031916908160001a905350612320600a86612d01565b94506122c0565b60006107a78261235f565b610cc282826123b4565b600082612349858461241a565b14949350505050565b61090c838383600161248e565b60006001600160a01b0382166123885760405163561b93dd60e11b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160c01b90046001600160401b031690565b6001600160a01b0382166123db5760405163561b93dd60e11b815260040160405180910390fd5b6001600160a01b03909116600090815260056020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b600081815b845181101561248657600085828151811061243c5761243c612e0d565b602002602001015190508083116124625760008381526020829052604090209250612473565b600081815260208490526040902092505b508061247e81612db2565b91505061241f565b509392505050565b6000546001600160a01b0385166124b757604051622e076360e81b815260040160405180910390fd5b836124d55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561258157506001600160a01b0387163b15155b1561260a575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46125d26000888480600101955088612133565b6125ef576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561258757826000541461260557600080fd5b612650565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561260b575b50600055611eea565b82805461266590612d77565b90600052602060002090601f01602090048101928261268757600085556126cd565b82601f106126a057805160ff19168380011785556126cd565b828001600101855582156126cd579182015b828111156126cd5782518255916020019190600101906126b2565b50610c819291505b80821115610c8157600081556001016126d5565b60006001600160401b038084111561270357612703612e23565b604051601f8501601f19908116603f0116810190828211818310171561272b5761272b612e23565b8160405280935085815286868601111561274457600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461277557600080fd5b919050565b60008083601f84011261278c57600080fd5b5081356001600160401b038111156127a357600080fd5b6020830191508360208260051b85010111156127be57600080fd5b9250929050565b8035801515811461277557600080fd5b600082601f8301126127e657600080fd5b612106838335602085016126e9565b60006020828403121561280757600080fd5b6121068261275e565b6000806040838503121561282357600080fd5b61282c8361275e565b915061283a6020840161275e565b90509250929050565b60008060006060848603121561285857600080fd5b6128618461275e565b925061286f6020850161275e565b9150604084013590509250925092565b6000806000806080858703121561289557600080fd5b61289e8561275e565b93506128ac6020860161275e565b92506040850135915060608501356001600160401b038111156128ce57600080fd5b8501601f810187136128df57600080fd5b6128ee878235602084016126e9565b91505092959194509250565b6000806040838503121561290d57600080fd5b6129168361275e565b915061283a602084016127c5565b6000806040838503121561293757600080fd5b6129408361275e565b946020939093013593505050565b60006020828403121561296057600080fd5b612106826127c5565b60006020828403121561297b57600080fd5b5035919050565b60006020828403121561299457600080fd5b813561210681612e39565b6000602082840312156129b157600080fd5b815161210681612e39565b6000602082840312156129ce57600080fd5b81356001600160401b038111156129e457600080fd5b61204b848285016127d5565b600080600060408486031215612a0557600080fd5b83356001600160401b0380821115612a1c57600080fd5b612a28878388016127d5565b94506020860135915080821115612a3e57600080fd5b50612a4b8682870161277a565b9497909650939450505050565b60008060008060608587031215612a6e57600080fd5b843593506020850135925060408501356001600160401b03811115612a9257600080fd5b612a9e8782880161277a565b95989497509550505050565b60008151808452612ac2816020860160208601612d4b565b601f01601f19169290920160200192915050565b60008151612ae8818560208601612d4b565b9290920192915050565b60008351612b04818460208801612d4b565b835190830190612b18818360208801612d4b565b01949350505050565b600080845481600182811c915080831680612b3d57607f831692505b6020808410821415612b5d57634e487b7160e01b86526022600452602486fd5b818015612b715760018114612b8257612baf565b60ff19861689528489019650612baf565b60008b81526020902060005b86811015612ba75781548b820152908501908301612b8e565b505084890196505b505050505050612bbf8185612ad6565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bfb90830184612aaa565b9695505050505050565b6020815260006121066020830184612aaa565b60208082526023908201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960408201526232b21760e91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115612cda57612cda612de1565b500190565b60006001600160401b03808316818516808303821115612b1857612b18612de1565b600082612d1057612d10612df7565b500490565b6000816000190483118215151615612d2f57612d2f612de1565b500290565b600082821015612d4657612d46612de1565b500390565b60005b83811015612d66578181015183820152602001612d4e565b838111156116e65750506000910152565b600181811c90821680612d8b57607f821691505b60208210811415612dac57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612dc657612dc6612de1565b5060010190565b600082612ddc57612ddc612df7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611b8c57600080fdfea2646970667358221220a5eb5f1f15435a4f3919f53aff44295e9f40c762258451a923a40742b935071064736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102515760003560e01c806370a0823111610139578063bd32fb66116100b6578063dc53fd921161007a578063dc53fd9214610684578063e985e9c51461069a578063ec387c6a146106e3578063f2fde38b14610703578063fabd1d2d14610723578063fddf3f731461073b57600080fd5b8063bd32fb66146105fc578063c4be5b591461061c578063c87b56dd1461062f578063ca8001441461064f578063db2e21bc1461066f57600080fd5b806395d89b41116100fd57806395d89b4114610571578063a22cb46514610586578063a611708e146105a6578063aa98e0c6146105c6578063b88d4fde146105dc57600080fd5b806370a0823114610503578063715018a6146105235780637b1e370914610538578063853828b61461054b5780638da5cb5b1461055357600080fd5b80632d6b6224116101d257806342842e0e1161019657806342842e0e146104435780634f6ccce71461046357806355f804b3146104835780635d82cf6e146104a35780636352211e146104c357806366fddfa9146104e357600080fd5b80632d6b6224146103c45780632f745c59146103e157806332cb6b0c1461040157806335528cad1461041757806335c6aaf81461042d57600080fd5b806318160ddd1161021957806318160ddd1461032b57806318bea1c41461034457806323b872dd146103645780632aa11ffb146103845780632b707c71146103a457600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e55780631721e9f014610307575b600080fd5b34801561026257600080fd5b50610276610271366004612982565b61075b565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107ad565b6040516102829190612c05565b3480156102b957600080fd5b506102cd6102c8366004612969565b61083f565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004612924565b610883565b005b34801561031357600080fd5b5061031d60165481565b604051908152602001610282565b34801561033757600080fd5b506001546000540361031d565b34801561035057600080fd5b5061030561035f36600461294e565b610911565b34801561037057600080fd5b5061030561037f366004612843565b610957565b34801561039057600080fd5b5061030561039f3660046127f5565b610962565b3480156103b057600080fd5b506103056103bf36600461294e565b610a2a565b3480156103d057600080fd5b50600b54610100900460ff16610276565b3480156103ed57600080fd5b5061031d6103fc366004612924565b610a6e565b34801561040d57600080fd5b5061031d60145481565b34801561042357600080fd5b5061031d60155481565b34801561043957600080fd5b5061031d60125481565b34801561044f57600080fd5b5061030561045e366004612843565b610bfd565b34801561046f57600080fd5b5061031d61047e366004612969565b610c18565b34801561048f57600080fd5b5061030561049e3660046129bc565b610c85565b3480156104af57600080fd5b506103056104be366004612969565b610cc6565b3480156104cf57600080fd5b506102cd6104de366004612969565b610d59565b3480156104ef57600080fd5b506102a06104fe3660046129f0565b610d6b565b34801561050f57600080fd5b5061031d61051e3660046127f5565b610e18565b34801561052f57600080fd5b50610305610e66565b610305610546366004612969565b610e9c565b6103056110e3565b34801561055f57600080fd5b506008546001600160a01b03166102cd565b34801561057d57600080fd5b506102a0611565565b34801561059257600080fd5b506103056105a13660046128fa565b611574565b3480156105b257600080fd5b506103056105c1366004612969565b61160a565b3480156105d257600080fd5b5061031d60175481565b3480156105e857600080fd5b506103056105f736600461287f565b61169b565b34801561060857600080fd5b50610305610617366004612969565b6116ec565b61030561062a366004612a58565b61171b565b34801561063b57600080fd5b506102a061064a366004612969565b6119f7565b34801561065b57600080fd5b5061030561066a366004612924565b611a8b565b34801561067b57600080fd5b50610305611abf565b34801561069057600080fd5b5061031d60135481565b3480156106a657600080fd5b506102766106b5366004612810565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106ef57600080fd5b506103056106fe366004612969565b611b8f565b34801561070f57600080fd5b5061030561071e3660046127f5565b611bbe565b34801561072f57600080fd5b50600b5460ff16610276565b34801561074757600080fd5b506011546102cd906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b148061078c57506001600160e01b03198216635b5e139f60e01b145b806107a757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546107bc90612d77565b80601f01602080910402602001604051908101604052809291908181526020018280546107e890612d77565b80156108355780601f1061080a57610100808354040283529160200191610835565b820191906000526020600020905b81548152906001019060200180831161081857829003601f168201915b5050505050905090565b600061084a82611c56565b610867576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061088e82610d59565b9050806001600160a01b0316836001600160a01b031614156108c35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108e357506108e181336106b5565b155b15610901576040516367d9dca160e11b815260040160405180910390fd5b61090c838383611c81565b505050565b6008546001600160a01b031633146109445760405162461bcd60e51b815260040161093b90612c5b565b60405180910390fd5b600b805460ff1916911515919091179055565b61090c838383611cdd565b6008546001600160a01b0316331461098c5760405162461bcd60e51b815260040161093b90612c5b565b6001600160a01b038116610a085760405162461bcd60e51b815260206004820152603c60248201527f4d6574614d6f7270686965733a20456d657267656e637920616464726573732060448201527f63616e27742062652073657420746f207a65726f206164647265737300000000606482015260840161093b565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610a545760405162461bcd60e51b815260040161093b90612c5b565b600b80549115156101000261ff0019909216919091179055565b6000610a7983610e18565b8210610ad25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161093b565b6000610ae16001546000540390565b905060008060005b83811015610b9d57600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215610b4e57805192505b876001600160a01b0316836001600160a01b03161415610b8a5786841415610b7c575093506107a792505050565b83610b8681612db2565b9450505b5080610b9581612db2565b915050610ae9565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161093b565b61090c8383836040518060200160405280600081525061169b565b6000610c276001546000540390565b8210610c815760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161093b565b5090565b6008546001600160a01b03163314610caf5760405162461bcd60e51b815260040161093b90612c5b565b8051610cc290600a906020840190612659565b5050565b6008546001600160a01b03163314610cf05760405162461bcd60e51b815260040161093b90612c5b565b600b54610100900460ff1615610d545760405162461bcd60e51b815260206004820152602360248201527f4d6574614d6f7270686965733a205075626c6963206d696e742069732061637460448201526269766560e81b606482015260840161093b565b601355565b6000610d6482611ef1565b5192915050565b6060600033604051602001610d98919060609190911b6bffffffffffffffffffffffff1916815260140190565b6040516020818303038152906040529050610df3610db6868361200b565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601754915061203e9050565b610e0f5760405162461bcd60e51b815260040161093b90612c18565b50929392505050565b60006001600160a01b038216610e41576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610e905760405162461bcd60e51b815260040161093b90612c5b565b610e9a6000612053565b565b60026009541415610ebf5760405162461bcd60e51b815260040161093b90612c90565b6002600955600b54610100900460ff16610f2b5760405162461bcd60e51b815260206004820152602760248201527f4d6574614d6f7270686965733a205075626c6963206d696e74206973206e6f746044820152662061637469766560c81b606482015260840161093b565b600b81610f37336120a5565b610f419190612cc7565b10610fa25760405162461bcd60e51b815260206004820152602b60248201527f4d6574614d6f7270686965733a205065722077616c6c6574206d696e74206c6960448201526a1b5a5d081c995858da195960aa1b606482015260840161093b565b601354600090610fb290836120fa565b90503481146110165760405162461bcd60e51b815260206004820152602a60248201527f4d6574614d6f7270686965733a20496e636f727265637420616d6f756e74206f6044820152691988195d1a081cd95b9d60b21b606482015260840161093b565b601454826110276001546000540390565b6110319190612cc7565b11156110955760405162461bcd60e51b815260206004820152602d60248201527f4d6574614d6f7270686965733a2045786365656473206d6178696d756d204d6f60448201526c72706869657320737570706c7960981b606482015260840161093b565b61109f338361210d565b604080518381526020810183905233917fedc1e4a1e940345f6fc5a7b8db6832366adc2f8c9b170d964c40ddb035ed0f85910160405180910390a250506001600955565b6008546001600160a01b0316331461110d5760405162461bcd60e51b815260040161093b90612c5b565b600260095414156111305760405162461bcd60e51b815260040161093b90612c90565b600260095547600061115061271061114a84610c806120fa565b90612127565b9050600061116661271061114a85610c1c6120fa565b9050600061117c61271061114a86610a286120fa565b9050600061119261271061114a876101f46120fa565b905060006111a861271061114a886101906120fa565b905060006111bd61271061114a8960c86120fa565b600b54604051919250600091620100009091046001600160a01b03169088908381818185875af1925050503d8060008114611214576040519150601f19603f3d011682016040523d82523d6000602084013e611219565b606091505b505090508061125e5760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a18903830bcb7baba1760791b604482015260640161093b565b600c546040516000916001600160a01b03169088908381818185875af1925050503d80600081146112ab576040519150601f19603f3d011682016040523d82523d6000602084013e6112b0565b606091505b50509050806112f55760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a19103830bcb7baba1760791b604482015260640161093b565b600d546040516000916001600160a01b03169088908381818185875af1925050503d8060008114611342576040519150601f19603f3d011682016040523d82523d6000602084013e611347565b606091505b505090508061138c5760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a19903830bcb7baba1760791b604482015260640161093b565b600e546040516000916001600160a01b03169088908381818185875af1925050503d80600081146113d9576040519150601f19603f3d011682016040523d82523d6000602084013e6113de565b606091505b50509050806114235760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a1a103830bcb7baba1760791b604482015260640161093b565b600f546040516000916001600160a01b03169088908381818185875af1925050503d8060008114611470576040519150601f19603f3d011682016040523d82523d6000602084013e611475565b606091505b50509050806114ba5760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a1a903830bcb7baba1760791b604482015260640161093b565b6010546040516000916001600160a01b03169088908381818185875af1925050503d8060008114611507576040519150601f19603f3d011682016040523d82523d6000602084013e61150c565b606091505b50509050806115515760405162461bcd60e51b81526020600482015260116024820152702330b4b632b2103a1b103830bcb7baba1760791b604482015260640161093b565b505060016009555050505050505050505050565b6060600380546107bc90612d77565b6001600160a01b03821633141561159e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146116345760405162461bcd60e51b815260040161093b90612c5b565b600b5460ff16156116965760405162461bcd60e51b815260206004820152602660248201527f4d6574614d6f7270686965733a2057686974656c697374206d696e742069732060448201526561637469766560d01b606482015260840161093b565b601255565b6116a6848484611cdd565b6001600160a01b0383163b151580156116c857506116c684848484612133565b155b156116e6576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146117165760405162461bcd60e51b815260040161093b90612c5b565b601755565b6002600954141561173e5760405162461bcd60e51b815260040161093b90612c90565b6002600955604080513360601b6bffffffffffffffffffffffff19166020820152815160148183030181526034909101909152600b5460ff166117d95760405162461bcd60e51b815260206004820152602d60248201527f4d6574614d6f7270686965733a2057686974656c697374206d696e74696e672060448201526c6973206e6f742061637469766560981b606482015260840161093b565b601554856016546117ea9190612cc7565b106118495760405162461bcd60e51b815260206004820152602960248201527f4d6574614d6f7270686965733a2057686974656c697374206c696d6974206d616044820152683c3c32b21037baba1760b91b606482015260840161093b565b61189b61185e6118588661222a565b8361200b565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601754915061203e9050565b6118b75760405162461bcd60e51b815260040161093b90612c18565b60006118c233612327565b9050846118d8876001600160401b038416612cc7565b11156119265760405162461bcd60e51b815260206004820152601d60248201527f457863656564732077686974656c697374206d696e74206c696d69742e000000604482015260640161093b565b60125460009061193690886120fa565b90503481146119805760405162461bcd60e51b815260206004820152601660248201527524b739bab33334b1b4b2b73a1022aa241039b2b73a1760511b604482015260640161093b565b8660165461198e9190612cc7565b6016556119a43361199f8985612cdf565b612332565b6119ae338861210d565b604080518881526020810183905233917fedc1e4a1e940345f6fc5a7b8db6832366adc2f8c9b170d964c40ddb035ed0f85910160405180910390a2505060016009555050505050565b6060611a0282611c56565b611a595760405162461bcd60e51b815260206004820152602260248201527f4d6574614d6f7270686965733a20546f6b656e20646f6573206e6f74206578696044820152611cdd60f21b606482015260840161093b565b600a611a648361222a565b604051602001611a75929190612b21565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611ab55760405162461bcd60e51b815260040161093b90612c5b565b610cc2828261210d565b6008546001600160a01b03163314611ae95760405162461bcd60e51b815260040161093b90612c5b565b6011546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611b36576040519150601f19603f3d011682016040523d82523d6000602084013e611b3b565b606091505b5050905080611b8c5760405162461bcd60e51b815260206004820152601e60248201527f4d6574614d6f7270686965733a205769746864726177206661696c65642e0000604482015260640161093b565b50565b6008546001600160a01b03163314611bb95760405162461bcd60e51b815260040161093b90612c5b565b601555565b6008546001600160a01b03163314611be85760405162461bcd60e51b815260040161093b90612c5b565b6001600160a01b038116611c4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093b565b611b8c81612053565b60008054821080156107a7575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611ce882611ef1565b80519091506000906001600160a01b0316336001600160a01b03161480611d1657508151611d1690336106b5565b80611d31575033611d268461083f565b6001600160a01b0316145b905080611d5157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611d865760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611dad57604051633a954ecd60e21b815260040160405180910390fd5b611dbd6000848460000151611c81565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611ea757600054811015611ea757825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600054811015611ff257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611ff05780516001600160a01b031615611f87579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611feb579392505050565b611f87565b505b604051636f96cda160e11b815260040160405180910390fd5b60008183604051602001612020929190612af2565b60405160208183030381529060405280519060200120905092915050565b600061204b83838661233c565b949350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0382166120ce576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b60006121068284612d15565b9392505050565b610cc2828260405180602001604052806000815250612352565b60006121068284612d01565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612168903390899088908890600401612bc8565b602060405180830381600087803b15801561218257600080fd5b505af19250505080156121b2575060408051601f3d908101601f191682019092526121af9181019061299f565b60015b61220d573d8080156121e0576040519150601f19603f3d011682016040523d82523d6000602084013e6121e5565b606091505b508051612205576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60608161224e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612278578061226281612db2565b91506122719050600a83612d01565b9150612252565b6000816001600160401b0381111561229257612292612e23565b6040519080825280601f01601f1916602001820160405280156122bc576020820181803683370190505b5090505b841561204b576122d1600183612d34565b91506122de600a86612dcd565b6122e9906030612cc7565b60f81b8183815181106122fe576122fe612e0d565b60200101906001600160f81b031916908160001a905350612320600a86612d01565b94506122c0565b60006107a78261235f565b610cc282826123b4565b600082612349858461241a565b14949350505050565b61090c838383600161248e565b60006001600160a01b0382166123885760405163561b93dd60e11b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160c01b90046001600160401b031690565b6001600160a01b0382166123db5760405163561b93dd60e11b815260040160405180910390fd5b6001600160a01b03909116600090815260056020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b600081815b845181101561248657600085828151811061243c5761243c612e0d565b602002602001015190508083116124625760008381526020829052604090209250612473565b600081815260208490526040902092505b508061247e81612db2565b91505061241f565b509392505050565b6000546001600160a01b0385166124b757604051622e076360e81b815260040160405180910390fd5b836124d55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561258157506001600160a01b0387163b15155b1561260a575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46125d26000888480600101955088612133565b6125ef576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561258757826000541461260557600080fd5b612650565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561260b575b50600055611eea565b82805461266590612d77565b90600052602060002090601f01602090048101928261268757600085556126cd565b82601f106126a057805160ff19168380011785556126cd565b828001600101855582156126cd579182015b828111156126cd5782518255916020019190600101906126b2565b50610c819291505b80821115610c8157600081556001016126d5565b60006001600160401b038084111561270357612703612e23565b604051601f8501601f19908116603f0116810190828211818310171561272b5761272b612e23565b8160405280935085815286868601111561274457600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461277557600080fd5b919050565b60008083601f84011261278c57600080fd5b5081356001600160401b038111156127a357600080fd5b6020830191508360208260051b85010111156127be57600080fd5b9250929050565b8035801515811461277557600080fd5b600082601f8301126127e657600080fd5b612106838335602085016126e9565b60006020828403121561280757600080fd5b6121068261275e565b6000806040838503121561282357600080fd5b61282c8361275e565b915061283a6020840161275e565b90509250929050565b60008060006060848603121561285857600080fd5b6128618461275e565b925061286f6020850161275e565b9150604084013590509250925092565b6000806000806080858703121561289557600080fd5b61289e8561275e565b93506128ac6020860161275e565b92506040850135915060608501356001600160401b038111156128ce57600080fd5b8501601f810187136128df57600080fd5b6128ee878235602084016126e9565b91505092959194509250565b6000806040838503121561290d57600080fd5b6129168361275e565b915061283a602084016127c5565b6000806040838503121561293757600080fd5b6129408361275e565b946020939093013593505050565b60006020828403121561296057600080fd5b612106826127c5565b60006020828403121561297b57600080fd5b5035919050565b60006020828403121561299457600080fd5b813561210681612e39565b6000602082840312156129b157600080fd5b815161210681612e39565b6000602082840312156129ce57600080fd5b81356001600160401b038111156129e457600080fd5b61204b848285016127d5565b600080600060408486031215612a0557600080fd5b83356001600160401b0380821115612a1c57600080fd5b612a28878388016127d5565b94506020860135915080821115612a3e57600080fd5b50612a4b8682870161277a565b9497909650939450505050565b60008060008060608587031215612a6e57600080fd5b843593506020850135925060408501356001600160401b03811115612a9257600080fd5b612a9e8782880161277a565b95989497509550505050565b60008151808452612ac2816020860160208601612d4b565b601f01601f19169290920160200192915050565b60008151612ae8818560208601612d4b565b9290920192915050565b60008351612b04818460208801612d4b565b835190830190612b18818360208801612d4b565b01949350505050565b600080845481600182811c915080831680612b3d57607f831692505b6020808410821415612b5d57634e487b7160e01b86526022600452602486fd5b818015612b715760018114612b8257612baf565b60ff19861689528489019650612baf565b60008b81526020902060005b86811015612ba75781548b820152908501908301612b8e565b505084890196505b505050505050612bbf8185612ad6565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bfb90830184612aaa565b9695505050505050565b6020815260006121066020830184612aaa565b60208082526023908201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960408201526232b21760e91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115612cda57612cda612de1565b500190565b60006001600160401b03808316818516808303821115612b1857612b18612de1565b600082612d1057612d10612df7565b500490565b6000816000190483118215151615612d2f57612d2f612de1565b500290565b600082821015612d4657612d46612de1565b500390565b60005b83811015612d66578181015183820152602001612d4e565b838111156116e65750506000910152565b600181811c90821680612d8b57607f821691505b60208210811415612dac57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612dc657612dc6612de1565b5060010190565b600082612ddc57612ddc612df7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611b8c57600080fdfea2646970667358221220a5eb5f1f15435a4f3919f53aff44295e9f40c762258451a923a40742b935071064736f6c63430008070033
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.