ETH Price: $3,299.03 (-0.02%)

Token

Wasted Wild V2 (WAWI2)
 

Overview

Max Total Supply

2,000 WAWI2

Holders

664

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 WAWI2
0xC1A80D351232fD07EE5733b5F581E01C269068A9
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Wasted Wild, Chapter 2 of the Capsule Vault Trilogy, is a collection of 3,000 imaginary beings thriving in the post-human age. Preceded by Absurd Arboretum, the project inherits and embodies the core ethos of becoming an integral part of our ecology.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WastedWild2

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : WastedWild2.sol
// SPDX-License-Identifier: MIT

    import "erc721a/contracts/ERC721A.sol";
    import "@openzeppelin/contracts/access/Ownable.sol";
    import "@openzeppelin/contracts/utils/math/SafeMath.sol";

    pragma solidity ^0.8.0;

    contract WastedWild2 is ERC721A, Ownable {
        using SafeMath for uint256;

        //price variables
        uint256 public constant PRICE_PER_TOKEN = 0.05 ether;
        uint256 public constant ARBO_HODLER_PRICE = 0.02 ether;

        //supply variables
        uint256 public _maxSupply = 3000;
        uint256 public _maxPerTxn = 3;

        //sale state control variables
        bool public _isClaimingEnabled = true;
        bool public _isArboMintingEnabled = true;
        bool public _isPublicMintingEnabled = true;
        bool public _isBurningEnabled = true;
        uint256 public _startSaleTimestamp = 1648216800; //3/25/2022 10:00AM EST
        uint256 public _whiteListWindow = 172800; //48 hours

        //wallet to withdraw to
        address payable public _abar =
            payable(address(0x96f10441b25f56AfE30FDB03c6853f0fEC70F389));

        //metadata variables
        string private _baseURI_ = "ipfs://QmW1iuCkEcVekJHtW1wR4S2DUu8Qvsvwfifwch3waRa33f/";

        //wawi claimed mapping
        mapping(address => uint256) public _wawiHoldings;

        //arbo minted mapping
        mapping(address => uint256) public _arboHoldings;

        //white lsit mapping
        mapping(address => uint256) public _whiteList;

        constructor() ERC721A("Wasted Wild V2", "WAWI2") {
        }

        //supply functions
        function setMaxSupply(uint256 maxSupply) external onlyOwner {
            _maxSupply = maxSupply;
        }

        function setMaxPerTxn(uint256 maxPerTxn) external onlyOwner {
            _maxPerTxn = maxPerTxn;
        }

        //sale state functions
        function toggleClaimingEnabled() external onlyOwner {
            _isClaimingEnabled = !_isClaimingEnabled;
        }

        function toggleArboMintingEnabled() external onlyOwner {
            _isArboMintingEnabled = !_isArboMintingEnabled;
        }

        function togglePublicMintingEnabled() external onlyOwner {
            _isPublicMintingEnabled = !_isPublicMintingEnabled;
        }

        function toggleBurningEnabled() external onlyOwner {
            _isBurningEnabled = !_isBurningEnabled;
        }

        function setStartSaleTimestamp(uint256 startSaleTimestamp) external onlyOwner {
            _startSaleTimestamp = startSaleTimestamp;
        }

        function setWhiteListWindow(uint256 whiteListWindow) external onlyOwner {
            _whiteListWindow = whiteListWindow;
        }

        //allow list mapping functions
        function setWawiHoldings(address[] calldata addresses, uint256[] calldata wawiBalance) external onlyOwner {
            uint256 count = addresses.length;
            for (uint256 i = 0; i < count; i++) {
                _wawiHoldings[addresses[i]] = wawiBalance[i];
            }
        }

        function setArboHoldings(address[] calldata addresses) external onlyOwner {
            uint256 count = addresses.length;
            for (uint256 i = 0; i < count; i++) {
                _arboHoldings[addresses[i]] = 1;
            }
        }

        function setWhiteList(address[] calldata addresses) external onlyOwner {
            uint256 count = addresses.length;
            for (uint256 i = 0; i < count; i++) {
                _whiteList[addresses[i]] = 1;
            }
        }

        //minting functions
        function _mintToken(address to, uint256 quantity) internal {
            _safeMint(to, quantity);
        }

        //for duplicating WAWI1 tokens
        function airdrop(address to, uint256 quantity) external onlyOwner {
            _mintToken(to, quantity);
        }

        function reserveTokens(uint256 quantity) external onlyOwner {
            _mintToken(msg.sender, quantity);
        }

        function claim() external{
            require(block.timestamp >= _startSaleTimestamp, "claiming has not started");
            require(_isClaimingEnabled, "claiming is not enabled");
            require(totalSupply() < _maxSupply, "sold out");
            require(totalSupply() + _wawiHoldings[msg.sender] <= _maxSupply, "exceeds max supply");
            require(
                _wawiHoldings[msg.sender] > 0,
                "No WAWI token or already claimed"
            );

            _mintToken(msg.sender, _wawiHoldings[msg.sender]);
            
            _wawiHoldings[msg.sender] = 0;
        }

        function arboHolderMint(uint256 tokensToMint) external payable {
            require(block.timestamp >= _startSaleTimestamp, "tree holders minting has not started");
            require(_isArboMintingEnabled, "minting is not enabled");
            require(totalSupply() < _maxSupply, "sold out");
            require(totalSupply() + tokensToMint <= _maxSupply, "exceeds max supply");
            require(tokensToMint <=_maxPerTxn, "max 3 tokens per txn");
            require(_arboHoldings[msg.sender] > 0, "no ARBO token or already claimed");
            require(msg.value == tokensToMint * ARBO_HODLER_PRICE, "wrong value");

            _mintToken(msg.sender, tokensToMint);
            
            _arboHoldings[msg.sender] = 0;
        }

        function publicMint(uint256 tokensToMint) external payable {
            require(block.timestamp >= _startSaleTimestamp, "minting has not started");

            if(block.timestamp < _startSaleTimestamp + _whiteListWindow){
                require(_whiteList[msg.sender] > 0, "need to be on whitelist to mint during this window");
            }

            require(_isPublicMintingEnabled, "minting is not enabled");
            require(totalSupply() < _maxSupply, "sold out");
            require(totalSupply() + tokensToMint <= _maxSupply, "exceeds max supply");  
            require(tokensToMint <= _maxPerTxn, "max 3 tokens per txn");
            require(msg.value == tokensToMint * PRICE_PER_TOKEN, "wrong value");

            _mintToken(msg.sender, tokensToMint);

            _whiteList[msg.sender] = 0;
        }

        function burn(uint256 tokenId) public {
            require(_isBurningEnabled, "burning is not enabled");
            _burn(tokenId, true);
        }

        function withdraw() external onlyOwner {
            uint256 balance = address(this).balance;
            _abar.transfer(balance);
        }

        function _baseURI() internal view override returns (string memory) {
            return _baseURI_;
        }

        function setBaseURI(string memory newBaseURI) public onlyOwner {
            _baseURI_ = newBaseURI;
        }
    }

File 2 of 12 : ERC721A.sol
// 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/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 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 {
    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 Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public 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) {
        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) {
        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) {
        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 {
        _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);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // 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;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.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;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // 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 storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.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;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, 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 {}
}

File 3 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 4 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. 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. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * 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;
        }
    }
}

File 5 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT

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;
}

File 6 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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);
}

File 7 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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);
}

File 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 12 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","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"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"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":"ARBO_HODLER_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_abar","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_arboHoldings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isArboMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isBurningEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isClaimingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isPublicMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxPerTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_startSaleTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_wawiHoldings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_whiteList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_whiteListWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMint","type":"uint256"}],"name":"arboHolderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMint","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserveTokens","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":"address[]","name":"addresses","type":"address[]"}],"name":"setArboHoldings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTxn","type":"uint256"}],"name":"setMaxPerTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startSaleTimestamp","type":"uint256"}],"name":"setStartSaleTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"wawiBalance","type":"uint256[]"}],"name":"setWawiHoldings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whiteListWindow","type":"uint256"}],"name":"setWhiteListWindow","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":[],"name":"toggleArboMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleBurningEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleClaimingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicMintingEnabled","outputs":[],"stateMutability":"nonpayable","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610bb86009556003600a55600b8054630101010163ffffffff1990911617905563623dcae0600c556202a300600d55600e80546001600160a01b0319167396f10441b25f56afe30fdb03c6853f0fec70f38917905560e0604052603660808181529062002b8960a03980516200007e91600f9160209091019062000147565b503480156200008c57600080fd5b50604080518082018252600e81526d2bb0b9ba32b2102bb4b632102b1960911b6020808301918252835180850190945260058452642ba0aba49960d91b908401528151919291620000e09160029162000147565b508051620000f690600390602084019062000147565b50506000808055600880546001600160a01b031916339081179091556040519092508291907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200022a565b8280546200015590620001ed565b90600052602060002090601f016020900481019282620001795760008555620001c4565b82601f106200019457805160ff1916838001178555620001c4565b82800160010185558215620001c4579182015b82811115620001c4578251825591602001919060010190620001a7565b50620001d2929150620001d6565b5090565b5b80821115620001d25760008155600101620001d7565b600181811c908216806200020257607f821691505b602082108114156200022457634e487b7160e01b600052602260045260246000fd5b50919050565b61294f806200023a6000396000f3fe6080604052600436106102c95760003560e01c806371da623711610175578063a22cb465116100dc578063d828716311610095578063ecb923601161006f578063ecb9236014610872578063f2fde38b1461089f578063f69af31e146108bf578063f6a03d2d146108d457600080fd5b8063d8287163146107f4578063ddd0e83d14610809578063e985e9c51461082957600080fd5b8063a22cb4651461073f578063b5cfe3d21461075f578063b6f3ce0014610774578063b88d4fde14610794578063c87b56dd146107b4578063d031370b146107d457600080fd5b8063866154e71161012e578063866154e7146106915780638ba4cc3c146106b15780638c4290c5146106d15780638da5cb5b146106ec578063923a36361461070a57806395d89b411461072a57600080fd5b806371da6237146105e0578063775b9c13146106005780637a5347e414610620578063833b94991461063657806383b9272b1461065157806385bbbecf1461067257600080fd5b80633ccfd60b116102345780634ffc1c74116101ed5780636e9787d2116101c75780636e9787d21461055e5780636f8b44b01461058b57806370a08231146105ab578063715018a6146105cb57600080fd5b80634ffc1c741461050457806355f804b31461051e5780636352211e1461053e57600080fd5b80633ccfd60b146104655780633ee501b41461047a57806342842e0e1461048f57806342966c68146104af57806345aa6201146104cf5780634e71d92d146104ef57600080fd5b806318160ddd1161028657806318160ddd146103d057806322f4596f146103e957806323b872dd146103ff5780632db115441461041f5780632f1a41bc1461043257806335dfb0cf1461045257600080fd5b806301ffc9a7146102ce57806305d60ffb1461030357806306fdde031461033e578063081812fc14610360578063095ea7b31461039857806316e41e28146103ba575b600080fd5b3480156102da57600080fd5b506102ee6102e93660046125e6565b6108ea565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061033061031e3660046123dd565b60126020526000908152604090205481565b6040519081526020016102fa565b34801561034a57600080fd5b5061035361093c565b6040516102fa9190612713565b34801561036c57600080fd5b5061038061037b366004612663565b6109ce565b6040516001600160a01b0390911681526020016102fa565b3480156103a457600080fd5b506103b86103b3366004612516565b610a12565b005b3480156103c657600080fd5b50610330600d5481565b3480156103dc57600080fd5b5060015460005403610330565b3480156103f557600080fd5b5061033060095481565b34801561040b57600080fd5b506103b861041a366004612429565b610aa0565b6103b861042d366004612663565b610aab565b34801561043e57600080fd5b506103b861044d36600461253f565b610cf4565b6103b8610460366004612663565b610d97565b34801561047157600080fd5b506103b8610fb4565b34801561048657600080fd5b506103b861101c565b34801561049b57600080fd5b506103b86104aa366004612429565b611067565b3480156104bb57600080fd5b506103b86104ca366004612663565b611082565b3480156104db57600080fd5b50600e54610380906001600160a01b031681565b3480156104fb57600080fd5b506103b86110e2565b34801561051057600080fd5b50600b546102ee9060ff1681565b34801561052a57600080fd5b506103b861053936600461261e565b61127d565b34801561054a57600080fd5b50610380610559366004612663565b6112ba565b34801561056a57600080fd5b506103306105793660046123dd565b60116020526000908152604090205481565b34801561059757600080fd5b506103b86105a6366004612663565b6112cc565b3480156105b757600080fd5b506103306105c63660046123dd565b6112fb565b3480156105d757600080fd5b506103b8611349565b3480156105ec57600080fd5b506103b86105fb366004612663565b6113bd565b34801561060c57600080fd5b506103b861061b36600461253f565b6113ec565b34801561062c57600080fd5b50610330600a5481565b34801561064257600080fd5b5061033066b1a2bc2ec5000081565b34801561065d57600080fd5b50600b546102ee906301000000900460ff1681565b34801561067e57600080fd5b50600b546102ee90610100900460ff1681565b34801561069d57600080fd5b506103b86106ac36600461257e565b611489565b3480156106bd57600080fd5b506103b86106cc366004612516565b611553565b3480156106dd57600080fd5b5061033066470de4df82000081565b3480156106f857600080fd5b506008546001600160a01b0316610380565b34801561071657600080fd5b50600b546102ee9062010000900460ff1681565b34801561073657600080fd5b50610353611587565b34801561074b57600080fd5b506103b861075a3660046124dc565b611596565b34801561076b57600080fd5b506103b861162c565b34801561078057600080fd5b506103b861078f366004612663565b611675565b3480156107a057600080fd5b506103b86107af366004612464565b6116a4565b3480156107c057600080fd5b506103536107cf366004612663565b6116ef565b3480156107e057600080fd5b506103b86107ef366004612663565b611774565b34801561080057600080fd5b506103b86117a8565b34801561081557600080fd5b506103b8610824366004612663565b6117e6565b34801561083557600080fd5b506102ee6108443660046123f7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561087e57600080fd5b5061033061088d3660046123dd565b60106020526000908152604090205481565b3480156108ab57600080fd5b506103b86108ba3660046123dd565b611815565b3480156108cb57600080fd5b506103b8611900565b3480156108e057600080fd5b50610330600c5481565b60006001600160e01b031982166380ac58cd60e01b148061091b57506001600160e01b03198216635b5e139f60e01b145b8061093657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461094b90612837565b80601f016020809104026020016040519081016040528092919081815260200182805461097790612837565b80156109c45780601f10610999576101008083540402835291602001916109c4565b820191906000526020600020905b8154815290600101906020018083116109a757829003601f168201915b5050505050905090565b60006109d982611947565b6109f6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a1d826112ba565b9050806001600160a01b0316836001600160a01b03161415610a525760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a725750610a708133610844565b155b15610a90576040516367d9dca160e11b815260040160405180910390fd5b610a9b838383611972565b505050565b610a9b8383836119ce565b600c54421015610b025760405162461bcd60e51b815260206004820152601760248201527f6d696e74696e6720686173206e6f74207374617274656400000000000000000060448201526064015b60405180910390fd5b600d54600c54610b1291906127a9565b421015610b905733600090815260126020526040902054610b905760405162461bcd60e51b815260206004820152603260248201527f6e65656420746f206265206f6e2077686974656c69737420746f206d696e7420604482015271647572696e6720746869732077696e646f7760701b6064820152608401610af9565b600b5462010000900460ff16610be15760405162461bcd60e51b81526020600482015260166024820152751b5a5b9d1a5b99c81a5cc81b9bdd08195b98589b195960521b6044820152606401610af9565b6009546001546000540310610c085760405162461bcd60e51b8152600401610af990612726565b60095481610c196001546000540390565b610c2391906127a9565b1115610c415760405162461bcd60e51b8152600401610af990612748565b600a54811115610c8a5760405162461bcd60e51b815260206004820152601460248201527336b0bc1019903a37b5b2b739903832b9103a3c3760611b6044820152606401610af9565b610c9b66b1a2bc2ec50000826127d5565b3414610cd75760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b6044820152606401610af9565b610ce13382611baa565b5033600090815260126020526040812055565b6008546001600160a01b03163314610d1e5760405162461bcd60e51b8152600401610af990612774565b8060005b81811015610d9157600160116000868685818110610d5057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d6591906123dd565b6001600160a01b0316815260208101919091526040016000205580610d8981612872565b915050610d22565b50505050565b600c54421015610df55760405162461bcd60e51b8152602060048201526024808201527f7472656520686f6c64657273206d696e74696e6720686173206e6f74207374616044820152631c9d195960e21b6064820152608401610af9565b600b54610100900460ff16610e455760405162461bcd60e51b81526020600482015260166024820152751b5a5b9d1a5b99c81a5cc81b9bdd08195b98589b195960521b6044820152606401610af9565b6009546001546000540310610e6c5760405162461bcd60e51b8152600401610af990612726565b60095481610e7d6001546000540390565b610e8791906127a9565b1115610ea55760405162461bcd60e51b8152600401610af990612748565b600a54811115610eee5760405162461bcd60e51b815260206004820152601460248201527336b0bc1019903a37b5b2b739903832b9103a3c3760611b6044820152606401610af9565b33600090815260116020526040902054610f4a5760405162461bcd60e51b815260206004820181905260248201527f6e6f204152424f20746f6b656e206f7220616c726561647920636c61696d65646044820152606401610af9565b610f5b66470de4df820000826127d5565b3414610f975760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b6044820152606401610af9565b610fa13382611baa565b5033600090815260116020526040812055565b6008546001600160a01b03163314610fde5760405162461bcd60e51b8152600401610af990612774565b600e5460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015611018573d6000803e3d6000fd5b5050565b6008546001600160a01b031633146110465760405162461bcd60e51b8152600401610af990612774565b600b805463ff00000019811663010000009182900460ff1615909102179055565b610a9b838383604051806020016040528060008152506116a4565b600b546301000000900460ff166110d45760405162461bcd60e51b8152602060048201526016602482015275189d5c9b9a5b99c81a5cc81b9bdd08195b98589b195960521b6044820152606401610af9565b6110df816001611bb4565b50565b600c544210156111345760405162461bcd60e51b815260206004820152601860248201527f636c61696d696e6720686173206e6f74207374617274656400000000000000006044820152606401610af9565b600b5460ff166111865760405162461bcd60e51b815260206004820152601760248201527f636c61696d696e67206973206e6f7420656e61626c65640000000000000000006044820152606401610af9565b60095460015460005403106111ad5760405162461bcd60e51b8152600401610af990612726565b600954336000908152601060205260409020546111cd6001546000540390565b6111d791906127a9565b11156111f55760405162461bcd60e51b8152600401610af990612748565b336000908152601060205260409020546112515760405162461bcd60e51b815260206004820181905260248201527f4e6f205741574920746f6b656e206f7220616c726561647920636c61696d65646044820152606401610af9565b3360008181526010602052604090205461126b9190611baa565b33600090815260106020526040812055565b6008546001600160a01b031633146112a75760405162461bcd60e51b8152600401610af990612774565b805161101890600f90602084019061226a565b60006112c582611d67565b5192915050565b6008546001600160a01b031633146112f65760405162461bcd60e51b8152600401610af990612774565b600955565b60006001600160a01b038216611324576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146113735760405162461bcd60e51b8152600401610af990612774565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6008546001600160a01b031633146113e75760405162461bcd60e51b8152600401610af990612774565b600c55565b6008546001600160a01b031633146114165760405162461bcd60e51b8152600401610af990612774565b8060005b81811015610d915760016012600086868581811061144857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061145d91906123dd565b6001600160a01b031681526020810191909152604001600020558061148181612872565b91505061141a565b6008546001600160a01b031633146114b35760405162461bcd60e51b8152600401610af990612774565b8260005b8181101561154b578383828181106114df57634e487b7160e01b600052603260045260246000fd5b905060200201356010600088888581811061150a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061151f91906123dd565b6001600160a01b031681526020810191909152604001600020558061154381612872565b9150506114b7565b505050505050565b6008546001600160a01b0316331461157d5760405162461bcd60e51b8152600401610af990612774565b6110188282611baa565b60606003805461094b90612837565b6001600160a01b0382163314156115c05760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146116565760405162461bcd60e51b8152600401610af990612774565b600b805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b0316331461169f5760405162461bcd60e51b8152600401610af990612774565b600a55565b6116af8484846119ce565b6001600160a01b0383163b151580156116d157506116cf84848484611e81565b155b15610d91576040516368d2bf6b60e11b815260040160405180910390fd5b60606116fa82611947565b61171757604051630a14c4b560e41b815260040160405180910390fd5b6000611721611f79565b9050805160001415611742576040518060200160405280600081525061176d565b8061174c84611f88565b60405160200161175d9291906126a7565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461179e5760405162461bcd60e51b8152600401610af990612774565b6110df3382611baa565b6008546001600160a01b031633146117d25760405162461bcd60e51b8152600401610af990612774565b600b805460ff19811660ff90911615179055565b6008546001600160a01b031633146118105760405162461bcd60e51b8152600401610af990612774565b600d55565b6008546001600160a01b0316331461183f5760405162461bcd60e51b8152600401610af990612774565b6001600160a01b0381166118a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610af9565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b0316331461192a5760405162461bcd60e51b8152600401610af990612774565b600b805461ff001981166101009182900460ff1615909102179055565b6000805482108015610936575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006119d982611d67565b9050836001600160a01b031681600001516001600160a01b031614611a105760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611a2e5750611a2e8533610844565b80611a49575033611a3e846109ce565b6001600160a01b0316145b905080611a6957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611a9057604051633a954ecd60e21b815260040160405180910390fd5b611a9c60008487611972565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611b70576000548214611b7057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206128fa83398151915260405160405180910390a45b5050505050565b61101882826120a1565b6000611bbf83611d67565b80519091508215611c25576000336001600160a01b0383161480611be85750611be88233610844565b80611c03575033611bf8866109ce565b6001600160a01b0316145b905080611c2357604051632ce44b5f60e11b815260040160405180910390fd5b505b611c3160008583611972565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116611d2f576000548214611d2f57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206128fa833981519152908390a4505060018054810190555050565b604080516060810182526000808252602082018190529181019190915281600054811015611e6857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611e665780516001600160a01b031615611dfd579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611e61579392505050565b611dfd565b505b604051636f96cda160e11b815260040160405180910390fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611eb69033908990889088906004016126d6565b602060405180830381600087803b158015611ed057600080fd5b505af1925050508015611f00575060408051601f3d908101601f19168201909252611efd91810190612602565b60015b611f5b573d808015611f2e576040519150601f19603f3d011682016040523d82523d6000602084013e611f33565b606091505b508051611f53576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f805461094b90612837565b606081611fac5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fd65780611fc081612872565b9150611fcf9050600a836127c1565b9150611fb0565b6000816001600160401b03811115611ffe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612028576020820181803683370190505b5090505b8415611f715761203d6001836127f4565b915061204a600a8661288d565b6120559060306127a9565b60f81b81838151811061207857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061209a600a866127c1565b945061202c565b611018828260405180602001604052806000815250610a9b83838360016000546001600160a01b0385166120e757604051622e076360e81b815260040160405180910390fd5b836121055760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156121b657506001600160a01b0387163b15155b1561222d575b60405182906001600160a01b038916906000906000805160206128fa833981519152908290a46121f56000888480600101955088611e81565b612212576040516368d2bf6b60e11b815260040160405180910390fd5b808214156121bc57826000541461222857600080fd5b612261565b5b6040516001830192906001600160a01b038916906000906000805160206128fa833981519152908290a48082141561222e575b50600055611ba3565b82805461227690612837565b90600052602060002090601f01602090048101928261229857600085556122de565b82601f106122b157805160ff19168380011785556122de565b828001600101855582156122de579182015b828111156122de5782518255916020019190600101906122c3565b506122ea9291506122ee565b5090565b5b808211156122ea57600081556001016122ef565b60006001600160401b038084111561231d5761231d6128cd565b604051601f8501601f19908116603f01168101908282118183101715612345576123456128cd565b8160405280935085815286868601111561235e57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461238f57600080fd5b919050565b60008083601f8401126123a5578081fd5b5081356001600160401b038111156123bb578182fd5b6020830191508360208260051b85010111156123d657600080fd5b9250929050565b6000602082840312156123ee578081fd5b61176d82612378565b60008060408385031215612409578081fd5b61241283612378565b915061242060208401612378565b90509250929050565b60008060006060848603121561243d578081fd5b61244684612378565b925061245460208501612378565b9150604084013590509250925092565b60008060008060808587031215612479578081fd5b61248285612378565b935061249060208601612378565b92506040850135915060608501356001600160401b038111156124b1578182fd5b8501601f810187136124c1578182fd5b6124d087823560208401612303565b91505092959194509250565b600080604083850312156124ee578182fd5b6124f783612378565b91506020830135801515811461250b578182fd5b809150509250929050565b60008060408385031215612528578182fd5b61253183612378565b946020939093013593505050565b60008060208385031215612551578182fd5b82356001600160401b03811115612566578283fd5b61257285828601612394565b90969095509350505050565b60008060008060408587031215612593578384fd5b84356001600160401b03808211156125a9578586fd5b6125b588838901612394565b909650945060208701359150808211156125cd578384fd5b506125da87828801612394565b95989497509550505050565b6000602082840312156125f7578081fd5b813561176d816128e3565b600060208284031215612613578081fd5b815161176d816128e3565b60006020828403121561262f578081fd5b81356001600160401b03811115612644578182fd5b8201601f81018413612654578182fd5b611f7184823560208401612303565b600060208284031215612674578081fd5b5035919050565b6000815180845261269381602086016020860161280b565b601f01601f19169290920160200192915050565b600083516126b981846020880161280b565b8351908301906126cd81836020880161280b565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127099083018461267b565b9695505050505050565b60208152600061176d602083018461267b565b6020808252600890820152671cdbdb19081bdd5d60c21b604082015260600190565b60208082526012908201527165786365656473206d617820737570706c7960701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156127bc576127bc6128a1565b500190565b6000826127d0576127d06128b7565b500490565b60008160001904831182151516156127ef576127ef6128a1565b500290565b600082821015612806576128066128a1565b500390565b60005b8381101561282657818101518382015260200161280e565b83811115610d915750506000910152565b600181811c9082168061284b57607f821691505b6020821081141561286c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612886576128866128a1565b5060010190565b60008261289c5761289c6128b7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110df57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122026203e113346f4249eaf6ddfb066127fec1a6fbae3e81a9faaa606e250130fa464736f6c63430008040033697066733a2f2f516d57316975436b456356656b4a48745731775234533244557538517673767766696677636833776152613333662f

Deployed Bytecode

0x6080604052600436106102c95760003560e01c806371da623711610175578063a22cb465116100dc578063d828716311610095578063ecb923601161006f578063ecb9236014610872578063f2fde38b1461089f578063f69af31e146108bf578063f6a03d2d146108d457600080fd5b8063d8287163146107f4578063ddd0e83d14610809578063e985e9c51461082957600080fd5b8063a22cb4651461073f578063b5cfe3d21461075f578063b6f3ce0014610774578063b88d4fde14610794578063c87b56dd146107b4578063d031370b146107d457600080fd5b8063866154e71161012e578063866154e7146106915780638ba4cc3c146106b15780638c4290c5146106d15780638da5cb5b146106ec578063923a36361461070a57806395d89b411461072a57600080fd5b806371da6237146105e0578063775b9c13146106005780637a5347e414610620578063833b94991461063657806383b9272b1461065157806385bbbecf1461067257600080fd5b80633ccfd60b116102345780634ffc1c74116101ed5780636e9787d2116101c75780636e9787d21461055e5780636f8b44b01461058b57806370a08231146105ab578063715018a6146105cb57600080fd5b80634ffc1c741461050457806355f804b31461051e5780636352211e1461053e57600080fd5b80633ccfd60b146104655780633ee501b41461047a57806342842e0e1461048f57806342966c68146104af57806345aa6201146104cf5780634e71d92d146104ef57600080fd5b806318160ddd1161028657806318160ddd146103d057806322f4596f146103e957806323b872dd146103ff5780632db115441461041f5780632f1a41bc1461043257806335dfb0cf1461045257600080fd5b806301ffc9a7146102ce57806305d60ffb1461030357806306fdde031461033e578063081812fc14610360578063095ea7b31461039857806316e41e28146103ba575b600080fd5b3480156102da57600080fd5b506102ee6102e93660046125e6565b6108ea565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061033061031e3660046123dd565b60126020526000908152604090205481565b6040519081526020016102fa565b34801561034a57600080fd5b5061035361093c565b6040516102fa9190612713565b34801561036c57600080fd5b5061038061037b366004612663565b6109ce565b6040516001600160a01b0390911681526020016102fa565b3480156103a457600080fd5b506103b86103b3366004612516565b610a12565b005b3480156103c657600080fd5b50610330600d5481565b3480156103dc57600080fd5b5060015460005403610330565b3480156103f557600080fd5b5061033060095481565b34801561040b57600080fd5b506103b861041a366004612429565b610aa0565b6103b861042d366004612663565b610aab565b34801561043e57600080fd5b506103b861044d36600461253f565b610cf4565b6103b8610460366004612663565b610d97565b34801561047157600080fd5b506103b8610fb4565b34801561048657600080fd5b506103b861101c565b34801561049b57600080fd5b506103b86104aa366004612429565b611067565b3480156104bb57600080fd5b506103b86104ca366004612663565b611082565b3480156104db57600080fd5b50600e54610380906001600160a01b031681565b3480156104fb57600080fd5b506103b86110e2565b34801561051057600080fd5b50600b546102ee9060ff1681565b34801561052a57600080fd5b506103b861053936600461261e565b61127d565b34801561054a57600080fd5b50610380610559366004612663565b6112ba565b34801561056a57600080fd5b506103306105793660046123dd565b60116020526000908152604090205481565b34801561059757600080fd5b506103b86105a6366004612663565b6112cc565b3480156105b757600080fd5b506103306105c63660046123dd565b6112fb565b3480156105d757600080fd5b506103b8611349565b3480156105ec57600080fd5b506103b86105fb366004612663565b6113bd565b34801561060c57600080fd5b506103b861061b36600461253f565b6113ec565b34801561062c57600080fd5b50610330600a5481565b34801561064257600080fd5b5061033066b1a2bc2ec5000081565b34801561065d57600080fd5b50600b546102ee906301000000900460ff1681565b34801561067e57600080fd5b50600b546102ee90610100900460ff1681565b34801561069d57600080fd5b506103b86106ac36600461257e565b611489565b3480156106bd57600080fd5b506103b86106cc366004612516565b611553565b3480156106dd57600080fd5b5061033066470de4df82000081565b3480156106f857600080fd5b506008546001600160a01b0316610380565b34801561071657600080fd5b50600b546102ee9062010000900460ff1681565b34801561073657600080fd5b50610353611587565b34801561074b57600080fd5b506103b861075a3660046124dc565b611596565b34801561076b57600080fd5b506103b861162c565b34801561078057600080fd5b506103b861078f366004612663565b611675565b3480156107a057600080fd5b506103b86107af366004612464565b6116a4565b3480156107c057600080fd5b506103536107cf366004612663565b6116ef565b3480156107e057600080fd5b506103b86107ef366004612663565b611774565b34801561080057600080fd5b506103b86117a8565b34801561081557600080fd5b506103b8610824366004612663565b6117e6565b34801561083557600080fd5b506102ee6108443660046123f7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561087e57600080fd5b5061033061088d3660046123dd565b60106020526000908152604090205481565b3480156108ab57600080fd5b506103b86108ba3660046123dd565b611815565b3480156108cb57600080fd5b506103b8611900565b3480156108e057600080fd5b50610330600c5481565b60006001600160e01b031982166380ac58cd60e01b148061091b57506001600160e01b03198216635b5e139f60e01b145b8061093657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461094b90612837565b80601f016020809104026020016040519081016040528092919081815260200182805461097790612837565b80156109c45780601f10610999576101008083540402835291602001916109c4565b820191906000526020600020905b8154815290600101906020018083116109a757829003601f168201915b5050505050905090565b60006109d982611947565b6109f6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a1d826112ba565b9050806001600160a01b0316836001600160a01b03161415610a525760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a725750610a708133610844565b155b15610a90576040516367d9dca160e11b815260040160405180910390fd5b610a9b838383611972565b505050565b610a9b8383836119ce565b600c54421015610b025760405162461bcd60e51b815260206004820152601760248201527f6d696e74696e6720686173206e6f74207374617274656400000000000000000060448201526064015b60405180910390fd5b600d54600c54610b1291906127a9565b421015610b905733600090815260126020526040902054610b905760405162461bcd60e51b815260206004820152603260248201527f6e65656420746f206265206f6e2077686974656c69737420746f206d696e7420604482015271647572696e6720746869732077696e646f7760701b6064820152608401610af9565b600b5462010000900460ff16610be15760405162461bcd60e51b81526020600482015260166024820152751b5a5b9d1a5b99c81a5cc81b9bdd08195b98589b195960521b6044820152606401610af9565b6009546001546000540310610c085760405162461bcd60e51b8152600401610af990612726565b60095481610c196001546000540390565b610c2391906127a9565b1115610c415760405162461bcd60e51b8152600401610af990612748565b600a54811115610c8a5760405162461bcd60e51b815260206004820152601460248201527336b0bc1019903a37b5b2b739903832b9103a3c3760611b6044820152606401610af9565b610c9b66b1a2bc2ec50000826127d5565b3414610cd75760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b6044820152606401610af9565b610ce13382611baa565b5033600090815260126020526040812055565b6008546001600160a01b03163314610d1e5760405162461bcd60e51b8152600401610af990612774565b8060005b81811015610d9157600160116000868685818110610d5057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d6591906123dd565b6001600160a01b0316815260208101919091526040016000205580610d8981612872565b915050610d22565b50505050565b600c54421015610df55760405162461bcd60e51b8152602060048201526024808201527f7472656520686f6c64657273206d696e74696e6720686173206e6f74207374616044820152631c9d195960e21b6064820152608401610af9565b600b54610100900460ff16610e455760405162461bcd60e51b81526020600482015260166024820152751b5a5b9d1a5b99c81a5cc81b9bdd08195b98589b195960521b6044820152606401610af9565b6009546001546000540310610e6c5760405162461bcd60e51b8152600401610af990612726565b60095481610e7d6001546000540390565b610e8791906127a9565b1115610ea55760405162461bcd60e51b8152600401610af990612748565b600a54811115610eee5760405162461bcd60e51b815260206004820152601460248201527336b0bc1019903a37b5b2b739903832b9103a3c3760611b6044820152606401610af9565b33600090815260116020526040902054610f4a5760405162461bcd60e51b815260206004820181905260248201527f6e6f204152424f20746f6b656e206f7220616c726561647920636c61696d65646044820152606401610af9565b610f5b66470de4df820000826127d5565b3414610f975760405162461bcd60e51b815260206004820152600b60248201526a77726f6e672076616c756560a81b6044820152606401610af9565b610fa13382611baa565b5033600090815260116020526040812055565b6008546001600160a01b03163314610fde5760405162461bcd60e51b8152600401610af990612774565b600e5460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015611018573d6000803e3d6000fd5b5050565b6008546001600160a01b031633146110465760405162461bcd60e51b8152600401610af990612774565b600b805463ff00000019811663010000009182900460ff1615909102179055565b610a9b838383604051806020016040528060008152506116a4565b600b546301000000900460ff166110d45760405162461bcd60e51b8152602060048201526016602482015275189d5c9b9a5b99c81a5cc81b9bdd08195b98589b195960521b6044820152606401610af9565b6110df816001611bb4565b50565b600c544210156111345760405162461bcd60e51b815260206004820152601860248201527f636c61696d696e6720686173206e6f74207374617274656400000000000000006044820152606401610af9565b600b5460ff166111865760405162461bcd60e51b815260206004820152601760248201527f636c61696d696e67206973206e6f7420656e61626c65640000000000000000006044820152606401610af9565b60095460015460005403106111ad5760405162461bcd60e51b8152600401610af990612726565b600954336000908152601060205260409020546111cd6001546000540390565b6111d791906127a9565b11156111f55760405162461bcd60e51b8152600401610af990612748565b336000908152601060205260409020546112515760405162461bcd60e51b815260206004820181905260248201527f4e6f205741574920746f6b656e206f7220616c726561647920636c61696d65646044820152606401610af9565b3360008181526010602052604090205461126b9190611baa565b33600090815260106020526040812055565b6008546001600160a01b031633146112a75760405162461bcd60e51b8152600401610af990612774565b805161101890600f90602084019061226a565b60006112c582611d67565b5192915050565b6008546001600160a01b031633146112f65760405162461bcd60e51b8152600401610af990612774565b600955565b60006001600160a01b038216611324576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146113735760405162461bcd60e51b8152600401610af990612774565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6008546001600160a01b031633146113e75760405162461bcd60e51b8152600401610af990612774565b600c55565b6008546001600160a01b031633146114165760405162461bcd60e51b8152600401610af990612774565b8060005b81811015610d915760016012600086868581811061144857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061145d91906123dd565b6001600160a01b031681526020810191909152604001600020558061148181612872565b91505061141a565b6008546001600160a01b031633146114b35760405162461bcd60e51b8152600401610af990612774565b8260005b8181101561154b578383828181106114df57634e487b7160e01b600052603260045260246000fd5b905060200201356010600088888581811061150a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061151f91906123dd565b6001600160a01b031681526020810191909152604001600020558061154381612872565b9150506114b7565b505050505050565b6008546001600160a01b0316331461157d5760405162461bcd60e51b8152600401610af990612774565b6110188282611baa565b60606003805461094b90612837565b6001600160a01b0382163314156115c05760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146116565760405162461bcd60e51b8152600401610af990612774565b600b805462ff0000198116620100009182900460ff1615909102179055565b6008546001600160a01b0316331461169f5760405162461bcd60e51b8152600401610af990612774565b600a55565b6116af8484846119ce565b6001600160a01b0383163b151580156116d157506116cf84848484611e81565b155b15610d91576040516368d2bf6b60e11b815260040160405180910390fd5b60606116fa82611947565b61171757604051630a14c4b560e41b815260040160405180910390fd5b6000611721611f79565b9050805160001415611742576040518060200160405280600081525061176d565b8061174c84611f88565b60405160200161175d9291906126a7565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461179e5760405162461bcd60e51b8152600401610af990612774565b6110df3382611baa565b6008546001600160a01b031633146117d25760405162461bcd60e51b8152600401610af990612774565b600b805460ff19811660ff90911615179055565b6008546001600160a01b031633146118105760405162461bcd60e51b8152600401610af990612774565b600d55565b6008546001600160a01b0316331461183f5760405162461bcd60e51b8152600401610af990612774565b6001600160a01b0381166118a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610af9565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b0316331461192a5760405162461bcd60e51b8152600401610af990612774565b600b805461ff001981166101009182900460ff1615909102179055565b6000805482108015610936575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006119d982611d67565b9050836001600160a01b031681600001516001600160a01b031614611a105760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611a2e5750611a2e8533610844565b80611a49575033611a3e846109ce565b6001600160a01b0316145b905080611a6957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611a9057604051633a954ecd60e21b815260040160405180910390fd5b611a9c60008487611972565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611b70576000548214611b7057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206128fa83398151915260405160405180910390a45b5050505050565b61101882826120a1565b6000611bbf83611d67565b80519091508215611c25576000336001600160a01b0383161480611be85750611be88233610844565b80611c03575033611bf8866109ce565b6001600160a01b0316145b905080611c2357604051632ce44b5f60e11b815260040160405180910390fd5b505b611c3160008583611972565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116611d2f576000548214611d2f57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206128fa833981519152908390a4505060018054810190555050565b604080516060810182526000808252602082018190529181019190915281600054811015611e6857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611e665780516001600160a01b031615611dfd579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611e61579392505050565b611dfd565b505b604051636f96cda160e11b815260040160405180910390fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611eb69033908990889088906004016126d6565b602060405180830381600087803b158015611ed057600080fd5b505af1925050508015611f00575060408051601f3d908101601f19168201909252611efd91810190612602565b60015b611f5b573d808015611f2e576040519150601f19603f3d011682016040523d82523d6000602084013e611f33565b606091505b508051611f53576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f805461094b90612837565b606081611fac5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fd65780611fc081612872565b9150611fcf9050600a836127c1565b9150611fb0565b6000816001600160401b03811115611ffe57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612028576020820181803683370190505b5090505b8415611f715761203d6001836127f4565b915061204a600a8661288d565b6120559060306127a9565b60f81b81838151811061207857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061209a600a866127c1565b945061202c565b611018828260405180602001604052806000815250610a9b83838360016000546001600160a01b0385166120e757604051622e076360e81b815260040160405180910390fd5b836121055760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156121b657506001600160a01b0387163b15155b1561222d575b60405182906001600160a01b038916906000906000805160206128fa833981519152908290a46121f56000888480600101955088611e81565b612212576040516368d2bf6b60e11b815260040160405180910390fd5b808214156121bc57826000541461222857600080fd5b612261565b5b6040516001830192906001600160a01b038916906000906000805160206128fa833981519152908290a48082141561222e575b50600055611ba3565b82805461227690612837565b90600052602060002090601f01602090048101928261229857600085556122de565b82601f106122b157805160ff19168380011785556122de565b828001600101855582156122de579182015b828111156122de5782518255916020019190600101906122c3565b506122ea9291506122ee565b5090565b5b808211156122ea57600081556001016122ef565b60006001600160401b038084111561231d5761231d6128cd565b604051601f8501601f19908116603f01168101908282118183101715612345576123456128cd565b8160405280935085815286868601111561235e57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461238f57600080fd5b919050565b60008083601f8401126123a5578081fd5b5081356001600160401b038111156123bb578182fd5b6020830191508360208260051b85010111156123d657600080fd5b9250929050565b6000602082840312156123ee578081fd5b61176d82612378565b60008060408385031215612409578081fd5b61241283612378565b915061242060208401612378565b90509250929050565b60008060006060848603121561243d578081fd5b61244684612378565b925061245460208501612378565b9150604084013590509250925092565b60008060008060808587031215612479578081fd5b61248285612378565b935061249060208601612378565b92506040850135915060608501356001600160401b038111156124b1578182fd5b8501601f810187136124c1578182fd5b6124d087823560208401612303565b91505092959194509250565b600080604083850312156124ee578182fd5b6124f783612378565b91506020830135801515811461250b578182fd5b809150509250929050565b60008060408385031215612528578182fd5b61253183612378565b946020939093013593505050565b60008060208385031215612551578182fd5b82356001600160401b03811115612566578283fd5b61257285828601612394565b90969095509350505050565b60008060008060408587031215612593578384fd5b84356001600160401b03808211156125a9578586fd5b6125b588838901612394565b909650945060208701359150808211156125cd578384fd5b506125da87828801612394565b95989497509550505050565b6000602082840312156125f7578081fd5b813561176d816128e3565b600060208284031215612613578081fd5b815161176d816128e3565b60006020828403121561262f578081fd5b81356001600160401b03811115612644578182fd5b8201601f81018413612654578182fd5b611f7184823560208401612303565b600060208284031215612674578081fd5b5035919050565b6000815180845261269381602086016020860161280b565b601f01601f19169290920160200192915050565b600083516126b981846020880161280b565b8351908301906126cd81836020880161280b565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127099083018461267b565b9695505050505050565b60208152600061176d602083018461267b565b6020808252600890820152671cdbdb19081bdd5d60c21b604082015260600190565b60208082526012908201527165786365656473206d617820737570706c7960701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156127bc576127bc6128a1565b500190565b6000826127d0576127d06128b7565b500490565b60008160001904831182151516156127ef576127ef6128a1565b500290565b600082821015612806576128066128a1565b500390565b60005b8381101561282657818101518382015260200161280e565b83811115610d915750506000910152565b600181811c9082168061284b57607f821691505b6020821081141561286c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612886576128866128a1565b5060010190565b60008261289c5761289c6128b7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110df57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122026203e113346f4249eaf6ddfb066127fec1a6fbae3e81a9faaa606e250130fa464736f6c63430008040033

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.