Contract 0x6D4662E28a5485F8EaBB9BaAac575A73f5010C88 1

 
 
Txn Hash
Method
Block
From
To
Value
0xa4778a15130b259936fdfc3e367eb25ca023cdf3a96d8dc3d75b9d8d2d6f00d4Set Approval For...152735532022-08-04 3:41:046 days 20 hrs ago0x30b4ce3fcdbb7c719394163520d5779863d614cf IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00036302 7.78349017
0x46fac055d73806f26b0fe55ead9d9e9ec922fcd6a16503e7c4a05cf554bcad87Set Approval For...152552712022-08-01 7:27:129 days 16 hrs agoENS Name arizona666.eth IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00056683 12.15324848
0xcc629c92cdb824a5de2984c3fe92effb87c80a4037fcefae719bae3a5d6c7568Set Approval For...152500412022-07-31 11:45:3310 days 12 hrs ago0xa186c69f177f80df3363b5eb4e802aa01d3fed9c IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.000245025.24392113
0x7d7a243a791b7f030da469c0d9d426727e838a47f6d1d59cb72bbdc982cc2802Set Approval For...152451162022-07-30 17:22:5111 days 7 hrs ago0x03fae5fcc6472c1334db601890da56099daa9d59 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00097054 20.8089423
0x3b659a6a18e0ee5990325dacf8230a154df945f5aa9e101ba070b75a7fced3cbSet Approval For...152435472022-07-30 11:38:2911 days 12 hrs ago0x2918dc82385786776a00e3cc07bf8f231257a1cf IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00037533 8.0473078
0xf7318f0510c03be2a9909a1454d86f74eef6c443c47b9730b0cf39d691b59ef6Set Approval For...152015692022-07-23 22:10:1618 days 2 hrs agoENS Name vtkush.eth IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00059724 12.80519956
0xd315b0fcfd84016badb4eb9fb814c8e1f4ebca9c56542b122a51a3944b91182cSet Approval For...151985532022-07-23 11:09:0818 days 13 hrs ago0xf57d4265b5895d02a2ddd81962d07649d48cc624 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.000283 6.0677139
0xe4ce187d2eb23b1f0be32ff914b7e40d19adb8a990bf0d8cbf848621d404f94bSet Approval For...151968182022-07-23 4:38:1118 days 19 hrs ago0xde4b4beecebfc3cfdcd70391770d546fec0a15fa IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00028513 6.10233455
0xcfee904d544c3d1a2860c7dc9f2af27ae2b8250af2f1b51514e7df6e21659cfdSet Approval For...151952542022-07-22 22:51:0219 days 1 hr ago0x27b0a630f28169638c22672b48cdbe54fc3bae10 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.0003816 8.18178055
0x0388f04fc5e80d339eb3cc8e5915e47087c5539c8b13f7528492dd7789f30884Set Approval For...151941782022-07-22 18:58:4419 days 5 hrs ago0x2fe9fd9ce95c6e56043862ca5045a2b8f23450bb IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.0005788 12.40980593
0x868a8522c6e50f61d0deef466c7fd5744eb5f558db00d1180a57ce4d6ac7d72dSet Approval For...151931642022-07-22 15:22:4119 days 9 hrs ago0x501ee490f74a9ba52d2f2c92c3a4ebb788048f4d IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00117076 25.10162177
0x061839f002b39f617e87af51637af67dc02179e0882b20b60b46aaa1ea7cfe68Set Approval For...151925882022-07-22 13:19:5319 days 11 hrs ago0x6f0ceaac10724cc048849d4c742eb9e38e46a001 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.0006904 14.77582518
0xcef30b26ea496a98c5e35462a43e0d7fb3681583b642b471896fddc2a2b9f9feSet Approval For...151912382022-07-22 8:22:3219 days 16 hrs ago0x5e51ae294eb4132d6afb4fb81b3d1ac677812584 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00040332 8.64736332
0x24f74d783b2393718e01b78a6ee3102a58ecf752eb53028ed4ffb1e7e499155eSet Approval For...151904382022-07-22 5:07:3019 days 19 hrs ago0x562947a1e75eb23682d1b716b6bca3691212f442 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00048243 10.34368241
0x0a53f15a535cf2318c58ac458767098569a4dbd1091c65dd13313b82143bcd98Safe Transfer Fr...151896692022-07-22 2:16:5119 days 22 hrs agoENS Name drugling.eth IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00043019 8
0x64a8777d50fafa213ff8b912a15928dd0fb96feef6c4bccb69db1370e620d14eSet Approval For...151873822022-07-21 17:53:0920 days 6 hrs ago0x1381e5e996686101246d99b7e2494c2606e5785b IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00084634 18.1458491
0x7613f795f578764a114d5e6de91556cd0b394da763c7f837f538e06572251afdSet Approval For...151814622022-07-20 19:50:0121 days 4 hrs ago0x3c1318231af36db1d147d3fb1698182af1ccfdb8 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00111111 23.82269529
0x1b4c8604da4ce99a4afd8b638688dec5adefe8374bd2a6779b02ec3294da6329Set Approval For...151735882022-07-19 14:27:2222 days 9 hrs ago0x3d01e35a3a2bad453f87204c06e541e858827ccb IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00265179 56.85544692
0xf3e8b1406aa0cb04202d0a8c07a23df622c41194fe9dd665571abc1dc5a1938eSet Approval For...151692692022-07-18 22:27:5123 days 1 hr ago0xddfaff1435b779e02b693dad8740fe5ec6db7da0 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00139714 29.95523452
0x0bc996ed593d47fbad99021376167ea5cba5f98e4c2e105b8f78f8365d054184Set Approval For...151678492022-07-18 16:54:2723 days 7 hrs ago0xf94ed7a7def660bcdf81d17a64caf28b504ffa56 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00209488 44.9150919
0x43d54221fad01384ceecb51cac5001e55a1474859b8a413ef48a45298a294329Set Approval For...151678072022-07-18 16:46:0223 days 7 hrs ago0x4b4530d7fd6ae243b7b0f1115eaae573243651b0 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00139819 29.97774008
0xacc19c61399ae45765360ce728989aecf89f087a77c583c5a17416f238421cbbSet Approval For...151659452022-07-18 9:56:1023 days 14 hrs agoENS Name thecatdaddy.eth IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00068237 14.63037659
0x30128aeceeeab70c2e12eef75c3144770ea423dc4b49ffc256cbcea04d76e5e5Set Approval For...151601452022-07-17 12:26:0124 days 11 hrs ago0x5d8f07d63259ad6ed31b91e14403e2b06cd2adb6 IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00075717 16.23404042
0xd7421ed4e6899f40c9065876202a3e33eb3f20aa1a2200a02ef48b993b54b52cSet Approval For...151585972022-07-17 6:32:5324 days 17 hrs ago0x979141cb1a7285b9acc22ca145c9f0e7bc024d2c IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00045453 9.72796412
0xa025ff206c85790d5b581ad68d516710b5ffd8464a743ea9835a24454ebb7909Set Approval For...151578952022-07-17 3:55:1624 days 20 hrs ago0x172f892c686364aef49479b4ed39edd347c34efb IN  0x6d4662e28a5485f8eabb9baaac575a73f5010c880 Ether0.00054309 11.64425713
[ Download CSV Export 
Latest 6 internal transactions
Parent Txn Hash Block From To Value
0x67ab503ccfdbd23f38cb59592e93a5788d8cceb225a481f0b646a2e38fc49617147568492022-05-11 19:54:5491 days 4 hrs ago 0x6d4662e28a5485f8eabb9baaac575a73f5010c880x94eb23cc87c4826df76158151e0c3e94c18f02bb1.856 Ether
0x67ab503ccfdbd23f38cb59592e93a5788d8cceb225a481f0b646a2e38fc49617147568492022-05-11 19:54:5491 days 4 hrs ago 0x6d4662e28a5485f8eabb9baaac575a73f5010c880x6d9d741bc5bca227070c43a23977e2fde6b971e91.856 Ether
0x67ab503ccfdbd23f38cb59592e93a5788d8cceb225a481f0b646a2e38fc49617147568492022-05-11 19:54:5491 days 4 hrs ago 0x6d4662e28a5485f8eabb9baaac575a73f5010c880x5c2ce2d9efaa4361ab129f77bdad019a9a1b1cbe1.856 Ether
0x67ab503ccfdbd23f38cb59592e93a5788d8cceb225a481f0b646a2e38fc49617147568492022-05-11 19:54:5491 days 4 hrs ago 0x6d4662e28a5485f8eabb9baaac575a73f5010c880x41e1c9116667fcc9dd640287796fb5ebdb1db70e1.856 Ether
0x67ab503ccfdbd23f38cb59592e93a5788d8cceb225a481f0b646a2e38fc49617147568492022-05-11 19:54:5491 days 4 hrs ago 0x6d4662e28a5485f8eabb9baaac575a73f5010c880x10b5b489e9b4d220ab6e4a0e7276c54d5bf837cd1.392 Ether
0x67ab503ccfdbd23f38cb59592e93a5788d8cceb225a481f0b646a2e38fc49617147568492022-05-11 19:54:5491 days 4 hrs ago 0x6d4662e28a5485f8eabb9baaac575a73f5010c880x452a89f1316798fddc9d03f9af38b0586f8142e50.464 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Mushy

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

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

pragma solidity ^0.8.0;

contract Mushy is ERC721A, Ownable, ReentrancyGuard {
    // declares the maximum amount of tokens that can be minted
    uint256 public constant MAX_TOTAL_TOKENS = 5555;

    // max number of mints per transaction
    uint256 public allowlist_mint_max_per_tx = 3;
    uint256 public pub_mint_max_per_tx = 3;

    // price of mints depending on state of sale
    uint256 public item_price_al = 0.08 ether;
    uint256 public item_price_public = 0.08 ether;

    // merkle root for allowlist
    bytes32 public root;

    // metadata
    string private baseURI = "";
    string private unrevealedURI = "ipfs://QmbTe5jr8jJoTHtMVLH6dYmaHD7iGm2HdUNV3dRT5Fjeo8";

    // status
    bool public is_allowlist_active;
    bool public is_public_mint_active;
    bool public is_revealed;

    // reserved mints for the team
    mapping (address => uint256) reserved_mints;
    uint256 public total_reserved = 675;

    using Strings for uint256;

    constructor (bytes32 _root) ERC721A("Mushy NFT", "Mushy") {
        root = _root;

        // don't forget to update total_reserved
        reserved_mints[0x4Ac2bD3b9Af192456A416de78E9E124d4FA6c399] = 120;
        reserved_mints[0x10b5B489E9b4d220Ab6e4a0E7276c54D5bf837cD] = 555;
    }

    function internalMint(uint256 _amt) external nonReentrant {
        uint256 amt_reserved = reserved_mints[msg.sender];

        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS, "Not enough NFTs left to mint");
        require(amt_reserved >= _amt, "Invalid reservation amount");
        require(amt_reserved <= total_reserved, "Amount exceeds total reserved");

        reserved_mints[msg.sender] -= _amt;
        total_reserved -= _amt;

        _safeMint(msg.sender, _amt);
    }

    function allowlistMint(bytes32[] calldata _proof, uint256 _amt) external payable nonReentrant {
        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS - total_reserved, "Not enough NFTs left to mint");
        require(msg.sender == tx.origin, "Minting from contract not allowed");
        require(item_price_al * _amt == msg.value,  "Not sufficient ETH to mint this number of NFTs");
        require(is_allowlist_active, "Allowlist mint not active");

        uint64 new_claim_total = _getAux(msg.sender) + uint64(_amt);
        require(new_claim_total <= allowlist_mint_max_per_tx, "Requested mint amount invalid");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_proof, root, leaf), "Invalid proof");

        _setAux(msg.sender, new_claim_total);
        _safeMint(msg.sender, _amt);
    }

    function publicMint(uint256 _amt) external payable nonReentrant {
        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS - total_reserved, "Not enough NFTs left to mint");
        require(msg.sender == tx.origin, "Minting from contract not allowed");
        require(item_price_public * _amt == msg.value, "Not sufficient ETH to mint this number of NFTs");
        require(is_public_mint_active, "Public mint not active");
        require(_amt <= pub_mint_max_per_tx, "Too many NFTs in single transaction");

        _safeMint(msg.sender, _amt);
    }

    function setAllowlistMintActive(bool _val) external onlyOwner {
        is_allowlist_active = _val;
    }

    function setPublicMintActive(bool _val) external onlyOwner {
        is_public_mint_active = _val;
    }

    function setIsRevealed(bool _val) external onlyOwner {
        is_revealed = _val;
    }

    function setNewRoot(bytes32 _root) external onlyOwner {
        root = _root;
    }

    function setAllowlistMintAmount(uint256 _amt) external onlyOwner {
        allowlist_mint_max_per_tx = _amt;
    }

    function setItemPricePublic(uint256 _price) external onlyOwner {
        item_price_public = _price;
    }

    function setItemPriceAL(uint256 _price) external onlyOwner {
        item_price_al = _price;
    }

    function setMaxMintPerTx(uint256 _amt) external onlyOwner {
        pub_mint_max_per_tx = _amt;
    }

    function setBaseURI(string memory _uri) external onlyOwner {
        baseURI = _uri;
    }

    function setUnrevealedURI(string memory _uri) external onlyOwner {
        unrevealedURI = _uri;
    }

    function isOnAllowList(bytes32[] calldata _proof, address _user) public view returns (uint256) {
        bytes32 leaf = keccak256(abi.encodePacked(_user));
        return MerkleProof.verify(_proof, root, leaf) ? 1 : 0;
    }

    function getSaleStatus() public view returns (string memory) {
        if(is_public_mint_active) {
            return "public";
        }
        else if(is_allowlist_active) {
            return "allowlist";
        }
        else {
            return "closed";
        }
    }

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

        if(is_revealed) {
            return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenID.toString(), ".json")) : "";
        }
        else {
            return unrevealedURI;
        }
    }

    function withdrawEth() public onlyOwner nonReentrant {
        uint256 total = address(this).balance;

        require(payable(0x452A89F1316798fDdC9D03f9af38b0586F8142e5).send((total * 5) / 100));
        require(payable(0x10b5B489E9b4d220Ab6e4a0E7276c54D5bf837cD).send((total * 15) / 100));
        require(payable(0x41e1c9116667Fcc9dd640287796fB5eBDB1DB70E).send((total * 20) / 100));
        require(payable(0x5C2ce2d9eFAA4361aB129f77Bdad019A9a1b1cbe).send((total * 20) / 100));
        require(payable(0x6D9d741BC5Bca227070C43a23977E2FDE6B971e9).send((total * 20) / 100));
        require(payable(0x94Eb23cC87c4826DF76158151e0C3e94c18f02bB).send((total * 20) / 100));
    }

    receive() payable external {
        revert("Contract does not allow receipt of ETH or ERC-20 tokens");
    }

    fallback() payable external {
        revert("An incorrect function was called");
    }
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 4 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

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

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

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

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

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

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

File 6 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 8 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_TOTAL_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowlist_mint_max_per_tx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"internalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"_user","type":"address"}],"name":"isOnAllowList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_allowlist_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_public_mint_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"item_price_al","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"item_price_public","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":[],"name":"pub_mint_max_per_tx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setAllowlistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setAllowlistMintAmount","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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setItemPriceAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setItemPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setNewRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealedURI","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":[],"name":"total_reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526003600a556003600b5567011c37937e080000600c5567011c37937e080000600d5560405180602001604052806000815250600f90805190602001906200004d9291906200032b565b50604051806060016040528060358152602001620053d260359139601090805190602001906200007f9291906200032b565b506102a36013553480156200009357600080fd5b5060405162005407380380620054078339818101604052810190620000b991906200041b565b6040518060400160405280600981526020017f4d75736879204e465400000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4d7573687900000000000000000000000000000000000000000000000000000081525081600290805190602001906200013d9291906200032b565b508060039080519060200190620001569291906200032b565b50620001676200025860201b60201c565b60008190555050506200018f620001836200025d60201b60201c565b6200026560201b60201c565b600160098190555080600e81905550607860126000734ac2bd3b9af192456a416de78e9e124d4fa6c39973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061022b601260007310b5b489e9b4d220ab6e4a0e7276c54d5bf837cd73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050620004b2565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000339906200047c565b90600052602060002090601f0160209004810192826200035d5760008555620003a9565b82601f106200037857805160ff1916838001178555620003a9565b82800160010185558215620003a9579182015b82811115620003a85782518255916020019190600101906200038b565b5b509050620003b89190620003bc565b5090565b5b80821115620003d7576000816000905550600101620003bd565b5090565b600080fd5b6000819050919050565b620003f581620003e0565b81146200040157600080fd5b50565b6000815190506200041581620003ea565b92915050565b600060208284031215620004345762000433620003db565b5b6000620004448482850162000404565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200049557607f821691505b60208210811415620004ac57620004ab6200044d565b5b50919050565b614f1080620004c26000396000f3fe6080604052600436106102605760003560e01c8063715018a611610144578063c87b56dd116100b6578063ebf0c7171161007a578063ebf0c7171461092e578063f2fde38b14610959578063f6f665f014610982578063f8502a15146109ad578063f9621b7a146109d6578063fe2c7fee14610a01576102a0565b8063c87b56dd14610835578063d942102c14610872578063da9044c81461089d578063dc738ffb146108c6578063e985e9c5146108f1576102a0565b8063a0ef91df11610108578063a0ef91df1461074d578063a22cb46514610764578063acd0d9a61461078d578063b88d4fde146107b6578063b9626d9c146107df578063bdeadcb01461080a576102a0565b8063715018a6146106785780638c3c4b341461068f5780638da5cb5b146106ba5780639360ec9a146106e557806395d89b4114610722576102a0565b806326fb302b116101dd57806342842e0e116101a157806342842e0e1461055a57806349a5980a1461058357806355f804b3146105ac578063616cdb1e146105d55780636352211e146105fe57806370a082311461063b576102a0565b806326fb302b146104985780632b707c71146104c15780632db11544146104ea5780632eac6f451461050657806338da2f6914610531576102a0565b806309b053ac1161022457806309b053ac146103d45780631338a83f146103fd578063179df6041461041957806318160ddd1461044457806323b872dd1461046f576102a0565b806301ffc9a7146102db57806306fdde0314610318578063081812fc14610343578063095ea7b31461038057806309729f6d146103a9576102a0565b366102a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029790613985565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d2906139f1565b60405180910390fd5b3480156102e757600080fd5b5061030260048036038101906102fd9190613a7d565b610a2a565b60405161030f9190613ac5565b60405180910390f35b34801561032457600080fd5b5061032d610b0c565b60405161033a9190613b68565b60405180910390f35b34801561034f57600080fd5b5061036a60048036038101906103659190613bc0565b610b9e565b6040516103779190613c2e565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a29190613c75565b610c1a565b005b3480156103b557600080fd5b506103be610d25565b6040516103cb9190613cc4565b60405180910390f35b3480156103e057600080fd5b506103fb60048036038101906103f69190613bc0565b610d2b565b005b61041760048036038101906104129190613d44565b610db1565b005b34801561042557600080fd5b5061042e6110b1565b60405161043b9190613ac5565b60405180910390f35b34801561045057600080fd5b506104596110c4565b6040516104669190613cc4565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613da4565b6110db565b005b3480156104a457600080fd5b506104bf60048036038101906104ba9190613bc0565b6110eb565b005b3480156104cd57600080fd5b506104e860048036038101906104e39190613e23565b611171565b005b61050460048036038101906104ff9190613bc0565b61120a565b005b34801561051257600080fd5b5061051b611422565b6040516105289190613cc4565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190613e23565b611428565b005b34801561056657600080fd5b50610581600480360381019061057c9190613da4565b6114c1565b005b34801561058f57600080fd5b506105aa60048036038101906105a59190613e23565b6114e1565b005b3480156105b857600080fd5b506105d360048036038101906105ce9190613f80565b61157a565b005b3480156105e157600080fd5b506105fc60048036038101906105f79190613bc0565b611610565b005b34801561060a57600080fd5b5061062560048036038101906106209190613bc0565b611696565b6040516106329190613c2e565b60405180910390f35b34801561064757600080fd5b50610662600480360381019061065d9190613fc9565b6116ac565b60405161066f9190613cc4565b60405180910390f35b34801561068457600080fd5b5061068d61177c565b005b34801561069b57600080fd5b506106a4611804565b6040516106b19190613b68565b60405180910390f35b3480156106c657600080fd5b506106cf6118e6565b6040516106dc9190613c2e565b60405180910390f35b3480156106f157600080fd5b5061070c60048036038101906107079190613ff6565b611910565b6040516107199190613cc4565b60405180910390f35b34801561072e57600080fd5b506107376119a5565b6040516107449190613b68565b60405180910390f35b34801561075957600080fd5b50610762611a37565b005b34801561077057600080fd5b5061078b60048036038101906107869190614056565b611d8d565b005b34801561079957600080fd5b506107b460048036038101906107af9190613bc0565b611f05565b005b3480156107c257600080fd5b506107dd60048036038101906107d89190614137565b6120fb565b005b3480156107eb57600080fd5b506107f4612177565b6040516108019190613ac5565b60405180910390f35b34801561081657600080fd5b5061081f61218a565b60405161082c9190613cc4565b60405180910390f35b34801561084157600080fd5b5061085c60048036038101906108579190613bc0565b612190565b6040516108699190613b68565b60405180910390f35b34801561087e57600080fd5b506108876122e0565b6040516108949190613cc4565b60405180910390f35b3480156108a957600080fd5b506108c460048036038101906108bf9190613bc0565b6122e6565b005b3480156108d257600080fd5b506108db61236c565b6040516108e89190613cc4565b60405180910390f35b3480156108fd57600080fd5b50610918600480360381019061091391906141ba565b612372565b6040516109259190613ac5565b60405180910390f35b34801561093a57600080fd5b50610943612406565b6040516109509190614213565b60405180910390f35b34801561096557600080fd5b50610980600480360381019061097b9190613fc9565b61240c565b005b34801561098e57600080fd5b50610997612504565b6040516109a49190613ac5565b60405180910390f35b3480156109b957600080fd5b506109d460048036038101906109cf919061425a565b612517565b005b3480156109e257600080fd5b506109eb61259d565b6040516109f89190613cc4565b60405180910390f35b348015610a0d57600080fd5b50610a286004803603810190610a239190613f80565b6125a3565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610af557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b055750610b0482612639565b5b9050919050565b606060028054610b1b906142b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b47906142b6565b8015610b945780601f10610b6957610100808354040283529160200191610b94565b820191906000526020600020905b815481529060010190602001808311610b7757829003601f168201915b5050505050905090565b6000610ba9826126a3565b610bdf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c2582611696565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c8d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cac6126f1565b73ffffffffffffffffffffffffffffffffffffffff1614158015610cde5750610cdc81610cd76126f1565b612372565b155b15610d15576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d208383836126f9565b505050565b60135481565b610d336126f1565b73ffffffffffffffffffffffffffffffffffffffff16610d516118e6565b73ffffffffffffffffffffffffffffffffffffffff1614610da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9e90614334565b60405180910390fd5b80600d8190555050565b60026009541415610df7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dee906143a0565b60405180910390fd5b60026009819055506013546115b3610e0f91906143ef565b81610e186110c4565b610e229190614423565b1115610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a906144c5565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614557565b60405180910390fd5b3481600c54610ee09190614577565b14610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790614643565b60405180910390fd5b601160009054906101000a900460ff16610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f66906146af565b60405180910390fd5b600081610f7b336127ab565b610f8591906146e3565b9050600a548167ffffffffffffffff161115610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd9061476d565b60405180910390fd5b600033604051602001610fe991906147d5565b60405160208183030381529060405280519060200120905061104f858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e548361280b565b61108e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110859061483c565b60405180910390fd5b61109833836128c1565b6110a2338461292e565b50506001600981905550505050565b601160019054906101000a900460ff1681565b60006110ce61294c565b6001546000540303905090565b6110e6838383612951565b505050565b6110f36126f1565b73ffffffffffffffffffffffffffffffffffffffff166111116118e6565b73ffffffffffffffffffffffffffffffffffffffff1614611167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115e90614334565b60405180910390fd5b80600c8190555050565b6111796126f1565b73ffffffffffffffffffffffffffffffffffffffff166111976118e6565b73ffffffffffffffffffffffffffffffffffffffff16146111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e490614334565b60405180910390fd5b80601160016101000a81548160ff02191690831515021790555050565b60026009541415611250576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611247906143a0565b60405180910390fd5b60026009819055506013546115b361126891906143ef565b816112716110c4565b61127b9190614423565b11156112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b3906144c5565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461132a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132190614557565b60405180910390fd5b3481600d546113399190614577565b14611379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137090614643565b60405180910390fd5b601160019054906101000a900460ff166113c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bf906148a8565b60405180910390fd5b600b5481111561140d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114049061493a565b60405180910390fd5b611417338261292e565b600160098190555050565b600c5481565b6114306126f1565b73ffffffffffffffffffffffffffffffffffffffff1661144e6118e6565b73ffffffffffffffffffffffffffffffffffffffff16146114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b90614334565b60405180910390fd5b80601160006101000a81548160ff02191690831515021790555050565b6114dc838383604051806020016040528060008152506120fb565b505050565b6114e96126f1565b73ffffffffffffffffffffffffffffffffffffffff166115076118e6565b73ffffffffffffffffffffffffffffffffffffffff161461155d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490614334565b60405180910390fd5b80601160026101000a81548160ff02191690831515021790555050565b6115826126f1565b73ffffffffffffffffffffffffffffffffffffffff166115a06118e6565b73ffffffffffffffffffffffffffffffffffffffff16146115f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ed90614334565b60405180910390fd5b80600f908051906020019061160c92919061381c565b5050565b6116186126f1565b73ffffffffffffffffffffffffffffffffffffffff166116366118e6565b73ffffffffffffffffffffffffffffffffffffffff161461168c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168390614334565b60405180910390fd5b80600b8190555050565b60006116a182612e07565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611714576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6117846126f1565b73ffffffffffffffffffffffffffffffffffffffff166117a26118e6565b73ffffffffffffffffffffffffffffffffffffffff16146117f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ef90614334565b60405180910390fd5b6118026000613096565b565b6060601160019054906101000a900460ff1615611858576040518060400160405280600681526020017f7075626c6963000000000000000000000000000000000000000000000000000081525090506118e3565b601160009054906101000a900460ff16156118aa576040518060400160405280600981526020017f616c6c6f776c697374000000000000000000000000000000000000000000000081525090506118e3565b6040518060400160405280600681526020017f636c6f736564000000000000000000000000000000000000000000000000000081525090505b90565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000808260405160200161192491906147d5565b60405160208183030381529060405280519060200120905061198a858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e548361280b565b611995576000611998565b60015b60ff169150509392505050565b6060600380546119b4906142b6565b80601f01602080910402602001604051908101604052809291908181526020018280546119e0906142b6565b8015611a2d5780601f10611a0257610100808354040283529160200191611a2d565b820191906000526020600020905b815481529060010190602001808311611a1057829003601f168201915b5050505050905090565b611a3f6126f1565b73ffffffffffffffffffffffffffffffffffffffff16611a5d6118e6565b73ffffffffffffffffffffffffffffffffffffffff1614611ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aaa90614334565b60405180910390fd5b60026009541415611af9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af0906143a0565b60405180910390fd5b6002600981905550600047905073452a89f1316798fddc9d03f9af38b0586f8142e573ffffffffffffffffffffffffffffffffffffffff166108fc6064600584611b439190614577565b611b4d9190614989565b9081150290604051600060405180830381858888f19350505050611b7057600080fd5b7310b5b489e9b4d220ab6e4a0e7276c54d5bf837cd73ffffffffffffffffffffffffffffffffffffffff166108fc6064600f84611bad9190614577565b611bb79190614989565b9081150290604051600060405180830381858888f19350505050611bda57600080fd5b7341e1c9116667fcc9dd640287796fb5ebdb1db70e73ffffffffffffffffffffffffffffffffffffffff166108fc6064601484611c179190614577565b611c219190614989565b9081150290604051600060405180830381858888f19350505050611c4457600080fd5b735c2ce2d9efaa4361ab129f77bdad019a9a1b1cbe73ffffffffffffffffffffffffffffffffffffffff166108fc6064601484611c819190614577565b611c8b9190614989565b9081150290604051600060405180830381858888f19350505050611cae57600080fd5b736d9d741bc5bca227070c43a23977e2fde6b971e973ffffffffffffffffffffffffffffffffffffffff166108fc6064601484611ceb9190614577565b611cf59190614989565b9081150290604051600060405180830381858888f19350505050611d1857600080fd5b7394eb23cc87c4826df76158151e0c3e94c18f02bb73ffffffffffffffffffffffffffffffffffffffff166108fc6064601484611d559190614577565b611d5f9190614989565b9081150290604051600060405180830381858888f19350505050611d8257600080fd5b506001600981905550565b611d956126f1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dfa576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611e076126f1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611eb46126f1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ef99190613ac5565b60405180910390a35050565b60026009541415611f4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f42906143a0565b60405180910390fd5b60026009819055506000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506115b382611fa36110c4565b611fad9190614423565b1115611fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe5906144c5565b60405180910390fd5b81811015612031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202890614a06565b60405180910390fd5b601354811115612076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206d90614a72565b60405180910390fd5b81601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120c591906143ef565b9250508190555081601360008282546120de91906143ef565b925050819055506120ef338361292e565b50600160098190555050565b612106848484612951565b6121258373ffffffffffffffffffffffffffffffffffffffff1661315c565b801561213a57506121388484848461316f565b155b15612171576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b601160029054906101000a900460ff1681565b6115b381565b606061219b826126a3565b6121da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d190614b04565b60405180910390fd5b601160029054906101000a900460ff161561224d576000600f80546121fe906142b6565b90501161221a5760405180602001604052806000815250612246565b600f612225836132cf565b604051602001612236929190614c40565b6040516020818303038152906040525b90506122db565b6010805461225a906142b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612286906142b6565b80156122d35780601f106122a8576101008083540402835291602001916122d3565b820191906000526020600020905b8154815290600101906020018083116122b657829003601f168201915b505050505090505b919050565b600a5481565b6122ee6126f1565b73ffffffffffffffffffffffffffffffffffffffff1661230c6118e6565b73ffffffffffffffffffffffffffffffffffffffff1614612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614334565b60405180910390fd5b80600a8190555050565b600b5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e5481565b6124146126f1565b73ffffffffffffffffffffffffffffffffffffffff166124326118e6565b73ffffffffffffffffffffffffffffffffffffffff1614612488576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247f90614334565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156124f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ef90614ce1565b60405180910390fd5b61250181613096565b50565b601160009054906101000a900460ff1681565b61251f6126f1565b73ffffffffffffffffffffffffffffffffffffffff1661253d6118e6565b73ffffffffffffffffffffffffffffffffffffffff1614612593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258a90614334565b60405180910390fd5b80600e8190555050565b600d5481565b6125ab6126f1565b73ffffffffffffffffffffffffffffffffffffffff166125c96118e6565b73ffffffffffffffffffffffffffffffffffffffff161461261f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261690614334565b60405180910390fd5b806010908051906020019061263592919061381c565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000816126ae61294c565b111580156126bd575060005482105b80156126ea575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160189054906101000a900467ffffffffffffffff169050919050565b60008082905060005b85518110156128b357600086828151811061283257612831614d01565b5b60200260200101519050808311612873578281604051602001612856929190614d51565b60405160208183030381529060405280519060200120925061289f565b8083604051602001612886929190614d51565b6040516020818303038152906040528051906020012092505b5080806128ab90614d7d565b915050612814565b508381149150509392505050565b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b612948828260405180602001604052806000815250613430565b5050565b600090565b600061295c82612e07565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146129c7576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166129e86126f1565b73ffffffffffffffffffffffffffffffffffffffff161480612a175750612a1685612a116126f1565b612372565b5b80612a5c5750612a256126f1565b73ffffffffffffffffffffffffffffffffffffffff16612a4484610b9e565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612a95576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612afc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b098585856001613442565b612b15600084876126f9565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612d95576000548214612d9457878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e008585856001613448565b5050505050565b612e0f6138a2565b600082905080612e1d61294c565b11158015612e2c575060005481105b1561305f576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161305d57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612f41578092505050613091565b5b60011561305c57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613057578092505050613091565b612f42565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131956126f1565b8786866040518563ffffffff1660e01b81526004016131b79493929190614e1b565b602060405180830381600087803b1580156131d157600080fd5b505af192505050801561320257506040513d601f19601f820116820180604052508101906131ff9190614e7c565b60015b61327c573d8060008114613232576040519150601f19603f3d011682016040523d82523d6000602084013e613237565b606091505b50600081511415613274576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415613317576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061342b565b600082905060005b6000821461334957808061333290614d7d565b915050600a826133429190614989565b915061331f565b60008167ffffffffffffffff81111561336557613364613e55565b5b6040519080825280601f01601f1916602001820160405280156133975781602001600182028036833780820191505090505b5090505b60008514613424576001826133b091906143ef565b9150600a856133bf9190614ea9565b60306133cb9190614423565b60f81b8183815181106133e1576133e0614d01565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561341d9190614989565b945061339b565b8093505050505b919050565b61343d838383600161344e565b505050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156134bb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156134f6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6135036000868387613442565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156136cd57506136cc8773ffffffffffffffffffffffffffffffffffffffff1661315c565b5b15613793575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613742600088848060010195508861316f565b613778576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156136d357826000541461378e57600080fd5b6137ff565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613794575b8160008190555050506138156000868387613448565b5050505050565b828054613828906142b6565b90600052602060002090601f01602090048101928261384a5760008555613891565b82601f1061386357805160ff1916838001178555613891565b82800160010185558215613891579182015b82811115613890578251825591602001919060010190613875565b5b50905061389e91906138e5565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156138fe5760008160009055506001016138e6565b5090565b600082825260208201905092915050565b7f436f6e747261637420646f6573206e6f7420616c6c6f7720726563656970742060008201527f6f6620455448206f72204552432d323020746f6b656e73000000000000000000602082015250565b600061396f603783613902565b915061397a82613913565b604082019050919050565b6000602082019050818103600083015261399e81613962565b9050919050565b7f416e20696e636f72726563742066756e6374696f6e207761732063616c6c6564600082015250565b60006139db602083613902565b91506139e6826139a5565b602082019050919050565b60006020820190508181036000830152613a0a816139ce565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a5a81613a25565b8114613a6557600080fd5b50565b600081359050613a7781613a51565b92915050565b600060208284031215613a9357613a92613a1b565b5b6000613aa184828501613a68565b91505092915050565b60008115159050919050565b613abf81613aaa565b82525050565b6000602082019050613ada6000830184613ab6565b92915050565b600081519050919050565b60005b83811015613b09578082015181840152602081019050613aee565b83811115613b18576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b3a82613ae0565b613b448185613902565b9350613b54818560208601613aeb565b613b5d81613b1e565b840191505092915050565b60006020820190508181036000830152613b828184613b2f565b905092915050565b6000819050919050565b613b9d81613b8a565b8114613ba857600080fd5b50565b600081359050613bba81613b94565b92915050565b600060208284031215613bd657613bd5613a1b565b5b6000613be484828501613bab565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c1882613bed565b9050919050565b613c2881613c0d565b82525050565b6000602082019050613c436000830184613c1f565b92915050565b613c5281613c0d565b8114613c5d57600080fd5b50565b600081359050613c6f81613c49565b92915050565b60008060408385031215613c8c57613c8b613a1b565b5b6000613c9a85828601613c60565b9250506020613cab85828601613bab565b9150509250929050565b613cbe81613b8a565b82525050565b6000602082019050613cd96000830184613cb5565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d0457613d03613cdf565b5b8235905067ffffffffffffffff811115613d2157613d20613ce4565b5b602083019150836020820283011115613d3d57613d3c613ce9565b5b9250929050565b600080600060408486031215613d5d57613d5c613a1b565b5b600084013567ffffffffffffffff811115613d7b57613d7a613a20565b5b613d8786828701613cee565b93509350506020613d9a86828701613bab565b9150509250925092565b600080600060608486031215613dbd57613dbc613a1b565b5b6000613dcb86828701613c60565b9350506020613ddc86828701613c60565b9250506040613ded86828701613bab565b9150509250925092565b613e0081613aaa565b8114613e0b57600080fd5b50565b600081359050613e1d81613df7565b92915050565b600060208284031215613e3957613e38613a1b565b5b6000613e4784828501613e0e565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e8d82613b1e565b810181811067ffffffffffffffff82111715613eac57613eab613e55565b5b80604052505050565b6000613ebf613a11565b9050613ecb8282613e84565b919050565b600067ffffffffffffffff821115613eeb57613eea613e55565b5b613ef482613b1e565b9050602081019050919050565b82818337600083830152505050565b6000613f23613f1e84613ed0565b613eb5565b905082815260208101848484011115613f3f57613f3e613e50565b5b613f4a848285613f01565b509392505050565b600082601f830112613f6757613f66613cdf565b5b8135613f77848260208601613f10565b91505092915050565b600060208284031215613f9657613f95613a1b565b5b600082013567ffffffffffffffff811115613fb457613fb3613a20565b5b613fc084828501613f52565b91505092915050565b600060208284031215613fdf57613fde613a1b565b5b6000613fed84828501613c60565b91505092915050565b60008060006040848603121561400f5761400e613a1b565b5b600084013567ffffffffffffffff81111561402d5761402c613a20565b5b61403986828701613cee565b9350935050602061404c86828701613c60565b9150509250925092565b6000806040838503121561406d5761406c613a1b565b5b600061407b85828601613c60565b925050602061408c85828601613e0e565b9150509250929050565b600067ffffffffffffffff8211156140b1576140b0613e55565b5b6140ba82613b1e565b9050602081019050919050565b60006140da6140d584614096565b613eb5565b9050828152602081018484840111156140f6576140f5613e50565b5b614101848285613f01565b509392505050565b600082601f83011261411e5761411d613cdf565b5b813561412e8482602086016140c7565b91505092915050565b6000806000806080858703121561415157614150613a1b565b5b600061415f87828801613c60565b945050602061417087828801613c60565b935050604061418187828801613bab565b925050606085013567ffffffffffffffff8111156141a2576141a1613a20565b5b6141ae87828801614109565b91505092959194509250565b600080604083850312156141d1576141d0613a1b565b5b60006141df85828601613c60565b92505060206141f085828601613c60565b9150509250929050565b6000819050919050565b61420d816141fa565b82525050565b60006020820190506142286000830184614204565b92915050565b614237816141fa565b811461424257600080fd5b50565b6000813590506142548161422e565b92915050565b6000602082840312156142705761426f613a1b565b5b600061427e84828501614245565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142ce57607f821691505b602082108114156142e2576142e1614287565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061431e602083613902565b9150614329826142e8565b602082019050919050565b6000602082019050818103600083015261434d81614311565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061438a601f83613902565b915061439582614354565b602082019050919050565b600060208201905081810360008301526143b98161437d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143fa82613b8a565b915061440583613b8a565b925082821015614418576144176143c0565b5b828203905092915050565b600061442e82613b8a565b915061443983613b8a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561446e5761446d6143c0565b5b828201905092915050565b7f4e6f7420656e6f756768204e465473206c65667420746f206d696e7400000000600082015250565b60006144af601c83613902565b91506144ba82614479565b602082019050919050565b600060208201905081810360008301526144de816144a2565b9050919050565b7f4d696e74696e672066726f6d20636f6e7472616374206e6f7420616c6c6f776560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614541602183613902565b915061454c826144e5565b604082019050919050565b6000602082019050818103600083015261457081614534565b9050919050565b600061458282613b8a565b915061458d83613b8a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145c6576145c56143c0565b5b828202905092915050565b7f4e6f742073756666696369656e742045544820746f206d696e7420746869732060008201527f6e756d626572206f66204e465473000000000000000000000000000000000000602082015250565b600061462d602e83613902565b9150614638826145d1565b604082019050919050565b6000602082019050818103600083015261465c81614620565b9050919050565b7f416c6c6f776c697374206d696e74206e6f742061637469766500000000000000600082015250565b6000614699601983613902565b91506146a482614663565b602082019050919050565b600060208201905081810360008301526146c88161468c565b9050919050565b600067ffffffffffffffff82169050919050565b60006146ee826146cf565b91506146f9836146cf565b92508267ffffffffffffffff03821115614716576147156143c0565b5b828201905092915050565b7f526571756573746564206d696e7420616d6f756e7420696e76616c6964000000600082015250565b6000614757601d83613902565b915061476282614721565b602082019050919050565b600060208201905081810360008301526147868161474a565b9050919050565b60008160601b9050919050565b60006147a58261478d565b9050919050565b60006147b78261479a565b9050919050565b6147cf6147ca82613c0d565b6147ac565b82525050565b60006147e182846147be565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000614826600d83613902565b9150614831826147f0565b602082019050919050565b6000602082019050818103600083015261485581614819565b9050919050565b7f5075626c6963206d696e74206e6f742061637469766500000000000000000000600082015250565b6000614892601683613902565b915061489d8261485c565b602082019050919050565b600060208201905081810360008301526148c181614885565b9050919050565b7f546f6f206d616e79204e46547320696e2073696e676c65207472616e7361637460008201527f696f6e0000000000000000000000000000000000000000000000000000000000602082015250565b6000614924602383613902565b915061492f826148c8565b604082019050919050565b6000602082019050818103600083015261495381614917565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061499482613b8a565b915061499f83613b8a565b9250826149af576149ae61495a565b5b828204905092915050565b7f496e76616c6964207265736572766174696f6e20616d6f756e74000000000000600082015250565b60006149f0601a83613902565b91506149fb826149ba565b602082019050919050565b60006020820190508181036000830152614a1f816149e3565b9050919050565b7f416d6f756e74206578636565647320746f74616c207265736572766564000000600082015250565b6000614a5c601d83613902565b9150614a6782614a26565b602082019050919050565b60006020820190508181036000830152614a8b81614a4f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614aee602f83613902565b9150614af982614a92565b604082019050919050565b60006020820190508181036000830152614b1d81614ae1565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614b51816142b6565b614b5b8186614b24565b94506001821660008114614b765760018114614b8757614bba565b60ff19831686528186019350614bba565b614b9085614b2f565b60005b83811015614bb257815481890152600182019150602081019050614b93565b838801955050505b50505092915050565b6000614bce82613ae0565b614bd88185614b24565b9350614be8818560208601613aeb565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614c2a600583614b24565b9150614c3582614bf4565b600582019050919050565b6000614c4c8285614b44565b9150614c588284614bc3565b9150614c6382614c1d565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ccb602683613902565b9150614cd682614c6f565b604082019050919050565b60006020820190508181036000830152614cfa81614cbe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b614d4b614d46826141fa565b614d30565b82525050565b6000614d5d8285614d3a565b602082019150614d6d8284614d3a565b6020820191508190509392505050565b6000614d8882613b8a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dbb57614dba6143c0565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b6000614ded82614dc6565b614df78185614dd1565b9350614e07818560208601613aeb565b614e1081613b1e565b840191505092915050565b6000608082019050614e306000830187613c1f565b614e3d6020830186613c1f565b614e4a6040830185613cb5565b8181036060830152614e5c8184614de2565b905095945050505050565b600081519050614e7681613a51565b92915050565b600060208284031215614e9257614e91613a1b565b5b6000614ea084828501614e67565b91505092915050565b6000614eb482613b8a565b9150614ebf83613b8a565b925082614ecf57614ece61495a565b5b82820690509291505056fea2646970667358221220dce3756a3ac6bdd80647158cf87a6ab5322ba7a9c58c86c7a49ae9290aaf130364736f6c63430008090033697066733a2f2f516d625465356a72386a4a6f5448744d564c483664596d6148443769476d324864554e563364525435466a656f38f54e7936cd541abb13f1f858624def5271d02b3f8373c93997c06d719f37e759

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

f54e7936cd541abb13f1f858624def5271d02b3f8373c93997c06d719f37e759

-----Decoded View---------------
Arg [0] : _root (bytes32): 0xf54e7936cd541abb13f1f858624def5271d02b3f8373c93997c06d719f37e759

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : f54e7936cd541abb13f1f858624def5271d02b3f8373c93997c06d719f37e759


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.