ETH Price: $3,476.28 (+4.95%)

Token

Ninja Squad (NINJA)
 

Overview

Max Total Supply

8,888 NINJA

Holders

3,782

Market

Volume (24H)

2.8173 ETH

Min Price (24H)

$0.00 @ 0.000000 ETH

Max Price (24H)

$441.33 @ 0.126956 ETH
Filtered by Token Holder
091690.eth
Balance
0 NINJA
0x00908a54988f2db52436351ac8188cf68bf92fec
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Ninja Squad is a collection of 8,888 randomly generated NFTs on the Ethereum Blockchain. With your Ninja comes a global crypto & NFT community, utility, education, games and friends from across the globe.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NinjaSquad

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

// :::::::::::::////++++++oooooossssyyhhhdddmmNNNNMNNNNNNNmmmmdddmmmmmNNNNNNNNMMMMNNNNNNNNNNNNNNNNNNNNN
// ::::::::::::::::::::::/::::::::::::::::::://////////////:::::::::///////////////////////////////////
// :::::::::::::::::::::+s+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::::::::::::::::::::/os+:::::::::::::::::/::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// :::::::::::::::::::::oo/://:::::::::ohddmmmdys+/:::::::::::::::::::::::::::::::::/+/::::::::::::::::
// :::::::::+/:::::::::::/::+o/::::::::+mNNNNNNNNNh/::/+shddmdhs+/::::::::::::::::::+so/::::::/::::::::
// :::::::/hNmhyo/:::::::::::/::::::::::/yhNMNmNMMd//sdNNNNNNNNNNms/::::::::::::::::///::::::+o+/::::::
// :::::::/ydNNNNmds+/::::::::::::::::/+++oNMmNMMmo/yNNNNmmmmmmmmNNh/::::::::::::::::::::::::/oso/:::::
// :::::::::/+shmNNNNmy+/:::::::::::+hmNNNNNNmmNNNNmNNNMMNNNmmmmmmmNd/::::::::::::::::::::::::/oso/::::
// :::::::::::::/ohmNNNNmy+/::::::::ymNNNNNNmNMNNNmmmmmMm+hddmNNNNNNN+:::::::::::::::::::::://:/ss+::::
// ::::::::::::::::/ohmNNNNds+/::::::/oyhymNNNNNNNNNmmmNm/mmy:+ssyNmN///:::::::::::::::::::/oo/:+so/:::
// :::::::::::::::::::/sdNNNNNhs+/::////++shmNNNmmmMNmmmNyossydNNhymd+hdy+/:::::::::::::::::oso:///::::
// ::::::::::::::::::::::+ymNNMMNdshdmNNNNNNNNNNMMNMMmmmmNNNNNNNNNMNooNNNNh+::::::::::::::::://::::::::
// ::::::::::::::::::::::::/odNNMMMNNNmmmmmmmmmmmmmmNmmmmmmmmmmmmNMy//dNNNNNs/:::::::::::::::::::::::::
// :::::::::::::::::::::::::::+NMNmmNNMMmdddmNNNNmmmmmmmmmmmmmmmmNNNmhshMMNNMh/::::::::::::::::::::::::
// :::::::::::::::::::::::::::/ymMNMMMMMs::::/oydMNNmmmmmmmmmmmmmmmmNNNNNNmmNMy::::::::::::::::::::::::
// ::::::::::::::::::::::::::::::///yhy+:::::::::/yNMNmmmmmmmmmmmNNmmmmmmmmmmMN/:::::::::::::::::::::::
// ::::::::::::::::::::::::::::::::::::::::::::::::+mMNmmmmmmmmmmNMmNNMNNNNMMMd+/::::::::::::::::::::::
// :::::::::::::::::::::::::::::::::::::::::::::::::+NMmmmmmmmmmmNNhmMMMNNNNNNMMd+:::::::::/o+:::::::::
// :::::::::::::::::::::::::::::::::::::::::::::::::+NMNmmmmmmmmmmNNNmmmmmmmmmmMMd/::::::::///:::::::::
// ::::::::::::::::::::::::::::::::::::::::::::::::+dMNmmmmmmmmmmmmmmmmmmmmmmmmNMN/::::::::::::::::::::
// :::::/+/::::::::::::::::::::::::::::::::::::::+hNMNmmmmmmmmmmmmmmmmmmmmmmmmmNMd/::::::::::::://:::::
// :::/oso/::::::::::::::::::::::::::::::::::::+hNNNmmmmmmmmmmmmmmNmmmmmmmmmmmNMd+::::::://+osydmd/::::
// ::/os+/:::::::::::::::::::/:::::::::::::::/yNNNmmmmmmmmmmmmNNmmMMNmmmmmmmNNNy/::/++oshdmNNNNNMy:::::
// ::/+/::::::::::::::::::::+o+::::::::::::/omMNmmmmmmmmmmmNNNds+hMNmmmmmmNNmyoosyhmmNNNNNmmmmmNm/:::::
// :::::://:::::::::::::::::/o+::::::::::/odNNmmmmmmmmmmNNNmy+/:yMNmmmNNNNhohdNMMNNNmmmmmmmmmmNMs::::::
// ::::::+o/::::::::::::::::::::::::::::odNNmmmmmmmmmNNNmho/:::/dMmNNddmh+:/ydNNNNNmmmmmmmmmmmMm/::::::
// :::::::::::::::::::::::::::::::::::/oNNmmmmmmmmNNMNms/:::::::omNNM+:::::::/+yNMNmmmmmmmmmmNMs:::::::
// :::::::::::::::::::::::::::::::::+hmNNmmmmmmmNMNmy+/::::::::::/ohm+::::::/+hNNmmmmmmmmmmmmMm/:::::::
// ::::::::::::::::::::::::::::::/:/hMNmmmmmmNNNNho/:::::::::///::::/::::::+hNNmmmmmmmNNNNmmNMy::::::::
// ::::::::::::::::::::::::::::+hmyoMNmmNNmmmds//::::::::::::os+::::::::/ohNNmmmmmmmNmosNMNNMm+::::::::
// ::::::::::::::::::::::::::+dNNNMMMNmNMs:::::::::::::::::::+s+::::::+yNMNmmmmmmNNms/::/dMMm+:::::::::
// :::::::::::::::::::::::/smMNmmmmNNMNMh/:::::::::::::::::::::::::/sdMMNmmmmmNNMms/:::::/sy/::::::::::
// :::::::::::::::::::::/smMNmmmmmmmmmmNmo/::::::::::::::::::::::+yNMNNmmmmmNMNdo/:::::::::::::::::::::
// :::::::::::::::::::+hNMNmmNNNNMNmmmmmNNms/:::::::::::::::::/sdNMNNmmmmmNMMdo/:::::::::::::::::::::::
// :::::::::::::::::+yNNNmmNNNh++sdNNNmmmmNNmy+::::::::::::/ohNMMNmmmmmNNMNh+/:::::::::::::::::::::::::
// ::::::::::::::/ohmNmmmNNds+/:::/+hNNNmmmmNNNh+::::::::+hNMMNNmmmmNNMMNy+::::::::::::::::::::::::::::
// :::::::::::/ohmNNmmNNNh+/::::::::/+ymMNNmmmmNNdo/::/ohNNNNmmmmmNNMMms/::::::::::::::::::::::::::::::
// ::::::::/+hmNNNNNNNdy+::::::::::::::/smMNNmmmmNNmhhmNNNmmmmmmNMMNho/::::::::::::::::::::::::::::::::
// ::::::/+hNNNNNNNds+/::::::::::::::::::+ymMMNmmmmNNNNmmmmmmNNMNmy+/:::::::::::::::://::::::::::::::::
// :::::odNNmNNNds+/:::::::::::///:::::::::/sdNMNmmmmmmmmmmNNMmyo/::::::::::::::::::/oo/:::/o+/::::::::
// ::::sNNmNmhs+:::::::::::::::oso/::::::::::/+ymMNNmmmmmNMNds/:::::::::::::::::::::/oss/::/oso/:::::::
// :::+NNmds/::::::::::::::::::oso/:::::::::::::/sdNNNNNNmy+/::::::::::::::::::::::::/oss/::/oo/:::::::
// :::+yo+/::::::::::::::::::::/+/::::::::::::::::/odNmy+/::::::::::::::::::::::::::::/oss/:::/:::::::/
// :::::::::/+/:::::::::::::::::::::::::::::::::::::/+/::::::::::::::::::::::::::::::::/os+:::::::::::o
// ::::::::+ss+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::///:::::::::::s
// ::::::::///::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::s
// dhhhhhhyyyssooo++++/////+++oooo++++/////:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::s

/// @creator:     NinjaSquad
/// @author:      peker.eth - twitter.com/peker_eth

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract NinjaSquad is ERC721, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;
    
    bytes32 public root;
    
    address proxyRegistryAddress;

    string BASE_URI = "https://api.ninjasquadnt.io/metadata/";
    
    bool public IS_PRESALE_ACTIVE = false;
    bool public IS_SALE_ACTIVE = false;
    
    uint constant TOTAL_SUPPLY = 8888;
    uint constant INCREASED_MAX_TOKEN_ID = TOTAL_SUPPLY + 2;
    uint constant MINT_PRICE = 0.088 ether; 

    uint constant NUMBER_OF_TOKENS_ALLOWED_PER_TX = 10;
    uint constant NUMBER_OF_TOKENS_ALLOWED_PER_ADDRESS = 20;
    
    mapping (address => uint) addressToMintCount;
    
    
    address FOUNDER_1 = 0x72d0455D25Db9c36af5869BBF426312bA923C643;
    address FOUNDER_2 = 0x5EE559349f01E5032324d6804d9AE4fD89041795;
    address TECH_LEAD = 0xA800F34505e8b340cf3Ab8793cB40Bf09042B28F;
    address COMMUNITY_WALLET = 0x47153260c7d8EaF5F609632F43d6eDc73D71B0De;
    address TEAM_1 = 0xD74403920Ec684F14554F2600f27F69C2C8dE2F8;
    address TEAM_2 = 0xaee4BDcF9d164d9ADBBcBfD846623fbE133a6018;
    address TEAM_3 = 0xD45c3821f49621F98AE8f61809481Be12299C94E;
    address TEAM_4 = 0x4BB18777DFFeB4A815A1aFf53C4B1da49d70D97c;
    address TEAM_5 = 0xA14b76E61561633BAcf4B9aF1ffB626Af4E9bEF4;
    address TEAM_6 = 0x8c3F461cFaAe1e05857d28B0e22BA3da097a2Be3;
    address TEAM_7 = 0xd44bDAA20832Ddfc953153c4Ee2CBeEf83F1953d;
    address TEAM_8 = 0x0B41ca9Dd8Cf98910C6dc48bFc8AF924c4F1268D;
    address TEAM_9 = 0x7fA9Eb848015208a443d2De2EABE5Bd478ae8F8E;
    address TEAM_10 = 0x660E5Dac34b916B8f060b817cBE8660ba02Bbc4F;
    address TEAM_11 = 0x0B16dD061aD33B866341Dc3bF17264bd6111f10D;
    

    constructor(string memory name, string memory symbol, bytes32 merkleroot, address _proxyRegistryAddress)
    ERC721(name, symbol)
    {
        root = merkleroot;
        proxyRegistryAddress = _proxyRegistryAddress;
        _tokenIdCounter.increment();
    }

    function setMerkleRoot(bytes32 merkleroot) 
    onlyOwner 
    public 
    {
        root = merkleroot;
    }

    function _baseURI() internal view override returns (string memory) {
        return BASE_URI;
    }
    
    function setBaseURI(string memory newUri) 
    public 
    onlyOwner {
        BASE_URI = newUri;
    }

    function togglePublicSale() public 
    onlyOwner 
    {
        IS_SALE_ACTIVE = !IS_SALE_ACTIVE;
    }

    function togglePreSale() public 
    onlyOwner 
    {
        IS_PRESALE_ACTIVE = !IS_PRESALE_ACTIVE;
    }

    modifier onlyAccounts () {
        require(msg.sender == tx.origin, "Not allowed origin");
        _;
    }

    function ownerMint(uint numberOfTokens) 
    public 
    onlyOwner {
        uint current = _tokenIdCounter.current();
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function presaleMint(address account, uint numberOfTokens, uint256 allowance, string memory key, bytes32[] calldata proof)
    public
    payable
    onlyAccounts
    {
        require(msg.sender == account, "Not allowed");
        require(IS_PRESALE_ACTIVE, "Pre-sale haven't started");
        require(msg.value >= numberOfTokens * MINT_PRICE, "Not enough ethers sent");

        string memory payload = string(abi.encodePacked(Strings.toString(allowance), ":", key));

        require(_verify(_leaf(msg.sender, payload), proof), "Invalid merkle proof");
        
        uint current = _tokenIdCounter.current();
        
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");
        require(addressToMintCount[msg.sender] + numberOfTokens <= allowance, "Exceeds allowance");

        addressToMintCount[msg.sender] += numberOfTokens;

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function publicSaleMint(uint numberOfTokens) 
    public 
    payable
    onlyAccounts
    {
        require(IS_SALE_ACTIVE, "Sale haven't started");
        require(numberOfTokens <= NUMBER_OF_TOKENS_ALLOWED_PER_TX, "Too many requested");
        require(msg.value >= numberOfTokens * MINT_PRICE, "Not enough ethers sent");
        
        uint current = _tokenIdCounter.current();
        
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");
        require(addressToMintCount[msg.sender] + numberOfTokens <= NUMBER_OF_TOKENS_ALLOWED_PER_ADDRESS, "Exceeds allowance");
        
        addressToMintCount[msg.sender] += numberOfTokens;

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function getCurrentMintCount(address _account) public view returns (uint) {
        return addressToMintCount[_account];
    }

    function mintInternal() internal {
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _mint(msg.sender, tokenId);
    }

    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _withdraw(FOUNDER_1, (balance * 230) / 1000);
        _withdraw(FOUNDER_2, (balance * 230) / 1000);
        _withdraw(TECH_LEAD, (balance * 50) / 1000);
        _withdraw(COMMUNITY_WALLET, (balance * 200) / 1000);
        _withdraw(TEAM_1, (balance * 80) / 1000);
        _withdraw(TEAM_2, (balance * 65) / 1000);
        _withdraw(TEAM_3, (balance * 50) / 1000);
        _withdraw(TEAM_4, (balance * 20) / 1000);
        _withdraw(TEAM_5, (balance * 15) / 1000);
        _withdraw(TEAM_6, (balance * 15) / 1000);
        _withdraw(TEAM_7, (balance * 10) / 1000);
        _withdraw(TEAM_8, (balance * 10) / 1000);
        _withdraw(TEAM_9, (balance * 10) / 1000);
        _withdraw(TEAM_10, (balance * 10) / 1000);
        _withdraw(TEAM_11, (balance * 5) / 1000);
        
        _withdraw(owner(), address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    function totalSupply() public view returns (uint) {
        return _tokenIdCounter.current() - 1;
    }

    function tokensOfOwner(address _owner, uint startId, uint endId) external view returns(uint256[] memory ) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index = 0;

            for (uint256 tokenId = startId; tokenId < endId; tokenId++) {
                if (index == tokenCount) break;

                if (ownerOf(tokenId) == _owner) {
                    result[index] = tokenId;
                    index++;
                }
            }

            return result;
        }
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    function _leaf(address account, string memory payload)
    internal pure returns (bytes32)
    {
        return keccak256(abi.encodePacked(payload, account));
    }

    function _verify(bytes32 leaf, bytes32[] memory proof)
    internal view returns (bool)
    {
        return MerkleProof.verify(proof, root, leaf);
    }
}

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 : 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 4 of 13 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 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 6 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 7 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 8 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 9 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);
    }

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

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

File 10 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 11 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 12 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 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": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bytes32","name":"merkleroot","type":"bytes32"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"IS_PRESALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IS_SALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getCurrentMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"numberOfTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"string","name":"key","type":"string"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicSaleMint","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endId","type":"uint256"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052602560808181529062002ce760a03980516200002991600a9160209091019062000320565b50600b805461ffff19169055600d80546001600160a01b03199081167372d0455d25db9c36af5869bbf426312ba923c64317909155600e80548216735ee559349f01e5032324d6804d9ae4fd89041795179055600f8054821673a800f34505e8b340cf3ab8793cb40bf09042b28f1790556010805482167347153260c7d8eaf5f609632f43d6edc73d71b0de17905560118054821673d74403920ec684f14554f2600f27f69c2c8de2f817905560128054821673aee4bdcf9d164d9adbbcbfd846623fbe133a601817905560138054821673d45c3821f49621f98ae8f61809481be12299c94e179055601480548216734bb18777dffeb4a815a1aff53c4b1da49d70d97c17905560158054821673a14b76e61561633bacf4b9af1ffb626af4e9bef4179055601680548216738c3f461cfaae1e05857d28b0e22ba3da097a2be317905560178054821673d44bdaa20832ddfc953153c4ee2cbeef83f1953d179055601880548216730b41ca9dd8cf98910c6dc48bfc8af924c4f1268d179055601980548216737fa9eb848015208a443d2de2eabe5bd478ae8f8e179055601a8054821673660e5dac34b916b8f060b817cbe8660ba02bbc4f179055601b8054909116730b16dd061ad33b866341dc3bf17264bd6111f10d1790553480156200021057600080fd5b5060405162002d0c38038062002d0c83398101604081905262000233916200047d565b8351849084906200024c90600090602085019062000320565b5080516200026290600190602084019062000320565b5050506200027f62000279620002c160201b60201c565b620002c5565b6008829055600980546001600160a01b0319166001600160a01b038316179055620002b7600762000317602090811b620016a817901c565b5050505062000565565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b8280546200032e9062000512565b90600052602060002090601f0160209004810192826200035257600085556200039d565b82601f106200036d57805160ff19168380011785556200039d565b828001600101855582156200039d579182015b828111156200039d57825182559160200191906001019062000380565b50620003ab929150620003af565b5090565b5b80821115620003ab5760008155600101620003b0565b600082601f830112620003d857600080fd5b81516001600160401b0380821115620003f557620003f56200054f565b604051601f8301601f19908116603f011681019082821181831017156200042057620004206200054f565b816040528381526020925086838588010111156200043d57600080fd5b600091505b8382101562000461578582018301518183018401529082019062000442565b83821115620004735760008385830101525b9695505050505050565b600080600080608085870312156200049457600080fd5b84516001600160401b0380821115620004ac57600080fd5b620004ba88838901620003c6565b95506020870151915080821115620004d157600080fd5b50620004e087828801620003c6565b60408701516060880151919550935090506001600160a01b03811681146200050757600080fd5b939692955090935050565b600181811c908216806200052757607f821691505b602082108114156200054957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61277280620005756000396000f3fe6080604052600436106101cd5760003560e01c806382d29a0f116100f7578063c839fe9411610095578063e985e9c511610064578063e985e9c51461050f578063ebf0c7171461052f578063f19e75d414610545578063f2fde38b1461056557600080fd5b8063c839fe9414610498578063c87b56dd146104c5578063ca3cb522146104e5578063e222c7f9146104fa57600080fd5b806395d89b41116100d157806395d89b4114610430578063a22cb46514610445578063b3ab66b014610465578063b88d4fde1461047857600080fd5b806382d29a0f146103e3578063853828b6146103fd5780638da5cb5b1461041257600080fd5b806323b872dd1161016f57806370a082311161013e57806370a082311461036f578063715018a61461038f57806376d02b71146103a45780637cb64759146103c357600080fd5b806323b872dd146102ef57806342842e0e1461030f57806355f804b31461032f5780636352211e1461034f57600080fd5b8063095ea7b3116101ab578063095ea7b3146102615780631545fb9a1461028357806318160ddd146102965780631d0d1257146102b957600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed3660046122cd565b610585565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105d7565b6040516101fe91906124a8565b34801561023557600080fd5b506102496102443660046122b4565b610669565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004612194565b610703565b005b6102816102913660046121f5565b610819565b3480156102a257600080fd5b506102ab610afb565b6040519081526020016101fe565b3480156102c557600080fd5b506102ab6102d436600461204a565b6001600160a01b03166000908152600c602052604090205490565b3480156102fb57600080fd5b5061028161030a3660046120a0565b610b17565b34801561031b57600080fd5b5061028161032a3660046120a0565b610b48565b34801561033b57600080fd5b5061028161034a366004612324565b610b63565b34801561035b57600080fd5b5061024961036a3660046122b4565b610ba4565b34801561037b57600080fd5b506102ab61038a36600461204a565b610c1b565b34801561039b57600080fd5b50610281610ca2565b3480156103b057600080fd5b50600b546101f290610100900460ff1681565b3480156103cf57600080fd5b506102816103de3660046122b4565b610cd8565b3480156103ef57600080fd5b50600b546101f29060ff1681565b34801561040957600080fd5b50610281610d07565b34801561041e57600080fd5b506006546001600160a01b0316610249565b34801561043c57600080fd5b5061021c610f30565b34801561045157600080fd5b50610281610460366004612161565b610f3f565b6102816104733660046122b4565b611004565b34801561048457600080fd5b506102816104933660046120e1565b611221565b3480156104a457600080fd5b506104b86104b33660046121c0565b611259565b6040516101fe9190612464565b3480156104d157600080fd5b5061021c6104e03660046122b4565b611351565b3480156104f157600080fd5b5061028161142b565b34801561050657600080fd5b50610281611469565b34801561051b57600080fd5b506101f261052a366004612067565b6114b0565b34801561053b57600080fd5b506102ab60085481565b34801561055157600080fd5b506102816105603660046122b4565b611580565b34801561057157600080fd5b5061028161058036600461204a565b611610565b60006001600160e01b031982166380ac58cd60e01b14806105b657506001600160e01b03198216635b5e139f60e01b145b806105d157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105e69061264f565b80601f01602080910402602001604051908101604052809291908181526020018280546106129061264f565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106e75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061070e82610ba4565b9050806001600160a01b0316836001600160a01b0316141561077c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106de565b336001600160a01b0382161480610798575061079881336114b0565b61080a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106de565b61081483836116b1565b505050565b33321461085d5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016106de565b336001600160a01b038716146108a35760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064016106de565b600b5460ff166108f55760405162461bcd60e51b815260206004820152601860248201527f5072652d73616c6520686176656e27742073746172746564000000000000000060448201526064016106de565b610907670138a388a43c0000866125ed565b34101561094f5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016106de565b600061095a8561171f565b8460405160200161096c9291906123eb565b60405160208183030381529060405290506109c361098a338361181d565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061185092505050565b610a065760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016106de565b6000610a1160075490565b9050610a206122b860026125c1565b610a2a88836125c1565b10610a475760405162461bcd60e51b81526004016106de9061250d565b336000908152600c60205260409020548690610a649089906125c1565b1115610aa65760405162461bcd60e51b81526020600482015260116024820152704578636565647320616c6c6f77616e636560781b60448201526064016106de565b336000908152600c602052604081208054899290610ac59084906125c1565b90915550600090505b87811015610af057610ade61185f565b80610ae88161268a565b915050610ace565b505050505050505050565b60006001610b0860075490565b610b12919061260c565b905090565b610b213382611884565b610b3d5760405162461bcd60e51b81526004016106de90612570565b610814838383611953565b61081483838360405180602001604052806000815250611221565b6006546001600160a01b03163314610b8d5760405162461bcd60e51b81526004016106de9061253b565b8051610ba090600a906020840190611f1b565b5050565b6000818152600260205260408120546001600160a01b0316806105d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106de565b60006001600160a01b038216610c865760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106de565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610ccc5760405162461bcd60e51b81526004016106de9061253b565b610cd66000611af3565b565b6006546001600160a01b03163314610d025760405162461bcd60e51b81526004016106de9061253b565b600855565b6006546001600160a01b03163314610d315760405162461bcd60e51b81526004016106de9061253b565b4780610d3c57600080fd5b600d54610d69906001600160a01b03166103e8610d5a8460e66125ed565b610d6491906125d9565b611b45565b600e54610d87906001600160a01b03166103e8610d5a8460e66125ed565b600f54610da5906001600160a01b03166103e8610d5a8460326125ed565b601054610dc3906001600160a01b03166103e8610d5a8460c86125ed565b601154610de1906001600160a01b03166103e8610d5a8460506125ed565b601254610dff906001600160a01b03166103e8610d5a8460416125ed565b601354610e1d906001600160a01b03166103e8610d5a8460326125ed565b60148054610e40916001600160a01b03909116906103e890610d5a9085906125ed565b601554610e5e906001600160a01b03166103e8610d5a84600f6125ed565b601654610e7c906001600160a01b03166103e8610d5a84600f6125ed565b601754610e9a906001600160a01b03166103e8610d5a84600a6125ed565b601854610eb8906001600160a01b03166103e8610d5a84600a6125ed565b601954610ed6906001600160a01b03166103e8610d5a84600a6125ed565b601a54610ef4906001600160a01b03166103e8610d5a84600a6125ed565b601b54610f12906001600160a01b03166103e8610d5a8460056125ed565b610f2d610f276006546001600160a01b031690565b47611b45565b50565b6060600180546105e69061264f565b6001600160a01b038216331415610f985760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106de565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3332146110485760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016106de565b600b54610100900460ff166110965760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185d995b89dd081cdd185c9d195960621b60448201526064016106de565b600a8111156110dc5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106de565b6110ee670138a388a43c0000826125ed565b3410156111365760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016106de565b600061114160075490565b90506111506122b860026125c1565b61115a83836125c1565b106111775760405162461bcd60e51b81526004016106de9061250d565b336000908152600c60205260409020546014906111959084906125c1565b11156111d75760405162461bcd60e51b81526020600482015260116024820152704578636565647320616c6c6f77616e636560781b60448201526064016106de565b336000908152600c6020526040812080548492906111f69084906125c1565b90915550600090505b828110156108145761120f61185f565b806112198161268a565b9150506111ff565b61122b3383611884565b6112475760405162461bcd60e51b81526004016106de90612570565b61125384848484611bdb565b50505050565b6060600061126685610c1b565b90508061128357505060408051600081526020810190915261134a565b60008167ffffffffffffffff81111561129e5761129e6126fb565b6040519080825280602002602001820160405280156112c7578160200160208202803683370190505b5090506000855b8581101561134357838214156112e357611343565b876001600160a01b03166112f682610ba4565b6001600160a01b031614156113315780838381518110611318576113186126e5565b60209081029190910101528161132d8161268a565b9250505b8061133b8161268a565b9150506112ce565b5090925050505b9392505050565b6000818152600260205260409020546060906001600160a01b03166113d05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106de565b60006113da611c0e565b905060008151116113fa576040518060200160405280600081525061134a565b806114048461171f565b6040516020016114159291906123bc565b6040516020818303038152906040529392505050565b6006546001600160a01b031633146114555760405162461bcd60e51b81526004016106de9061253b565b600b805460ff19811660ff90911615179055565b6006546001600160a01b031633146114935760405162461bcd60e51b81526004016106de9061253b565b600b805461ff001981166101009182900460ff1615909102179055565b60095460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156114fd57600080fd5b505afa158015611511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115359190612307565b6001600160a01b0316141561154e5760019150506105d1565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b031633146115aa5760405162461bcd60e51b81526004016106de9061253b565b60006115b560075490565b90506115c46122b860026125c1565b6115ce83836125c1565b106115eb5760405162461bcd60e51b81526004016106de9061250d565b60005b82811015610814576115fe61185f565b806116088161268a565b9150506115ee565b6006546001600160a01b0316331461163a5760405162461bcd60e51b81526004016106de9061253b565b6001600160a01b03811661169f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106de565b610f2d81611af3565b80546001019055565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116e682610ba4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060816117435750506040805180820190915260018152600360fc1b602082015290565b8160005b811561176d57806117578161268a565b91506117669050600a836125d9565b9150611747565b60008167ffffffffffffffff811115611788576117886126fb565b6040519080825280601f01601f1916602001820160405280156117b2576020820181803683370190505b5090505b8415611578576117c760018361260c565b91506117d4600a866126a5565b6117df9060306125c1565b60f81b8183815181106117f4576117f46126e5565b60200101906001600160f81b031916908160001a905350611816600a866125d9565b94506117b6565b60008183604051602001611832929190612385565b60405160208183030381529060405280519060200120905092915050565b600061134a8260085485611c1d565b600061186a60075490565b905061187a600780546001019055565b610f2d3382611ccc565b6000818152600260205260408120546001600160a01b03166118fd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106de565b600061190883610ba4565b9050806001600160a01b0316846001600160a01b031614806119435750836001600160a01b031661193884610669565b6001600160a01b0316145b80611578575061157881856114b0565b826001600160a01b031661196682610ba4565b6001600160a01b0316146119ce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106de565b6001600160a01b038216611a305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106de565b611a3b6000826116b1565b6001600160a01b0383166000908152600360205260408120805460019290611a6490849061260c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a929084906125c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b92576040519150601f19603f3d011682016040523d82523d6000602084013e611b97565b606091505b50509050806108145760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016106de565b611be6848484611953565b611bf284848484611e0e565b6112535760405162461bcd60e51b81526004016106de906124bb565b6060600a80546105e69061264f565b600081815b8551811015611cc1576000868281518110611c3f57611c3f6126e5565b60200260200101519050808311611c81576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611cae565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611cb98161268a565b915050611c22565b509092149392505050565b6001600160a01b038216611d225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106de565b6000818152600260205260409020546001600160a01b031615611d875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106de565b6001600160a01b0382166000908152600360205260408120805460019290611db09084906125c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f1057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e52903390899088908890600401612427565b602060405180830381600087803b158015611e6c57600080fd5b505af1925050508015611e9c575060408051601f3d908101601f19168201909252611e99918101906122ea565b60015b611ef6573d808015611eca576040519150601f19603f3d011682016040523d82523d6000602084013e611ecf565b606091505b508051611eee5760405162461bcd60e51b81526004016106de906124bb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611578565b506001949350505050565b828054611f279061264f565b90600052602060002090601f016020900481019282611f495760008555611f8f565b82601f10611f6257805160ff1916838001178555611f8f565b82800160010185558215611f8f579182015b82811115611f8f578251825591602001919060010190611f74565b50611f9b929150611f9f565b5090565b5b80821115611f9b5760008155600101611fa0565b600067ffffffffffffffff80841115611fcf57611fcf6126fb565b604051601f8501601f19908116603f01168101908282118183101715611ff757611ff76126fb565b8160405280935085815286868601111561201057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261203b57600080fd5b61134a83833560208501611fb4565b60006020828403121561205c57600080fd5b813561134a81612711565b6000806040838503121561207a57600080fd5b823561208581612711565b9150602083013561209581612711565b809150509250929050565b6000806000606084860312156120b557600080fd5b83356120c081612711565b925060208401356120d081612711565b929592945050506040919091013590565b600080600080608085870312156120f757600080fd5b843561210281612711565b9350602085013561211281612711565b925060408501359150606085013567ffffffffffffffff81111561213557600080fd5b8501601f8101871361214657600080fd5b61215587823560208401611fb4565b91505092959194509250565b6000806040838503121561217457600080fd5b823561217f81612711565b91506020830135801515811461209557600080fd5b600080604083850312156121a757600080fd5b82356121b281612711565b946020939093013593505050565b6000806000606084860312156121d557600080fd5b83356121e081612711565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561220e57600080fd5b863561221981612711565b95506020870135945060408701359350606087013567ffffffffffffffff8082111561224457600080fd5b6122508a838b0161202a565b9450608089013591508082111561226657600080fd5b818901915089601f83011261227a57600080fd5b81358181111561228957600080fd5b8a60208260051b850101111561229e57600080fd5b6020830194508093505050509295509295509295565b6000602082840312156122c657600080fd5b5035919050565b6000602082840312156122df57600080fd5b813561134a81612726565b6000602082840312156122fc57600080fd5b815161134a81612726565b60006020828403121561231957600080fd5b815161134a81612711565b60006020828403121561233657600080fd5b813567ffffffffffffffff81111561234d57600080fd5b6115788482850161202a565b60008151808452612371816020860160208601612623565b601f01601f19169290920160200192915050565b60008351612397818460208801612623565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516123ce818460208801612623565b8351908301906123e2818360208801612623565b01949350505050565b600083516123fd818460208801612623565b601d60f91b908301908152835161241b816001840160208801612623565b01600101949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061245a90830184612359565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561249c57835183529284019291840191600101612480565b50909695505050505050565b60208152600061134a6020830184612359565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601490820152734578636565647320746f74616c20737570706c7960601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156125d4576125d46126b9565b500190565b6000826125e8576125e86126cf565b500490565b6000816000190483118215151615612607576126076126b9565b500290565b60008282101561261e5761261e6126b9565b500390565b60005b8381101561263e578181015183820152602001612626565b838111156112535750506000910152565b600181811c9082168061266357607f821691505b6020821081141561268457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561269e5761269e6126b9565b5060010190565b6000826126b4576126b46126cf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f2d57600080fd5b6001600160e01b031981168114610f2d57600080fdfea26469706673582212208f4115b54774aee99b4555c5f711b53898aa8c7b56aac158b9f983d1ec14002e64736f6c6343000807003368747470733a2f2f6170692e6e696e6a6173717561646e742e696f2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c05532501f7f99358bf4ae4df09971c0003b7ba7d5c80a7ab320478ab97320bcdd000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000b4e696e6a6120537175616400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054e494e4a41000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c806382d29a0f116100f7578063c839fe9411610095578063e985e9c511610064578063e985e9c51461050f578063ebf0c7171461052f578063f19e75d414610545578063f2fde38b1461056557600080fd5b8063c839fe9414610498578063c87b56dd146104c5578063ca3cb522146104e5578063e222c7f9146104fa57600080fd5b806395d89b41116100d157806395d89b4114610430578063a22cb46514610445578063b3ab66b014610465578063b88d4fde1461047857600080fd5b806382d29a0f146103e3578063853828b6146103fd5780638da5cb5b1461041257600080fd5b806323b872dd1161016f57806370a082311161013e57806370a082311461036f578063715018a61461038f57806376d02b71146103a45780637cb64759146103c357600080fd5b806323b872dd146102ef57806342842e0e1461030f57806355f804b31461032f5780636352211e1461034f57600080fd5b8063095ea7b3116101ab578063095ea7b3146102615780631545fb9a1461028357806318160ddd146102965780631d0d1257146102b957600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed3660046122cd565b610585565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105d7565b6040516101fe91906124a8565b34801561023557600080fd5b506102496102443660046122b4565b610669565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004612194565b610703565b005b6102816102913660046121f5565b610819565b3480156102a257600080fd5b506102ab610afb565b6040519081526020016101fe565b3480156102c557600080fd5b506102ab6102d436600461204a565b6001600160a01b03166000908152600c602052604090205490565b3480156102fb57600080fd5b5061028161030a3660046120a0565b610b17565b34801561031b57600080fd5b5061028161032a3660046120a0565b610b48565b34801561033b57600080fd5b5061028161034a366004612324565b610b63565b34801561035b57600080fd5b5061024961036a3660046122b4565b610ba4565b34801561037b57600080fd5b506102ab61038a36600461204a565b610c1b565b34801561039b57600080fd5b50610281610ca2565b3480156103b057600080fd5b50600b546101f290610100900460ff1681565b3480156103cf57600080fd5b506102816103de3660046122b4565b610cd8565b3480156103ef57600080fd5b50600b546101f29060ff1681565b34801561040957600080fd5b50610281610d07565b34801561041e57600080fd5b506006546001600160a01b0316610249565b34801561043c57600080fd5b5061021c610f30565b34801561045157600080fd5b50610281610460366004612161565b610f3f565b6102816104733660046122b4565b611004565b34801561048457600080fd5b506102816104933660046120e1565b611221565b3480156104a457600080fd5b506104b86104b33660046121c0565b611259565b6040516101fe9190612464565b3480156104d157600080fd5b5061021c6104e03660046122b4565b611351565b3480156104f157600080fd5b5061028161142b565b34801561050657600080fd5b50610281611469565b34801561051b57600080fd5b506101f261052a366004612067565b6114b0565b34801561053b57600080fd5b506102ab60085481565b34801561055157600080fd5b506102816105603660046122b4565b611580565b34801561057157600080fd5b5061028161058036600461204a565b611610565b60006001600160e01b031982166380ac58cd60e01b14806105b657506001600160e01b03198216635b5e139f60e01b145b806105d157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105e69061264f565b80601f01602080910402602001604051908101604052809291908181526020018280546106129061264f565b801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106e75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061070e82610ba4565b9050806001600160a01b0316836001600160a01b0316141561077c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106de565b336001600160a01b0382161480610798575061079881336114b0565b61080a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106de565b61081483836116b1565b505050565b33321461085d5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016106de565b336001600160a01b038716146108a35760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064016106de565b600b5460ff166108f55760405162461bcd60e51b815260206004820152601860248201527f5072652d73616c6520686176656e27742073746172746564000000000000000060448201526064016106de565b610907670138a388a43c0000866125ed565b34101561094f5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016106de565b600061095a8561171f565b8460405160200161096c9291906123eb565b60405160208183030381529060405290506109c361098a338361181d565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061185092505050565b610a065760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016106de565b6000610a1160075490565b9050610a206122b860026125c1565b610a2a88836125c1565b10610a475760405162461bcd60e51b81526004016106de9061250d565b336000908152600c60205260409020548690610a649089906125c1565b1115610aa65760405162461bcd60e51b81526020600482015260116024820152704578636565647320616c6c6f77616e636560781b60448201526064016106de565b336000908152600c602052604081208054899290610ac59084906125c1565b90915550600090505b87811015610af057610ade61185f565b80610ae88161268a565b915050610ace565b505050505050505050565b60006001610b0860075490565b610b12919061260c565b905090565b610b213382611884565b610b3d5760405162461bcd60e51b81526004016106de90612570565b610814838383611953565b61081483838360405180602001604052806000815250611221565b6006546001600160a01b03163314610b8d5760405162461bcd60e51b81526004016106de9061253b565b8051610ba090600a906020840190611f1b565b5050565b6000818152600260205260408120546001600160a01b0316806105d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106de565b60006001600160a01b038216610c865760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106de565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610ccc5760405162461bcd60e51b81526004016106de9061253b565b610cd66000611af3565b565b6006546001600160a01b03163314610d025760405162461bcd60e51b81526004016106de9061253b565b600855565b6006546001600160a01b03163314610d315760405162461bcd60e51b81526004016106de9061253b565b4780610d3c57600080fd5b600d54610d69906001600160a01b03166103e8610d5a8460e66125ed565b610d6491906125d9565b611b45565b600e54610d87906001600160a01b03166103e8610d5a8460e66125ed565b600f54610da5906001600160a01b03166103e8610d5a8460326125ed565b601054610dc3906001600160a01b03166103e8610d5a8460c86125ed565b601154610de1906001600160a01b03166103e8610d5a8460506125ed565b601254610dff906001600160a01b03166103e8610d5a8460416125ed565b601354610e1d906001600160a01b03166103e8610d5a8460326125ed565b60148054610e40916001600160a01b03909116906103e890610d5a9085906125ed565b601554610e5e906001600160a01b03166103e8610d5a84600f6125ed565b601654610e7c906001600160a01b03166103e8610d5a84600f6125ed565b601754610e9a906001600160a01b03166103e8610d5a84600a6125ed565b601854610eb8906001600160a01b03166103e8610d5a84600a6125ed565b601954610ed6906001600160a01b03166103e8610d5a84600a6125ed565b601a54610ef4906001600160a01b03166103e8610d5a84600a6125ed565b601b54610f12906001600160a01b03166103e8610d5a8460056125ed565b610f2d610f276006546001600160a01b031690565b47611b45565b50565b6060600180546105e69061264f565b6001600160a01b038216331415610f985760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106de565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3332146110485760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016106de565b600b54610100900460ff166110965760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185d995b89dd081cdd185c9d195960621b60448201526064016106de565b600a8111156110dc5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106de565b6110ee670138a388a43c0000826125ed565b3410156111365760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016106de565b600061114160075490565b90506111506122b860026125c1565b61115a83836125c1565b106111775760405162461bcd60e51b81526004016106de9061250d565b336000908152600c60205260409020546014906111959084906125c1565b11156111d75760405162461bcd60e51b81526020600482015260116024820152704578636565647320616c6c6f77616e636560781b60448201526064016106de565b336000908152600c6020526040812080548492906111f69084906125c1565b90915550600090505b828110156108145761120f61185f565b806112198161268a565b9150506111ff565b61122b3383611884565b6112475760405162461bcd60e51b81526004016106de90612570565b61125384848484611bdb565b50505050565b6060600061126685610c1b565b90508061128357505060408051600081526020810190915261134a565b60008167ffffffffffffffff81111561129e5761129e6126fb565b6040519080825280602002602001820160405280156112c7578160200160208202803683370190505b5090506000855b8581101561134357838214156112e357611343565b876001600160a01b03166112f682610ba4565b6001600160a01b031614156113315780838381518110611318576113186126e5565b60209081029190910101528161132d8161268a565b9250505b8061133b8161268a565b9150506112ce565b5090925050505b9392505050565b6000818152600260205260409020546060906001600160a01b03166113d05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106de565b60006113da611c0e565b905060008151116113fa576040518060200160405280600081525061134a565b806114048461171f565b6040516020016114159291906123bc565b6040516020818303038152906040529392505050565b6006546001600160a01b031633146114555760405162461bcd60e51b81526004016106de9061253b565b600b805460ff19811660ff90911615179055565b6006546001600160a01b031633146114935760405162461bcd60e51b81526004016106de9061253b565b600b805461ff001981166101009182900460ff1615909102179055565b60095460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156114fd57600080fd5b505afa158015611511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115359190612307565b6001600160a01b0316141561154e5760019150506105d1565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b031633146115aa5760405162461bcd60e51b81526004016106de9061253b565b60006115b560075490565b90506115c46122b860026125c1565b6115ce83836125c1565b106115eb5760405162461bcd60e51b81526004016106de9061250d565b60005b82811015610814576115fe61185f565b806116088161268a565b9150506115ee565b6006546001600160a01b0316331461163a5760405162461bcd60e51b81526004016106de9061253b565b6001600160a01b03811661169f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106de565b610f2d81611af3565b80546001019055565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116e682610ba4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060816117435750506040805180820190915260018152600360fc1b602082015290565b8160005b811561176d57806117578161268a565b91506117669050600a836125d9565b9150611747565b60008167ffffffffffffffff811115611788576117886126fb565b6040519080825280601f01601f1916602001820160405280156117b2576020820181803683370190505b5090505b8415611578576117c760018361260c565b91506117d4600a866126a5565b6117df9060306125c1565b60f81b8183815181106117f4576117f46126e5565b60200101906001600160f81b031916908160001a905350611816600a866125d9565b94506117b6565b60008183604051602001611832929190612385565b60405160208183030381529060405280519060200120905092915050565b600061134a8260085485611c1d565b600061186a60075490565b905061187a600780546001019055565b610f2d3382611ccc565b6000818152600260205260408120546001600160a01b03166118fd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106de565b600061190883610ba4565b9050806001600160a01b0316846001600160a01b031614806119435750836001600160a01b031661193884610669565b6001600160a01b0316145b80611578575061157881856114b0565b826001600160a01b031661196682610ba4565b6001600160a01b0316146119ce5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106de565b6001600160a01b038216611a305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106de565b611a3b6000826116b1565b6001600160a01b0383166000908152600360205260408120805460019290611a6490849061260c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a929084906125c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b92576040519150601f19603f3d011682016040523d82523d6000602084013e611b97565b606091505b50509050806108145760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016106de565b611be6848484611953565b611bf284848484611e0e565b6112535760405162461bcd60e51b81526004016106de906124bb565b6060600a80546105e69061264f565b600081815b8551811015611cc1576000868281518110611c3f57611c3f6126e5565b60200260200101519050808311611c81576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611cae565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611cb98161268a565b915050611c22565b509092149392505050565b6001600160a01b038216611d225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106de565b6000818152600260205260409020546001600160a01b031615611d875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106de565b6001600160a01b0382166000908152600360205260408120805460019290611db09084906125c1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f1057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e52903390899088908890600401612427565b602060405180830381600087803b158015611e6c57600080fd5b505af1925050508015611e9c575060408051601f3d908101601f19168201909252611e99918101906122ea565b60015b611ef6573d808015611eca576040519150601f19603f3d011682016040523d82523d6000602084013e611ecf565b606091505b508051611eee5760405162461bcd60e51b81526004016106de906124bb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611578565b506001949350505050565b828054611f279061264f565b90600052602060002090601f016020900481019282611f495760008555611f8f565b82601f10611f6257805160ff1916838001178555611f8f565b82800160010185558215611f8f579182015b82811115611f8f578251825591602001919060010190611f74565b50611f9b929150611f9f565b5090565b5b80821115611f9b5760008155600101611fa0565b600067ffffffffffffffff80841115611fcf57611fcf6126fb565b604051601f8501601f19908116603f01168101908282118183101715611ff757611ff76126fb565b8160405280935085815286868601111561201057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261203b57600080fd5b61134a83833560208501611fb4565b60006020828403121561205c57600080fd5b813561134a81612711565b6000806040838503121561207a57600080fd5b823561208581612711565b9150602083013561209581612711565b809150509250929050565b6000806000606084860312156120b557600080fd5b83356120c081612711565b925060208401356120d081612711565b929592945050506040919091013590565b600080600080608085870312156120f757600080fd5b843561210281612711565b9350602085013561211281612711565b925060408501359150606085013567ffffffffffffffff81111561213557600080fd5b8501601f8101871361214657600080fd5b61215587823560208401611fb4565b91505092959194509250565b6000806040838503121561217457600080fd5b823561217f81612711565b91506020830135801515811461209557600080fd5b600080604083850312156121a757600080fd5b82356121b281612711565b946020939093013593505050565b6000806000606084860312156121d557600080fd5b83356121e081612711565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561220e57600080fd5b863561221981612711565b95506020870135945060408701359350606087013567ffffffffffffffff8082111561224457600080fd5b6122508a838b0161202a565b9450608089013591508082111561226657600080fd5b818901915089601f83011261227a57600080fd5b81358181111561228957600080fd5b8a60208260051b850101111561229e57600080fd5b6020830194508093505050509295509295509295565b6000602082840312156122c657600080fd5b5035919050565b6000602082840312156122df57600080fd5b813561134a81612726565b6000602082840312156122fc57600080fd5b815161134a81612726565b60006020828403121561231957600080fd5b815161134a81612711565b60006020828403121561233657600080fd5b813567ffffffffffffffff81111561234d57600080fd5b6115788482850161202a565b60008151808452612371816020860160208601612623565b601f01601f19169290920160200192915050565b60008351612397818460208801612623565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516123ce818460208801612623565b8351908301906123e2818360208801612623565b01949350505050565b600083516123fd818460208801612623565b601d60f91b908301908152835161241b816001840160208801612623565b01600101949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061245a90830184612359565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561249c57835183529284019291840191600101612480565b50909695505050505050565b60208152600061134a6020830184612359565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601490820152734578636565647320746f74616c20737570706c7960601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156125d4576125d46126b9565b500190565b6000826125e8576125e86126cf565b500490565b6000816000190483118215151615612607576126076126b9565b500290565b60008282101561261e5761261e6126b9565b500390565b60005b8381101561263e578181015183820152602001612626565b838111156112535750506000910152565b600181811c9082168061266357607f821691505b6020821081141561268457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561269e5761269e6126b9565b5060010190565b6000826126b4576126b46126cf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f2d57600080fd5b6001600160e01b031981168114610f2d57600080fdfea26469706673582212208f4115b54774aee99b4555c5f711b53898aa8c7b56aac158b9f983d1ec14002e64736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c05532501f7f99358bf4ae4df09971c0003b7ba7d5c80a7ab320478ab97320bcdd000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000000b4e696e6a6120537175616400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054e494e4a41000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Ninja Squad
Arg [1] : symbol (string): NINJA
Arg [2] : merkleroot (bytes32): 0x5532501f7f99358bf4ae4df09971c0003b7ba7d5c80a7ab320478ab97320bcdd
Arg [3] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 5532501f7f99358bf4ae4df09971c0003b7ba7d5c80a7ab320478ab97320bcdd
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 4e696e6a61205371756164000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4e494e4a41000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.