ETH Price: $3,417.51 (-1.46%)
Gas: 4 Gwei

Token

SABOTEN PLANET (SABOTEN)
 

Overview

Max Total Supply

2,000 SABOTEN

Holders

132

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
4 SABOTEN
0x5164370b3ba971474d10da1d409ce8872cb8ca97
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:
SabotenPlanet

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 8 : nft.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract SabotenPlanet is ERC721A, Ownable, ReentrancyGuard {
    string private baseURI = "";
    string public constant baseExtension = ".json";
    string private notRevealedUri;
    uint256 public MAX_SUPPLY = 10000;
    bool public paused = false;
    bool public revealed = false;
    uint256 public price = 0.08 ether;
    bytes32[] public roots;
    uint256[] public maxmints = [1, 2];
    uint256 public presaleEndTime;
    uint256 public presaleStartTime;

    event addedToWhitelist(address indexed _by, address _address, uint256 role);
    event whitelistUpdated(
        address indexed _by,
        address[] newWhitelist,
        uint256 typeOfWL
    );
    event Mint(address indexed _to, uint256 _amount);

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _initBaseURI,
        string memory _initNotRevealedUri,
        bytes32[] memory _initRoots,
        uint256 _presaleStartTime,
        uint256 _duration
    ) ERC721A(_name, _symbol) {
        setBaseURI(_initBaseURI);
        setNotRevealedURI(_initNotRevealedUri);
        presaleStartTime = _presaleStartTime;
        presaleEndTime = _presaleStartTime + _duration;
        roots = _initRoots;
    }

    function presaleMint(uint256 _amount, bytes32[] calldata _merkleProof)
        external
        payable
    {
        address _caller = msg.sender;
        require(!paused, "Paused");
        require(MAX_SUPPLY >= totalSupply() + _amount, "Exceeds max supply");
        require(_amount > 0, "No 0 mints");
        require(tx.origin == _caller, "No contracts");
        bool isWL = isWhitelisted(_caller, _merkleProof);
        uint256 callerBalance = balanceOf(msg.sender);
        uint256 userMaxMint = maxMintAmount(_caller, _merkleProof);
        uint256 totalMintCost = price * _amount;
        require(block.timestamp > presaleStartTime, "Sale Has Not Started Yet");
        require(block.timestamp < presaleEndTime, "Presale has Ended");
        if (_caller != owner()) {
            require(isWL == true, "user is not whitelisted");
            require (callerBalance + _amount <= userMaxMint,'Exceeds Maximum Allowed During Whitelist');
            require(totalMintCost == msg.value, "Invalid funds provided");
        }
        _safeMint(_caller, _amount);
    }

    function mint(uint256 _amount) external payable {
        address _caller = msg.sender;
        require(!paused, "Paused");
        require(MAX_SUPPLY >= totalSupply() + _amount, "Exceeds max supply");
        require(_amount > 0, "No 0 mints");
        require(tx.origin == _caller, "No contracts");
        uint256 mintCost = price;
        uint256 totalMintCost = mintCost * _amount;
        require(block.timestamp > presaleEndTime, "Presale has not ended yet");
        if (_caller != owner()) {
            require(totalMintCost == msg.value, "Invalid funds provided");
        }

        _safeMint(_caller, _amount);
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        return super.isApprovedForAll(owner, operator);
    }

    function isWhitelisted(address _user, bytes32[] calldata _merkleProof)
        public
        view
        returns (bool)
    {
        for (uint256 i = 0; i < roots.length; i++) {
            bytes32 root = roots[i];
            bytes32 leaf = keccak256(abi.encodePacked(_user));
            if (MerkleProof.verify(_merkleProof, root, leaf)) {
                return true;
            }
        }
        return false;
    }

    function whichWhitelist(address _user, bytes32[] calldata _merkleProof)
        public
        view
        returns (uint256)
    {
        for (uint256 i = 0; i < roots.length; i++) {
            bytes32 root = roots[i];
            bytes32 leaf = keccak256(abi.encodePacked(_user));
            if (MerkleProof.verify(_merkleProof, root, leaf)) {
                return i;
            }
        }
        return 100000;
    }

    function maxMintAmount(address _user, bytes32[] calldata _merkleProof)
        public
        view
        returns (uint256)
    {
        uint256 maxMint;
        if (block.timestamp < presaleEndTime) {
            if (isWhitelisted(_user, _merkleProof)) {
                uint256 typeOfWL = whichWhitelist(_user, _merkleProof);
                maxMint = maxmints[typeOfWL];
            }
        } else {
            maxMint = maxmints[1];
        }
        return maxMint;
    }

    function currentPrice() public view returns (uint256) {
        return price;
    }

    function reveal() public onlyOwner {
        revealed = true;
    }

    function withdraw() external onlyOwner nonReentrant {
        _withdraw(msg.sender);
    }

    function changePrice(uint256 _newPrice) public onlyOwner {
        price = _newPrice;
    }

    function _withdraw(address _caller) private {
        payable(_caller).transfer(address(this).balance);
    }

    function setmaxMintAmounts(uint256[] calldata _newMaxMints) public onlyOwner {
        maxmints = _newMaxMints;
    }

    function setupOS() external onlyOwner {
        _safeMint(_msgSender(), 1);
    }

    function pause(bool _state) external onlyOwner {
        paused = _state;
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function updateMaxSupply(uint256 _newSupply) external onlyOwner {
        MAX_SUPPLY = _newSupply;
    }

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

    function airdrop(address _to, uint256 _amount) public onlyOwner {
        require(!paused, "Paused");
        require(MAX_SUPPLY >= totalSupply() + _amount, "Exceeds max supply");
        require(_amount > 0, "No 0 mints");
        require(tx.origin == msg.sender, "No contracts");
        _safeMint(_to, _amount);
    }

    function airDropAll(address[] calldata _addressList, uint256 amount)
        public
        onlyOwner
    {
        require(!paused, "Paused");
        require(MAX_SUPPLY >= totalSupply() + amount, "Exceeds max supply");
        require(amount > 0, "No 0 mints");
        require(tx.origin == msg.sender, "No contracts");
        for (uint256 i = 0; i > _addressList.length; i++) {
            address currRecipient = _addressList[i];
            _safeMint(currRecipient, amount);
        }
    }

    function updateRootList(bytes32[] calldata _newRootList) public onlyOwner {
        roots = _newRootList;
    }

    function addRootToList(bytes32 _rootToAdd) public onlyOwner {
        roots.push(_rootToAdd);
    }

    function extendSaleTimes(uint256 _newStart,uint256 _duration) public onlyOwner {
        presaleStartTime = _newStart;
        presaleEndTime = _newStart + _duration;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: 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
                    )
                )
                : "";
    }
}

File 2 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 3 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 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": 1000
  },
  "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":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"bytes32[]","name":"_initRoots","type":"bytes32[]"},{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"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":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Mint","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"role","type":"uint256"}],"name":"addedToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"address[]","name":"newWhitelist","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"typeOfWL","type":"uint256"}],"name":"whitelistUpdated","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_rootToAdd","type":"bytes32"}],"name":"addRootToList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airDropAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"_newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStart","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"extendSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxmints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleStartTime","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_newMaxMints","type":"uint256[]"}],"name":"setmaxMintAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setupOS","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":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_newRootList","type":"bytes32[]"}],"name":"updateRootList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whichWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040819052600060808190526200001b91600a9162000237565b50612710600c55600d805461ffff1916905567011c37937e080000600e5560408051808201909152600181526002602082018190526200005e91601091620002c6565b503480156200006c57600080fd5b5060405162003517380380620035178339810160408190526200008f91620004c3565b865187908790620000a890600290602085019062000237565b508051620000be90600390602084019062000237565b50506000805550620000d03362000122565b6001600955620000e08562000174565b620000eb84620001dc565b6012829055620000fc8183620005b7565b60115582516200011490600f90602086019062000309565b50505050505050506200061a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001c35760405162461bcd60e51b81526020600482018190526024820152600080516020620034f783398151915260448201526064015b60405180910390fd5b8051620001d890600a90602084019062000237565b5050565b6008546001600160a01b03163314620002275760405162461bcd60e51b81526020600482018190526024820152600080516020620034f78339815191526044820152606401620001ba565b8051620001d890600b9060208401905b8280546200024590620005de565b90600052602060002090601f016020900481019282620002695760008555620002b4565b82601f106200028457805160ff1916838001178555620002b4565b82800160010185558215620002b4579182015b82811115620002b457825182559160200191906001019062000297565b50620002c292915062000346565b5090565b828054828255906000526020600020908101928215620002b4579160200282015b82811115620002b4578251829060ff16905591602001919060010190620002e7565b828054828255906000526020600020908101928215620002b45791602002820182811115620002b457825182559160200191906001019062000297565b5b80821115620002c2576000815560010162000347565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200039e576200039e6200035d565b604052919050565b600082601f830112620003b857600080fd5b81516001600160401b03811115620003d457620003d46200035d565b6020620003ea601f8301601f1916820162000373565b8281528582848701011115620003ff57600080fd5b60005b838110156200041f57858101830151828201840152820162000402565b83811115620004315760008385840101525b5095945050505050565b600082601f8301126200044d57600080fd5b815160206001600160401b038211156200046b576200046b6200035d565b8160051b6200047c82820162000373565b92835284810182019282810190878511156200049757600080fd5b83870192505b84831015620004b8578251825291830191908301906200049d565b979650505050505050565b600080600080600080600060e0888a031215620004df57600080fd5b87516001600160401b0380821115620004f757600080fd5b620005058b838c01620003a6565b985060208a01519150808211156200051c57600080fd5b6200052a8b838c01620003a6565b975060408a01519150808211156200054157600080fd5b6200054f8b838c01620003a6565b965060608a01519150808211156200056657600080fd5b620005748b838c01620003a6565b955060808a01519150808211156200058b57600080fd5b506200059a8a828b016200043b565b93505060a0880151915060c0880151905092959891949750929550565b60008219821115620005d957634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620005f357607f821691505b6020821081036200061457634e487b7160e01b600052602260045260246000fd5b50919050565b612ecd806200062a6000396000f3fe6080604052600436106102fd5760003560e01c80638ba4cc3c1161018f578063a475b5dd116100e1578063e3e1e8ef1161008a578063f18bebcb11610064578063f18bebcb1461081e578063f2c4ce1e1461083e578063f2fde38b1461085e57600080fd5b8063e3e1e8ef146107cb578063e985e9c5146107de578063f103b433146107fe57600080fd5b8063c2b40ae4116100bb578063c2b40ae41461075a578063c66828621461077a578063c87b56dd146107ab57600080fd5b8063a475b5dd1461070f578063a82524b214610724578063b88d4fde1461073a57600080fd5b806395d89b4111610143578063a0712d681161011d578063a0712d68146106bc578063a22cb465146106cf578063a2b40d19146106ef57600080fd5b806395d89b411461067c5780639d1b464a14610691578063a035b1fe146106a657600080fd5b80638c91fe92116101745780638c91fe921461061e5780638d4135c61461063e5780638da5cb5b1461065e57600080fd5b80638ba4cc3c146105de5780638bd92b86146105fe57600080fd5b806342842e0e116102535780636352211e116101fc57806370a08231116101d657806370a0823114610589578063715018a6146105a957806389e225df146105be57600080fd5b80636352211e1461053457806367a45ebf14610554578063698982ba1461057457600080fd5b80635a23dd991161022d5780635a23dd99146104da5780635c0bf906146104fa5780635c975abb1461051a57600080fd5b806342842e0e1461047b578063518302271461049b57806355f804b3146104ba57600080fd5b806317a385ba116102b5578063249b7c191161028f578063249b7c191461043a57806332cb6b0c146104505780633ccfd60b1461046657600080fd5b806317a385ba146103d357806318160ddd1461040157806323b872dd1461041a57600080fd5b806306fdde03116102e657806306fdde0314610359578063081812fc1461037b578063095ea7b3146103b357600080fd5b806301ffc9a71461030257806302329a2914610337575b600080fd5b34801561030e57600080fd5b5061032261031d366004612837565b61087e565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b50610357610352366004612869565b61091b565b005b34801561036557600080fd5b5061036e61097b565b60405161032e91906128dc565b34801561038757600080fd5b5061039b6103963660046128ef565b610a0d565b6040516001600160a01b03909116815260200161032e565b3480156103bf57600080fd5b506103576103ce36600461291f565b610a6a565b3480156103df57600080fd5b506103f36103ee366004612995565b610b7b565b60405190815260200161032e565b34801561040d57600080fd5b50600154600054036103f3565b34801561042657600080fd5b506103576104353660046129e8565b610c62565b34801561044657600080fd5b506103f360115481565b34801561045c57600080fd5b506103f3600c5481565b34801561047257600080fd5b50610357610c72565b34801561048757600080fd5b506103576104963660046129e8565b610d21565b3480156104a757600080fd5b50600d5461032290610100900460ff1681565b3480156104c657600080fd5b506103576104d5366004612ab0565b610d3c565b3480156104e657600080fd5b506103226104f5366004612995565b610d9b565b34801561050657600080fd5b506103f3610515366004612995565b610e7f565b34801561052657600080fd5b50600d546103229060ff1681565b34801561054057600080fd5b5061039b61054f3660046128ef565b610efc565b34801561056057600080fd5b5061035761056f3660046128ef565b610f07565b34801561058057600080fd5b50610357610f84565b34801561059557600080fd5b506103f36105a4366004612af9565b610fd9565b3480156105b557600080fd5b50610357611041565b3480156105ca57600080fd5b506103576105d9366004612b14565b611093565b3480156105ea57600080fd5b506103576105f936600461291f565b611249565b34801561060a57600080fd5b50610357610619366004612b60565b6113b0565b34801561062a57600080fd5b50610357610639366004612ba2565b611404565b34801561064a57600080fd5b50610357610659366004612b60565b611462565b34801561066a57600080fd5b506008546001600160a01b031661039b565b34801561068857600080fd5b5061036e6114b6565b34801561069d57600080fd5b50600e546103f3565b3480156106b257600080fd5b506103f3600e5481565b6103576106ca3660046128ef565b6114c5565b3480156106db57600080fd5b506103576106ea366004612bc4565b6116b5565b3480156106fb57600080fd5b5061035761070a3660046128ef565b611763565b34801561071b57600080fd5b506103576117b0565b34801561073057600080fd5b506103f360125481565b34801561074657600080fd5b50610357610755366004612bf7565b611809565b34801561076657600080fd5b506103f36107753660046128ef565b61184d565b34801561078657600080fd5b5061036e60405180604001604052806005815260200164173539b7b760d91b81525081565b3480156107b757600080fd5b5061036e6107c63660046128ef565b61186e565b6103576107d9366004612c73565b611a8e565b3480156107ea57600080fd5b506103226107f9366004612ca6565b611dd6565b34801561080a57600080fd5b506103576108193660046128ef565b611e06565b34801561082a57600080fd5b506103f36108393660046128ef565b611e53565b34801561084a57600080fd5b50610357610859366004612ab0565b611e63565b34801561086a57600080fd5b50610357610879366004612af9565b611ebe565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806108e157507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061091557507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6008546001600160a01b031633146109685760405162461bcd60e51b81526020600482018190526024820152600080516020612e7883398151915260448201526064015b60405180910390fd5b600d805460ff1916911515919091179055565b60606002805461098a90612cd0565b80601f01602080910402602001604051908101604052809291908181526020018280546109b690612cd0565b8015610a035780601f106109d857610100808354040283529160200191610a03565b820191906000526020600020905b8154815290600101906020018083116109e657829003601f168201915b5050505050905090565b6000610a1882611f8e565b610a4e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a7582611fb5565b9050806001600160a01b0316836001600160a01b031603610ac2576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610b1257610adc8133611dd6565b610b12576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000805b600f54811015610c53576000600f8281548110610b9e57610b9e612d0a565b90600052602060002001549050600086604051602001610bd6919060609190911b6bffffffffffffffffffffffff1916815260140190565b604051602081830303815290604052805190602001209050610c2e8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506120359050565b15610c3e57829350505050610c5b565b50508080610c4b90612d36565b915050610b7f565b50620186a090505b9392505050565b610c6d83838361204b565b505050565b6008546001600160a01b03163314610cba5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600260095403610d0c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161095f565b6002600955610d1a33612264565b6001600955565b610c6d83838360405180602001604052806000815250611809565b6008546001600160a01b03163314610d845760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b8051610d9790600a90602084019061274d565b5050565b6000805b600f54811015610e74576000600f8281548110610dbe57610dbe612d0a565b90600052602060002001549050600086604051602001610df6919060609190911b6bffffffffffffffffffffffff1916815260140190565b604051602081830303815290604052805190602001209050610e4e8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506120359050565b15610e5f5760019350505050610c5b565b50508080610e6c90612d36565b915050610d9f565b506000949350505050565b600080601154421015610ed257610e97858585610d9b565b15610ecd576000610ea9868686610b7b565b905060108181548110610ebe57610ebe612d0a565b90600052602060002001549150505b610ef4565b6010600181548110610ee657610ee6612d0a565b906000526020600020015490505b949350505050565b600061091582611fb5565b6008546001600160a01b03163314610f4f5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600f80546001810182556000919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b6008546001600160a01b03163314610fcc5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610fd7336001612299565b565b60006001600160a01b03821661101b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146110895760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610fd760006122b3565b6008546001600160a01b031633146110db5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600d5460ff16156111175760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b806111256001546000540390565b61112f9190612d4f565b600c5410156111755760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b600081116111b25760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b3233146111f05760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b60005b8281111561124357600084848381811061120f5761120f612d0a565b90506020020160208101906112249190612af9565b90506112308184612299565b508061123b81612d36565b9150506111f3565b50505050565b6008546001600160a01b031633146112915760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600d5460ff16156112cd5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b806112db6001546000540390565b6112e59190612d4f565b600c54101561132b5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b600081116113685760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b3233146113a65760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b610d978282612299565b6008546001600160a01b031633146113f85760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610c6d600f83836127d1565b6008546001600160a01b0316331461144c5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b601282905561145b8183612d4f565b6011555050565b6008546001600160a01b031633146114aa5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610c6d601083836127d1565b60606003805461098a90612cd0565b600d54339060ff16156115035760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b816115116001546000540390565b61151b9190612d4f565b600c5410156115615760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b6000821161159e5760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b326001600160a01b038216146115e55760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b600e5460006115f48483612d67565b905060115442116116475760405162461bcd60e51b815260206004820152601960248201527f50726573616c6520686173206e6f7420656e6465642079657400000000000000604482015260640161095f565b6008546001600160a01b038481169116146116ab573481146116ab5760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f766964656400000000000000000000604482015260640161095f565b6112438385612299565b336001600160a01b038316036116f7576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146117ab5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600e55565b6008546001600160a01b031633146117f85760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600d805461ff001916610100179055565b61181484848461204b565b6001600160a01b0383163b156112435761183084848484612312565b611243576040516368d2bf6b60e11b815260040160405180910390fd5b600f818154811061185d57600080fd5b600091825260209091200154905081565b606061187982611f8e565b6118eb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161095f565b600d54610100900460ff16151560000361199157600b805461190c90612cd0565b80601f016020809104026020016040519081016040528092919081815260200182805461193890612cd0565b80156119855780601f1061195a57610100808354040283529160200191611985565b820191906000526020600020905b81548152906001019060200180831161196857829003601f168201915b50505050509050919050565b6000600a80546119a090612cd0565b80601f01602080910402602001604051908101604052809291908181526020018280546119cc90612cd0565b8015611a195780601f106119ee57610100808354040283529160200191611a19565b820191906000526020600020905b8154815290600101906020018083116119fc57829003601f168201915b505050505090506000815111611a3e5760405180602001604052806000815250610c5b565b80611a48846123fd565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611a7893929190612d86565b6040516020818303038152906040529392505050565b600d54339060ff1615611acc5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b83611ada6001546000540390565b611ae49190612d4f565b600c541015611b2a5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b60008411611b675760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b326001600160a01b03821614611bae5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b6000611bbb828585610d9b565b90506000611bc833610fd9565b90506000611bd7848787610e7f565b9050600087600e54611be99190612d67565b90506012544211611c3c5760405162461bcd60e51b815260206004820152601860248201527f53616c6520486173204e6f742053746172746564205965740000000000000000604482015260640161095f565b6011544210611c8d5760405162461bcd60e51b815260206004820152601160248201527f50726573616c652068617320456e646564000000000000000000000000000000604482015260640161095f565b6008546001600160a01b03868116911614611dc257600184151514611cf45760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c6973746564000000000000000000604482015260640161095f565b81611cff8985612d4f565b1115611d735760405162461bcd60e51b815260206004820152602860248201527f45786365656473204d6178696d756d20416c6c6f77656420447572696e67205760448201527f686974656c697374000000000000000000000000000000000000000000000000606482015260840161095f565b348114611dc25760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f766964656400000000000000000000604482015260640161095f565b611dcc8589612299565b5050505050505050565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff16610c5b565b6008546001600160a01b03163314611e4e5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600c55565b6010818154811061185d57600080fd5b6008546001600160a01b03163314611eab5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b8051610d9790600b90602084019061274d565b6008546001600160a01b03163314611f065760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b6001600160a01b038116611f825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161095f565b611f8b816122b3565b50565b6000805482108015610915575050600090815260046020526040902054600160e01b161590565b6000816000548110156120035760008181526004602052604081205490600160e01b82169003612001575b80600003610c5b575060001901600081815260046020526040902054611fe0565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826120428584612532565b14949350505050565b600061205682611fb5565b9050836001600160a01b0316816001600160a01b0316146120a3576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806120c157506120c18533611dd6565b806120dc5750336120d184610a0d565b6001600160a01b0316145b905080612115576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612155576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b0388811684526005835281842080546000190190558716835280832080546001019055858352600490915281207c02000000000000000000000000000000000000000000000000000000004260a01b871781179091558316900361221c5760018301600081815260046020526040812054900361221a57600054811461221a5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d97573d6000803e3d6000fd5b610d978282604051806020016040528060008152506125a6565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612347903390899088908890600401612dc9565b6020604051808303816000875af1925050508015612382575060408051601f3d908101601f1916820190925261237f91810190612e05565b60015b6123e0573d8080156123b0576040519150601f19603f3d011682016040523d82523d6000602084013e6123b5565b606091505b5080516000036123d8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60608160000361244057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561246a578061245481612d36565b91506124639050600a83612e38565b9150612444565b60008167ffffffffffffffff81111561248557612485612a24565b6040519080825280601f01601f1916602001820160405280156124af576020820181803683370190505b5090505b8415610ef4576124c4600183612e4c565b91506124d1600a86612e63565b6124dc906030612d4f565b60f81b8183815181106124f1576124f1612d0a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061252b600a86612e38565b94506124b3565b600081815b845181101561259e57600085828151811061255457612554612d0a565b6020026020010151905080831161257a576000838152602082905260409020925061258b565b600081815260208490526040902092505b508061259681612d36565b915050612537565b509392505050565b6000546001600160a01b0384166125e9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003612623576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b156126f8575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126c16000878480600101955087612312565b6126de576040516368d2bf6b60e11b815260040160405180910390fd5b8082106126765782600054146126f357600080fd5b61273d565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126f9575b5060009081556112439085838684565b82805461275990612cd0565b90600052602060002090601f01602090048101928261277b57600085556127c1565b82601f1061279457805160ff19168380011785556127c1565b828001600101855582156127c1579182015b828111156127c15782518255916020019190600101906127a6565b506127cd92915061280c565b5090565b8280548282559060005260206000209081019282156127c1579160200282015b828111156127c15782358255916020019190600101906127f1565b5b808211156127cd576000815560010161280d565b6001600160e01b031981168114611f8b57600080fd5b60006020828403121561284957600080fd5b8135610c5b81612821565b8035801515811461286457600080fd5b919050565b60006020828403121561287b57600080fd5b610c5b82612854565b60005b8381101561289f578181015183820152602001612887565b838111156112435750506000910152565b600081518084526128c8816020860160208601612884565b601f01601f19169290920160200192915050565b602081526000610c5b60208301846128b0565b60006020828403121561290157600080fd5b5035919050565b80356001600160a01b038116811461286457600080fd5b6000806040838503121561293257600080fd5b61293b83612908565b946020939093013593505050565b60008083601f84011261295b57600080fd5b50813567ffffffffffffffff81111561297357600080fd5b6020830191508360208260051b850101111561298e57600080fd5b9250929050565b6000806000604084860312156129aa57600080fd5b6129b384612908565b9250602084013567ffffffffffffffff8111156129cf57600080fd5b6129db86828701612949565b9497909650939450505050565b6000806000606084860312156129fd57600080fd5b612a0684612908565b9250612a1460208501612908565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a5557612a55612a24565b604051601f8501601f19908116603f01168101908282118183101715612a7d57612a7d612a24565b81604052809350858152868686011115612a9657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612ac257600080fd5b813567ffffffffffffffff811115612ad957600080fd5b8201601f81018413612aea57600080fd5b610ef484823560208401612a3a565b600060208284031215612b0b57600080fd5b610c5b82612908565b600080600060408486031215612b2957600080fd5b833567ffffffffffffffff811115612b4057600080fd5b612b4c86828701612949565b909790965060209590950135949350505050565b60008060208385031215612b7357600080fd5b823567ffffffffffffffff811115612b8a57600080fd5b612b9685828601612949565b90969095509350505050565b60008060408385031215612bb557600080fd5b50508035926020909101359150565b60008060408385031215612bd757600080fd5b612be083612908565b9150612bee60208401612854565b90509250929050565b60008060008060808587031215612c0d57600080fd5b612c1685612908565b9350612c2460208601612908565b925060408501359150606085013567ffffffffffffffff811115612c4757600080fd5b8501601f81018713612c5857600080fd5b612c6787823560208401612a3a565b91505092959194509250565b600080600060408486031215612c8857600080fd5b83359250602084013567ffffffffffffffff8111156129cf57600080fd5b60008060408385031215612cb957600080fd5b612cc283612908565b9150612bee60208401612908565b600181811c90821680612ce457607f821691505b602082108103612d0457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612d4857612d48612d20565b5060010190565b60008219821115612d6257612d62612d20565b500190565b6000816000190483118215151615612d8157612d81612d20565b500290565b60008451612d98818460208901612884565b845190830190612dac818360208901612884565b8451910190612dbf818360208801612884565b0195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612dfb60808301846128b0565b9695505050505050565b600060208284031215612e1757600080fd5b8151610c5b81612821565b634e487b7160e01b600052601260045260246000fd5b600082612e4757612e47612e22565b500490565b600082821015612e5e57612e5e612d20565b500390565b600082612e7257612e72612e22565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220b204d4a2a165ee3f2e084662393b94bcb116eb52b1d12e713d9c8b924d3cc19e64736f6c634300080e00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000629cd3000000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000000000e5341424f54454e20504c414e455400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075341424f54454e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f696d6763646e2e7361626f74656e2e73706163652f6a736f6e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f696d6763646e2e7361626f74656e2e73706163652f68696464656e6a736f6e2f68696464656e2e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016c21f4a846b79490ff80cde32ab5ccd99db7e2c4cb378fb348f68e13c4870dd8

Deployed Bytecode

0x6080604052600436106102fd5760003560e01c80638ba4cc3c1161018f578063a475b5dd116100e1578063e3e1e8ef1161008a578063f18bebcb11610064578063f18bebcb1461081e578063f2c4ce1e1461083e578063f2fde38b1461085e57600080fd5b8063e3e1e8ef146107cb578063e985e9c5146107de578063f103b433146107fe57600080fd5b8063c2b40ae4116100bb578063c2b40ae41461075a578063c66828621461077a578063c87b56dd146107ab57600080fd5b8063a475b5dd1461070f578063a82524b214610724578063b88d4fde1461073a57600080fd5b806395d89b4111610143578063a0712d681161011d578063a0712d68146106bc578063a22cb465146106cf578063a2b40d19146106ef57600080fd5b806395d89b411461067c5780639d1b464a14610691578063a035b1fe146106a657600080fd5b80638c91fe92116101745780638c91fe921461061e5780638d4135c61461063e5780638da5cb5b1461065e57600080fd5b80638ba4cc3c146105de5780638bd92b86146105fe57600080fd5b806342842e0e116102535780636352211e116101fc57806370a08231116101d657806370a0823114610589578063715018a6146105a957806389e225df146105be57600080fd5b80636352211e1461053457806367a45ebf14610554578063698982ba1461057457600080fd5b80635a23dd991161022d5780635a23dd99146104da5780635c0bf906146104fa5780635c975abb1461051a57600080fd5b806342842e0e1461047b578063518302271461049b57806355f804b3146104ba57600080fd5b806317a385ba116102b5578063249b7c191161028f578063249b7c191461043a57806332cb6b0c146104505780633ccfd60b1461046657600080fd5b806317a385ba146103d357806318160ddd1461040157806323b872dd1461041a57600080fd5b806306fdde03116102e657806306fdde0314610359578063081812fc1461037b578063095ea7b3146103b357600080fd5b806301ffc9a71461030257806302329a2914610337575b600080fd5b34801561030e57600080fd5b5061032261031d366004612837565b61087e565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b50610357610352366004612869565b61091b565b005b34801561036557600080fd5b5061036e61097b565b60405161032e91906128dc565b34801561038757600080fd5b5061039b6103963660046128ef565b610a0d565b6040516001600160a01b03909116815260200161032e565b3480156103bf57600080fd5b506103576103ce36600461291f565b610a6a565b3480156103df57600080fd5b506103f36103ee366004612995565b610b7b565b60405190815260200161032e565b34801561040d57600080fd5b50600154600054036103f3565b34801561042657600080fd5b506103576104353660046129e8565b610c62565b34801561044657600080fd5b506103f360115481565b34801561045c57600080fd5b506103f3600c5481565b34801561047257600080fd5b50610357610c72565b34801561048757600080fd5b506103576104963660046129e8565b610d21565b3480156104a757600080fd5b50600d5461032290610100900460ff1681565b3480156104c657600080fd5b506103576104d5366004612ab0565b610d3c565b3480156104e657600080fd5b506103226104f5366004612995565b610d9b565b34801561050657600080fd5b506103f3610515366004612995565b610e7f565b34801561052657600080fd5b50600d546103229060ff1681565b34801561054057600080fd5b5061039b61054f3660046128ef565b610efc565b34801561056057600080fd5b5061035761056f3660046128ef565b610f07565b34801561058057600080fd5b50610357610f84565b34801561059557600080fd5b506103f36105a4366004612af9565b610fd9565b3480156105b557600080fd5b50610357611041565b3480156105ca57600080fd5b506103576105d9366004612b14565b611093565b3480156105ea57600080fd5b506103576105f936600461291f565b611249565b34801561060a57600080fd5b50610357610619366004612b60565b6113b0565b34801561062a57600080fd5b50610357610639366004612ba2565b611404565b34801561064a57600080fd5b50610357610659366004612b60565b611462565b34801561066a57600080fd5b506008546001600160a01b031661039b565b34801561068857600080fd5b5061036e6114b6565b34801561069d57600080fd5b50600e546103f3565b3480156106b257600080fd5b506103f3600e5481565b6103576106ca3660046128ef565b6114c5565b3480156106db57600080fd5b506103576106ea366004612bc4565b6116b5565b3480156106fb57600080fd5b5061035761070a3660046128ef565b611763565b34801561071b57600080fd5b506103576117b0565b34801561073057600080fd5b506103f360125481565b34801561074657600080fd5b50610357610755366004612bf7565b611809565b34801561076657600080fd5b506103f36107753660046128ef565b61184d565b34801561078657600080fd5b5061036e60405180604001604052806005815260200164173539b7b760d91b81525081565b3480156107b757600080fd5b5061036e6107c63660046128ef565b61186e565b6103576107d9366004612c73565b611a8e565b3480156107ea57600080fd5b506103226107f9366004612ca6565b611dd6565b34801561080a57600080fd5b506103576108193660046128ef565b611e06565b34801561082a57600080fd5b506103f36108393660046128ef565b611e53565b34801561084a57600080fd5b50610357610859366004612ab0565b611e63565b34801561086a57600080fd5b50610357610879366004612af9565b611ebe565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806108e157507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061091557507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6008546001600160a01b031633146109685760405162461bcd60e51b81526020600482018190526024820152600080516020612e7883398151915260448201526064015b60405180910390fd5b600d805460ff1916911515919091179055565b60606002805461098a90612cd0565b80601f01602080910402602001604051908101604052809291908181526020018280546109b690612cd0565b8015610a035780601f106109d857610100808354040283529160200191610a03565b820191906000526020600020905b8154815290600101906020018083116109e657829003601f168201915b5050505050905090565b6000610a1882611f8e565b610a4e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a7582611fb5565b9050806001600160a01b0316836001600160a01b031603610ac2576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610b1257610adc8133611dd6565b610b12576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000805b600f54811015610c53576000600f8281548110610b9e57610b9e612d0a565b90600052602060002001549050600086604051602001610bd6919060609190911b6bffffffffffffffffffffffff1916815260140190565b604051602081830303815290604052805190602001209050610c2e8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506120359050565b15610c3e57829350505050610c5b565b50508080610c4b90612d36565b915050610b7f565b50620186a090505b9392505050565b610c6d83838361204b565b505050565b6008546001600160a01b03163314610cba5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600260095403610d0c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161095f565b6002600955610d1a33612264565b6001600955565b610c6d83838360405180602001604052806000815250611809565b6008546001600160a01b03163314610d845760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b8051610d9790600a90602084019061274d565b5050565b6000805b600f54811015610e74576000600f8281548110610dbe57610dbe612d0a565b90600052602060002001549050600086604051602001610df6919060609190911b6bffffffffffffffffffffffff1916815260140190565b604051602081830303815290604052805190602001209050610e4e8686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506120359050565b15610e5f5760019350505050610c5b565b50508080610e6c90612d36565b915050610d9f565b506000949350505050565b600080601154421015610ed257610e97858585610d9b565b15610ecd576000610ea9868686610b7b565b905060108181548110610ebe57610ebe612d0a565b90600052602060002001549150505b610ef4565b6010600181548110610ee657610ee6612d0a565b906000526020600020015490505b949350505050565b600061091582611fb5565b6008546001600160a01b03163314610f4f5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600f80546001810182556000919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b6008546001600160a01b03163314610fcc5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610fd7336001612299565b565b60006001600160a01b03821661101b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146110895760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610fd760006122b3565b6008546001600160a01b031633146110db5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600d5460ff16156111175760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b806111256001546000540390565b61112f9190612d4f565b600c5410156111755760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b600081116111b25760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b3233146111f05760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b60005b8281111561124357600084848381811061120f5761120f612d0a565b90506020020160208101906112249190612af9565b90506112308184612299565b508061123b81612d36565b9150506111f3565b50505050565b6008546001600160a01b031633146112915760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600d5460ff16156112cd5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b806112db6001546000540390565b6112e59190612d4f565b600c54101561132b5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b600081116113685760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b3233146113a65760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b610d978282612299565b6008546001600160a01b031633146113f85760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610c6d600f83836127d1565b6008546001600160a01b0316331461144c5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b601282905561145b8183612d4f565b6011555050565b6008546001600160a01b031633146114aa5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b610c6d601083836127d1565b60606003805461098a90612cd0565b600d54339060ff16156115035760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b816115116001546000540390565b61151b9190612d4f565b600c5410156115615760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b6000821161159e5760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b326001600160a01b038216146115e55760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b600e5460006115f48483612d67565b905060115442116116475760405162461bcd60e51b815260206004820152601960248201527f50726573616c6520686173206e6f7420656e6465642079657400000000000000604482015260640161095f565b6008546001600160a01b038481169116146116ab573481146116ab5760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f766964656400000000000000000000604482015260640161095f565b6112438385612299565b336001600160a01b038316036116f7576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146117ab5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600e55565b6008546001600160a01b031633146117f85760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600d805461ff001916610100179055565b61181484848461204b565b6001600160a01b0383163b156112435761183084848484612312565b611243576040516368d2bf6b60e11b815260040160405180910390fd5b600f818154811061185d57600080fd5b600091825260209091200154905081565b606061187982611f8e565b6118eb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161095f565b600d54610100900460ff16151560000361199157600b805461190c90612cd0565b80601f016020809104026020016040519081016040528092919081815260200182805461193890612cd0565b80156119855780601f1061195a57610100808354040283529160200191611985565b820191906000526020600020905b81548152906001019060200180831161196857829003601f168201915b50505050509050919050565b6000600a80546119a090612cd0565b80601f01602080910402602001604051908101604052809291908181526020018280546119cc90612cd0565b8015611a195780601f106119ee57610100808354040283529160200191611a19565b820191906000526020600020905b8154815290600101906020018083116119fc57829003601f168201915b505050505090506000815111611a3e5760405180602001604052806000815250610c5b565b80611a48846123fd565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611a7893929190612d86565b6040516020818303038152906040529392505050565b600d54339060ff1615611acc5760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015260640161095f565b83611ada6001546000540390565b611ae49190612d4f565b600c541015611b2a5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b604482015260640161095f565b60008411611b675760405162461bcd60e51b815260206004820152600a6024820152694e6f2030206d696e747360b01b604482015260640161095f565b326001600160a01b03821614611bae5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b604482015260640161095f565b6000611bbb828585610d9b565b90506000611bc833610fd9565b90506000611bd7848787610e7f565b9050600087600e54611be99190612d67565b90506012544211611c3c5760405162461bcd60e51b815260206004820152601860248201527f53616c6520486173204e6f742053746172746564205965740000000000000000604482015260640161095f565b6011544210611c8d5760405162461bcd60e51b815260206004820152601160248201527f50726573616c652068617320456e646564000000000000000000000000000000604482015260640161095f565b6008546001600160a01b03868116911614611dc257600184151514611cf45760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c6973746564000000000000000000604482015260640161095f565b81611cff8985612d4f565b1115611d735760405162461bcd60e51b815260206004820152602860248201527f45786365656473204d6178696d756d20416c6c6f77656420447572696e67205760448201527f686974656c697374000000000000000000000000000000000000000000000000606482015260840161095f565b348114611dc25760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f766964656400000000000000000000604482015260640161095f565b611dcc8589612299565b5050505050505050565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff16610c5b565b6008546001600160a01b03163314611e4e5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b600c55565b6010818154811061185d57600080fd5b6008546001600160a01b03163314611eab5760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b8051610d9790600b90602084019061274d565b6008546001600160a01b03163314611f065760405162461bcd60e51b81526020600482018190526024820152600080516020612e78833981519152604482015260640161095f565b6001600160a01b038116611f825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161095f565b611f8b816122b3565b50565b6000805482108015610915575050600090815260046020526040902054600160e01b161590565b6000816000548110156120035760008181526004602052604081205490600160e01b82169003612001575b80600003610c5b575060001901600081815260046020526040902054611fe0565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826120428584612532565b14949350505050565b600061205682611fb5565b9050836001600160a01b0316816001600160a01b0316146120a3576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b03861614806120c157506120c18533611dd6565b806120dc5750336120d184610a0d565b6001600160a01b0316145b905080612115576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612155576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b0388811684526005835281842080546000190190558716835280832080546001019055858352600490915281207c02000000000000000000000000000000000000000000000000000000004260a01b871781179091558316900361221c5760018301600081815260046020526040812054900361221a57600054811461221a5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610d97573d6000803e3d6000fd5b610d978282604051806020016040528060008152506125a6565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612347903390899088908890600401612dc9565b6020604051808303816000875af1925050508015612382575060408051601f3d908101601f1916820190925261237f91810190612e05565b60015b6123e0573d8080156123b0576040519150601f19603f3d011682016040523d82523d6000602084013e6123b5565b606091505b5080516000036123d8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60608160000361244057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561246a578061245481612d36565b91506124639050600a83612e38565b9150612444565b60008167ffffffffffffffff81111561248557612485612a24565b6040519080825280601f01601f1916602001820160405280156124af576020820181803683370190505b5090505b8415610ef4576124c4600183612e4c565b91506124d1600a86612e63565b6124dc906030612d4f565b60f81b8183815181106124f1576124f1612d0a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061252b600a86612e38565b94506124b3565b600081815b845181101561259e57600085828151811061255457612554612d0a565b6020026020010151905080831161257a576000838152602082905260409020925061258b565b600081815260208490526040902092505b508061259681612d36565b915050612537565b509392505050565b6000546001600160a01b0384166125e9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600003612623576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b156126f8575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46126c16000878480600101955087612312565b6126de576040516368d2bf6b60e11b815260040160405180910390fd5b8082106126765782600054146126f357600080fd5b61273d565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126f9575b5060009081556112439085838684565b82805461275990612cd0565b90600052602060002090601f01602090048101928261277b57600085556127c1565b82601f1061279457805160ff19168380011785556127c1565b828001600101855582156127c1579182015b828111156127c15782518255916020019190600101906127a6565b506127cd92915061280c565b5090565b8280548282559060005260206000209081019282156127c1579160200282015b828111156127c15782358255916020019190600101906127f1565b5b808211156127cd576000815560010161280d565b6001600160e01b031981168114611f8b57600080fd5b60006020828403121561284957600080fd5b8135610c5b81612821565b8035801515811461286457600080fd5b919050565b60006020828403121561287b57600080fd5b610c5b82612854565b60005b8381101561289f578181015183820152602001612887565b838111156112435750506000910152565b600081518084526128c8816020860160208601612884565b601f01601f19169290920160200192915050565b602081526000610c5b60208301846128b0565b60006020828403121561290157600080fd5b5035919050565b80356001600160a01b038116811461286457600080fd5b6000806040838503121561293257600080fd5b61293b83612908565b946020939093013593505050565b60008083601f84011261295b57600080fd5b50813567ffffffffffffffff81111561297357600080fd5b6020830191508360208260051b850101111561298e57600080fd5b9250929050565b6000806000604084860312156129aa57600080fd5b6129b384612908565b9250602084013567ffffffffffffffff8111156129cf57600080fd5b6129db86828701612949565b9497909650939450505050565b6000806000606084860312156129fd57600080fd5b612a0684612908565b9250612a1460208501612908565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a5557612a55612a24565b604051601f8501601f19908116603f01168101908282118183101715612a7d57612a7d612a24565b81604052809350858152868686011115612a9657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612ac257600080fd5b813567ffffffffffffffff811115612ad957600080fd5b8201601f81018413612aea57600080fd5b610ef484823560208401612a3a565b600060208284031215612b0b57600080fd5b610c5b82612908565b600080600060408486031215612b2957600080fd5b833567ffffffffffffffff811115612b4057600080fd5b612b4c86828701612949565b909790965060209590950135949350505050565b60008060208385031215612b7357600080fd5b823567ffffffffffffffff811115612b8a57600080fd5b612b9685828601612949565b90969095509350505050565b60008060408385031215612bb557600080fd5b50508035926020909101359150565b60008060408385031215612bd757600080fd5b612be083612908565b9150612bee60208401612854565b90509250929050565b60008060008060808587031215612c0d57600080fd5b612c1685612908565b9350612c2460208601612908565b925060408501359150606085013567ffffffffffffffff811115612c4757600080fd5b8501601f81018713612c5857600080fd5b612c6787823560208401612a3a565b91505092959194509250565b600080600060408486031215612c8857600080fd5b83359250602084013567ffffffffffffffff8111156129cf57600080fd5b60008060408385031215612cb957600080fd5b612cc283612908565b9150612bee60208401612908565b600181811c90821680612ce457607f821691505b602082108103612d0457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612d4857612d48612d20565b5060010190565b60008219821115612d6257612d62612d20565b500190565b6000816000190483118215151615612d8157612d81612d20565b500290565b60008451612d98818460208901612884565b845190830190612dac818360208901612884565b8451910190612dbf818360208801612884565b0195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612dfb60808301846128b0565b9695505050505050565b600060208284031215612e1757600080fd5b8151610c5b81612821565b634e487b7160e01b600052601260045260246000fd5b600082612e4757612e47612e22565b500490565b600082821015612e5e57612e5e612d20565b500390565b600082612e7257612e72612e22565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220b204d4a2a165ee3f2e084662393b94bcb116eb52b1d12e713d9c8b924d3cc19e64736f6c634300080e0033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000629cd3000000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000000000e5341424f54454e20504c414e455400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075341424f54454e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f696d6763646e2e7361626f74656e2e73706163652f6a736f6e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f696d6763646e2e7361626f74656e2e73706163652f68696464656e6a736f6e2f68696464656e2e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016c21f4a846b79490ff80cde32ab5ccd99db7e2c4cb378fb348f68e13c4870dd8

-----Decoded View---------------
Arg [0] : _name (string): SABOTEN PLANET
Arg [1] : _symbol (string): SABOTEN
Arg [2] : _initBaseURI (string): https://imgcdn.saboten.space/json/
Arg [3] : _initNotRevealedUri (string): https://imgcdn.saboten.space/hiddenjson/hidden.json
Arg [4] : _initRoots (bytes32[]): System.Byte[]
Arg [5] : _presaleStartTime (uint256): 1654444800
Arg [6] : _duration (uint256): 604800

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [5] : 00000000000000000000000000000000000000000000000000000000629cd300
Arg [6] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [8] : 5341424f54454e20504c414e4554000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [10] : 5341424f54454e00000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [12] : 68747470733a2f2f696d6763646e2e7361626f74656e2e73706163652f6a736f
Arg [13] : 6e2f000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [15] : 68747470733a2f2f696d6763646e2e7361626f74656e2e73706163652f686964
Arg [16] : 64656e6a736f6e2f68696464656e2e6a736f6e00000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 6c21f4a846b79490ff80cde32ab5ccd99db7e2c4cb378fb348f68e13c4870dd8


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.