ETH Price: $3,675.96 (+2.09%)

RabblePass (RabblePass)
 

Overview

TokenID

678

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xad1B1fB6...6A5B31467
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
RabblePassNft

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 15 : RabblePassNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/**
 * @author Brewlabs
 * This contract has been developed by brewlabs.info
 */
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract RabblePassNft is Ownable, ERC721URIStorage, ReentrancyGuard {
    using Strings for uint256;

    uint256 private constant MAX_SUPPLY = 4000;
    uint256 private constant TIME_UNITS = 1 hours;

    string private _tokenBaseURI = "";
    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    bool public mintAllowed = false;
    uint256 private premine = 200;
    uint256 public totalSupply = 0;
    uint256 public mintStartBlock;
    uint256 public mintStartTime;

    bytes32 private merkleRoot;
    mapping(address => uint256[3]) private numOfMints;

    uint256 private numAvailableItems = 4000;
    uint256[4000] private availableItems;

    event MintEnabled();
    event MintDisabled();
    event Mint(address indexed user, uint256 tokenId);
    event BaseURIUpdated(string uri);
    event SetWhitelist(bytes32 whitelistMerkleRoot);

    modifier onlyMintable() {
        require(mintAllowed && totalSupply < MAX_SUPPLY, "cannot mint");
        _;
    }

    constructor() ERC721("RabblePass", "RabblePass") {}

    function preMint(address _to, uint256 _count) external onlyOwner {
        require(_count <= 50, "exceed one time limit");
        require(totalSupply < premine, "premine already finished");
        require(totalSupply + _count <= premine, "exceed premine");

        _randomMint(_to, _count);
    }

    function mint(bytes32[] memory _merkleProof, uint256 _numToMint) external payable onlyMintable nonReentrant {
        require(_numToMint > 0, "invalid amount");
        require(totalSupply + _numToMint <= MAX_SUPPLY, "Exceed supply limit");
        require(msg.value >= 0.00001 ether, "should hold small eth to mint");
        payable(msg.sender).transfer(msg.value);

        uint256 phase = currentPhase();
        _checkCondition(_merkleProof, phase, _numToMint);
        _randomMint(msg.sender, _numToMint);

        numOfMints[msg.sender][phase - 1] += _numToMint;
        if(phase < 3) numOfMints[msg.sender][2] += _numToMint;
    }

    function _checkCondition(bytes32[] memory _merkleProof, uint256 phase, uint256 _numToMint) internal view {
        if(phase < 3) {
            // check if minter exists in whitelist
            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "invalid merkle proof");
        }

        require(numOfMints[msg.sender][phase - 1] < phase, "already mint");
        require(numOfMints[msg.sender][phase - 1] + _numToMint <= phase, "Exceed mint limit in this phase");
    }

    function _randomMint(address _user, uint256 _numToMint) internal {
        for(uint256 i = 0; i < _numToMint; i++) {
            uint256 tokenId = _randomAvailableTokenId(_numToMint, i);
            tokenId = tokenId + 1;

            _safeMint(_user, tokenId);
            _setTokenURI(tokenId, tokenId.toString());
            super._setTokenURI(tokenId, tokenId.toString());

            totalSupply++;
            if (totalSupply == MAX_SUPPLY) {
                mintAllowed = false;
            }
            numAvailableItems--;

            emit Mint(_user, tokenId);
        }
    }

    function _randomAvailableTokenId(uint256 _numToMint, uint256 i) internal returns (uint256) {
        uint256 randomNum = uint256(
            keccak256(
                abi.encode(
                    msg.sender,
                    tx.gasprice,
                    block.number,
                    block.timestamp,
                    blockhash(block.number - 1),
                    _numToMint,
                    i
                )
            )
        );

        uint256 randomIndex = randomNum % numAvailableItems;

        uint256 valAtIndex = availableItems[randomIndex];
        uint256 result;
        if (valAtIndex == 0) {
            // This means the index itself is still an available token
            result = randomIndex;
        } else {
            // This means the index itself is not an available token, but the val at that index is.
            result = valAtIndex;
        }

        uint256 lastIndex = numAvailableItems - 1;
        if (randomIndex != lastIndex) {
            // Replace the value at randomIndex, now that it's been used.
            // Replace it with the data from the last index in the array, since we are going to decrease the array size afterwards.
            uint256 lastValInArray = availableItems[lastIndex];
            if (lastValInArray == 0) {
                // This means the index itself is still an available token
                availableItems[randomIndex] = lastIndex;
            } else {
                // This means the index itself is not an available token, but the val at that index is.
                availableItems[randomIndex] = lastValInArray;
            }
        }

        return result;
    }

    function currentPhase() public view returns (uint256) {
        if (mintStartBlock == 0) return 0;

        uint256 _passTime = (block.number - mintStartBlock) * 3;
        if(_passTime <= 24 * TIME_UNITS) return 1;
        if(_passTime > 36 * TIME_UNITS) return 3;
        return 2;
    }

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI(), _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    function enableMint() external onlyOwner {
        require(totalSupply >= premine, "premine not finished yet");
        require(merkleRoot != "", "Whitelist not set");
        require(!mintAllowed, "already enabled");

        mintAllowed = true;
        mintStartBlock = block.number;
        mintStartTime = block.timestamp;
        emit MintEnabled();
    }

    function setWhiteList(bytes32 _merkleRoot) external onlyOwner {
        require(_merkleRoot != "", "invalid merkle root");
        merkleRoot = _merkleRoot;
        emit SetWhitelist(_merkleRoot);
    }

    function setTokenBaseUri(string memory _uri) external onlyOwner {
        _tokenBaseURI = _uri;
        emit BaseURIUpdated(_uri);
    }

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

    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal override {
        require(_exists(tokenId), "RabblePassNft: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    receive() external payable {}
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 3 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 4 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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 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);
}

File 5 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 6 of 15 : 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 7 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 8 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 9 of 15 : 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;
    }
}

File 10 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 11 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @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) {
        _requireMinted(tokenId);

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 12 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 14 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[],"name":"MintDisabled","type":"event"},{"anonymous":false,"inputs":[],"name":"MintEnabled","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":false,"internalType":"bytes32","name":"whitelistMerkleRoot","type":"bytes32"}],"name":"SetWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"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":"currentPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableMint","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":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_numToMint","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWhiteList","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"},{"stateMutability":"payable","type":"receive"}]

60a06040819052600060808190526200001b9160099162000131565b50600b805460ff1916905560c8600c556000600d55610fa06012553480156200004357600080fd5b506040518060400160405280600a815260200169526162626c655061737360b01b8152506040518060400160405280600a815260200169526162626c655061737360b01b815250620000a46200009e620000dd60201b60201c565b620000e1565b8151620000b990600190602085019062000131565b508051620000cf90600290602084019062000131565b505060016008555062000213565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200013f90620001d7565b90600052602060002090601f016020900481019282620001635760008555620001ae565b82601f106200017e57805160ff1916838001178555620001ae565b82800160010185558215620001ae579182015b82811115620001ae57825182559160200191906001019062000191565b50620001bc929150620001c0565b5090565b5b80821115620001bc5760008155600101620001c1565b600181811c90821680620001ec57607f821691505b6020821081036200020d57634e487b7160e01b600052602260045260246000fd5b50919050565b61257a80620002236000396000f3fe6080604052600436106101655760003560e01c80636352211e116100c157806395d89b411161007a57806395d89b41146103c2578063a22cb465146103d7578063b88d4fde146103f7578063c467201e14610417578063c87b56dd14610431578063e985e9c514610451578063f2fde38b1461047157600080fd5b80636352211e146103195780636b0815f31461033957806370a0823114610359578063715018a6146103795780638da5cb5b1461038e578063931e2e49146103ac57600080fd5b806323b872dd1161011e57806323b872dd1461025b578063290c292d1461027b5780633f87db251461029b57806342842e0e146102bb57806344b28d59146102db57806345de0d9b146102f05780635455bec41461030357600080fd5b806301ffc9a714610171578063055ad42e146101a657806306fdde03146101c9578063081812fc146101eb578063095ea7b31461022357806318160ddd1461024557600080fd5b3661016c57005b600080fd5b34801561017d57600080fd5b5061019161018c366004611f0a565b610491565b60405190151581526020015b60405180910390f35b3480156101b257600080fd5b506101bb6104e3565b60405190815260200161019d565b3480156101d557600080fd5b506101de610551565b60405161019d9190611f7f565b3480156101f757600080fd5b5061020b610206366004611f92565b6105e3565b6040516001600160a01b03909116815260200161019d565b34801561022f57600080fd5b5061024361023e366004611fc7565b61060a565b005b34801561025157600080fd5b506101bb600d5481565b34801561026757600080fd5b50610243610276366004611ff1565b610724565b34801561028757600080fd5b50610243610296366004611fc7565b610755565b3480156102a757600080fd5b506102436102b63660046120cc565b610852565b3480156102c757600080fd5b506102436102d6366004611ff1565b6108a8565b3480156102e757600080fd5b506102436108c3565b6102436102fe366004612115565b6109e5565b34801561030f57600080fd5b506101bb600e5481565b34801561032557600080fd5b5061020b610334366004611f92565b610c3f565b34801561034557600080fd5b50610243610354366004611f92565b610c74565b34801561036557600080fd5b506101bb6103743660046121c1565b610cf7565b34801561038557600080fd5b50610243610d7d565b34801561039a57600080fd5b506000546001600160a01b031661020b565b3480156103b857600080fd5b506101bb600f5481565b3480156103ce57600080fd5b506101de610d91565b3480156103e357600080fd5b506102436103f23660046121dc565b610da0565b34801561040357600080fd5b50610243610412366004612218565b610dab565b34801561042357600080fd5b50600b546101919060ff1681565b34801561043d57600080fd5b506101de61044c366004611f92565b610de3565b34801561045d57600080fd5b5061019161046c366004612294565b610f4d565b34801561047d57600080fd5b5061024361048c3660046121c1565b610f7b565b60006001600160e01b031982166380ac58cd60e01b14806104c257506001600160e01b03198216635b5e139f60e01b145b806104dd57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000600e546000036104f55750600090565b6000600e544361050591906122dd565b6105109060036122f4565b905061051f610e1060186122f4565b811161052d57600191505090565b61053a610e1060246122f4565b81111561054957600391505090565b600291505090565b60606001805461056090612313565b80601f016020809104026020016040519081016040528092919081815260200182805461058c90612313565b80156105d95780601f106105ae576101008083540402835291602001916105d9565b820191906000526020600020905b8154815290600101906020018083116105bc57829003601f168201915b5050505050905090565b60006105ee82610ff4565b506000908152600560205260409020546001600160a01b031690565b600061061582610c3f565b9050806001600160a01b0316836001600160a01b0316036106875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806106a357506106a38133610f4d565b6107155760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161067e565b61071f8383611019565b505050565b61072e3382611087565b61074a5760405162461bcd60e51b815260040161067e9061234d565b61071f8383836110e5565b61075d611281565b60328111156107a65760405162461bcd60e51b8152602060048201526015602482015274195e18d95959081bdb99481d1a5b59481b1a5b5a5d605a1b604482015260640161067e565b600c54600d54106107f45760405162461bcd60e51b81526020600482015260186024820152771c1c995b5a5b9948185b1c9958591e48199a5b9a5cda195960421b604482015260640161067e565b600c5481600d54610805919061239b565b11156108445760405162461bcd60e51b815260206004820152600e60248201526d657863656564207072656d696e6560901b604482015260640161067e565b61084e82826112db565b5050565b61085a611281565b805161086d906009906020840190611e5b565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8160405161089d9190611f7f565b60405180910390a150565b61071f83838360405180602001604052806000815250610dab565b6108cb611281565b600c54600d54101561091a5760405162461bcd60e51b81526020600482015260186024820152771c1c995b5a5b99481b9bdd08199a5b9a5cda1959081e595d60421b604482015260640161067e565b6010546000036109605760405162461bcd60e51b815260206004820152601160248201527015da1a5d195b1a5cdd081b9bdd081cd95d607a1b604482015260640161067e565b600b5460ff16156109a55760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e48195b98589b1959608a1b604482015260640161067e565b600b805460ff1916600117905543600e5542600f556040517f7d4c15f0a1a76cde938e0b5d3a1c1e9905f57401c4aed53ae344801d156736e690600090a1565b600b5460ff1680156109fa5750610fa0600d54105b610a345760405162461bcd60e51b815260206004820152600b60248201526a18d85b9b9bdd081b5a5b9d60aa1b604482015260640161067e565b600260085403610a865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161067e565b600260085580610ac95760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161067e565b610fa081600d54610ada919061239b565b1115610b1e5760405162461bcd60e51b8152602060048201526013602482015272115e18d95959081cdd5c1c1b1e481b1a5b5a5d606a1b604482015260640161067e565b6509184e72a000341015610b745760405162461bcd60e51b815260206004820152601d60248201527f73686f756c6420686f6c6420736d616c6c2065746820746f206d696e74000000604482015260640161067e565b60405133903480156108fc02916000818181858888f19350505050158015610ba0573d6000803e3d6000fd5b506000610bab6104e3565b9050610bb88382846113c5565b610bc233836112db565b3360009081526011602052604090208290610bde6001846122dd565b60038110610bee57610bee6123b3565b016000828254610bfe919061239b565b90915550506003811015610c355733600090815260116020526040902082906002016000828254610c2f919061239b565b90915550505b5050600160085550565b6000818152600360205260408120546001600160a01b0316806104dd5760405162461bcd60e51b815260040161067e906123c9565b610c7c611281565b80600003610cc25760405162461bcd60e51b81526020600482015260136024820152721a5b9d985b1a59081b595c9adb19481c9bdbdd606a1b604482015260640161067e565b60108190556040518181527fc504a95022b9d01b3024e95b0a85c200d0c538f417160776512b95fcbf7b2daa9060200161089d565b60006001600160a01b038216610d615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161067e565b506001600160a01b031660009081526004602052604090205490565b610d85611281565b610d8f600061154b565b565b60606002805461056090612313565b61084e33838361159b565b610db53383611087565b610dd15760405162461bcd60e51b815260040161067e9061234d565b610ddd84848484611665565b50505050565b6060610dee82611698565b610e4e5760405162461bcd60e51b815260206004820152602b60248201527f526162626c65506173733a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b606482015260840161067e565b6000828152600a602052604081208054610e6790612313565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9390612313565b8015610ee05780601f10610eb557610100808354040283529160200191610ee0565b820191906000526020600020905b815481529060010190602001808311610ec357829003601f168201915b505050505090506000610ef16116b5565b90508051600003610f03575092915050565b815115610f3c57610f126116b5565b82604051602001610f249291906123fb565b60405160208183030381529060405292505050919050565b610f45846116c4565b949350505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610f83611281565b6001600160a01b038116610fe85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067e565b610ff18161154b565b50565b610ffd81611698565b610ff15760405162461bcd60e51b815260040161067e906123c9565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104e82610c3f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061109383610c3f565b9050806001600160a01b0316846001600160a01b031614806110ba57506110ba8185610f4d565b80610f455750836001600160a01b03166110d3846105e3565b6001600160a01b031614949350505050565b826001600160a01b03166110f882610c3f565b6001600160a01b03161461115c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161067e565b6001600160a01b0382166111be5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161067e565b6111c9600082611019565b6001600160a01b03831660009081526004602052604081208054600192906111f29084906122dd565b90915550506001600160a01b038216600090815260046020526040812080546001929061122090849061239b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610d8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067e565b60005b8181101561071f5760006112f283836117a7565b90506112ff81600161239b565b905061130b84826118d0565b61131d81611318836118ea565b6119eb565b61132f8161132a836118ea565b611a73565b600d805490600061133f8361242a565b9190505550610fa0600d540361135a57600b805460ff191690555b6012805490600061136a83612443565b9190505550836001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516113aa91815260200190565b60405180910390a250806113bd8161242a565b9150506112de565b6003821015611459576040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506114148460105483611afe565b6114575760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b604482015260640161067e565b505b33600090815260116020526040902082906114756001836122dd565b60038110611485576114856123b3565b0154106114c35760405162461bcd60e51b815260206004820152600c60248201526b185b1c9958591e481b5a5b9d60a21b604482015260640161067e565b336000908152601160205260409020829082906114e16001846122dd565b600381106114f1576114f16123b3565b01546114fd919061239b565b111561071f5760405162461bcd60e51b815260206004820152601f60248201527f457863656564206d696e74206c696d697420696e207468697320706861736500604482015260640161067e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036115f85760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161067e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6116708484846110e5565b61167c84848484611b14565b610ddd5760405162461bcd60e51b815260040161067e9061245a565b6000908152600360205260409020546001600160a01b0316151590565b60606009805461056090612313565b60606116cf82610ff4565b600082815260076020526040812080546116e890612313565b80601f016020809104026020016040519081016040528092919081815260200182805461171490612313565b80156117615780601f1061173657610100808354040283529160200191611761565b820191906000526020600020905b81548152906001019060200180831161174457829003601f168201915b5050505050905060006117726116b5565b90508051600003611784575092915050565b81511561179e578082604051602001610f249291906123fb565b610f4584611c15565b600080333a43426117b96001836122dd565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810185905260e08101849052610100016040516020818303038152906040528051906020012060001c905060006012548261182391906124c2565b90506000601382610fa0811061183b5761183b6123b3565b01549050600081600003611850575081611853565b50805b6000600160125461186491906122dd565b90508084146118c5576000601382610fa08110611883576118836123b3565b01549050806000036118ab5781601386610fa081106118a4576118a46123b3565b01556118c3565b80601386610fa081106118c0576118c06123b3565b01555b505b509695505050505050565b61084e828260405180602001604052806000815250611c7c565b6060816000036119115750506040805180820190915260018152600360fc1b602082015290565b8160005b811561193b57806119258161242a565b91506119349050600a836124d6565b9150611915565b60008167ffffffffffffffff8111156119565761195661202d565b6040519080825280601f01601f191660200182016040528015611980576020820181803683370190505b5090505b8415610f45576119956001836122dd565b91506119a2600a866124c2565b6119ad90603061239b565b60f81b8183815181106119c2576119c26123b3565b60200101906001600160f81b031916908160001a9053506119e4600a866124d6565b9450611984565b6119f482611698565b611a545760405162461bcd60e51b815260206004820152602b60248201527f526162626c65506173734e66743a2055524920736574206f66206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b606482015260840161067e565b6000828152600a60209081526040909120825161071f92840190611e5b565b611a7c82611698565b611adf5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161067e565b6000828152600760209081526040909120825161071f92840190611e5b565b600082611b0b8584611caf565b14949350505050565b60006001600160a01b0384163b15611c0a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b589033908990889088906004016124ea565b6020604051808303816000875af1925050508015611b93575060408051601f3d908101601f19168201909252611b9091810190612527565b60015b611bf0573d808015611bc1576040519150601f19603f3d011682016040523d82523d6000602084013e611bc6565b606091505b508051600003611be85760405162461bcd60e51b815260040161067e9061245a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f45565b506001949350505050565b6060611c2082610ff4565b6000611c2a6116b5565b90506000815111611c4a5760405180602001604052806000815250611c75565b80611c54846118ea565b604051602001611c659291906123fb565b6040516020818303038152906040525b9392505050565b611c868383611cfc565b611c936000848484611b14565b61071f5760405162461bcd60e51b815260040161067e9061245a565b600081815b8451811015611cf457611ce082868381518110611cd357611cd36123b3565b6020026020010151611e2f565b915080611cec8161242a565b915050611cb4565b509392505050565b6001600160a01b038216611d525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067e565b611d5b81611698565b15611da85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067e565b6001600160a01b0382166000908152600460205260408120805460019290611dd190849061239b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611e4b576000828152602084905260409020611c75565b5060009182526020526040902090565b828054611e6790612313565b90600052602060002090601f016020900481019282611e895760008555611ecf565b82601f10611ea257805160ff1916838001178555611ecf565b82800160010185558215611ecf579182015b82811115611ecf578251825591602001919060010190611eb4565b50611edb929150611edf565b5090565b5b80821115611edb5760008155600101611ee0565b6001600160e01b031981168114610ff157600080fd5b600060208284031215611f1c57600080fd5b8135611c7581611ef4565b60005b83811015611f42578181015183820152602001611f2a565b83811115610ddd5750506000910152565b60008151808452611f6b816020860160208601611f27565b601f01601f19169290920160200192915050565b602081526000611c756020830184611f53565b600060208284031215611fa457600080fd5b5035919050565b80356001600160a01b0381168114611fc257600080fd5b919050565b60008060408385031215611fda57600080fd5b611fe383611fab565b946020939093013593505050565b60008060006060848603121561200657600080fd5b61200f84611fab565b925061201d60208501611fab565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561206c5761206c61202d565b604052919050565b600067ffffffffffffffff83111561208e5761208e61202d565b6120a1601f8401601f1916602001612043565b90508281528383830111156120b557600080fd5b828260208301376000602084830101529392505050565b6000602082840312156120de57600080fd5b813567ffffffffffffffff8111156120f557600080fd5b8201601f8101841361210657600080fd5b610f4584823560208401612074565b6000806040838503121561212857600080fd5b823567ffffffffffffffff8082111561214057600080fd5b818501915085601f83011261215457600080fd5b81356020828211156121685761216861202d565b8160051b9250612179818401612043565b828152928401810192818101908985111561219357600080fd5b948201945b848610156121b157853582529482019490820190612198565b9997909101359750505050505050565b6000602082840312156121d357600080fd5b611c7582611fab565b600080604083850312156121ef57600080fd5b6121f883611fab565b91506020830135801515811461220d57600080fd5b809150509250929050565b6000806000806080858703121561222e57600080fd5b61223785611fab565b935061224560208601611fab565b925060408501359150606085013567ffffffffffffffff81111561226857600080fd5b8501601f8101871361227957600080fd5b61228887823560208401612074565b91505092959194509250565b600080604083850312156122a757600080fd5b6122b083611fab565b91506122be60208401611fab565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b6000828210156122ef576122ef6122c7565b500390565b600081600019048311821515161561230e5761230e6122c7565b500290565b600181811c9082168061232757607f821691505b60208210810361234757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156123ae576123ae6122c7565b500190565b634e487b7160e01b600052603260045260246000fd5b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b6000835161240d818460208801611f27565b835190830190612421818360208801611f27565b01949350505050565b60006001820161243c5761243c6122c7565b5060010190565b600081612452576124526122c7565b506000190190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826124d1576124d16124ac565b500690565b6000826124e5576124e56124ac565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061251d90830184611f53565b9695505050505050565b60006020828403121561253957600080fd5b8151611c7581611ef456fea2646970667358221220aa58d39e9022c6e85d5cba1cf6de67d7dc144dbb19f16a7472d148fdaa77770e64736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106101655760003560e01c80636352211e116100c157806395d89b411161007a57806395d89b41146103c2578063a22cb465146103d7578063b88d4fde146103f7578063c467201e14610417578063c87b56dd14610431578063e985e9c514610451578063f2fde38b1461047157600080fd5b80636352211e146103195780636b0815f31461033957806370a0823114610359578063715018a6146103795780638da5cb5b1461038e578063931e2e49146103ac57600080fd5b806323b872dd1161011e57806323b872dd1461025b578063290c292d1461027b5780633f87db251461029b57806342842e0e146102bb57806344b28d59146102db57806345de0d9b146102f05780635455bec41461030357600080fd5b806301ffc9a714610171578063055ad42e146101a657806306fdde03146101c9578063081812fc146101eb578063095ea7b31461022357806318160ddd1461024557600080fd5b3661016c57005b600080fd5b34801561017d57600080fd5b5061019161018c366004611f0a565b610491565b60405190151581526020015b60405180910390f35b3480156101b257600080fd5b506101bb6104e3565b60405190815260200161019d565b3480156101d557600080fd5b506101de610551565b60405161019d9190611f7f565b3480156101f757600080fd5b5061020b610206366004611f92565b6105e3565b6040516001600160a01b03909116815260200161019d565b34801561022f57600080fd5b5061024361023e366004611fc7565b61060a565b005b34801561025157600080fd5b506101bb600d5481565b34801561026757600080fd5b50610243610276366004611ff1565b610724565b34801561028757600080fd5b50610243610296366004611fc7565b610755565b3480156102a757600080fd5b506102436102b63660046120cc565b610852565b3480156102c757600080fd5b506102436102d6366004611ff1565b6108a8565b3480156102e757600080fd5b506102436108c3565b6102436102fe366004612115565b6109e5565b34801561030f57600080fd5b506101bb600e5481565b34801561032557600080fd5b5061020b610334366004611f92565b610c3f565b34801561034557600080fd5b50610243610354366004611f92565b610c74565b34801561036557600080fd5b506101bb6103743660046121c1565b610cf7565b34801561038557600080fd5b50610243610d7d565b34801561039a57600080fd5b506000546001600160a01b031661020b565b3480156103b857600080fd5b506101bb600f5481565b3480156103ce57600080fd5b506101de610d91565b3480156103e357600080fd5b506102436103f23660046121dc565b610da0565b34801561040357600080fd5b50610243610412366004612218565b610dab565b34801561042357600080fd5b50600b546101919060ff1681565b34801561043d57600080fd5b506101de61044c366004611f92565b610de3565b34801561045d57600080fd5b5061019161046c366004612294565b610f4d565b34801561047d57600080fd5b5061024361048c3660046121c1565b610f7b565b60006001600160e01b031982166380ac58cd60e01b14806104c257506001600160e01b03198216635b5e139f60e01b145b806104dd57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000600e546000036104f55750600090565b6000600e544361050591906122dd565b6105109060036122f4565b905061051f610e1060186122f4565b811161052d57600191505090565b61053a610e1060246122f4565b81111561054957600391505090565b600291505090565b60606001805461056090612313565b80601f016020809104026020016040519081016040528092919081815260200182805461058c90612313565b80156105d95780601f106105ae576101008083540402835291602001916105d9565b820191906000526020600020905b8154815290600101906020018083116105bc57829003601f168201915b5050505050905090565b60006105ee82610ff4565b506000908152600560205260409020546001600160a01b031690565b600061061582610c3f565b9050806001600160a01b0316836001600160a01b0316036106875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806106a357506106a38133610f4d565b6107155760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161067e565b61071f8383611019565b505050565b61072e3382611087565b61074a5760405162461bcd60e51b815260040161067e9061234d565b61071f8383836110e5565b61075d611281565b60328111156107a65760405162461bcd60e51b8152602060048201526015602482015274195e18d95959081bdb99481d1a5b59481b1a5b5a5d605a1b604482015260640161067e565b600c54600d54106107f45760405162461bcd60e51b81526020600482015260186024820152771c1c995b5a5b9948185b1c9958591e48199a5b9a5cda195960421b604482015260640161067e565b600c5481600d54610805919061239b565b11156108445760405162461bcd60e51b815260206004820152600e60248201526d657863656564207072656d696e6560901b604482015260640161067e565b61084e82826112db565b5050565b61085a611281565b805161086d906009906020840190611e5b565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8160405161089d9190611f7f565b60405180910390a150565b61071f83838360405180602001604052806000815250610dab565b6108cb611281565b600c54600d54101561091a5760405162461bcd60e51b81526020600482015260186024820152771c1c995b5a5b99481b9bdd08199a5b9a5cda1959081e595d60421b604482015260640161067e565b6010546000036109605760405162461bcd60e51b815260206004820152601160248201527015da1a5d195b1a5cdd081b9bdd081cd95d607a1b604482015260640161067e565b600b5460ff16156109a55760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e48195b98589b1959608a1b604482015260640161067e565b600b805460ff1916600117905543600e5542600f556040517f7d4c15f0a1a76cde938e0b5d3a1c1e9905f57401c4aed53ae344801d156736e690600090a1565b600b5460ff1680156109fa5750610fa0600d54105b610a345760405162461bcd60e51b815260206004820152600b60248201526a18d85b9b9bdd081b5a5b9d60aa1b604482015260640161067e565b600260085403610a865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161067e565b600260085580610ac95760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161067e565b610fa081600d54610ada919061239b565b1115610b1e5760405162461bcd60e51b8152602060048201526013602482015272115e18d95959081cdd5c1c1b1e481b1a5b5a5d606a1b604482015260640161067e565b6509184e72a000341015610b745760405162461bcd60e51b815260206004820152601d60248201527f73686f756c6420686f6c6420736d616c6c2065746820746f206d696e74000000604482015260640161067e565b60405133903480156108fc02916000818181858888f19350505050158015610ba0573d6000803e3d6000fd5b506000610bab6104e3565b9050610bb88382846113c5565b610bc233836112db565b3360009081526011602052604090208290610bde6001846122dd565b60038110610bee57610bee6123b3565b016000828254610bfe919061239b565b90915550506003811015610c355733600090815260116020526040902082906002016000828254610c2f919061239b565b90915550505b5050600160085550565b6000818152600360205260408120546001600160a01b0316806104dd5760405162461bcd60e51b815260040161067e906123c9565b610c7c611281565b80600003610cc25760405162461bcd60e51b81526020600482015260136024820152721a5b9d985b1a59081b595c9adb19481c9bdbdd606a1b604482015260640161067e565b60108190556040518181527fc504a95022b9d01b3024e95b0a85c200d0c538f417160776512b95fcbf7b2daa9060200161089d565b60006001600160a01b038216610d615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161067e565b506001600160a01b031660009081526004602052604090205490565b610d85611281565b610d8f600061154b565b565b60606002805461056090612313565b61084e33838361159b565b610db53383611087565b610dd15760405162461bcd60e51b815260040161067e9061234d565b610ddd84848484611665565b50505050565b6060610dee82611698565b610e4e5760405162461bcd60e51b815260206004820152602b60248201527f526162626c65506173733a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b606482015260840161067e565b6000828152600a602052604081208054610e6790612313565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9390612313565b8015610ee05780601f10610eb557610100808354040283529160200191610ee0565b820191906000526020600020905b815481529060010190602001808311610ec357829003601f168201915b505050505090506000610ef16116b5565b90508051600003610f03575092915050565b815115610f3c57610f126116b5565b82604051602001610f249291906123fb565b60405160208183030381529060405292505050919050565b610f45846116c4565b949350505050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610f83611281565b6001600160a01b038116610fe85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067e565b610ff18161154b565b50565b610ffd81611698565b610ff15760405162461bcd60e51b815260040161067e906123c9565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104e82610c3f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061109383610c3f565b9050806001600160a01b0316846001600160a01b031614806110ba57506110ba8185610f4d565b80610f455750836001600160a01b03166110d3846105e3565b6001600160a01b031614949350505050565b826001600160a01b03166110f882610c3f565b6001600160a01b03161461115c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161067e565b6001600160a01b0382166111be5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161067e565b6111c9600082611019565b6001600160a01b03831660009081526004602052604081208054600192906111f29084906122dd565b90915550506001600160a01b038216600090815260046020526040812080546001929061122090849061239b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610d8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067e565b60005b8181101561071f5760006112f283836117a7565b90506112ff81600161239b565b905061130b84826118d0565b61131d81611318836118ea565b6119eb565b61132f8161132a836118ea565b611a73565b600d805490600061133f8361242a565b9190505550610fa0600d540361135a57600b805460ff191690555b6012805490600061136a83612443565b9190505550836001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516113aa91815260200190565b60405180910390a250806113bd8161242a565b9150506112de565b6003821015611459576040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506114148460105483611afe565b6114575760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b604482015260640161067e565b505b33600090815260116020526040902082906114756001836122dd565b60038110611485576114856123b3565b0154106114c35760405162461bcd60e51b815260206004820152600c60248201526b185b1c9958591e481b5a5b9d60a21b604482015260640161067e565b336000908152601160205260409020829082906114e16001846122dd565b600381106114f1576114f16123b3565b01546114fd919061239b565b111561071f5760405162461bcd60e51b815260206004820152601f60248201527f457863656564206d696e74206c696d697420696e207468697320706861736500604482015260640161067e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036115f85760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161067e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6116708484846110e5565b61167c84848484611b14565b610ddd5760405162461bcd60e51b815260040161067e9061245a565b6000908152600360205260409020546001600160a01b0316151590565b60606009805461056090612313565b60606116cf82610ff4565b600082815260076020526040812080546116e890612313565b80601f016020809104026020016040519081016040528092919081815260200182805461171490612313565b80156117615780601f1061173657610100808354040283529160200191611761565b820191906000526020600020905b81548152906001019060200180831161174457829003601f168201915b5050505050905060006117726116b5565b90508051600003611784575092915050565b81511561179e578082604051602001610f249291906123fb565b610f4584611c15565b600080333a43426117b96001836122dd565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810185905260e08101849052610100016040516020818303038152906040528051906020012060001c905060006012548261182391906124c2565b90506000601382610fa0811061183b5761183b6123b3565b01549050600081600003611850575081611853565b50805b6000600160125461186491906122dd565b90508084146118c5576000601382610fa08110611883576118836123b3565b01549050806000036118ab5781601386610fa081106118a4576118a46123b3565b01556118c3565b80601386610fa081106118c0576118c06123b3565b01555b505b509695505050505050565b61084e828260405180602001604052806000815250611c7c565b6060816000036119115750506040805180820190915260018152600360fc1b602082015290565b8160005b811561193b57806119258161242a565b91506119349050600a836124d6565b9150611915565b60008167ffffffffffffffff8111156119565761195661202d565b6040519080825280601f01601f191660200182016040528015611980576020820181803683370190505b5090505b8415610f45576119956001836122dd565b91506119a2600a866124c2565b6119ad90603061239b565b60f81b8183815181106119c2576119c26123b3565b60200101906001600160f81b031916908160001a9053506119e4600a866124d6565b9450611984565b6119f482611698565b611a545760405162461bcd60e51b815260206004820152602b60248201527f526162626c65506173734e66743a2055524920736574206f66206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b606482015260840161067e565b6000828152600a60209081526040909120825161071f92840190611e5b565b611a7c82611698565b611adf5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161067e565b6000828152600760209081526040909120825161071f92840190611e5b565b600082611b0b8584611caf565b14949350505050565b60006001600160a01b0384163b15611c0a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b589033908990889088906004016124ea565b6020604051808303816000875af1925050508015611b93575060408051601f3d908101601f19168201909252611b9091810190612527565b60015b611bf0573d808015611bc1576040519150601f19603f3d011682016040523d82523d6000602084013e611bc6565b606091505b508051600003611be85760405162461bcd60e51b815260040161067e9061245a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f45565b506001949350505050565b6060611c2082610ff4565b6000611c2a6116b5565b90506000815111611c4a5760405180602001604052806000815250611c75565b80611c54846118ea565b604051602001611c659291906123fb565b6040516020818303038152906040525b9392505050565b611c868383611cfc565b611c936000848484611b14565b61071f5760405162461bcd60e51b815260040161067e9061245a565b600081815b8451811015611cf457611ce082868381518110611cd357611cd36123b3565b6020026020010151611e2f565b915080611cec8161242a565b915050611cb4565b509392505050565b6001600160a01b038216611d525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067e565b611d5b81611698565b15611da85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067e565b6001600160a01b0382166000908152600460205260408120805460019290611dd190849061239b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611e4b576000828152602084905260409020611c75565b5060009182526020526040902090565b828054611e6790612313565b90600052602060002090601f016020900481019282611e895760008555611ecf565b82601f10611ea257805160ff1916838001178555611ecf565b82800160010185558215611ecf579182015b82811115611ecf578251825591602001919060010190611eb4565b50611edb929150611edf565b5090565b5b80821115611edb5760008155600101611ee0565b6001600160e01b031981168114610ff157600080fd5b600060208284031215611f1c57600080fd5b8135611c7581611ef4565b60005b83811015611f42578181015183820152602001611f2a565b83811115610ddd5750506000910152565b60008151808452611f6b816020860160208601611f27565b601f01601f19169290920160200192915050565b602081526000611c756020830184611f53565b600060208284031215611fa457600080fd5b5035919050565b80356001600160a01b0381168114611fc257600080fd5b919050565b60008060408385031215611fda57600080fd5b611fe383611fab565b946020939093013593505050565b60008060006060848603121561200657600080fd5b61200f84611fab565b925061201d60208501611fab565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561206c5761206c61202d565b604052919050565b600067ffffffffffffffff83111561208e5761208e61202d565b6120a1601f8401601f1916602001612043565b90508281528383830111156120b557600080fd5b828260208301376000602084830101529392505050565b6000602082840312156120de57600080fd5b813567ffffffffffffffff8111156120f557600080fd5b8201601f8101841361210657600080fd5b610f4584823560208401612074565b6000806040838503121561212857600080fd5b823567ffffffffffffffff8082111561214057600080fd5b818501915085601f83011261215457600080fd5b81356020828211156121685761216861202d565b8160051b9250612179818401612043565b828152928401810192818101908985111561219357600080fd5b948201945b848610156121b157853582529482019490820190612198565b9997909101359750505050505050565b6000602082840312156121d357600080fd5b611c7582611fab565b600080604083850312156121ef57600080fd5b6121f883611fab565b91506020830135801515811461220d57600080fd5b809150509250929050565b6000806000806080858703121561222e57600080fd5b61223785611fab565b935061224560208601611fab565b925060408501359150606085013567ffffffffffffffff81111561226857600080fd5b8501601f8101871361227957600080fd5b61228887823560208401612074565b91505092959194509250565b600080604083850312156122a757600080fd5b6122b083611fab565b91506122be60208401611fab565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b6000828210156122ef576122ef6122c7565b500390565b600081600019048311821515161561230e5761230e6122c7565b500290565b600181811c9082168061232757607f821691505b60208210810361234757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156123ae576123ae6122c7565b500190565b634e487b7160e01b600052603260045260246000fd5b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b6000835161240d818460208801611f27565b835190830190612421818360208801611f27565b01949350505050565b60006001820161243c5761243c6122c7565b5060010190565b600081612452576124526122c7565b506000190190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826124d1576124d16124ac565b500690565b6000826124e5576124e56124ac565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061251d90830184611f53565b9695505050505050565b60006020828403121561253957600080fd5b8151611c7581611ef456fea2646970667358221220aa58d39e9022c6e85d5cba1cf6de67d7dc144dbb19f16a7472d148fdaa77770e64736f6c634300080e0033

Loading...
Loading
Loading...
Loading
[ 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.