ETH Price: $2,355.54 (+0.62%)

Token

Skoodles (SK)
 

Overview

Max Total Supply

483 SK

Holders

267

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 SK
0x957f8e6ad17233f57a06d1bc42f17f606121b42b
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Skoodles

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 2000 runs

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

    pragma solidity ^0.8.12;

    import "erc721a/contracts/ERC721A.sol";
    import "@openzeppelin/contracts/access/Ownable.sol";
    import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
    import "@openzeppelin/contracts/utils/Strings.sol";
    import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

    contract Skoodles is Ownable, ERC721A, ReentrancyGuard {
        string public notRevealedUri;   
        string public baseExtension = ".json";
        
        uint256 public MAX_SUPPLY = 1000;
        uint256 public PRICE = 0.035 ether;
        uint256 public PRESALE_PRICE = 0.029 ether;
        uint256 public _reserveCounter;
        uint256 public _airdropCounter;
        uint256 public _preSaleListCounter;
        uint256 public _publicCounter;
        uint256 public maxPresaleMintAmount = 10;
        uint256 public maxpublicsaleMintAmount = 10;
        uint256 public saleMode = 1; // 1- presale 2- public sale

        bool public _revealed = false;

        mapping(address => bool) public allowList;
        mapping(address => uint256) public _preSaleMintCounter;
        mapping(address => uint256) public _publicsaleMintCounter;

        // merkle root
        bytes32 public preSaleRoot;

        constructor(
            string memory name,
            string memory symbol,
            string memory _notRevealedUri
        )
            ERC721A(name, symbol)
        {
            setNotRevealedURI(_notRevealedUri);
        }

        function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
        {
            require(
                _exists(tokenId),
                "ERC721AMetadata: URI query for nonexistent token"
            );

            if(_revealed == false) {
                return notRevealedUri;
            }

            string memory currentBaseURI = _baseURI();
            return bytes(currentBaseURI).length > 0
            ? string(abi.encodePacked(currentBaseURI, Strings.toString(tokenId), baseExtension))
            : "";
        }

        function setMode(uint256 mode) public onlyOwner{
            saleMode = mode;
        }

        function getSaleMode() public view returns (uint256){
            return saleMode;
        }

        function setMaxSupply(uint256 _maxSupply) public onlyOwner {
            MAX_SUPPLY = _maxSupply;
        }

        function setMaxPresaleMintAmount(uint256 _newQty) public onlyOwner {
            maxPresaleMintAmount = _newQty;
        }

        function setPublicsaleMintAmount(uint256 _newQty) public onlyOwner {
            maxpublicsaleMintAmount = _newQty;
        }

        function setCost(uint256 _newCost) public onlyOwner {
            PRICE = _newCost;
        }

        function setPresaleMintPrice(uint256 _newCost) public onlyOwner {
            PRESALE_PRICE = _newCost;
        }

        function setPreSaleRoot(bytes32 _merkleRoot) public onlyOwner {
            preSaleRoot = _merkleRoot;
        }

        function reserveMint(uint256 quantity) public onlyOwner {
            require(
                totalSupply() + quantity <= MAX_SUPPLY,
                "would exceed max supply"
            );
            _safeMint(msg.sender, quantity);
            _reserveCounter = _reserveCounter + quantity;
        }

        function airDrop(address to, uint256 quantity) public onlyOwner{
            require(
                totalSupply() + quantity <= MAX_SUPPLY,
                "would exceed max supply"
            );
            require(quantity > 0, "need to mint at least 1 NFT");
            _safeMint(to, quantity);
            _airdropCounter = _airdropCounter + quantity;
        }

        // metadata URI
        string private _baseTokenURI;

        function setBaseURI(string calldata baseURI) public onlyOwner {
            _baseTokenURI = baseURI;
        }

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

        function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
            notRevealedUri = _notRevealedURI;
        }

        function reveal(bool _state) public onlyOwner {
            _revealed = _state;
        }

        function mintPreSaleTokens(uint8 quantity, bytes32[] calldata _merkleProof)
            public
            payable
            nonReentrant
        {
            require(saleMode == 1, "Pre sale is not active");
            require(quantity > 0, "Must mint more than 0 tokens");
            require(
                _preSaleMintCounter[msg.sender] + quantity <= maxPresaleMintAmount,
                "exceeds max per address"
            );
            require(
                totalSupply() + quantity <= MAX_SUPPLY,
                "Purchase would exceed max supply of Tokens"
            );
            require(PRESALE_PRICE * quantity == msg.value, "Incorrect funds");

            // check proof & mint
            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            require(
                MerkleProof.verify(_merkleProof, preSaleRoot, leaf) ||
                    allowList[msg.sender],
                "Invalid signature/ Address not whitelisted"
            );
            _safeMint(msg.sender, quantity);
            _preSaleListCounter = _preSaleListCounter + quantity;
            _preSaleMintCounter[msg.sender] = _preSaleMintCounter[msg.sender] + quantity;
        }

        function addToPreSaleOverflow(address[] calldata addresses)
            external
            onlyOwner
        {
            for (uint256 i = 0; i < addresses.length; i++) {
                allowList[addresses[i]] = true;
            }
        }

        // public mint
        function publicSaleMint(uint256 quantity)
            public
            payable
            nonReentrant
        {
            require(totalSupply() + quantity <= MAX_SUPPLY, "reached max supply");
            require(saleMode == 2, "public sale has not begun yet");
            require(quantity > 0, "Must mint more than 0 tokens");
            require(PRICE * quantity == msg.value, "Incorrect funds");
            require(
                _publicsaleMintCounter[msg.sender] + quantity <= maxpublicsaleMintAmount,
                "exceeds max per address"
            );

            _safeMint(msg.sender, quantity);
            _publicCounter = _publicCounter + quantity;
            _publicsaleMintCounter[msg.sender] = _publicsaleMintCounter[msg.sender] + quantity;
        }

        function getBalance() public view returns (uint256) {
            return address(this).balance;
        }

        function _startTokenId() internal virtual override view returns (uint256) {
            return 1;
        }
        
        //withdraw to owner wallet
        function withdraw() public payable onlyOwner nonReentrant {
            uint256 balance = address(this).balance;
            require(balance > 0, "No ether left to withdraw");
            payable(msg.sender).transfer(balance);
        }
    }

File 2 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 4 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 8 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @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 IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

    /**
     * @dev Returns the starting token ID. 
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev 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 Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_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 {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // 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.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @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, _toString(tokenId))) : '';
    }

    /**
     * @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 Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @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 == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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.code.length != 0)
            if (!_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 && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 {
        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 {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                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 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) 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 {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev 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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        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 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 ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 7 of 8 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_notRevealedUri","type":"string"}],"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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_airdropCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_preSaleListCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_preSaleMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_publicsaleMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_reserveCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToPreSaleOverflow","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"}],"name":"allowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxpublicsaleMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintPreSaleTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newQty","type":"uint256"}],"name":"setMaxPresaleMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mode","type":"uint256"}],"name":"setMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setPreSaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setPresaleMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newQty","type":"uint256"}],"name":"setPublicsaleMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60c06040526005608081905264173539b7b760d91b60a09081526200002891600b9190620001ad565b506103e8600c55667c585087238000600d5566670758aa7c8000600e55600a601381905560145560016015556016805460ff191690553480156200006b57600080fd5b50604051620033b2380380620033b28339810160408190526200008e9162000320565b82826200009b33620000e5565b8151620000b0906003906020850190620001ad565b508051620000c6906004906020840190620001ad565b5050600180805560095550620000dc8162000135565b505050620003ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001a990600a906020840190620001ad565b5050565b828054620001bb90620003b1565b90600052602060002090601f016020900481019282620001df57600085556200022a565b82601f10620001fa57805160ff19168380011785556200022a565b828001600101855582156200022a579182015b828111156200022a5782518255916020019190600101906200020d565b50620002389291506200023c565b5090565b5b808211156200023857600081556001016200023d565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027b57600080fd5b81516001600160401b038082111562000298576200029862000253565b604051601f8301601f19908116603f01168101908282118183101715620002c357620002c362000253565b81604052838152602092508683858801011115620002e057600080fd5b600091505b83821015620003045785820183015181830184015290820190620002e5565b83821115620003165760008385830101525b9695505050505050565b6000806000606084860312156200033657600080fd5b83516001600160401b03808211156200034e57600080fd5b6200035c8783880162000269565b945060208601519150808211156200037357600080fd5b620003818783880162000269565b935060408601519150808211156200039857600080fd5b50620003a78682870162000269565b9150509250925092565b600181811c90821680620003c657607f821691505b60208210811415620003e857634e487b7160e01b600052602260045260246000fd5b50919050565b612fb480620003fe6000396000f3fe60806040526004361061033f5760003560e01c8063715018a6116101b0578063c87b56dd116100ec578063da22488c11610095578063f2c4ce1e1161006f578063f2c4ce1e146108e3578063f2fde38b14610903578063f8c8d49914610923578063fe042d491461094357600080fd5b8063da22488c14610867578063e7661c7814610887578063e985e9c51461089a57600080fd5b8063d76fd220116100c6578063d76fd22014610804578063d7719f6414610824578063d99079ca1461085157600080fd5b8063c87b56dd146107ae578063cc523f26146107ce578063d72dd3b4146107e457600080fd5b8063940cd05b11610159578063a22cb46511610133578063a22cb46514610746578063b3ab66b014610766578063b88d4fde14610779578063c66828621461079957600080fd5b8063940cd05b146106e457806395d89b41146107045780639b257d731461071957600080fd5b806389f3b22d1161018a57806389f3b22d1461069a5780638d859f3e146106b05780638da5cb5b146106c657600080fd5b8063715018a614610659578063715a609d1461066e578063854807561461068457600080fd5b80632848aeaf1161027f57806344a0d68a116102285780636352211e116102025780636352211e146105df5780636ebeac85146105ff5780636f8b44b01461061957806370a082311461063957600080fd5b806344a0d68a1461058957806355f804b3146105a957806362dc6e21146105c957600080fd5b806337a131931161025957806337a13193146105415780633ccfd60b1461056157806342842e0e1461056957600080fd5b80632848aeaf146104e55780633154b9c21461051557806332cb6b0c1461052b57600080fd5b80630d43ebc2116102ec5780631342ff4c116102c65780631342ff4c1461047257806317c84ce61461049257806318160ddd146104a857806323b872dd146104c557600080fd5b80630d43ebc21461042a5780630deed6a61461044957806312065fe01461045f57600080fd5b8063081812fc1161031d578063081812fc146103bd578063081c8c44146103f5578063095ea7b31461040a57600080fd5b806301ffc9a714610344578063045f78501461037957806306fdde031461039b575b600080fd5b34801561035057600080fd5b5061036461035f3660046128e1565b610963565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b5061039961039436600461291a565b610a48565b005b3480156103a757600080fd5b506103b0610b7f565b604051610370919061299c565b3480156103c957600080fd5b506103dd6103d83660046129af565b610c11565b6040516001600160a01b039091168152602001610370565b34801561040157600080fd5b506103b0610c6e565b34801561041657600080fd5b5061039961042536600461291a565b610cfc565b34801561043657600080fd5b506015545b604051908152602001610370565b34801561045557600080fd5b5061043b60155481565b34801561046b57600080fd5b504761043b565b34801561047e57600080fd5b5061039961048d3660046129af565b610e0e565b34801561049e57600080fd5b5061043b600f5481565b3480156104b457600080fd5b50600254600154036000190161043b565b3480156104d157600080fd5b506103996104e03660046129c8565b610eef565b3480156104f157600080fd5b50610364610500366004612a04565b60176020526000908152604090205460ff1681565b34801561052157600080fd5b5061043b601a5481565b34801561053757600080fd5b5061043b600c5481565b34801561054d57600080fd5b5061039961055c3660046129af565b610eff565b610399610f5e565b34801561057557600080fd5b506103996105843660046129c8565b611094565b34801561059557600080fd5b506103996105a43660046129af565b6110af565b3480156105b557600080fd5b506103996105c4366004612a1f565b61110e565b3480156105d557600080fd5b5061043b600e5481565b3480156105eb57600080fd5b506103dd6105fa3660046129af565b611174565b34801561060b57600080fd5b506016546103649060ff1681565b34801561062557600080fd5b506103996106343660046129af565b61117f565b34801561064557600080fd5b5061043b610654366004612a04565b6111de565b34801561066557600080fd5b50610399611246565b34801561067a57600080fd5b5061043b60125481565b34801561069057600080fd5b5061043b60135481565b3480156106a657600080fd5b5061043b60105481565b3480156106bc57600080fd5b5061043b600d5481565b3480156106d257600080fd5b506000546001600160a01b03166103dd565b3480156106f057600080fd5b506103996106ff366004612aa1565b6112ac565b34801561071057600080fd5b506103b0611319565b34801561072557600080fd5b5061043b610734366004612a04565b60196020526000908152604090205481565b34801561075257600080fd5b50610399610761366004612abc565b611328565b6103996107743660046129af565b6113d7565b34801561078557600080fd5b50610399610794366004612b7b565b611656565b3480156107a557600080fd5b506103b06116a0565b3480156107ba57600080fd5b506103b06107c93660046129af565b6116ad565b3480156107da57600080fd5b5061043b60145481565b3480156107f057600080fd5b506103996107ff3660046129af565b611825565b34801561081057600080fd5b5061039961081f3660046129af565b611884565b34801561083057600080fd5b5061043b61083f366004612a04565b60186020526000908152604090205481565b34801561085d57600080fd5b5061043b60115481565b34801561087357600080fd5b50610399610882366004612c43565b6118e3565b610399610895366004612c85565b6119af565b3480156108a657600080fd5b506103646108b5366004612ce0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108ef57600080fd5b506103996108fe366004612d0a565b611d7f565b34801561090f57600080fd5b5061039961091e366004612a04565b611df0565b34801561092f57600080fd5b5061039961093e3660046129af565b611ed2565b34801561094f57600080fd5b5061039961095e3660046129af565b611f31565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806109f657507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610a4257507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000546001600160a01b03163314610aa75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600c546002546001548391900360001901610ac29190612d69565b1115610b105760405162461bcd60e51b815260206004820152601760248201527f776f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610a9e565b60008111610b605760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610a9e565b610b6a8282611f90565b80601054610b789190612d69565b6010555050565b606060038054610b8e90612d81565b80601f0160208091040260200160405190810160405280929190818152602001828054610bba90612d81565b8015610c075780601f10610bdc57610100808354040283529160200191610c07565b820191906000526020600020905b815481529060010190602001808311610bea57829003601f168201915b5050505050905090565b6000610c1c82611faa565b610c52576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600a8054610c7b90612d81565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790612d81565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b505050505081565b6000610d0782611ff8565b9050806001600160a01b0316836001600160a01b03161415610d55576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610da557610d6f81336108b5565b610da5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b03163314610e685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600c546002546001548391900360001901610e839190612d69565b1115610ed15760405162461bcd60e51b815260206004820152601760248201527f776f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610a9e565b610edb3382611f90565b80600f54610ee99190612d69565b600f5550565b610efa838383612093565b505050565b6000546001600160a01b03163314610f595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600e55565b6000546001600160a01b03163314610fb85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6002600954141561100b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600955478061105e5760405162461bcd60e51b815260206004820152601960248201527f4e6f206574686572206c65667420746f207769746864726177000000000000006044820152606401610a9e565b604051339082156108fc029083906000818181858888f1935050505015801561108b573d6000803e3d6000fd5b50506001600955565b610efa83838360405180602001604052806000815250611656565b6000546001600160a01b031633146111095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600d55565b6000546001600160a01b031633146111685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b610efa601b83836127a6565b6000610a4282611ff8565b6000546001600160a01b031633146111d95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600c55565b60006001600160a01b038216611220576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146112a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6112aa60006122a8565b565b6000546001600160a01b031633146113065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6016805460ff1916911515919091179055565b606060048054610b8e90612d81565b6001600160a01b03821633141561136b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600954141561142a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600955600c54816114466002546001546000199190030190565b6114509190612d69565b111561149e5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610a9e565b6015546002146114f05760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e207965740000006044820152606401610a9e565b600081116115405760405162461bcd60e51b815260206004820152601c60248201527f4d757374206d696e74206d6f7265207468616e203020746f6b656e73000000006044820152606401610a9e565b3481600d5461154f9190612dbc565b1461159c5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610a9e565b601454336000908152601960205260409020546115ba908390612d69565b11156116085760405162461bcd60e51b815260206004820152601760248201527f65786365656473206d61782070657220616464726573730000000000000000006044820152606401610a9e565b6116123382611f90565b806012546116209190612d69565b6012553360009081526019602052604090205461163e908290612d69565b33600090815260196020526040902055506001600955565b611661848484612093565b6001600160a01b0383163b1561169a5761167d84848484612305565b61169a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600b8054610c7b90612d81565b60606116b882611faa565b61172a5760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610a9e565b60165460ff166117c657600a805461174190612d81565b80601f016020809104026020016040519081016040528092919081815260200182805461176d90612d81565b80156117ba5780601f1061178f576101008083540402835291602001916117ba565b820191906000526020600020905b81548152906001019060200180831161179d57829003601f168201915b50505050509050919050565b60006117d0612438565b905060008151116117f0576040518060200160405280600081525061181e565b806117fa84612447565b600b60405160200161180e93929190612ddb565b6040516020818303038152906040525b9392505050565b6000546001600160a01b0316331461187f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601555565b6000546001600160a01b031633146118de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601355565b6000546001600160a01b0316331461193d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b60005b81811015610efa5760016017600085858581811061196057611960612e9f565b90506020020160208101906119759190612a04565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806119a781612eb5565b915050611940565b60026009541415611a025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600955601554600114611a595760405162461bcd60e51b815260206004820152601660248201527f5072652073616c65206973206e6f7420616374697665000000000000000000006044820152606401610a9e565b60008360ff1611611aac5760405162461bcd60e51b815260206004820152601c60248201527f4d757374206d696e74206d6f7265207468616e203020746f6b656e73000000006044820152606401610a9e565b60135433600090815260186020526040902054611acd9060ff861690612d69565b1115611b1b5760405162461bcd60e51b815260206004820152601760248201527f65786365656473206d61782070657220616464726573730000000000000000006044820152606401610a9e565b600c5460025460015460ff861691900360001901611b399190612d69565b1115611bad5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620546f6b656e73000000000000000000000000000000000000000000006064820152608401610a9e565b348360ff16600e54611bbf9190612dbc565b14611c0c5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610a9e565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152600090603401604051602081830303815290604052805190602001209050611c9983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601a549150849050612579565b80611cb357503360009081526017602052604090205460ff165b611d255760405162461bcd60e51b815260206004820152602a60248201527f496e76616c6964207369676e61747572652f2041646472657373206e6f74207760448201527f686974656c6973746564000000000000000000000000000000000000000000006064820152608401610a9e565b611d32338560ff16611f90565b8360ff16601154611d439190612d69565b60115533600090815260186020526040902054611d649060ff861690612d69565b33600090815260186020526040902055505060016009555050565b6000546001600160a01b03163314611dd95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b8051611dec90600a90602084019061282a565b5050565b6000546001600160a01b03163314611e4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6001600160a01b038116611ec65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a9e565b611ecf816122a8565b50565b6000546001600160a01b03163314611f2c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601455565b6000546001600160a01b03163314611f8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601a55565b611dec82826040518060200160405280600081525061258f565b600081600111158015611fbe575060015482105b8015610a425750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6000818060011161206157600154811015612061576000818152600560205260409020547c0100000000000000000000000000000000000000000000000000000000811661205f575b8061181e575060001901600081815260056020526040902054612041565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061209e82611ff8565b9050836001600160a01b0316816001600160a01b0316146120eb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612109575061210985336108b5565b8061212457503361211984610c11565b6001600160a01b0316145b90508061215d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661219d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600760209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b0388811684526006835281842080546000190190558716835280832080546001019055858352600590915290207c02000000000000000000000000000000000000000000000000000000004260a01b861781179091558216612260576001830160008181526005602052604090205461225e57600154811461225e5760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612353903390899088908890600401612ed0565b6020604051808303816000875af192505050801561238e575060408051601f3d908101601f1916820190925261238b91810190612f0c565b60015b6123e9573d8080156123bc576040519150601f19603f3d011682016040523d82523d6000602084013e6123c1565b606091505b5080516123e1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6060601b8054610b8e90612d81565b60608161248757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124b1578061249b81612eb5565b91506124aa9050600a83612f3f565b915061248b565b60008167ffffffffffffffff8111156124cc576124cc612aef565b6040519080825280601f01601f1916602001820160405280156124f6576020820181803683370190505b5090505b84156124305761250b600183612f53565b9150612518600a86612f6a565b612523906030612d69565b60f81b81838151811061253857612538612e9f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612572600a86612f3f565b94506124fa565b6000826125868584612732565b14949350505050565b6001546001600160a01b0384166125d2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82612609576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841660008181526006602090815260408083208054680100000000000000018902019055848352600590915290204260a01b86176001861460e11b1790558190818501903b156126de575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126a76000878480600101955087612305565b6126c4576040516368d2bf6b60e11b815260040160405180910390fd5b80821061265c5782600154146126d957600080fd5b612723565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126df575b5060015561169a600085838684565b600081815b845181101561279e57600085828151811061275457612754612e9f565b6020026020010151905080831161277a576000838152602082905260409020925061278b565b600081815260208490526040902092505b508061279681612eb5565b915050612737565b509392505050565b8280546127b290612d81565b90600052602060002090601f0160209004810192826127d4576000855561281a565b82601f106127ed5782800160ff1982351617855561281a565b8280016001018555821561281a579182015b8281111561281a5782358255916020019190600101906127ff565b5061282692915061289e565b5090565b82805461283690612d81565b90600052602060002090601f016020900481019282612858576000855561281a565b82601f1061287157805160ff191683800117855561281a565b8280016001018555821561281a579182015b8281111561281a578251825591602001919060010190612883565b5b80821115612826576000815560010161289f565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ecf57600080fd5b6000602082840312156128f357600080fd5b813561181e816128b3565b80356001600160a01b038116811461291557600080fd5b919050565b6000806040838503121561292d57600080fd5b612936836128fe565b946020939093013593505050565b60005b8381101561295f578181015183820152602001612947565b8381111561169a5750506000910152565b60008151808452612988816020860160208601612944565b601f01601f19169290920160200192915050565b60208152600061181e6020830184612970565b6000602082840312156129c157600080fd5b5035919050565b6000806000606084860312156129dd57600080fd5b6129e6846128fe565b92506129f4602085016128fe565b9150604084013590509250925092565b600060208284031215612a1657600080fd5b61181e826128fe565b60008060208385031215612a3257600080fd5b823567ffffffffffffffff80821115612a4a57600080fd5b818501915085601f830112612a5e57600080fd5b813581811115612a6d57600080fd5b866020828501011115612a7f57600080fd5b60209290920196919550909350505050565b8035801515811461291557600080fd5b600060208284031215612ab357600080fd5b61181e82612a91565b60008060408385031215612acf57600080fd5b612ad8836128fe565b9150612ae660208401612a91565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b2057612b20612aef565b604051601f8501601f19908116603f01168101908282118183101715612b4857612b48612aef565b81604052809350858152868686011115612b6157600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215612b9157600080fd5b612b9a856128fe565b9350612ba8602086016128fe565b925060408501359150606085013567ffffffffffffffff811115612bcb57600080fd5b8501601f81018713612bdc57600080fd5b612beb87823560208401612b05565b91505092959194509250565b60008083601f840112612c0957600080fd5b50813567ffffffffffffffff811115612c2157600080fd5b6020830191508360208260051b8501011115612c3c57600080fd5b9250929050565b60008060208385031215612c5657600080fd5b823567ffffffffffffffff811115612c6d57600080fd5b612c7985828601612bf7565b90969095509350505050565b600080600060408486031215612c9a57600080fd5b833560ff81168114612cab57600080fd5b9250602084013567ffffffffffffffff811115612cc757600080fd5b612cd386828701612bf7565b9497909650939450505050565b60008060408385031215612cf357600080fd5b612cfc836128fe565b9150612ae6602084016128fe565b600060208284031215612d1c57600080fd5b813567ffffffffffffffff811115612d3357600080fd5b8201601f81018413612d4457600080fd5b61243084823560208401612b05565b634e487b7160e01b600052601160045260246000fd5b60008219821115612d7c57612d7c612d53565b500190565b600181811c90821680612d9557607f821691505b60208210811415612db657634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615612dd657612dd6612d53565b500290565b600084516020612dee8285838a01612944565b855191840191612e018184848a01612944565b8554920191600090600181811c9080831680612e1e57607f831692505b858310811415612e3c57634e487b7160e01b85526022600452602485fd5b808015612e505760018114612e6157612e8e565b60ff19851688528388019550612e8e565b60008b81526020902060005b85811015612e865781548a820152908401908801612e6d565b505083880195505b50939b9a5050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612ec957612ec9612d53565b5060010190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f026080830184612970565b9695505050505050565b600060208284031215612f1e57600080fd5b815161181e816128b3565b634e487b7160e01b600052601260045260246000fd5b600082612f4e57612f4e612f29565b500490565b600082821015612f6557612f65612d53565b500390565b600082612f7957612f79612f29565b50069056fea2646970667358221220275944050ab2d627754000974a1689f0cd923eaa0cbb6f0c336cb20c965fe7a464736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000008536b6f6f646c65730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002534b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f736b6f6f646c65732e6170702f6e6f6e2d72657665616c2f72657665616c2e6a736f6e000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061033f5760003560e01c8063715018a6116101b0578063c87b56dd116100ec578063da22488c11610095578063f2c4ce1e1161006f578063f2c4ce1e146108e3578063f2fde38b14610903578063f8c8d49914610923578063fe042d491461094357600080fd5b8063da22488c14610867578063e7661c7814610887578063e985e9c51461089a57600080fd5b8063d76fd220116100c6578063d76fd22014610804578063d7719f6414610824578063d99079ca1461085157600080fd5b8063c87b56dd146107ae578063cc523f26146107ce578063d72dd3b4146107e457600080fd5b8063940cd05b11610159578063a22cb46511610133578063a22cb46514610746578063b3ab66b014610766578063b88d4fde14610779578063c66828621461079957600080fd5b8063940cd05b146106e457806395d89b41146107045780639b257d731461071957600080fd5b806389f3b22d1161018a57806389f3b22d1461069a5780638d859f3e146106b05780638da5cb5b146106c657600080fd5b8063715018a614610659578063715a609d1461066e578063854807561461068457600080fd5b80632848aeaf1161027f57806344a0d68a116102285780636352211e116102025780636352211e146105df5780636ebeac85146105ff5780636f8b44b01461061957806370a082311461063957600080fd5b806344a0d68a1461058957806355f804b3146105a957806362dc6e21146105c957600080fd5b806337a131931161025957806337a13193146105415780633ccfd60b1461056157806342842e0e1461056957600080fd5b80632848aeaf146104e55780633154b9c21461051557806332cb6b0c1461052b57600080fd5b80630d43ebc2116102ec5780631342ff4c116102c65780631342ff4c1461047257806317c84ce61461049257806318160ddd146104a857806323b872dd146104c557600080fd5b80630d43ebc21461042a5780630deed6a61461044957806312065fe01461045f57600080fd5b8063081812fc1161031d578063081812fc146103bd578063081c8c44146103f5578063095ea7b31461040a57600080fd5b806301ffc9a714610344578063045f78501461037957806306fdde031461039b575b600080fd5b34801561035057600080fd5b5061036461035f3660046128e1565b610963565b60405190151581526020015b60405180910390f35b34801561038557600080fd5b5061039961039436600461291a565b610a48565b005b3480156103a757600080fd5b506103b0610b7f565b604051610370919061299c565b3480156103c957600080fd5b506103dd6103d83660046129af565b610c11565b6040516001600160a01b039091168152602001610370565b34801561040157600080fd5b506103b0610c6e565b34801561041657600080fd5b5061039961042536600461291a565b610cfc565b34801561043657600080fd5b506015545b604051908152602001610370565b34801561045557600080fd5b5061043b60155481565b34801561046b57600080fd5b504761043b565b34801561047e57600080fd5b5061039961048d3660046129af565b610e0e565b34801561049e57600080fd5b5061043b600f5481565b3480156104b457600080fd5b50600254600154036000190161043b565b3480156104d157600080fd5b506103996104e03660046129c8565b610eef565b3480156104f157600080fd5b50610364610500366004612a04565b60176020526000908152604090205460ff1681565b34801561052157600080fd5b5061043b601a5481565b34801561053757600080fd5b5061043b600c5481565b34801561054d57600080fd5b5061039961055c3660046129af565b610eff565b610399610f5e565b34801561057557600080fd5b506103996105843660046129c8565b611094565b34801561059557600080fd5b506103996105a43660046129af565b6110af565b3480156105b557600080fd5b506103996105c4366004612a1f565b61110e565b3480156105d557600080fd5b5061043b600e5481565b3480156105eb57600080fd5b506103dd6105fa3660046129af565b611174565b34801561060b57600080fd5b506016546103649060ff1681565b34801561062557600080fd5b506103996106343660046129af565b61117f565b34801561064557600080fd5b5061043b610654366004612a04565b6111de565b34801561066557600080fd5b50610399611246565b34801561067a57600080fd5b5061043b60125481565b34801561069057600080fd5b5061043b60135481565b3480156106a657600080fd5b5061043b60105481565b3480156106bc57600080fd5b5061043b600d5481565b3480156106d257600080fd5b506000546001600160a01b03166103dd565b3480156106f057600080fd5b506103996106ff366004612aa1565b6112ac565b34801561071057600080fd5b506103b0611319565b34801561072557600080fd5b5061043b610734366004612a04565b60196020526000908152604090205481565b34801561075257600080fd5b50610399610761366004612abc565b611328565b6103996107743660046129af565b6113d7565b34801561078557600080fd5b50610399610794366004612b7b565b611656565b3480156107a557600080fd5b506103b06116a0565b3480156107ba57600080fd5b506103b06107c93660046129af565b6116ad565b3480156107da57600080fd5b5061043b60145481565b3480156107f057600080fd5b506103996107ff3660046129af565b611825565b34801561081057600080fd5b5061039961081f3660046129af565b611884565b34801561083057600080fd5b5061043b61083f366004612a04565b60186020526000908152604090205481565b34801561085d57600080fd5b5061043b60115481565b34801561087357600080fd5b50610399610882366004612c43565b6118e3565b610399610895366004612c85565b6119af565b3480156108a657600080fd5b506103646108b5366004612ce0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108ef57600080fd5b506103996108fe366004612d0a565b611d7f565b34801561090f57600080fd5b5061039961091e366004612a04565b611df0565b34801561092f57600080fd5b5061039961093e3660046129af565b611ed2565b34801561094f57600080fd5b5061039961095e3660046129af565b611f31565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806109f657507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610a4257507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000546001600160a01b03163314610aa75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600c546002546001548391900360001901610ac29190612d69565b1115610b105760405162461bcd60e51b815260206004820152601760248201527f776f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610a9e565b60008111610b605760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610a9e565b610b6a8282611f90565b80601054610b789190612d69565b6010555050565b606060038054610b8e90612d81565b80601f0160208091040260200160405190810160405280929190818152602001828054610bba90612d81565b8015610c075780601f10610bdc57610100808354040283529160200191610c07565b820191906000526020600020905b815481529060010190602001808311610bea57829003601f168201915b5050505050905090565b6000610c1c82611faa565b610c52576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600a8054610c7b90612d81565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790612d81565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b505050505081565b6000610d0782611ff8565b9050806001600160a01b0316836001600160a01b03161415610d55576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610da557610d6f81336108b5565b610da5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b03163314610e685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600c546002546001548391900360001901610e839190612d69565b1115610ed15760405162461bcd60e51b815260206004820152601760248201527f776f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610a9e565b610edb3382611f90565b80600f54610ee99190612d69565b600f5550565b610efa838383612093565b505050565b6000546001600160a01b03163314610f595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600e55565b6000546001600160a01b03163314610fb85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6002600954141561100b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600955478061105e5760405162461bcd60e51b815260206004820152601960248201527f4e6f206574686572206c65667420746f207769746864726177000000000000006044820152606401610a9e565b604051339082156108fc029083906000818181858888f1935050505015801561108b573d6000803e3d6000fd5b50506001600955565b610efa83838360405180602001604052806000815250611656565b6000546001600160a01b031633146111095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600d55565b6000546001600160a01b031633146111685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b610efa601b83836127a6565b6000610a4282611ff8565b6000546001600160a01b031633146111d95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b600c55565b60006001600160a01b038216611220576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146112a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6112aa60006122a8565b565b6000546001600160a01b031633146113065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6016805460ff1916911515919091179055565b606060048054610b8e90612d81565b6001600160a01b03821633141561136b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600954141561142a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600955600c54816114466002546001546000199190030190565b6114509190612d69565b111561149e5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610a9e565b6015546002146114f05760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e207965740000006044820152606401610a9e565b600081116115405760405162461bcd60e51b815260206004820152601c60248201527f4d757374206d696e74206d6f7265207468616e203020746f6b656e73000000006044820152606401610a9e565b3481600d5461154f9190612dbc565b1461159c5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610a9e565b601454336000908152601960205260409020546115ba908390612d69565b11156116085760405162461bcd60e51b815260206004820152601760248201527f65786365656473206d61782070657220616464726573730000000000000000006044820152606401610a9e565b6116123382611f90565b806012546116209190612d69565b6012553360009081526019602052604090205461163e908290612d69565b33600090815260196020526040902055506001600955565b611661848484612093565b6001600160a01b0383163b1561169a5761167d84848484612305565b61169a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600b8054610c7b90612d81565b60606116b882611faa565b61172a5760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610a9e565b60165460ff166117c657600a805461174190612d81565b80601f016020809104026020016040519081016040528092919081815260200182805461176d90612d81565b80156117ba5780601f1061178f576101008083540402835291602001916117ba565b820191906000526020600020905b81548152906001019060200180831161179d57829003601f168201915b50505050509050919050565b60006117d0612438565b905060008151116117f0576040518060200160405280600081525061181e565b806117fa84612447565b600b60405160200161180e93929190612ddb565b6040516020818303038152906040525b9392505050565b6000546001600160a01b0316331461187f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601555565b6000546001600160a01b031633146118de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601355565b6000546001600160a01b0316331461193d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b60005b81811015610efa5760016017600085858581811061196057611960612e9f565b90506020020160208101906119759190612a04565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806119a781612eb5565b915050611940565b60026009541415611a025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600955601554600114611a595760405162461bcd60e51b815260206004820152601660248201527f5072652073616c65206973206e6f7420616374697665000000000000000000006044820152606401610a9e565b60008360ff1611611aac5760405162461bcd60e51b815260206004820152601c60248201527f4d757374206d696e74206d6f7265207468616e203020746f6b656e73000000006044820152606401610a9e565b60135433600090815260186020526040902054611acd9060ff861690612d69565b1115611b1b5760405162461bcd60e51b815260206004820152601760248201527f65786365656473206d61782070657220616464726573730000000000000000006044820152606401610a9e565b600c5460025460015460ff861691900360001901611b399190612d69565b1115611bad5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620546f6b656e73000000000000000000000000000000000000000000006064820152608401610a9e565b348360ff16600e54611bbf9190612dbc565b14611c0c5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610a9e565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152600090603401604051602081830303815290604052805190602001209050611c9983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601a549150849050612579565b80611cb357503360009081526017602052604090205460ff165b611d255760405162461bcd60e51b815260206004820152602a60248201527f496e76616c6964207369676e61747572652f2041646472657373206e6f74207760448201527f686974656c6973746564000000000000000000000000000000000000000000006064820152608401610a9e565b611d32338560ff16611f90565b8360ff16601154611d439190612d69565b60115533600090815260186020526040902054611d649060ff861690612d69565b33600090815260186020526040902055505060016009555050565b6000546001600160a01b03163314611dd95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b8051611dec90600a90602084019061282a565b5050565b6000546001600160a01b03163314611e4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b6001600160a01b038116611ec65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a9e565b611ecf816122a8565b50565b6000546001600160a01b03163314611f2c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601455565b6000546001600160a01b03163314611f8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b601a55565b611dec82826040518060200160405280600081525061258f565b600081600111158015611fbe575060015482105b8015610a425750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6000818060011161206157600154811015612061576000818152600560205260409020547c0100000000000000000000000000000000000000000000000000000000811661205f575b8061181e575060001901600081815260056020526040902054612041565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061209e82611ff8565b9050836001600160a01b0316816001600160a01b0316146120eb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612109575061210985336108b5565b8061212457503361211984610c11565b6001600160a01b0316145b90508061215d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661219d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600760209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b0388811684526006835281842080546000190190558716835280832080546001019055858352600590915290207c02000000000000000000000000000000000000000000000000000000004260a01b861781179091558216612260576001830160008181526005602052604090205461225e57600154811461225e5760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612353903390899088908890600401612ed0565b6020604051808303816000875af192505050801561238e575060408051601f3d908101601f1916820190925261238b91810190612f0c565b60015b6123e9573d8080156123bc576040519150601f19603f3d011682016040523d82523d6000602084013e6123c1565b606091505b5080516123e1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6060601b8054610b8e90612d81565b60608161248757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124b1578061249b81612eb5565b91506124aa9050600a83612f3f565b915061248b565b60008167ffffffffffffffff8111156124cc576124cc612aef565b6040519080825280601f01601f1916602001820160405280156124f6576020820181803683370190505b5090505b84156124305761250b600183612f53565b9150612518600a86612f6a565b612523906030612d69565b60f81b81838151811061253857612538612e9f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612572600a86612f3f565b94506124fa565b6000826125868584612732565b14949350505050565b6001546001600160a01b0384166125d2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82612609576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841660008181526006602090815260408083208054680100000000000000018902019055848352600590915290204260a01b86176001861460e11b1790558190818501903b156126de575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126a76000878480600101955087612305565b6126c4576040516368d2bf6b60e11b815260040160405180910390fd5b80821061265c5782600154146126d957600080fd5b612723565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126df575b5060015561169a600085838684565b600081815b845181101561279e57600085828151811061275457612754612e9f565b6020026020010151905080831161277a576000838152602082905260409020925061278b565b600081815260208490526040902092505b508061279681612eb5565b915050612737565b509392505050565b8280546127b290612d81565b90600052602060002090601f0160209004810192826127d4576000855561281a565b82601f106127ed5782800160ff1982351617855561281a565b8280016001018555821561281a579182015b8281111561281a5782358255916020019190600101906127ff565b5061282692915061289e565b5090565b82805461283690612d81565b90600052602060002090601f016020900481019282612858576000855561281a565b82601f1061287157805160ff191683800117855561281a565b8280016001018555821561281a579182015b8281111561281a578251825591602001919060010190612883565b5b80821115612826576000815560010161289f565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ecf57600080fd5b6000602082840312156128f357600080fd5b813561181e816128b3565b80356001600160a01b038116811461291557600080fd5b919050565b6000806040838503121561292d57600080fd5b612936836128fe565b946020939093013593505050565b60005b8381101561295f578181015183820152602001612947565b8381111561169a5750506000910152565b60008151808452612988816020860160208601612944565b601f01601f19169290920160200192915050565b60208152600061181e6020830184612970565b6000602082840312156129c157600080fd5b5035919050565b6000806000606084860312156129dd57600080fd5b6129e6846128fe565b92506129f4602085016128fe565b9150604084013590509250925092565b600060208284031215612a1657600080fd5b61181e826128fe565b60008060208385031215612a3257600080fd5b823567ffffffffffffffff80821115612a4a57600080fd5b818501915085601f830112612a5e57600080fd5b813581811115612a6d57600080fd5b866020828501011115612a7f57600080fd5b60209290920196919550909350505050565b8035801515811461291557600080fd5b600060208284031215612ab357600080fd5b61181e82612a91565b60008060408385031215612acf57600080fd5b612ad8836128fe565b9150612ae660208401612a91565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b2057612b20612aef565b604051601f8501601f19908116603f01168101908282118183101715612b4857612b48612aef565b81604052809350858152868686011115612b6157600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215612b9157600080fd5b612b9a856128fe565b9350612ba8602086016128fe565b925060408501359150606085013567ffffffffffffffff811115612bcb57600080fd5b8501601f81018713612bdc57600080fd5b612beb87823560208401612b05565b91505092959194509250565b60008083601f840112612c0957600080fd5b50813567ffffffffffffffff811115612c2157600080fd5b6020830191508360208260051b8501011115612c3c57600080fd5b9250929050565b60008060208385031215612c5657600080fd5b823567ffffffffffffffff811115612c6d57600080fd5b612c7985828601612bf7565b90969095509350505050565b600080600060408486031215612c9a57600080fd5b833560ff81168114612cab57600080fd5b9250602084013567ffffffffffffffff811115612cc757600080fd5b612cd386828701612bf7565b9497909650939450505050565b60008060408385031215612cf357600080fd5b612cfc836128fe565b9150612ae6602084016128fe565b600060208284031215612d1c57600080fd5b813567ffffffffffffffff811115612d3357600080fd5b8201601f81018413612d4457600080fd5b61243084823560208401612b05565b634e487b7160e01b600052601160045260246000fd5b60008219821115612d7c57612d7c612d53565b500190565b600181811c90821680612d9557607f821691505b60208210811415612db657634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615612dd657612dd6612d53565b500290565b600084516020612dee8285838a01612944565b855191840191612e018184848a01612944565b8554920191600090600181811c9080831680612e1e57607f831692505b858310811415612e3c57634e487b7160e01b85526022600452602485fd5b808015612e505760018114612e6157612e8e565b60ff19851688528388019550612e8e565b60008b81526020902060005b85811015612e865781548a820152908401908801612e6d565b505083880195505b50939b9a5050505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612ec957612ec9612d53565b5060010190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f026080830184612970565b9695505050505050565b600060208284031215612f1e57600080fd5b815161181e816128b3565b634e487b7160e01b600052601260045260246000fd5b600082612f4e57612f4e612f29565b500490565b600082821015612f6557612f65612d53565b500390565b600082612f7957612f79612f29565b50069056fea2646970667358221220275944050ab2d627754000974a1689f0cd923eaa0cbb6f0c336cb20c965fe7a464736f6c634300080c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000008536b6f6f646c65730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002534b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f736b6f6f646c65732e6170702f6e6f6e2d72657665616c2f72657665616c2e6a736f6e000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Skoodles
Arg [1] : symbol (string): SK
Arg [2] : _notRevealedUri (string): https://skoodles.app/non-reveal/reveal.json

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 536b6f6f646c6573000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 534b000000000000000000000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [8] : 68747470733a2f2f736b6f6f646c65732e6170702f6e6f6e2d72657665616c2f
Arg [9] : 72657665616c2e6a736f6e000000000000000000000000000000000000000000


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.