Contract 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3bb9cc7080ee4ee34e5f2d5504cf97efb6c8e1e3832a05ba7b0a569f51874ffd0x60806040406274892022-11-23 18:59:2467 days 23 hrs ago0xbf4388f9eb20c5926aa3ad4cff306932a428ddb4 IN  Create: NeanderSmol0 ETH0.00150517
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x73ff3790fcffcf3022cb96c03c58055b6927bccda17926735283395384252695566911092023-01-30 17:40:4032 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x6ddc95b37a2957ca1699c30d161210ea0dba8127c4810389c2de204457726692566869322023-01-30 17:20:3052 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x24a07b0bf2f8277354cdf5823baf7770d181316e9945064fbd08f07731432e52566867062023-01-30 17:19:3153 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xa464a9da1ed5c1d85ae894449ba5636562eba96b8536d4dea0476d5ce170e914566772402023-01-30 16:32:301 hr 40 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xa464a9da1ed5c1d85ae894449ba5636562eba96b8536d4dea0476d5ce170e914566772402023-01-30 16:32:301 hr 40 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xa721d06b6bff5f35a49034aac03e46380cdf1dccdbc0da745b1fe095e92f87e4566771682023-01-30 16:32:091 hr 41 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xa721d06b6bff5f35a49034aac03e46380cdf1dccdbc0da745b1fe095e92f87e4566771682023-01-30 16:32:091 hr 41 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x8724ff2fb42bef26df67a77846cdd5f277ec7d0ffd6ed742f6f8b627130fae31566629932023-01-30 15:23:102 hrs 50 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x8724ff2fb42bef26df67a77846cdd5f277ec7d0ffd6ed742f6f8b627130fae31566629932023-01-30 15:23:102 hrs 50 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xf11fe7eb1875e6c19b19b88239f2df50e160c27ed920488778b1cb3f21bdab1f566629122023-01-30 15:22:442 hrs 50 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xd05c2d2974dd7f353c5188c7c85eaa205d467df9185f228bfceb40001c854b5e566623122023-01-30 15:19:432 hrs 53 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xd05c2d2974dd7f353c5188c7c85eaa205d467df9185f228bfceb40001c854b5e566623122023-01-30 15:19:432 hrs 53 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x8898f9577daeb3db3c60689c0793c633b9bbe9fa9c4c848bef7a5daf6e304d8b566360232023-01-30 13:16:104 hrs 57 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x8898f9577daeb3db3c60689c0793c633b9bbe9fa9c4c848bef7a5daf6e304d8b566360232023-01-30 13:16:104 hrs 57 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xd67e570ab538a1d58f6ea600bb0a65f2a1a0645de960b4b945a78769cecc197a566359012023-01-30 13:15:334 hrs 57 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xb930ecc1a6a83e384b1b96281f9cbc8501559e3c69009e9248acf22d801c319a566248852023-01-30 12:23:105 hrs 50 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xb930ecc1a6a83e384b1b96281f9cbc8501559e3c69009e9248acf22d801c319a566248852023-01-30 12:23:105 hrs 50 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x29d70d6b38e06710cca282e217c90a754d60c410e3e30776231e1acc5081f626566247382023-01-30 12:22:295 hrs 50 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xda3e56e2a02787ccaeedaf63eb40c7f05427a342941f97c7ac5adfe9caa9d3a0566177982023-01-30 11:48:556 hrs 24 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x8f314c0d793e801055d1dac62950613708af3d38f0ef7a2df9009dedb2006bfc566141702023-01-30 11:31:096 hrs 42 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x47a68764674edf805e76773e0a4fe8091239304b4fa86f63c3ef5771aec0be33566132852023-01-30 11:26:336 hrs 46 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x0ef42e80fa5ac3b246c44cb4a92ecbaf6de85e84f446e58fc7bf9378c2310969566132142023-01-30 11:26:126 hrs 47 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x12712576b24a057cdd125033df7e3c2d9020cdc515d516262cd5f00524ed2f3d566124112023-01-30 11:22:186 hrs 51 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0x44c604bfc4135b79b395a63126fa488423ef818e2b3482d65c725de422b3a6d5566078002023-01-30 11:00:057 hrs 13 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
0xb8b545e12b7f7a4012206b22c87c9bf648943795b726a1af06ee7174732f6bf0566011322023-01-30 10:26:447 hrs 46 mins ago 0x6b86936967a328b327a6b8deafda9884f5006832 0xb3fcaeca95e83f5eabd5852a7d76c7b5f99d505e0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NeanderSmol

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 19 : NeanderSmol.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;

import "./ContractControl.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol";

contract NeanderSmol is ContractControl, ERC721EnumerableUpgradeable {
    using StringsUpgradeable for uint256;
    using CountersUpgradeable for CountersUpgradeable.Counter;

    uint256 constant TOTAL_SUPPLY = 5678;

    CountersUpgradeable.Counter public _tokenIdTracker;

    string public baseURI;

    uint256 public decimals;
    uint256 public commonSenseMaxLevel;
    mapping(uint256 => uint256) public commonSense;

    bytes32 public merkleRoot;
    mapping(address => bool) private minted;
    mapping(address => uint256) private publicMinted;

    mapping(address => uint256) private multipleMints;
    mapping(address => uint256) private teamAddresses;

    bool public publicActive;
    bool public wlActive;

    uint256 public wlPrice;
    uint256 public publicPrice;

    bool private revealed;

    IERC20 private magic;
    uint256 public magicPrice;
    mapping(address => uint256) private magicMinted;

    bool public treasuryMinted;
    address public treasury;

    event SmolNeanderMint(
        address to, 
        uint256 tokenId 
    );

    event uriUpdate(
        string newURI
    );

    event commonSenseUpdated(
        uint256 tokenId,
        uint256 commonSense
    );

    function initialize() initializer public {
        __ERC721_init("Neander Smol", "NeanderSmol");
        ContractControl.initializeAccess();
        decimals = 9;
        commonSenseMaxLevel = 100 * (10**decimals);
        publicActive = false;
        publicPrice = 0.02 ether;
        revealed = true;
        treasuryMinted = false;
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721EnumerableUpgradeable, AccessControlUpgradeable) returns (bool) {
        return ERC721EnumerableUpgradeable.supportsInterface(interfaceId) || AccessControlUpgradeable.supportsInterface(interfaceId);
    }

    function publicMint(uint256 amount) external payable{
        require(msg.value >= publicPrice * amount, "Incorrect Price");
        require(publicActive, "Public not active");
        require(_tokenIdTracker.current() < TOTAL_SUPPLY, "5678 Max Supply");
        require(publicMinted[msg.sender] + amount <= 30, "Mints exceeded");
        publicMinted[msg.sender] += amount;

        for(uint256 i=0; i<amount; i++) {
            _mint(msg.sender);
        }
    }

    function magicMint(uint256 amount) external {
        require(magic.balanceOf(msg.sender) >= magicPrice * amount, "Not enough balance");
        require(publicActive, "Public not active");
        require(_tokenIdTracker.current() < TOTAL_SUPPLY, "5678 Max Supply");
        require(magicMinted[msg.sender] + amount <= 30, "Mints exceeded");
        magicMinted[msg.sender] += amount;

        magic.transferFrom(msg.sender, address(this), magicPrice * amount);
        for(uint256 i=0; i<amount; i++) {
            _mint(msg.sender);
        }
    }

    function _mint(address _to) internal {
        uint256 _tokenId = _tokenIdTracker.current();
        _tokenIdTracker.increment();
        require(_tokenId <= TOTAL_SUPPLY, "Exceeded supply");
        
        emit SmolNeanderMint(_to, _tokenId);
        _safeMint(_to, _tokenId);
    }

    function updateCommonSense(uint256 _tokenId, uint256 amount) external onlyStakingContract {
        if(commonSense[_tokenId] + amount >= commonSenseMaxLevel) {
            commonSense[_tokenId] = commonSenseMaxLevel;
        } else{
            commonSense[_tokenId] += amount;
        }

        emit commonSenseUpdated(_tokenId, commonSense[_tokenId]);
    }

    function getCommonSense(uint256 _tokenId) external view returns (uint256) {
        return commonSense[_tokenId] / (10**decimals);
    }

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

    function setBaseURI(string memory newBaseURI) external onlyAdmin {
        baseURI = newBaseURI;
        emit uriUpdate(newBaseURI);
    }

    function setMerkleTree(bytes32 _merkleRoot) external onlyAdmin {
        merkleRoot = _merkleRoot;
    }

    function addTeam(address member, uint256 amount) external onlyAdmin {
        teamAddresses[member] = amount;
    }

    function removeTeam(address member) external onlyAdmin {
        teamAddresses[member] = 0;
    }

    function addMultiple(address member, uint256 amount) external onlyAdmin {
        multipleMints[member] = amount;
    }

    function removeMultiple(address member) external onlyAdmin {
        multipleMints[member] = 0;
    }

    function hasMultiple(address member) external view returns(uint256){
        return multipleMints[member];
    }

    function flipPublicState() external onlyAdmin {
        publicActive = !publicActive;
    }

    function setPublicPrice(uint256 amount) external onlyAdmin {
        publicPrice = amount;
    }

    function setMagic(address _magic) external onlyAdmin {
        magic = IERC20(_magic);
    }

    function setMagicPrice(uint256 price) external onlyAdmin {
        magicPrice = price;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    function withdrawAll() external onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
        require(magic.transfer(msg.sender, magic.balanceOf(address(this))));
    }

    function treasuryMint(uint256 amount) external onlyAdmin{
        require(!treasuryMinted, "Treasury has already minted!");
        require(msg.sender == treasury);

        for(uint256 i=0; i<amount; i++) {
            _mint(msg.sender);
        }
    }

    function setTreasury(address _treasury) external onlyAdmin{
        treasury = _treasury;
    }
}

interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
}

File 2 of 19 : ContractControl.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";

abstract contract ContractControl is AccessControlUpgradeable {
    bytes32 public constant SMOLNEANDER_OWNER_ROLE = keccak256("SMOLNEANDER_OWNER_ROLE");
    bytes32 public constant SMOLNEANDER_CONTRACT_ROLE = keccak256("SMOLNEANDER_CONTRACT_ROLE");
    bytes32 public constant SMOLNEANDER_MINTER_ROLE = keccak256("SMOLNEANDER_MINTER_ROLE");
    bytes32 public constant SMOLNEANDER_ADMIN_ROLE = keccak256("SMOLNEANDER_ADMIN_ROLE");

    bool public paused;

    modifier onlyOwner() {
        require(isOwner(_msgSender()), "Need SMOLNEANDER_OWNER_ROLE");
        _;
    }

    modifier onlyStakingContract() {
        require(isStakingContract(_msgSender()), "Need SMOLNEANDER_CONTRACT_ROLE");
        _;
    }

    modifier onlyMinter {
        require(isMinter(_msgSender()), "Need SMOLNEANDER_MINTER_ROLE");
        _;
    }

    modifier onlyAdmin {
        require(isAdmin(_msgSender()), "Need SMOLNEANDER_ADMIN_ROLE");
        _;
    }

    modifier whenNotPaused() {
        require(!paused, "Pausable: paused");
        _;
    }

    function initializeAccess() public onlyInitializing{
        __AccessControl_init();
        _setRoleAdmin(SMOLNEANDER_OWNER_ROLE, SMOLNEANDER_OWNER_ROLE);
        _setRoleAdmin(SMOLNEANDER_CONTRACT_ROLE, SMOLNEANDER_OWNER_ROLE);
        _setRoleAdmin(SMOLNEANDER_MINTER_ROLE, SMOLNEANDER_OWNER_ROLE);
        _setRoleAdmin(SMOLNEANDER_ADMIN_ROLE, SMOLNEANDER_OWNER_ROLE);

        _setupRole(SMOLNEANDER_OWNER_ROLE, _msgSender());
        _setupRole(SMOLNEANDER_CONTRACT_ROLE, _msgSender());
        _setupRole(SMOLNEANDER_MINTER_ROLE, _msgSender());
        _setupRole(SMOLNEANDER_ADMIN_ROLE, _msgSender());
    }

    function grantStaking(address _contract) external {
        grantRole(SMOLNEANDER_CONTRACT_ROLE, _contract);
    }

    function isStakingContract(address _contract) public view returns (bool) {
        return hasRole(SMOLNEANDER_CONTRACT_ROLE, _contract);
    }

    function grantOwner(address _owner) external {
        grantRole(SMOLNEANDER_OWNER_ROLE, _owner);
    }

    function isOwner(address _owner) public view returns (bool) {
        return hasRole(SMOLNEANDER_OWNER_ROLE, _owner);
    }

    function grantMinter(address _minter) external {
        grantRole(SMOLNEANDER_MINTER_ROLE, _minter);
    }

    function isMinter(address _minter) public view returns (bool) {
        return hasRole(SMOLNEANDER_MINTER_ROLE, _minter);
    }

    function grantAdmin(address _admin) external {
        grantRole(SMOLNEANDER_ADMIN_ROLE, _admin);
    }

    function isAdmin(address _admin) public view returns (bool) {
        return hasRole(SMOLNEANDER_ADMIN_ROLE, _admin);
    }

    function setPause(bool _paused) external onlyAdmin {
        paused = _paused;
    }
}

File 3 of 19 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721Upgradeable.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[46] private __gap;
}

File 4 of 19 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 5 of 19 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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 6 of 19 : CountersUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

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 CountersUpgradeable {
    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 7 of 19 : MerkleProofUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

File 8 of 19 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 9 of 19 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 10 of 19 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 12 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 13 of 19 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 14 of 19 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {
        return
            interfaceId == type(IERC721Upgradeable).interfaceId ||
            interfaceId == type(IERC721MetadataUpgradeable).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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Upgradeable.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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev 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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.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 {}

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}

File 16 of 19 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 17 of 19 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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);
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"SmolNeanderMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"commonSense","type":"uint256"}],"name":"commonSenseUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"uriUpdate","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMOLNEANDER_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMOLNEANDER_CONTRACT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMOLNEANDER_MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMOLNEANDER_OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenIdTracker","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonSense","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"commonSenseMaxLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPublicState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getCommonSense","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"grantAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"grantMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"grantOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"grantStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"}],"name":"hasMultiple","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"isStakingContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"magicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"magicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"}],"name":"removeMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"member","type":"address"}],"name":"removeTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_magic","type":"address"}],"name":"setMagic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMagicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleTree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateCommonSense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50614012806100206000396000f3fe6080604052600436106103fa5760003560e01c80636352211e11610213578063b88d4fde11610123578063d547741f116100ab578063ec95461e1161007a578063ec95461e14610c4f578063efdc778814610c71578063f0f4426014610c91578063f822a5b214610cb1578063fdd0f3ca14610cd157600080fd5b8063d547741f14610ba6578063dc97805914610bc6578063e546d9c414610be6578063e985e9c514610c0657600080fd5b8063c7f8d01a116100f2578063c7f8d01a14610afb578063c87b56dd14610b12578063cbc1b7df14610b32578063cf1c7d8414610b52578063d1d6ff2314610b8657600080fd5b8063b88d4fde14610a67578063bedb86fb14610a87578063c1c4db7f14610aa7578063c627525514610adb57600080fd5b806391d14854116101a6578063a22cb46511610175578063a22cb465146109c2578063a93f5af1146109e2578063a945bf80146109f9578063aa271e1a14610a10578063ac5d861114610a3057600080fd5b806391d148541461093b57806395d89b411461098157806398bcede914610996578063a217fddf146109ad57600080fd5b80638129fc1c116101e25780638129fc1c146108ce578063853828b6146108e3578063882b1808146108f85780638dd919bb1461090d57600080fd5b80636352211e146108595780636c0360eb1461087957806370a082311461088e5780637e1cfe62146108ae57600080fd5b80632f2ff15d1161030e57806341754c57116102a15780634e34a3b5116102705780634e34a3b5146107a55780634f6ccce7146107d957806355f804b3146107f95780635c975abb1461081957806361d027b31461083357600080fd5b806341754c571461072f57806342842e0e1461074557806344f0892e1461076557806348575bfa1461078557600080fd5b8063313ce567116102dd578063313ce567146106be57806335bb3e16146106d457806336568abe146106f45780633f2981cf1461071457600080fd5b80632f2ff15d1461063e5780632f54bf6e1461065e5780632f745c591461067e57806330c5c02e1461069e57600080fd5b806323b872dd11610391578063261707fa11610360578063261707fa146105b4578063261b2fda146105d45780632a25e57c146105f45780632db11544146106145780632eb4a7ab1461062757600080fd5b806323b872dd1461052f578063248a9ca31461054f57806324d7806c1461057f5780632548b9b01461059f57600080fd5b8063095ea7b3116103cd578063095ea7b3146104ae5780630f75b319146104d057806318160ddd146104f05780631a162cc41461050f57600080fd5b806301ffc9a7146103ff57806306df27191461043457806306fdde0314610454578063081812fc14610476575b600080fd5b34801561040b57600080fd5b5061041f61041a36600461383e565b610cec565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b5061041f61044f366004613872565b610d0c565b34801561046057600080fd5b50610469610d4c565b60405161042b91906138e5565b34801561048257600080fd5b506104966104913660046138f8565b610dde565b6040516001600160a01b03909116815260200161042b565b3480156104ba57600080fd5b506104ce6104c9366004613911565b610e78565b005b3480156104dc57600080fd5b506104ce6104eb366004613911565b610f8d565b3480156104fc57600080fd5b5060cc545b60405190815260200161042b565b34801561051b57600080fd5b506104ce61052a366004613872565b610fed565b34801561053b57600080fd5b506104ce61054a36600461393b565b61104b565b34801561055b57600080fd5b5061050161056a3660046138f8565b60009081526065602052604090206001015490565b34801561058b57600080fd5b5061041f61059a366004613872565b6110c6565b3480156105ab57600080fd5b506104ce611106565b3480156105c057600080fd5b506104ce6105cf366004613872565b6112d1565b3480156105e057600080fd5b506104ce6105ef366004613977565b6112fe565b34801561060057600080fd5b506104ce61060f366004613872565b6113ff565b6104ce6106223660046138f8565b611429565b34801561063357600080fd5b506105016101015481565b34801561064a57600080fd5b506104ce610659366004613999565b6115c7565b34801561066a57600080fd5b5061041f610679366004613872565b6115ec565b34801561068a57600080fd5b50610501610699366004613911565b61162c565b3480156106aa57600080fd5b506104ce6106b93660046138f8565b6116c2565b3480156106ca57600080fd5b5061050160fe5481565b3480156106e057600080fd5b506104ce6106ef366004613872565b61197c565b34801561070057600080fd5b506104ce61070f366004613999565b6119a6565b34801561072057600080fd5b506101065461041f9060ff1681565b34801561073b57600080fd5b5061050160ff5481565b34801561075157600080fd5b506104ce61076036600461393b565b611a2e565b34801561077157600080fd5b506104ce6107803660046138f8565b611a49565b34801561079157600080fd5b506101065461041f90610100900460ff1681565b3480156107b157600080fd5b506105017f2d1dbecf308a02b43161501d5b496d83ac97aab1e34bee0e77c8c5d17318476b81565b3480156107e557600080fd5b506105016107f43660046138f8565b611a92565b34801561080557600080fd5b506104ce610814366004613a51565b611b25565b34801561082557600080fd5b5060975461041f9060ff1681565b34801561083f57600080fd5b5061010c546104969061010090046001600160a01b031681565b34801561086557600080fd5b506104966108743660046138f8565b611bb6565b34801561088557600080fd5b50610469611c2d565b34801561089a57600080fd5b506105016108a9366004613872565b611cbb565b3480156108ba57600080fd5b506104ce6108c9366004613911565b611d42565b3480156108da57600080fd5b506104ce611da2565b3480156108ef57600080fd5b506104ce611eb1565b34801561090457600080fd5b506104ce61201d565b34801561091957600080fd5b506105016109283660046138f8565b6101006020526000908152604090205481565b34801561094757600080fd5b5061041f610956366004613999565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561098d57600080fd5b50610469612075565b3480156109a257600080fd5b5060fc546105019081565b3480156109b957600080fd5b50610501600081565b3480156109ce57600080fd5b506104ce6109dd366004613aa8565b612084565b3480156109ee57600080fd5b5061050161010a5481565b348015610a0557600080fd5b506105016101085481565b348015610a1c57600080fd5b5061041f610a2b366004613872565b61208f565b348015610a3c57600080fd5b50610501610a4b366004613872565b6001600160a01b03166000908152610104602052604090205490565b348015610a7357600080fd5b506104ce610a82366004613adf565b6120cf565b348015610a9357600080fd5b506104ce610aa2366004613b5b565b612151565b348015610ab357600080fd5b506105017fa619569270f7f4a1d8f7ed82794221f15c6f8595dada80d85ac4e31cdd6fe04c81565b348015610ae757600080fd5b506104ce610af63660046138f8565b6121a7565b348015610b0757600080fd5b506105016101075481565b348015610b1e57600080fd5b50610469610b2d3660046138f8565b6121f0565b348015610b3e57600080fd5b506104ce610b4d366004613872565b61224e565b348015610b5e57600080fd5b506105017f3b351bd1fe2dfe571b64d5c9adc99cfeeccb1e4f46d0485613dcb1ff87242f4d81565b348015610b9257600080fd5b506104ce610ba13660046138f8565b6122c7565b348015610bb257600080fd5b506104ce610bc1366004613999565b612310565b348015610bd257600080fd5b506104ce610be1366004613872565b612335565b348015610bf257600080fd5b506104ce610c01366004613872565b61234d565b348015610c1257600080fd5b5061041f610c21366004613b78565b6001600160a01b039182166000908152609d6020908152604080832093909416825291909152205460ff1690565b348015610c5b57600080fd5b50610501600080516020613f9d83398151915281565b348015610c7d57600080fd5b506104ce610c8c3660046138f8565b6123ab565b348015610c9d57600080fd5b506104ce610cac366004613872565b612485565b348015610cbd57600080fd5b50610501610ccc3660046138f8565b6124fe565b348015610cdd57600080fd5b5061010c5461041f9060ff1681565b6000610cf782612529565b80610d065750610d068261254e565b92915050565b6001600160a01b03811660009081527f5078e160f82b707ba266e59c522c5162204b04f75aeb609f2bb4af847c77fa3b602052604081205460ff16610d06565b606060988054610d5b90613ba2565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8790613ba2565b8015610dd45780601f10610da957610100808354040283529160200191610dd4565b820191906000526020600020905b815481529060010190602001808311610db757829003601f168201915b5050505050905090565b6000818152609a60205260408120546001600160a01b0316610e5c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152609c60205260409020546001600160a01b031690565b6000610e8382611bb6565b9050806001600160a01b0316836001600160a01b031603610ef05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e53565b336001600160a01b0382161480610f0c5750610f0c8133610c21565b610f7e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e53565b610f888383612583565b505050565b610f96336110c6565b610fd05760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b6001600160a01b0390911660009081526101046020526040902055565b610ff6336110c6565b6110305760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b6001600160a01b031660009081526101046020526040812055565b61105533826125f1565b6110bb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610e53565b610f888383836126e8565b6001600160a01b03811660009081527f35fecfdeb781a47386634f6626bf13b0fdd99cf564d3829699d308994ef9508e602052604081205460ff16610d06565b600054610100900460ff166111715760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610e53565b61117961288f565b611191600080516020613f9d833981519152806128fa565b6111c97fa619569270f7f4a1d8f7ed82794221f15c6f8595dada80d85ac4e31cdd6fe04c600080516020613f9d8339815191526128fa565b6112017f2d1dbecf308a02b43161501d5b496d83ac97aab1e34bee0e77c8c5d17318476b600080516020613f9d8339815191526128fa565b6112397f3b351bd1fe2dfe571b64d5c9adc99cfeeccb1e4f46d0485613dcb1ff87242f4d600080516020613f9d8339815191526128fa565b611251600080516020613f9d83398151915233612945565b61127b7fa619569270f7f4a1d8f7ed82794221f15c6f8595dada80d85ac4e31cdd6fe04c33612945565b6112a57f2d1dbecf308a02b43161501d5b496d83ac97aab1e34bee0e77c8c5d17318476b33612945565b6112cf7f3b351bd1fe2dfe571b64d5c9adc99cfeeccb1e4f46d0485613dcb1ff87242f4d33612945565b565b6112fb7f2d1dbecf308a02b43161501d5b496d83ac97aab1e34bee0e77c8c5d17318476b826115c7565b50565b61130733610d0c565b6113535760405162461bcd60e51b815260206004820152601e60248201527f4e65656420534d4f4c4e45414e4445525f434f4e54524143545f524f4c4500006044820152606401610e53565b60ff5460008381526101006020526040902054611371908390613bf2565b1061138e5760ff54600083815261010060205260409020556113b3565b60008281526101006020526040812080548392906113ad908490613bf2565b90915550505b60008281526101006020908152604091829020548251858152918201527f78ebbea0f2bcf8b35cdcad5cb93b4c13bc6d80b2e6ec67dfc1cfc85db8ddaeb1910160405180910390a15050565b6112fb7fa619569270f7f4a1d8f7ed82794221f15c6f8595dada80d85ac4e31cdd6fe04c826115c7565b80610108546114389190613c0a565b3410156114875760405162461bcd60e51b815260206004820152600f60248201527f496e636f727265637420507269636500000000000000000000000000000000006044820152606401610e53565b6101065460ff166114ce5760405162461bcd60e51b81526020600482015260116024820152705075626c6963206e6f742061637469766560781b6044820152606401610e53565b61162e6114da60fc5490565b106115195760405162461bcd60e51b815260206004820152600f60248201526e35363738204d617820537570706c7960881b6044820152606401610e53565b3360009081526101036020526040902054601e90611538908390613bf2565b11156115775760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d1cc8195e18d95959195960921b6044820152606401610e53565b336000908152610103602052604081208054839290611597908490613bf2565b90915550600090505b818110156115c3576115b13361294f565b806115bb81613c29565b9150506115a0565b5050565b6000828152606560205260409020600101546115e281612a08565b610f888383612a12565b6001600160a01b03811660009081527f040b03e7e209eea006e35ec31df4ca5063ab88995253ab0856ca56e453c0ae9a602052604081205460ff16610d06565b600061163783611cbb565b82106116995760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e53565b506001600160a01b0391909116600090815260ca60209081526040808320938352929052205490565b8061010a546116d19190613c0a565b610109546040516370a0823160e01b81523360048201526101009091046001600160a01b0316906370a0823190602401602060405180830381865afa15801561171e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117429190613c42565b10156117905760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e636500000000000000000000000000006044820152606401610e53565b6101065460ff166117d75760405162461bcd60e51b81526020600482015260116024820152705075626c6963206e6f742061637469766560781b6044820152606401610e53565b61162e6117e360fc5490565b106118225760405162461bcd60e51b815260206004820152600f60248201526e35363738204d617820537570706c7960881b6044820152606401610e53565b33600090815261010b6020526040902054601e90611841908390613bf2565b11156118805760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d1cc8195e18d95959195960921b6044820152606401610e53565b33600090815261010b6020526040812080548392906118a0908490613bf2565b9250508190555061010960019054906101000a90046001600160a01b03166001600160a01b03166323b872dd33308461010a546118dd9190613c0a565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119559190613c5b565b5060005b818110156115c35761196a3361294f565b8061197481613c29565b915050611959565b6112fb7f3b351bd1fe2dfe571b64d5c9adc99cfeeccb1e4f46d0485613dcb1ff87242f4d826115c7565b6001600160a01b0381163314611a245760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610e53565b6115c38282612ab4565b610f88838383604051806020016040528060008152506120cf565b611a52336110c6565b611a8c5760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b61010a55565b6000611a9d60cc5490565b8210611b005760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e53565b60cc8281548110611b1357611b13613c78565b90600052602060002001549050919050565b611b2e336110c6565b611b685760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b8051611b7b9060fd90602084019061378f565b507fb7dc3d82553f66494744771504119d99246c225f02cb0aec4e13b7be3bfc88bb81604051611bab91906138e5565b60405180910390a150565b6000818152609a60205260408120546001600160a01b031680610d065760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e53565b60fd8054611c3a90613ba2565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6690613ba2565b8015611cb35780601f10611c8857610100808354040283529160200191611cb3565b820191906000526020600020905b815481529060010190602001808311611c9657829003601f168201915b505050505081565b60006001600160a01b038216611d265760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e53565b506001600160a01b03166000908152609b602052604090205490565b611d4b336110c6565b611d855760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b6001600160a01b0390911660009081526101056020526040902055565b6000611dae6001612b37565b90508015611dc6576000805461ff0019166101001790555b611e176040518060400160405280600c81526020016b1399585b99195c8814db5bdb60a21b8152506040518060400160405280600b81526020016a1399585b99195c94db5bdb60aa1b815250612c52565b611e1f611106565b600960fe819055611e3190600a613d72565b611e3c906064613c0a565b60ff55610106805460ff1990811690915566470de4df8200006101085561010980548216600117905561010c8054909116905580156112fb576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611bab565b611eba336115ec565b611f065760405162461bcd60e51b815260206004820152601b60248201527f4e65656420534d4f4c4e45414e4445525f4f574e45525f524f4c4500000000006044820152606401610e53565b60405133904780156108fc02916000818181858888f19350505050611f2a57600080fd5b610109546040516370a0823160e01b81523060048201526101009091046001600160a01b03169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611f81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fa59190613c42565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611ff0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120149190613c5b565b6112cf57600080fd5b612026336110c6565b6120605760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b610106805460ff19811660ff90911615179055565b606060998054610d5b90613ba2565b6115c3338383612cc7565b6001600160a01b03811660009081527fe29d8099281072d50d48022c08908f98e3a9d9b960be66e1c7143ec1ecd753e1602052604081205460ff16610d06565b6120d933836125f1565b61213f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610e53565b61214b84848484612d95565b50505050565b61215a336110c6565b6121945760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b6097805460ff1916911515919091179055565b6121b0336110c6565b6121ea5760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b61010855565b6060600060fd805461220190613ba2565b90501161221d5760405180602001604052806000815250610d06565b60fd61222883612e13565b604051602001612239929190613d9a565b60405160208183030381529060405292915050565b612257336110c6565b6122915760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b61010980546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b6122d0336110c6565b61230a5760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b61010155565b60008281526065602052604090206001015461232b81612a08565b610f888383612ab4565b6112fb600080516020613f9d833981519152826115c7565b612356336110c6565b6123905760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b6001600160a01b031660009081526101056020526040812055565b6123b4336110c6565b6123ee5760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b61010c5460ff16156124425760405162461bcd60e51b815260206004820152601c60248201527f54726561737572792068617320616c7265616479206d696e74656421000000006044820152606401610e53565b61010c5461010090046001600160a01b0316331461245f57600080fd5b60005b818110156115c3576124733361294f565b8061247d81613c29565b915050612462565b61248e336110c6565b6124c85760405162461bcd60e51b815260206004820152601b6024820152600080516020613fbd8339815191526044820152606401610e53565b61010c80546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600060fe54600a61250f9190613d72565b60008381526101006020526040902054610d069190613e56565b60006001600160e01b0319821663780e9d6360e01b1480610d065750610d0682612f14565b60006001600160e01b03198216637965db0b60e01b1480610d0657506301ffc9a760e01b6001600160e01b0319831614610d06565b6000818152609c6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125b882611bb6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152609a60205260408120546001600160a01b031661266a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e53565b600061267583611bb6565b9050806001600160a01b0316846001600160a01b031614806126bc57506001600160a01b038082166000908152609d602090815260408083209388168352929052205460ff165b806126e05750836001600160a01b03166126d584610dde565b6001600160a01b0316145b949350505050565b826001600160a01b03166126fb82611bb6565b6001600160a01b03161461275f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610e53565b6001600160a01b0382166127c15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e53565b6127cc838383612f53565b6127d7600082612583565b6001600160a01b0383166000908152609b60205260408120805460019290612800908490613e6a565b90915550506001600160a01b0382166000908152609b6020526040812080546001929061282e908490613bf2565b90915550506000818152609a602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff166112cf5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610e53565b600082815260656020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6115c38282612a12565b600061295a60fc5490565b905061296a60fc80546001019055565b61162e8111156129bc5760405162461bcd60e51b815260206004820152600f60248201527f457863656564656420737570706c7900000000000000000000000000000000006044820152606401610e53565b604080516001600160a01b0384168152602081018390527f13d0c6609c1489bff1e3c88b5ad19c5647fe75c23c7ab35e81f04afdce4f9564910160405180910390a16115c3828261300b565b6112fb8133613025565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff166115c35760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612a703390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16156115c35760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008054610100900460ff1615612bc5578160ff166001148015612b5a5750303b155b612bbd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e53565b506000919050565b60005460ff808416911610612c335760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e53565b506000805460ff191660ff92909216919091179055600190565b919050565b600054610100900460ff16612cbd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610e53565b6115c382826130a5565b816001600160a01b0316836001600160a01b031603612d285760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e53565b6001600160a01b038381166000818152609d6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612da08484846126e8565b612dac84848484613137565b61214b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610e53565b606081600003612e3a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e645780612e4e81613c29565b9150612e5d9050600a83613e56565b9150612e3e565b60008167ffffffffffffffff811115612e7f57612e7f6139c5565b6040519080825280601f01601f191660200182016040528015612ea9576020820181803683370190505b5090505b84156126e057612ebe600183613e6a565b9150612ecb600a86613e81565b612ed6906030613bf2565b60f81b818381518110612eeb57612eeb613c78565b60200101906001600160f81b031916908160001a905350612f0d600a86613e56565b9450612ead565b60006001600160e01b031982166380ac58cd60e01b1480610cf757506001600160e01b03198216635b5e139f60e01b1480610d065750610d068261254e565b6001600160a01b038316612fae57612fa98160cc8054600083815260cd60205260408120829055600182018355919091527f47197230e1e4b29fc0bd84d7d78966c0925452aff72a2a121538b102457e9ebe0155565b612fd1565b816001600160a01b0316836001600160a01b031614612fd157612fd18382613283565b6001600160a01b038216612fe857610f8881613320565b826001600160a01b0316826001600160a01b031614610f8857610f8882826133cf565b6115c3828260405180602001604052806000815250613413565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff166115c357613063816001600160a01b03166014613491565b61306e836020613491565b60405160200161307f929190613e95565b60408051601f198184030181529082905262461bcd60e51b8252610e53916004016138e5565b600054610100900460ff166131105760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610e53565b815161312390609890602085019061378f565b508051610f8890609990602084019061378f565b60006001600160a01b0384163b1561327857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061317b903390899088908890600401613f16565b6020604051808303816000875af19250505080156131b6575060408051601f3d908101601f191682019092526131b391810190613f52565b60015b61325e573d8080156131e4576040519150601f19603f3d011682016040523d82523d6000602084013e6131e9565b606091505b5080516000036132565760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610e53565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126e0565b506001949350505050565b6000600161329084611cbb565b61329a9190613e6a565b600083815260cb60205260409020549091508082146132ed576001600160a01b038416600090815260ca60209081526040808320858452825280832054848452818420819055835260cb90915290208190555b50600091825260cb602090815260408084208490556001600160a01b03909416835260ca81528383209183525290812055565b60cc5460009061333290600190613e6a565b600083815260cd602052604081205460cc805493945090928490811061335a5761335a613c78565b906000526020600020015490508060cc838154811061337b5761337b613c78565b600091825260208083209091019290925582815260cd909152604080822084905585825281205560cc8054806133b3576133b3613f6f565b6001900381819060005260206000200160009055905550505050565b60006133da83611cbb565b6001600160a01b03909316600090815260ca60209081526040808320868452825280832085905593825260cb9052919091209190915550565b61341d8383613641565b61342a6000848484613137565b610f885760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610e53565b606060006134a0836002613c0a565b6134ab906002613bf2565b67ffffffffffffffff8111156134c3576134c36139c5565b6040519080825280601f01601f1916602001820160405280156134ed576020820181803683370190505b509050600360fc1b8160008151811061350857613508613c78565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061353757613537613c78565b60200101906001600160f81b031916908160001a905350600061355b846002613c0a565b613566906001613bf2565b90505b60018111156135eb577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106135a7576135a7613c78565b1a60f81b8282815181106135bd576135bd613c78565b60200101906001600160f81b031916908160001a90535060049490941c936135e481613f85565b9050613569565b50831561363a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e53565b9392505050565b6001600160a01b0382166136975760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e53565b6000818152609a60205260409020546001600160a01b0316156136fc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e53565b61370860008383612f53565b6001600160a01b0382166000908152609b60205260408120805460019290613731908490613bf2565b90915550506000818152609a602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461379b90613ba2565b90600052602060002090601f0160209004810192826137bd5760008555613803565b82601f106137d657805160ff1916838001178555613803565b82800160010185558215613803579182015b828111156138035782518255916020019190600101906137e8565b5061380f929150613813565b5090565b5b8082111561380f5760008155600101613814565b6001600160e01b0319811681146112fb57600080fd5b60006020828403121561385057600080fd5b813561363a81613828565b80356001600160a01b0381168114612c4d57600080fd5b60006020828403121561388457600080fd5b61363a8261385b565b60005b838110156138a8578181015183820152602001613890565b8381111561214b5750506000910152565b600081518084526138d181602086016020860161388d565b601f01601f19169290920160200192915050565b60208152600061363a60208301846138b9565b60006020828403121561390a57600080fd5b5035919050565b6000806040838503121561392457600080fd5b61392d8361385b565b946020939093013593505050565b60008060006060848603121561395057600080fd5b6139598461385b565b92506139676020850161385b565b9150604084013590509250925092565b6000806040838503121561398a57600080fd5b50508035926020909101359150565b600080604083850312156139ac57600080fd5b823591506139bc6020840161385b565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156139f6576139f66139c5565b604051601f8501601f19908116603f01168101908282118183101715613a1e57613a1e6139c5565b81604052809350858152868686011115613a3757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a6357600080fd5b813567ffffffffffffffff811115613a7a57600080fd5b8201601f81018413613a8b57600080fd5b6126e0848235602084016139db565b80151581146112fb57600080fd5b60008060408385031215613abb57600080fd5b613ac48361385b565b91506020830135613ad481613a9a565b809150509250929050565b60008060008060808587031215613af557600080fd5b613afe8561385b565b9350613b0c6020860161385b565b925060408501359150606085013567ffffffffffffffff811115613b2f57600080fd5b8501601f81018713613b4057600080fd5b613b4f878235602084016139db565b91505092959194509250565b600060208284031215613b6d57600080fd5b813561363a81613a9a565b60008060408385031215613b8b57600080fd5b613b948361385b565b91506139bc6020840161385b565b600181811c90821680613bb657607f821691505b602082108103613bd657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613c0557613c05613bdc565b500190565b6000816000190483118215151615613c2457613c24613bdc565b500290565b600060018201613c3b57613c3b613bdc565b5060010190565b600060208284031215613c5457600080fd5b5051919050565b600060208284031215613c6d57600080fd5b815161363a81613a9a565b634e487b7160e01b600052603260045260246000fd5b600181815b80851115613cc9578160001904821115613caf57613caf613bdc565b80851615613cbc57918102915b93841c9390800290613c93565b509250929050565b600082613ce057506001610d06565b81613ced57506000610d06565b8160018114613d035760028114613d0d57613d29565b6001915050610d06565b60ff841115613d1e57613d1e613bdc565b50506001821b610d06565b5060208310610133831016604e8410600b8410161715613d4c575081810a610d06565b613d568383613c8e565b8060001904821115613d6a57613d6a613bdc565b029392505050565b600061363a8383613cd1565b60008151613d9081856020860161388d565b9290920192915050565b600080845481600182811c915080831680613db657607f831692505b60208084108203613dd557634e487b7160e01b86526022600452602486fd5b818015613de95760018114613dfa57613e27565b60ff19861689528489019650613e27565b60008b81526020902060005b86811015613e1f5781548b820152908501908301613e06565b505084890196505b505050505050613e378185613d7e565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082613e6557613e65613e40565b500490565b600082821015613e7c57613e7c613bdc565b500390565b600082613e9057613e90613e40565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613ecd81601785016020880161388d565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613f0a81602884016020880161388d565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f4860808301846138b9565b9695505050505050565b600060208284031215613f6457600080fd5b815161363a81613828565b634e487b7160e01b600052603160045260246000fd5b600081613f9457613f94613bdc565b50600019019056fe9aa77ce78f008f23606e6755d96256721080001bc839bd46f3566a5b8e3f31884e65656420534d4f4c4e45414e4445525f41444d494e5f524f4c450000000000a2646970667358221220b6219cebaef5501baa91cd03fd3d531551a08a0ef226d2df3824fa2267958e3d64736f6c634300080d0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.