Contract 0x54B651B09E511A03b2081A41f896deF61bE10Dc7

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x61141552695cadb667fd0185f283c4a5d874b05a9641b913ca31e05922155605Mint229069242021-12-24 13:04:14188 days 18 hrs ago0xa9b66eea9c5d4f08c389cbf1e5142009f07996cd IN  0x54b651b09e511a03b2081a41f896def61be10dc7100 MATIC0.00575635533
0xec870d29283deccc1066cad62f3be0337f44600de17a665129b522c81a66d3a5Set Pause227623692021-12-20 20:29:56192 days 10 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.000837330
0x1aaf90fac0464e6389c9779fe9bfa05ac6143d8933e37a453503b17144430843Transfer From218276882021-11-26 16:20:55216 days 14 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.0022922430
0xc37092db92ae07514b7eb61f75fae55694fd253edc7867d17da01ea0b7cc5de2Set Pause217978182021-11-25 21:03:46217 days 10 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.0008376630
0x27f169cbfba3d49478ef9e134ee66409dac6b6d08da984b8b7fbb3d5ffd6e1d3Set Pause217969622021-11-25 20:30:06217 days 10 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.000837330
0xbd58dd51b16dcc6ec3f3eb0c892cb93ef8a0c0e006ffb7469ebf4c2344e0c745Set Pause217629872021-11-24 23:17:17218 days 7 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.0008376630
0x8700829362433df5a105a8eed146cd6919153663c84ea5bce8aad42b7828a6c6Set Pause217617352021-11-24 22:32:09218 days 8 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.000837330
0x6910195dabf0d6a2607446dbbfeee15e5d0791ea6c54b94aec62254e3d99cf77Mint Unsold Toke...217582782021-11-24 20:31:08218 days 10 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.13771107650.5
0x22c5b061d3717632d889d4cbfbf75acd993d84933372b59be09f1adaeb9ab70dSet Pause217092872021-11-23 14:12:30219 days 17 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.0008376630
0x2034ef0ae565a149f8f78117dd91ce9f8db348c99accafe56eef7c723a7d59a7Mint215617222021-11-19 16:59:14223 days 14 hrs ago0x8c7f2a5ab7d8408a0abbaf52e9a5d024a3da79e5 IN  0x54b651b09e511a03b2081a41f896def61be10dc7200 MATIC0.032663792112
0x32179f7ee2a7aa37c886136af6874ac07da7de9156c354ad94dd3da77fac3810Mint215616822021-11-19 16:57:54223 days 14 hrs ago0x8c7f2a5ab7d8408a0abbaf52e9a5d024a3da79e5 IN  0x54b651b09e511a03b2081a41f896def61be10dc7200 MATIC0.004876063113
0x02838d79cfe7ff8b28d3a9f490f2046770ede4333f784514d8a9f42dcf346720Mint215616642021-11-19 16:57:18223 days 14 hrs ago0x55aefd71f2f3ebf97a3a4e1de149a88fa33bd1bf IN  0x54b651b09e511a03b2081a41f896def61be10dc7200 MATIC0.031499388108
0x45aa4cf8cca0195d981079fd95381263cad8e51165825c0bee2e2bd42e27ce8cSet Pause215590482021-11-19 15:26:50223 days 15 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.000837330
0x982fd59ffa809eb7b0a5c56e7acd63bce1ba9d4f8bc814ac7a9bd5b79d89e4d9Mint Unsold Toke...215590292021-11-19 15:26:08223 days 15 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  0x54b651b09e511a03b2081a41f896def61be10dc70 MATIC0.0085215330
0x9175ce27aae835a9aeb2dab26f2d0adbc840771903f39ef763b90a9507f003440x60806040215573692021-11-19 14:28:47223 days 16 hrs ago0x901ca75adad5bba7355bda45e044a6b42f8fc3c5 IN  Create: TheUnveilers0 MATIC0.122736330
[ Download CSV Export 
Latest 3 internal transactions
Parent Txn Hash Block From To Value
0x61141552695cadb667fd0185f283c4a5d874b05a9641b913ca31e05922155605229069242021-12-24 13:04:14188 days 18 hrs ago 0x54b651b09e511a03b2081a41f896def61be10dc70x901ca75adad5bba7355bda45e044a6b42f8fc3c5100 MATIC
0x2034ef0ae565a149f8f78117dd91ce9f8db348c99accafe56eef7c723a7d59a7215617222021-11-19 16:59:14223 days 14 hrs ago 0x54b651b09e511a03b2081a41f896def61be10dc70x901ca75adad5bba7355bda45e044a6b42f8fc3c5200 MATIC
0x02838d79cfe7ff8b28d3a9f490f2046770ede4333f784514d8a9f42dcf346720215616642021-11-19 16:57:18223 days 14 hrs ago 0x54b651b09e511a03b2081a41f896def61be10dc70x901ca75adad5bba7355bda45e044a6b42f8fc3c5200 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheUnveilers

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : TheUnveilers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract TheUnveilers is ERC721Enumerable, Pausable, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    bool private PAUSE = true;
    bool private BURN = false;
    bool public IS_GENESIS;

    uint256 public PRICE;
    uint256 public MAX_ELEMENTS;
    uint256 public START_AT;
    Counters.Counter private _tokenIdTracker;
    Counters.Counter private _tokenIdTrackerPioneers;

    uint256 public constant MAX_TOKENS_PER_WALLET = 3;
    uint256 public constant MAX_TOKENS_PER_MINT = 3;

    uint256 public constant PIONEERS_MAX_ELEMENTS = 111;
    uint256 public constant PIONEERS_NUM_CORE_MINTS_REQUIRED = 889;
    uint256 public constant PIONEERS_NUM_TX_TO_AWARD = 100;
    uint256 public constant PIONEERS_PCT_SHARE_TX = 10;

    uint256 public TOTAL_PIONEER_TX_AWARDED = 0;
    uint256 public TOTAL_PIONEER_TX_REMAINING = 0;

    address public constant ADDRESS_SIGNER = 0x901CA75AdAd5bBA7355BDa45E044a6B42f8fC3c5;
    address public constant ADDRESS_PAYOUTS = 0x901CA75AdAd5bBA7355BDa45E044a6B42f8fC3c5;

    uint256 private constant royaltyBasisPoints = 1000; // 10%

    string public baseTokenURI;
    string public baseContractURI;

    event Pause(bool pause);
    event Burn(bool burn);
    event Mint(uint256 indexed id);
    event Reward(uint256 id);

    constructor(bool _isGenesis, string memory _baseTokenURI, string memory _baseContractURI) ERC721("The Unveilers", "UVLR") {
        IS_GENESIS = _isGenesis;
        baseTokenURI = _baseTokenURI;
        baseContractURI = _baseContractURI;
        PRICE = IS_GENESIS ? 100 ether : 0.1 ether;
        MAX_ELEMENTS = IS_GENESIS ? PIONEERS_MAX_ELEMENTS : 21000;
        START_AT = IS_GENESIS ? 1 : PIONEERS_MAX_ELEMENTS + 1;
        _tokenIdTracker._value = START_AT - 1;
    }

    modifier saleIsOpen {
        require(totalSupply() < MAX_ELEMENTS, "fn: saleIsOpen(), msg: collection sold out");
        require(!PAUSE, "fn: saleIsOpen(), msg: sale not open");
        _;
    }

    modifier isGenesis {
        require(IS_GENESIS, "fn: isGenesis(), msg: requires Genesis collection");
        _;
    }

    modifier isNotGenesis {
        require(!IS_GENESIS, "fn: isNotGenesis(), msg: requires Core collection");
        _;
    }

    modifier isBurnOpen {
        require(BURN, "fn: isBurnOpen(), msg: burn not possible yet");
        _;
    }

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

    function contractURI() public view returns (string memory) {
        return baseContractURI;
    }

    function decimals() public view virtual returns (uint256) {
        return 0;
    }

    function setBaseURI(string memory _baseURIString) public onlyOwner {
        baseTokenURI = _baseURIString;
    }

    function setBaseContractURI(string memory _baseContractURIString) public onlyOwner {
        baseContractURI = _baseContractURIString;
    }

    function totalToken() public view returns (uint256) {
        return _tokenIdTracker.current();
    }

    function totalTokenPioneers() public view returns (uint256) {
        return _tokenIdTrackerPioneers.current();
    }

    struct Pioneer {
        uint256 tokenId;
        uint256 numTxAwarded;
        uint256 numTxToAward;
    }
    Pioneer[] public pioneers;

    struct Burner {
        uint256 tokenId;
        address ownerAddress;
    }
    Burner[] public burners;

    function addPioneer(uint256 _tokenId) private {
        Pioneer memory pioneer = Pioneer(_tokenId, 0, PIONEERS_NUM_TX_TO_AWARD);
        pioneers.push(pioneer);
        TOTAL_PIONEER_TX_REMAINING += PIONEERS_NUM_TX_TO_AWARD;
        _tokenIdTrackerPioneers.increment();
    }

    function addBurner(address _address, uint256 _tokenId) private {
        bool exists = false;
        uint256[] memory existingTokens = getBurnerTokenIds(_address);
        for (uint256 i = 0; i < existingTokens.length; i++) {
            if (_tokenId == existingTokens[i]) {
                exists = true;
                break;
            }
        }
        require(!exists, "fn: addBurner(), msg: tokenId already burned");
        Burner memory burner;
        burner.tokenId = _tokenId;
        burner.ownerAddress = _address;
        burners.push(burner);
    }

    function getPioneerIndexByTokenId(uint256 _tokenId) private view returns (uint256) {
        uint256 index = PIONEERS_MAX_ELEMENTS + 1;
        for (uint256 i = 0; i < pioneers.length; i++) {
            if (pioneers[i].tokenId == _tokenId) {
                index = i;
                break;
            }
        }
        require(index <= PIONEERS_MAX_ELEMENTS, "fn: getPioneerIndexByTokenId(), msg: pioneer not found");
        return index;
    }

    function getPioneerStatsByTokenId(uint256 _tokenId) public view isNotGenesis returns (uint256, uint256, uint256) {
        uint256 index = getPioneerIndexByTokenId(_tokenId);
        require(index <= PIONEERS_MAX_ELEMENTS, "fn: getPioneerStatsByTokenId(), msg: pioneer not found");
        return (pioneers[index].tokenId, pioneers[index].numTxAwarded, pioneers[index].numTxToAward);
    }

    function getBurnerTokenIds(address _address) public view isGenesis returns (uint256[] memory) {
        uint256[] memory tokenIds = new uint256[](burners.length);
        for (uint256 i = 0; i < burners.length; i++) {
            Burner memory burner = burners[i];
            if (burner.ownerAddress == _address) {
                tokenIds[i] = burner.tokenId;
            }
        }
        return tokenIds;
    }

    function burnPioneerToken(uint256 _tokenId, uint256 _timestamp, bytes memory _signature) external isGenesis isBurnOpen {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "fn: burnPioneerToken(), msg: caller is not owner nor approved");

        uint256[] memory _tokensId = new uint256[](1);
        _tokensId[0] = _tokenId;

        address wallet = _msgSender();
        address signer = signatureWallet(wallet, _tokensId, _timestamp, _signature);
        require(signer == ADDRESS_SIGNER, "fn: burnPioneerToken(), msg: not authorized to burn");
        require(block.timestamp >= _timestamp - 30, "fn: burnPioneerToken(), msg: out of time");

        _burn(_tokenId);
        addBurner(wallet, _tokenId);
    }

    function isPioneerRewardOpen() public view returns (bool) {
        if (IS_GENESIS) return false;
        bool _assertPioneerMints = totalTokenPioneers() > 0;
        bool _assertPioneerDelta = TOTAL_PIONEER_TX_REMAINING > 0;
        bool _assertPioneerQuota = totalSupply() >= PIONEERS_NUM_CORE_MINTS_REQUIRED;
        return _assertPioneerMints && _assertPioneerDelta && _assertPioneerQuota;
    }

    function getNextPioneerTokenIdToAward() private view returns (uint256) {
        require(pioneers.length > 0, "fn: getNextPioneerTokenIdToAward(), msg: no Pioneer tokens burned yet");
        uint256 tokenId = 0;
        for (uint256 i = 0; i < pioneers.length; i++) {
            uint256 iPrv = i > 0 ? i - 1 : pioneers.length - 1;
            Pioneer memory pioneerPrv = pioneers[iPrv];
            Pioneer memory pioneerIdx = pioneers[i];

            uint256 awardedPrv = pioneerPrv.numTxAwarded;
            uint256 awardedIdx = pioneerIdx.numTxAwarded;
            uint256 deltaPrv = pioneerPrv.numTxToAward - pioneerPrv.numTxAwarded;
            uint256 deltaIdx = pioneerIdx.numTxToAward - pioneerIdx.numTxAwarded;

            bool assertZero = deltaIdx > 0;
            bool assertPrev = awardedPrv > awardedIdx && deltaPrv != PIONEERS_NUM_TX_TO_AWARD;
            bool assertNoneAwarded = deltaIdx == deltaPrv && deltaIdx == PIONEERS_NUM_TX_TO_AWARD;
            bool assertBothEndsEqual = awardedIdx == awardedPrv && i == 0;

            if (assertZero && (assertPrev || assertNoneAwarded || assertBothEndsEqual)) {
                tokenId = pioneerIdx.tokenId;
                break;
            }
        }
        return tokenId;
    }

    function updatePioneerTransactions(uint256 _tokenId) private isNotGenesis {
        uint256 index = getPioneerIndexByTokenId(_tokenId);
        pioneers[index].numTxAwarded += 1;
        TOTAL_PIONEER_TX_AWARDED += 1;
        TOTAL_PIONEER_TX_REMAINING -= 1;
        emit Reward(_tokenId);
    }

    function mint(uint256[] memory _tokensId, uint256 _timestamp, bytes memory _signature) external payable saleIsOpen {
        uint256 total = totalSupply();
        require(total + _tokensId.length <= MAX_ELEMENTS, "fn: mint(), msg: max limit total tokens");

        uint256 mintPrice = price(_tokensId.length);
        require(msg.value >= mintPrice, "fn: mint(), msg: value below price");
        require(_tokensId.length <= MAX_TOKENS_PER_MINT, "fn: mint(), msg: max tokens per mint");

        address wallet = _msgSender();
        require(walletOfOwner(wallet).length < MAX_TOKENS_PER_WALLET, "fn: mint(), msg: max tokens per wallet");

        address signer = signatureWallet(wallet, _tokensId, _timestamp, _signature);
        require(signer == ADDRESS_SIGNER, "fn: mint(), msg: not authorized to mint");
        require(block.timestamp >= _timestamp - 30, "fn: mint(), msg: out of time");


        uint256 txPayouts = mintPrice;
        for(uint256 i = 0; i < _tokensId.length; i++) {
            require(rawOwnerOf(_tokensId[i]) == address(0) && _tokensId[i] > 0 && _tokensId[i] <= MAX_ELEMENTS, "fn: mint(), msg: token already minted");
            _mintAnElement(wallet, _tokensId[i]);

            if (isPioneerRewardOpen()) {
                uint256 txPioneer = price(1).mul(PIONEERS_PCT_SHARE_TX).div(100);
                txPayouts = txPayouts.sub(txPioneer);
                uint256 pioneerTokenId = getNextPioneerTokenIdToAward();
                address pioneerAddress = rawOwnerOf(pioneerTokenId);
                Address.sendValue(payable(pioneerAddress), txPioneer);
                updatePioneerTransactions(pioneerTokenId);
            }
        }

        Address.sendValue(payable(ADDRESS_PAYOUTS), txPayouts);
        if (msg.value > mintPrice) {
            Address.sendValue(payable(_msgSender()), msg.value.sub(mintPrice));
        }
    }

    function signatureWallet(address wallet, uint256[] memory _tokensId, uint256 _timestamp, bytes memory _signature) public pure returns (address){
        return ECDSA.recover(keccak256(abi.encode(wallet, _tokensId, _timestamp)), _signature);
    }

    function price(uint256 _count) public view returns (uint256) {
        return PRICE.mul(_count);
    }

    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }

    function setPause(bool _pause) external onlyOwner {
        PAUSE = _pause;
        emit Pause(PAUSE);
    }

    function setBurn(bool _burn) external onlyOwner isGenesis {
        BURN = _burn;
        emit Burn(BURN);
    }

    function _mintAnElement(address _to, uint256 _tokenId) private {
        _tokenIdTracker.increment();
        _safeMint(_to, _tokenId);
        emit Mint(_tokenId);
    }

    function mintPioneerToken(address _address, uint256 _tokenId) external onlyOwner isNotGenesis {
        require(totalToken() - PIONEERS_MAX_ELEMENTS >= PIONEERS_NUM_CORE_MINTS_REQUIRED, "fn: mintPioneerToken(), msg: core collection mint quota not met");
        require(walletOfOwner(_address).length < MAX_TOKENS_PER_WALLET, "fn: mintPioneerToken(), msg: wallet owns max amount");
        require(totalTokenPioneers() < PIONEERS_MAX_ELEMENTS, "fn: mintPioneerToken(), msg: mint would exceed total supply");

        _safeMint(_address, _tokenId);
        addPioneer(_tokenId);
        emit Mint(_tokenId);
    }

    function mintUnsoldTokens(uint256[] memory _tokensId) external onlyOwner {
        require(PAUSE, "fn: mintUnsoldTokens(), msg: sale is open");
        for (uint256 i = 0; i < _tokensId.length; i++) {
            require(_tokensId[i] > 0, "fn: mintUnsoldTokens(), msg: cannot mint the 0 token");
            require(rawOwnerOf(_tokensId[i]) == address(0), "fn: mintUnsoldTokens(), msg: token already minted");
            _mintAnElement(owner(), _tokensId[i]);
        }
    }

    function royaltyInfo(uint256, uint256 _salePrice) external pure returns (address receiver, uint256 royaltyAmount) {
        return (ADDRESS_PAYOUTS, (_salePrice.mul(royaltyBasisPoints)).div(10000));
    }
}

File 2 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.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 ERC721Enumerable is ERC721, IERC721Enumerable {
    // 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(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.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 < ERC721Enumerable.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 = ERC721.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 = ERC721.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();
    }
}

File 3 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev Edit for rawOwnerOf token
     */
    function rawOwnerOf(uint256 tokenId) public view returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(owner, to, tokenId);

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

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

        emit Transfer(owner, to, tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 4 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 6 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 7 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 8 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 17 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

    /**
     * @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 14 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bool","name":"_isGenesis","type":"bool"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"string","name":"_baseContractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"burn","type":"bool"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"pause","type":"bool"}],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Reward","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADDRESS_PAYOUTS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ADDRESS_SIGNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IS_GENESIS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIONEERS_MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIONEERS_NUM_CORE_MINTS_REQUIRED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIONEERS_NUM_TX_TO_AWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIONEERS_PCT_SHARE_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_AT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_PIONEER_TX_AWARDED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_PIONEER_TX_REMAINING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseContractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"burnPioneerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burners","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"ownerAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBurnerTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPioneerStatsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPioneerRewardOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintPioneerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"}],"name":"mintUnsoldTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pioneers","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTxAwarded","type":"uint256"},{"internalType":"uint256","name":"numTxToAward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rawOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"pure","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":"_baseContractURIString","type":"string"}],"name":"setBaseContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURIString","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_burn","type":"bool"}],"name":"setBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"signatureWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","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":[],"name":"totalToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenPioneers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

6080604052600a805461ffff60a81b1916600160a81b179055600060108190556011553480156200002f57600080fd5b506040516200484638038062004846833981016040819052620000529162000383565b604080518082018252600d81526c54686520556e7665696c65727360981b6020808301918252835180850190945260048452632aab262960e11b908401528151919291620000a39160009162000210565b508051620000b990600190602084019062000210565b5050600a805460ff1916905550620000d133620001b6565b600a805460ff60b81b1916600160b81b851515021790558151620000fd90601290602085019062000210565b5080516200011390601390602084019062000210565b50600a54600160b81b900460ff16620001355767016345785d8a000062000140565b68056bc75e2d631000005b6001600160481b0316600b55600a54600160b81b900460ff1662000167576152086200016a565b606f5b600c55600a54600160b81b900460ff1662000193576200018d606f60016200041c565b62000196565b60015b600d819055620001a99060019062000437565b600e55506200048e915050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021e9062000451565b90600052602060002090601f0160209004810192826200024257600085556200028d565b82601f106200025d57805160ff19168380011785556200028d565b828001600101855582156200028d579182015b828111156200028d57825182559160200191906001019062000270565b506200029b9291506200029f565b5090565b5b808211156200029b5760008155600101620002a0565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002de57600080fd5b81516001600160401b0380821115620002fb57620002fb620002b6565b604051601f8301601f19908116603f01168101908282118183101715620003265762000326620002b6565b816040528381526020925086838588010111156200034357600080fd5b600091505b8382101562000367578582018301518183018401529082019062000348565b83821115620003795760008385830101525b9695505050505050565b6000806000606084860312156200039957600080fd5b83518015158114620003aa57600080fd5b60208501519093506001600160401b0380821115620003c857600080fd5b620003d687838801620002cc565b93506040860151915080821115620003ed57600080fd5b50620003fc86828701620002cc565b9150509250925092565b634e487b7160e01b600052601160045260246000fd5b6000821982111562000432576200043262000406565b500190565b6000828210156200044c576200044c62000406565b500390565b600181811c908216806200046657607f821691505b602082108114156200048857634e487b7160e01b600052602260045260246000fd5b50919050565b6143a8806200049e6000396000f3fe6080604052600436106103815760003560e01c80637f81be69116101d1578063b88d4fde11610102578063d1bdb1d1116100a0578063e8a3d4851161006f578063e8a3d485146109e6578063e985e9c5146109fb578063f2fde38b14610a44578063f98775fe14610a6457600080fd5b8063d1bdb1d114610552578063d547cfb714610991578063d7480fb1146109a6578063d951b4c6146109c657600080fd5b8063bf7b766d116100dc578063bf7b766d14610930578063c22b01ec14610946578063c87b56dd1461095c578063d042794b1461097c57600080fd5b8063b88d4fde146108d0578063bd55cf0d146108f0578063bedb86fb1461091057600080fd5b80639710a4891161016f578063abe64edd11610149578063abe64edd1461084a578063b007f5a11461085f578063b2992bb014610875578063b2c54c8c1461089557600080fd5b80639710a48914610800578063a1cdd0f614610815578063a22cb4651461082a57600080fd5b80638d859f3e116101ab5780638d859f3e146107755780638da5cb5b1461078b57806395bf1305146107ae57806395d89b41146107eb57600080fd5b80637f81be691461070a57806380f2152e14610740578063880ad4bb1461075557600080fd5b80633502a716116102b65780635ad1f6d91161025457806364c1933a1161022357806364c1933a146106a057806370a08231146106c0578063715018a6146106e05780637235cbc3146106f557600080fd5b80635ad1f6d91461062b5780635c975abb14610653578063626be5671461066b5780636352211e1461068057600080fd5b80634c4e9183116102905780634c4e9183146105ca5780634f6ccce7146105eb57806355f804b31461060b5780635647e3301461062b57600080fd5b80633502a7161461056757806342842e0e1461057d578063438b63001461059d57600080fd5b80631d64d2b0116103235780632a55205a116102fd5780632a55205a146104df5780632f745c591461051e578063313ce5671461053e5780633377cd661461055257600080fd5b80631d64d2b01461048957806323b872dd1461049f57806326a49e37146104bf57600080fd5b8063081812fc1161035f578063081812fc146103f2578063095ea7b31461042a5780630cd3a5381461044a57806318160ddd1461046a57600080fd5b806301ffc9a714610386578063038bd95a146103bb57806306fdde03146103d0575b600080fd5b34801561039257600080fd5b506103a66103a1366004613a8c565b610a84565b60405190151581526020015b60405180910390f35b6103ce6103c9366004613be8565b610aaf565b005b3480156103dc57600080fd5b506103e5611003565b6040516103b29190613cad565b3480156103fe57600080fd5b5061041261040d366004613cc0565b611095565b6040516001600160a01b0390911681526020016103b2565b34801561043657600080fd5b506103ce610445366004613cf0565b61112a565b34801561045657600080fd5b506103ce610465366004613d1a565b611240565b34801561047657600080fd5b506008545b6040519081526020016103b2565b34801561049557600080fd5b5061047b61037981565b3480156104ab57600080fd5b506103ce6104ba366004613d63565b611287565b3480156104cb57600080fd5b5061047b6104da366004613cc0565b6112b8565b3480156104eb57600080fd5b506104ff6104fa366004613d9f565b6112c8565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561052a57600080fd5b5061047b610539366004613cf0565b6112fe565b34801561054a57600080fd5b50600061047b565b34801561055e57600080fd5b5061047b600381565b34801561057357600080fd5b5061047b600c5481565b34801561058957600080fd5b506103ce610598366004613d63565b611394565b3480156105a957600080fd5b506105bd6105b8366004613dc1565b6113af565b6040516103b29190613e17565b3480156105d657600080fd5b50600a546103a690600160b81b900460ff1681565b3480156105f757600080fd5b5061047b610606366004613cc0565b611451565b34801561061757600080fd5b506103ce610626366004613d1a565b6114e4565b34801561063757600080fd5b5061041273901ca75adad5bba7355bda45e044a6b42f8fc3c581565b34801561065f57600080fd5b50600a5460ff166103a6565b34801561067757600080fd5b5061047b611527565b34801561068c57600080fd5b5061041261069b366004613cc0565b611537565b3480156106ac57600080fd5b506104126106bb366004613e2a565b6115ae565b3480156106cc57600080fd5b5061047b6106db366004613dc1565b6115ef565b3480156106ec57600080fd5b506103ce611676565b34801561070157600080fd5b506103a66116b2565b34801561071657600080fd5b50610412610725366004613cc0565b6000908152600260205260409020546001600160a01b031690565b34801561074c57600080fd5b506103e561170e565b34801561076157600080fd5b506103ce610770366004613cf0565b61179c565b34801561078157600080fd5b5061047b600b5481565b34801561079757600080fd5b50600a5461010090046001600160a01b0316610412565b3480156107ba57600080fd5b506107ce6107c9366004613cc0565b6119b5565b604080519283526001600160a01b039091166020830152016103b2565b3480156107f757600080fd5b506103e56119ec565b34801561080c57600080fd5b5061047b600a81565b34801561082157600080fd5b5061047b606f81565b34801561083657600080fd5b506103ce610845366004613eb8565b6119fb565b34801561085657600080fd5b5061047b606481565b34801561086b57600080fd5b5061047b60115481565b34801561088157600080fd5b506103ce610890366004613eeb565b611ac0565b3480156108a157600080fd5b506108b56108b0366004613cc0565b611cb6565b604080519384526020840192909252908201526060016103b2565b3480156108dc57600080fd5b506103ce6108eb366004613f20565b611de2565b3480156108fc57600080fd5b506103ce61090b366004613f7c565b611e1a565b34801561091c57600080fd5b506103ce61092b366004613f7c565b611ecf565b34801561093c57600080fd5b5061047b600d5481565b34801561095257600080fd5b5061047b60105481565b34801561096857600080fd5b506103e5610977366004613cc0565b611f54565b34801561098857600080fd5b5061047b61202f565b34801561099d57600080fd5b506103e561203a565b3480156109b257600080fd5b506105bd6109c1366004613dc1565b612047565b3480156109d257600080fd5b506103ce6109e1366004613f97565b61215e565b3480156109f257600080fd5b506103e56123d1565b348015610a0757600080fd5b506103a6610a16366004613fdd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a5057600080fd5b506103ce610a5f366004613dc1565b6123e0565b348015610a7057600080fd5b506108b5610a7f366004613cc0565b612481565b60006001600160e01b0319821663780e9d6360e01b1480610aa95750610aa9826124b4565b92915050565b600c5460085410610b1a5760405162461bcd60e51b815260206004820152602a60248201527f666e3a2073616c6549734f70656e28292c206d73673a20636f6c6c656374696f6044820152691b881cdbdb19081bdd5d60b21b60648201526084015b60405180910390fd5b600a54600160a81b900460ff1615610b805760405162461bcd60e51b8152602060048201526024808201527f666e3a2073616c6549734f70656e28292c206d73673a2073616c65206e6f742060448201526337b832b760e11b6064820152608401610b11565b6000610b8b60085490565b9050600c54845182610b9d919061401d565b1115610bfb5760405162461bcd60e51b815260206004820152602760248201527f666e3a206d696e7428292c206d73673a206d6178206c696d697420746f74616c60448201526620746f6b656e7360c81b6064820152608401610b11565b6000610c0785516112b8565b905080341015610c645760405162461bcd60e51b815260206004820152602260248201527f666e3a206d696e7428292c206d73673a2076616c75652062656c6f7720707269604482015261636560f01b6064820152608401610b11565b600385511115610cc25760405162461bcd60e51b8152602060048201526024808201527f666e3a206d696e7428292c206d73673a206d617820746f6b656e7320706572206044820152631b5a5b9d60e21b6064820152608401610b11565b336003610cce826113af565b5110610d2b5760405162461bcd60e51b815260206004820152602660248201527f666e3a206d696e7428292c206d73673a206d617820746f6b656e7320706572206044820152651dd85b1b195d60d21b6064820152608401610b11565b6000610d39828888886115ae565b90506001600160a01b03811673901ca75adad5bba7355bda45e044a6b42f8fc3c514610db75760405162461bcd60e51b815260206004820152602760248201527f666e3a206d696e7428292c206d73673a206e6f7420617574686f72697a6564206044820152661d1bc81b5a5b9d60ca1b6064820152608401610b11565b610dc2601e87614035565b421015610e115760405162461bcd60e51b815260206004820152601c60248201527f666e3a206d696e7428292c206d73673a206f7574206f662074696d65000000006044820152606401610b11565b8260005b8851811015610fbf5760006001600160a01b0316610e618a8381518110610e3e57610e3e61404c565b60200260200101516000908152600260205260409020546001600160a01b031690565b6001600160a01b0316148015610e9057506000898281518110610e8657610e8661404c565b6020026020010151115b8015610eb75750600c54898281518110610eac57610eac61404c565b602002602001015111155b610f115760405162461bcd60e51b815260206004820152602560248201527f666e3a206d696e7428292c206d73673a20746f6b656e20616c7265616479206d6044820152641a5b9d195960da1b6064820152608401610b11565b610f34848a8381518110610f2757610f2761404c565b6020026020010151612504565b610f3c6116b2565b15610fad576000610f636064610f5d600a610f5760016112b8565b9061251c565b90612528565b9050610f6f8382612534565b92506000610f7b612540565b6000818152600260205260409020549091506001600160a01b0316610fa0818461275a565b610fa982612873565b5050505b80610fb781614062565b915050610e15565b50610fde73901ca75adad5bba7355bda45e044a6b42f8fc3c58261275a565b83341115610ff957610ff933610ff43487612534565b61275a565b5050505050505050565b6060600080546110129061407d565b80601f016020809104026020016040519081016040528092919081815260200182805461103e9061407d565b801561108b5780601f106110605761010080835404028352916020019161108b565b820191906000526020600020905b81548152906001019060200180831161106e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661110e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b11565b506000908152600460205260409020546001600160a01b031690565b600061113582611537565b9050806001600160a01b0316836001600160a01b031614156111a35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b11565b336001600160a01b03821614806111bf57506111bf8133610a16565b6112315760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b11565b61123b838361294f565b505050565b600a546001600160a01b036101009091041633146112705760405162461bcd60e51b8152600401610b11906140b2565b80516112839060139060208401906139dd565b5050565b61129133826129bd565b6112ad5760405162461bcd60e51b8152600401610b11906140e7565b61123b838383612ab0565b600b54600090610aa9908361251c565b60008073901ca75adad5bba7355bda45e044a6b42f8fc3c56112f2612710610f5d866103e861251c565b915091505b9250929050565b6000611309836115ef565b821061136b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b11565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61123b83838360405180602001604052806000815250611de2565b606060006113bc836115ef565b905060008167ffffffffffffffff8111156113d9576113d9613aa9565b604051908082528060200260200182016040528015611402578160200160208202803683370190505b50905060005b828110156114495761141a85826112fe565b82828151811061142c5761142c61404c565b60209081029190910101528061144181614062565b915050611408565b509392505050565b600061145c60085490565b82106114bf5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b11565b600882815481106114d2576114d261404c565b90600052602060002001549050919050565b600a546001600160a01b036101009091041633146115145760405162461bcd60e51b8152600401610b11906140b2565b80516112839060129060208401906139dd565b6000611532600e5490565b905090565b6000818152600260205260408120546001600160a01b031680610aa95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b11565b60006115e48585856040516020016115c893929190614138565b6040516020818303038152906040528051906020012083612c5b565b90505b949350505050565b60006001600160a01b03821661165a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b11565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b036101009091041633146116a65760405162461bcd60e51b8152600401610b11906140b2565b6116b06000612c77565b565b600a54600090600160b81b900460ff16156116cd5750600090565b6000806116d861202f565b60115491109150151560006103796116ef60085490565b101590508280156116fd5750815b80156117065750805b935050505090565b6013805461171b9061407d565b80601f01602080910402602001604051908101604052809291908181526020018280546117479061407d565b80156117945780601f1061176957610100808354040283529160200191611794565b820191906000526020600020905b81548152906001019060200180831161177757829003601f168201915b505050505081565b600a546001600160a01b036101009091041633146117cc5760405162461bcd60e51b8152600401610b11906140b2565b600a54600160b81b900460ff16156117f65760405162461bcd60e51b8152600401610b119061416c565b610379606f611803611527565b61180d9190614035565b10156118815760405162461bcd60e51b815260206004820152603f60248201527f666e3a206d696e7450696f6e656572546f6b656e28292c206d73673a20636f7260448201527f6520636f6c6c656374696f6e206d696e742071756f7461206e6f74206d6574006064820152608401610b11565b600361188c836113af565b51106118f65760405162461bcd60e51b815260206004820152603360248201527f666e3a206d696e7450696f6e656572546f6b656e28292c206d73673a2077616c6044820152721b195d081bdddb9cc81b585e08185b5bdd5b9d606a1b6064820152608401610b11565b606f61190061202f565b106119735760405162461bcd60e51b815260206004820152603b60248201527f666e3a206d696e7450696f6e656572546f6b656e28292c206d73673a206d696e60448201527f7420776f756c642065786365656420746f74616c20737570706c7900000000006064820152608401610b11565b61197d8282612cd1565b61198681612ceb565b60405181907f07883703ed0e86588a40d76551c92f8a4b329e3bf19765e0e6749473c1a8466590600090a25050565b601581815481106119c557600080fd5b6000918252602090912060029091020180546001909101549091506001600160a01b031682565b6060600180546110129061407d565b6001600160a01b038216331415611a545760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b11565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03610100909104163314611af05760405162461bcd60e51b8152600401610b11906140b2565b600a54600160a81b900460ff16611b5b5760405162461bcd60e51b815260206004820152602960248201527f666e3a206d696e74556e736f6c64546f6b656e7328292c206d73673a2073616c604482015268329034b99037b832b760b91b6064820152608401610b11565b60005b8151811015611283576000828281518110611b7b57611b7b61404c565b602002602001015111611bed5760405162461bcd60e51b815260206004820152603460248201527f666e3a206d696e74556e736f6c64546f6b656e7328292c206d73673a2063616e6044820152733737ba1036b4b73a103a34329018103a37b5b2b760611b6064820152608401610b11565b60006001600160a01b0316611c0d838381518110610e3e57610e3e61404c565b6001600160a01b031614611c7d5760405162461bcd60e51b815260206004820152603160248201527f666e3a206d696e74556e736f6c64546f6b656e7328292c206d73673a20746f6b604482015270195b88185b1c9958591e481b5a5b9d1959607a1b6064820152608401610b11565b600a54611ca49061010090046001600160a01b0316838381518110610f2757610f2761404c565b80611cae81614062565b915050611b5e565b6000806000600a60179054906101000a900460ff1615611ce85760405162461bcd60e51b8152600401610b119061416c565b6000611cf385612db5565b9050606f811115611d655760405162461bcd60e51b815260206004820152603660248201527f666e3a2067657450696f6e65657253746174734279546f6b656e496428292c206044820152751b5cd9ce881c1a5bdb99595c881b9bdd08199bdd5b9960521b6064820152608401610b11565b60148181548110611d7857611d7861404c565b90600052602060002090600302016000015460148281548110611d9d57611d9d61404c565b90600052602060002090600302016001015460148381548110611dc257611dc261404c565b906000526020600020906003020160020154935093509350509193909250565b611dec33836129bd565b611e085760405162461bcd60e51b8152600401610b11906140e7565b611e1484848484612e8a565b50505050565b600a546001600160a01b03610100909104163314611e4a5760405162461bcd60e51b8152600401610b11906140b2565b600a54600160b81b900460ff16611e735760405162461bcd60e51b8152600401610b11906141bd565b600a805460ff60b01b1916600160b01b8315158102919091179182905560405160ff9190920416151581527f19efbb3e5671f6c22c46341cb8abf85c08b4fcffb2cba97f3b9b064f7d5d8d45906020015b60405180910390a150565b600a546001600160a01b03610100909104163314611eff5760405162461bcd60e51b8152600401610b11906140b2565b600a805460ff60a81b1916600160a81b8315158102919091179182905560405160ff9190920416151581527f9422424b175dda897495a07b091ef74a3ef715cf6d866fc972954c1c7f45930490602001611ec4565b6000818152600260205260409020546060906001600160a01b0316611fd35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b11565b6000611fdd612ebd565b90506000815111611ffd5760405180602001604052806000815250612028565b8061200784612ecc565b60405160200161201892919061420e565b6040516020818303038152906040525b9392505050565b6000611532600f5490565b6012805461171b9061407d565b600a54606090600160b81b900460ff166120735760405162461bcd60e51b8152600401610b11906141bd565b60155460009067ffffffffffffffff81111561209157612091613aa9565b6040519080825280602002602001820160405280156120ba578160200160208202803683370190505b50905060005b601554811015612155576000601582815481106120df576120df61404c565b60009182526020918290206040805180820190915260029092020180548252600101546001600160a01b03908116928201839052909250861614156121425780600001518383815181106121355761213561404c565b6020026020010181815250505b508061214d81614062565b9150506120c0565b5090505b919050565b600a54600160b81b900460ff166121875760405162461bcd60e51b8152600401610b11906141bd565b600a54600160b01b900460ff166121f55760405162461bcd60e51b815260206004820152602c60248201527f666e3a2069734275726e4f70656e28292c206d73673a206275726e206e6f742060448201526b1c1bdcdcda589b19481e595d60a21b6064820152608401610b11565b6121ff33846129bd565b6122715760405162461bcd60e51b815260206004820152603d60248201527f666e3a206275726e50696f6e656572546f6b656e28292c206d73673a2063616c60448201527f6c6572206973206e6f74206f776e6572206e6f7220617070726f7665640000006064820152608401610b11565b6040805160018082528183019092526000916020808301908036833701905050905083816000815181106122a7576122a761404c565b60209081029190910101523360006122c1828487876115ae565b90506001600160a01b03811673901ca75adad5bba7355bda45e044a6b42f8fc3c51461234b5760405162461bcd60e51b815260206004820152603360248201527f666e3a206275726e50696f6e656572546f6b656e28292c206d73673a206e6f746044820152721030baba3437b934bd32b2103a3790313ab93760691b6064820152608401610b11565b612356601e86614035565b4210156123b65760405162461bcd60e51b815260206004820152602860248201527f666e3a206275726e50696f6e656572546f6b656e28292c206d73673a206f7574604482015267206f662074696d6560c01b6064820152608401610b11565b6123bf86612fca565b6123c98287613075565b505050505050565b6060601380546110129061407d565b600a546001600160a01b036101009091041633146124105760405162461bcd60e51b8152600401610b11906140b2565b6001600160a01b0381166124755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b11565b61247e81612c77565b50565b6014818154811061249157600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b60006001600160e01b031982166380ac58cd60e01b14806124e557506001600160e01b03198216635b5e139f60e01b145b80610aa957506301ffc9a760e01b6001600160e01b0319831614610aa9565b612512600e80546001019055565b6119868282612cd1565b6000612028828461423d565b60006120288284614272565b60006120288284614035565b6014546000906125c65760405162461bcd60e51b815260206004820152604560248201527f666e3a206765744e65787450696f6e656572546f6b656e4964546f417761726460448201527f28292c206d73673a206e6f2050696f6e65657220746f6b656e73206275726e6560648201526419081e595d60da1b608482015260a401610b11565b6000805b6014548110156127545760008082116125f1576014546125ec90600190614035565b6125fc565b6125fc600183614035565b90506000601482815481106126135761261361404c565b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505090506000601484815481106126615761266161404c565b600091825260208083206040805160608101825260039094029091018054845260018101548484018190526002909101548483015291860151908601519294509290916126af908490614035565b90506000846020015185604001516126c79190614035565b9050801515600084861180156126de575060648414155b9050600084841480156126f15750606484145b90506000878714801561270257508b155b905083801561271d575082806127155750815b8061271d5750805b1561273657505095519950612754975050505050505050565b5050505050505050505050808061274c90614062565b9150506125ca565b50919050565b804710156127aa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b11565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146127f7576040519150601f19603f3d011682016040523d82523d6000602084013e6127fc565b606091505b505090508061123b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b11565b600a54600160b81b900460ff161561289d5760405162461bcd60e51b8152600401610b119061416c565b60006128a882612db5565b90506001601482815481106128bf576128bf61404c565b906000526020600020906003020160010160008282546128df919061401d565b925050819055506001601060008282546128f9919061401d565b925050819055506001601160008282546129139190614035565b90915550506040518281527f3ac0594a85a20354f9dc74f33728416d19ce00d04a406c108cc2dcf2cecea1349060200160405180910390a15050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061298482611537565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612a365760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b11565b6000612a4183611537565b9050806001600160a01b0316846001600160a01b03161480612a7c5750836001600160a01b0316612a7184611095565b6001600160a01b0316145b806115e757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166115e7565b826001600160a01b0316612ac382611537565b6001600160a01b031614612b2b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b11565b6001600160a01b038216612b8d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b11565b612b988383836131c6565b612ba360008261294f565b6001600160a01b0383166000908152600360205260408120805460019290612bcc908490614035565b90915550506001600160a01b0382166000908152600360205260408120805460019290612bfa90849061401d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806000612c6a858561327e565b91509150611449816132eb565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6112838282604051806020016040528060008152506134a6565b6040805160608101825282815260006020820181815260649383018481526014805460018101825590845284517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec60039092029182015591517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed830155517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ee9091015560118054929392909190612da390849061401d565b9091555050600f805460010190555050565b600080612dc4606f600161401d565b905060005b601454811015612e19578360148281548110612de757612de761404c565b9060005260206000209060030201600001541415612e0757809150612e19565b80612e1181614062565b915050612dc9565b50606f811115610aa95760405162461bcd60e51b815260206004820152603660248201527f666e3a2067657450696f6e656572496e6465784279546f6b656e496428292c206044820152751b5cd9ce881c1a5bdb99595c881b9bdd08199bdd5b9960521b6064820152608401610b11565b612e95848484612ab0565b612ea1848484846134d9565b611e145760405162461bcd60e51b8152600401610b1190614286565b6060601280546110129061407d565b606081612ef05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f1a5780612f0481614062565b9150612f139050600a83614272565b9150612ef4565b60008167ffffffffffffffff811115612f3557612f35613aa9565b6040519080825280601f01601f191660200182016040528015612f5f576020820181803683370190505b5090505b84156115e757612f74600183614035565b9150612f81600a866142d8565b612f8c90603061401d565b60f81b818381518110612fa157612fa161404c565b60200101906001600160f81b031916908160001a905350612fc3600a86614272565b9450612f63565b6000612fd582611537565b90506000612fe48282856131c6565b612fef60008461294f565b6001600160a01b0382166000908152600360205260408120805460019290613018908490614035565b909155505060008381526002602052604080822080546001600160a01b03191690555184916001600160a01b0384811692908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008061308184612047565b905060005b81518110156130cb578181815181106130a1576130a161404c565b60200260200101518414156130b957600192506130cb565b806130c381614062565b915050613086565b50811561312f5760405162461bcd60e51b815260206004820152602c60248201527f666e3a206164644275726e657228292c206d73673a20746f6b656e496420616c60448201526b1c9958591e48189d5c9b995960a21b6064820152608401610b11565b5050604080518082019091529081526001600160a01b03918216602082019081526015805460018101825560009190915291517f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475600290930292830155517f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47690910180546001600160a01b03191691909216179055565b6001600160a01b0383166132215761321c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613244565b816001600160a01b0316836001600160a01b0316146132445761324483826135e3565b6001600160a01b03821661325b5761123b81613680565b826001600160a01b0316826001600160a01b03161461123b5761123b828261372f565b6000808251604114156132b55760208301516040840151606085015160001a6132a987828585613773565b945094505050506112f7565b8251604014156132df57602083015160408401516132d4868383613860565b9350935050506112f7565b506000905060026112f7565b60008160048111156132ff576132ff6142ec565b14156133085750565b600181600481111561331c5761331c6142ec565b141561336a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b11565b600281600481111561337e5761337e6142ec565b14156133cc5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b11565b60038160048111156133e0576133e06142ec565b14156134395760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b11565b600481600481111561344d5761344d6142ec565b141561247e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b11565b6134b0838361388f565b6134bd60008484846134d9565b61123b5760405162461bcd60e51b8152600401610b1190614286565b60006001600160a01b0384163b156135db57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061351d903390899088908890600401614302565b602060405180830381600087803b15801561353757600080fd5b505af1925050508015613567575060408051601f3d908101601f191682019092526135649181019061433f565b60015b6135c1573d808015613595576040519150601f19603f3d011682016040523d82523d6000602084013e61359a565b606091505b5080516135b95760405162461bcd60e51b8152600401610b1190614286565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115e7565b5060016115e7565b600060016135f0846115ef565b6135fa9190614035565b60008381526007602052604090205490915080821461364d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061369290600190614035565b600083815260096020526040812054600880549394509092849081106136ba576136ba61404c565b9060005260206000200154905080600883815481106136db576136db61404c565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806137135761371361435c565b6001900381819060005260206000200160009055905550505050565b600061373a836115ef565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156137aa5750600090506003613857565b8460ff16601b141580156137c257508460ff16601c14155b156137d35750600090506004613857565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613827573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661385057600060019250925050613857565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161388187828885613773565b935093505050935093915050565b6001600160a01b0382166138e55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b11565b6000818152600260205260409020546001600160a01b03161561394a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b11565b613956600083836131c6565b6001600160a01b038216600090815260036020526040812080546001929061397f90849061401d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546139e99061407d565b90600052602060002090601f016020900481019282613a0b5760008555613a51565b82601f10613a2457805160ff1916838001178555613a51565b82800160010185558215613a51579182015b82811115613a51578251825591602001919060010190613a36565b50613a5d929150613a61565b5090565b5b80821115613a5d5760008155600101613a62565b6001600160e01b03198116811461247e57600080fd5b600060208284031215613a9e57600080fd5b813561202881613a76565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613ae857613ae8613aa9565b604052919050565b600082601f830112613b0157600080fd5b8135602067ffffffffffffffff821115613b1d57613b1d613aa9565b8160051b613b2c828201613abf565b9283528481018201928281019087851115613b4657600080fd5b83870192505b84831015613b6557823582529183019190830190613b4c565b979650505050505050565b600067ffffffffffffffff831115613b8a57613b8a613aa9565b613b9d601f8401601f1916602001613abf565b9050828152838383011115613bb157600080fd5b828260208301376000602084830101529392505050565b600082601f830112613bd957600080fd5b61202883833560208501613b70565b600080600060608486031215613bfd57600080fd5b833567ffffffffffffffff80821115613c1557600080fd5b613c2187838801613af0565b9450602086013593506040860135915080821115613c3e57600080fd5b50613c4b86828701613bc8565b9150509250925092565b60005b83811015613c70578181015183820152602001613c58565b83811115611e145750506000910152565b60008151808452613c99816020860160208601613c55565b601f01601f19169290920160200192915050565b6020815260006120286020830184613c81565b600060208284031215613cd257600080fd5b5035919050565b80356001600160a01b038116811461215957600080fd5b60008060408385031215613d0357600080fd5b613d0c83613cd9565b946020939093013593505050565b600060208284031215613d2c57600080fd5b813567ffffffffffffffff811115613d4357600080fd5b8201601f81018413613d5457600080fd5b6115e784823560208401613b70565b600080600060608486031215613d7857600080fd5b613d8184613cd9565b9250613d8f60208501613cd9565b9150604084013590509250925092565b60008060408385031215613db257600080fd5b50508035926020909101359150565b600060208284031215613dd357600080fd5b61202882613cd9565b600081518084526020808501945080840160005b83811015613e0c57815187529582019590820190600101613df0565b509495945050505050565b6020815260006120286020830184613ddc565b60008060008060808587031215613e4057600080fd5b613e4985613cd9565b9350602085013567ffffffffffffffff80821115613e6657600080fd5b613e7288838901613af0565b9450604087013593506060870135915080821115613e8f57600080fd5b50613e9c87828801613bc8565b91505092959194509250565b8035801515811461215957600080fd5b60008060408385031215613ecb57600080fd5b613ed483613cd9565b9150613ee260208401613ea8565b90509250929050565b600060208284031215613efd57600080fd5b813567ffffffffffffffff811115613f1457600080fd5b6115e784828501613af0565b60008060008060808587031215613f3657600080fd5b613f3f85613cd9565b9350613f4d60208601613cd9565b925060408501359150606085013567ffffffffffffffff811115613f7057600080fd5b613e9c87828801613bc8565b600060208284031215613f8e57600080fd5b61202882613ea8565b600080600060608486031215613fac57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613fd157600080fd5b613c4b86828701613bc8565b60008060408385031215613ff057600080fd5b613ff983613cd9565b9150613ee260208401613cd9565b634e487b7160e01b600052601160045260246000fd5b6000821982111561403057614030614007565b500190565b60008282101561404757614047614007565b500390565b634e487b7160e01b600052603260045260246000fd5b600060001982141561407657614076614007565b5060010190565b600181811c9082168061409157607f821691505b6020821081141561275457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6001600160a01b038416815260606020820181905260009061415c90830185613ddc565b9050826040830152949350505050565b60208082526031908201527f666e3a2069734e6f7447656e6573697328292c206d73673a2072657175697265604082015270399021b7b9329031b7b63632b1ba34b7b760791b606082015260800190565b60208082526031908201527f666e3a20697347656e6573697328292c206d73673a207265717569726573204760408201527032b732b9b4b99031b7b63632b1ba34b7b760791b606082015260800190565b60008351614220818460208801613c55565b835190830190614234818360208801613c55565b01949350505050565b600081600019048311821515161561425757614257614007565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826142815761428161425c565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826142e7576142e761425c565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061433590830184613c81565b9695505050505050565b60006020828403121561435157600080fd5b815161202881613a76565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220732fcec455c96aed02b45bd6e140e39241a8d5ede47c9ca549fba3b62f6d3ea664736f6c634300080900330000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f746865756e7665696c6572732e696f2f6d657461646174612f706f6c79676f6e2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f746865756e7665696c6572732e696f2f6d657461646174612f706f6c79676f6e2f636f6e7472616374000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f746865756e7665696c6572732e696f2f6d657461646174612f706f6c79676f6e2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f746865756e7665696c6572732e696f2f6d657461646174612f706f6c79676f6e2f636f6e7472616374000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _isGenesis (bool): True
Arg [1] : _baseTokenURI (string): https://theunveilers.io/metadata/polygon/
Arg [2] : _baseContractURI (string): https://theunveilers.io/metadata/polygon/contract

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [4] : 68747470733a2f2f746865756e7665696c6572732e696f2f6d65746164617461
Arg [5] : 2f706f6c79676f6e2f0000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000031
Arg [7] : 68747470733a2f2f746865756e7665696c6572732e696f2f6d65746164617461
Arg [8] : 2f706f6c79676f6e2f636f6e7472616374000000000000000000000000000000


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