ETH Price: $3,163.21 (-8.86%)
Gas: 3 Gwei

Token

ElysianFields (PONIES)
 

Overview

Max Total Supply

567 PONIES

Holders

348

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 PONIES
0x1df6a2a5c1f90a23aa52f65ee5bdc82a195c188a
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Forgotten Runes is the robust decentralized franchise. ElysianFields media ecosystem is comprised of animation, physical comic books, and a suite of video games.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ElysianFields

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : ElysianFields.sol
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@,,@@@@@,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@,,     ,,,,     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@   (@@       ,,,,           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@            ,,,,,,           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@((((.....,,,,,,,,...        (((@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@,,,,,,,,,,,,,,,,           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@##,,,,,,.....,,,,,,,,,,,           ((((@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@,,,,,,,,     ,,,,,,,,,,,,,,,           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@,,,,,,,,...  ,,,,,,,,,,,,,,,           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@/////****,,,,,,,,,,,,,,  ,,,,,,,,           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@////   ////,,,,,,,,,,,,    ,,,,,,,,,,,                  @@@@@@@@@@@@@@@@@               @@@@@@@@@@@       @@@@@@@@@@@@
// @@////// //////,,,,,...   ,,,,,,,,,,,,,,           ,,,,,,                           ,,,,,,     ((               @@@@@@@@
// @@@@////////////////@@@@  ,,,,,,,,,,,,,,,,       ,,,,,,,,,,,,,,,,,,,,,         ,,,,,,,,,,,,,,,,   @@@@@           @@@@@@
// @@@@%%%///////////%%@@@@  ,,,,,,,,,,,,,,,,......,,,,,,,,,,,,,,,,,,,,,,...  ....,,,,,,,,,,,,,,,,..((((@@           (((@@@
// @@@@@@@@@@@@@@@@@@@@@@@@  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,    @@@@@           @@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,    @@@@@           @@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,    @@@@@           @@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,    @@@@@           @@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,    @@           @@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  @@@@@@         @@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  ,,,,,,,,,,,,,,,,,,,,,,,,,  @@@@@@         @@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,   ,,,,,,,,,,,,,,,,,,,   @@@@@@@@         @@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     ,,,,,,,,,,,,,    ,,,,,,,,,,,,,     ,,,,,,,,,,,,,,,,,   @@@@@@@@@@@           @@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@       ,,,,,,,,,  @@@@             @@@@@,,,,,,,,,,,,,,,       @@@@@@@@@@@      @@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     @@,,,,,,,,,  @@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,           @@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     @@####,,,,,..@@@@@@@@@@@@@@@@@@@@@@####,,,,,,,,,,,           @@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     @@@@@@,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,           @@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     ((@@@@@@##,,,((@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,....@@(((((      @@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     @@@@@@@@@@,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,    @@@@@@@      @@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(   @@@@@@@@@@@@@,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#,,,@@@@@@@@@      @@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      @@@@@@@@@@@,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,  @@@@@@         @@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@//,,,,    @@@@@@@/////,,  @@@@@@@@@@@@@@@@@@@@//////,,,@@@@@@//,,,  @@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@//////,,@@@@@@@@@///////@@@@@@@@@@@@@@@@@@@@@@/////////@@@@@@/////,,@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//
// Forgotten Runes Elysian Fields
// Website: https://forgottenrunes.com
// Twitter: https://twitter.com/forgottenrunes
//
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol';

contract ElysianFields is ERC721Enumerable, Ownable, ReentrancyGuard, EIP712 {
    using Strings for uint256;
    uint256 public constant MAX_SUPPLY = 567;

    string public constant R =
        'Put thy Rune on the Gate, and enter the Elysian Fields.';

    uint256 public startBlock =
        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
    string public METADATA_PROVENANCE_HASH = '';
    address public codeSigner;

    string public _baseTokenURI;
    uint256 public nextId = 0;
    bytes32 public allowlistMerkleRoot;

    mapping(bytes32 => bool) public usedCodes;
    mapping(address => bool) public allowlistMinted;
    mapping(uint256 => uint256) public genes;

    constructor(string memory baseURI)
        EIP712('ElysianFields', '1')
        ERC721('ElysianFields', 'PONIES')
    {
        setBaseURI(baseURI);
    }

    function mintStarted() public view returns (bool) {
        return block.number >= startBlock;
    }

    function codeSummon(bytes memory signature, bytes32 code)
        public
        nonReentrant
    {
        require(mintStarted(), 'Mint not started');

        // construct an expected hash, given the parameters
        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(
                    keccak256('CodeSummon(address minter,bytes32 code)'),
                    msg.sender,
                    code
                )
            )
        );
        // now recover the signer from the provided signature
        address signer = ECDSA.recover(digest, signature);

        // make sure the recover extracted a signer, but beware, because this
        // can return non-zero for some invalid cases (apparently?)
        require(signer != address(0), 'ECDSA: invalid signature');
        require(signer == codeSigner, 'Signature not by signer');

        // verify this code hasn't already been used
        require(usedCodes[code] == false, 'Code already used');
        usedCodes[code] = true;

        _mintPony();
    }

    function allowlistSummon(bytes32 _leaf, bytes32[] calldata _merkleProof)
        public
        nonReentrant
    {
        require(mintStarted(), 'Mint not started');

        // verify didn't already mint
        require(allowlistMinted[msg.sender] == false, 'Dont be greedy');
        allowlistMinted[msg.sender] = true;

        // verify allowlist
        bytes32 node = keccak256(abi.encodePacked(msg.sender));
        require(node == _leaf, 'Leaf not matching the node');
        require(
            MerkleProof.verify(_merkleProof, allowlistMerkleRoot, _leaf),
            'Invalid proof.'
        );

        _mintPony();
    }

    function _mintPony() private {
        require(nextId < MAX_SUPPLY, 'All Ponies have been summoned');
        _safeMint(msg.sender, nextId);
        genes[nextId] = pseudorandom(nextId);
        nextId += 1;
    }

    function allowlisted(
        address who,
        bytes32 _leaf,
        bytes32[] calldata _merkleProof
    ) external view returns (bool) {
        bytes32 node = keccak256(abi.encodePacked(who));
        if (node != _leaf) return false;
        if (!MerkleProof.verify(_merkleProof, allowlistMerkleRoot, _leaf))
            return false;
        return true;
    }

    // You wouldn't let a pony near an open flame, would you?
    function burn(uint256 tokenId) public virtual {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            'ERC721Burnable: caller is not owner nor approved'
        );
        _burn(tokenId);
    }

    function remainingSupply() public view returns (uint256) {
        return MAX_SUPPLY - nextId;
    }

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

        return string(abi.encodePacked(_baseTokenURI, tokenId.toString()));
    }

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

    // Anon, have you considered,
    // front-running,
    // your own life?
    function pseudorandom(uint256 seed) internal view returns (uint256) {
        return
            uint256(
                keccak256(
                    abi.encodePacked(
                        tx.origin,
                        blockhash(block.number - 1),
                        block.timestamp,
                        seed
                    )
                )
            );
    }

    /*
     * Only the owner can do these things
     */

    function setProvenanceHash(string memory _hash) public onlyOwner {
        METADATA_PROVENANCE_HASH = _hash;
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    function setAllowlistMerkleRoot(bytes32 newMerkleRoot) public onlyOwner {
        allowlistMerkleRoot = newMerkleRoot;
    }

    function setMintStartBlock(uint256 _newMintStartBlock) public onlyOwner {
        startBlock = _newMintStartBlock;
    }

    function setCodeSigner(address newCodeSigner) public onlyOwner {
        codeSigner = newCodeSigner;
    }

    function domainSeparator() external view returns (bytes32) {
        return _domainSeparatorV4();
    }

    function withdrawAll() public payable onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }

    function forwardERC20s(IERC20 _token, uint256 _amount) public onlyOwner {
        require(address(msg.sender) != address(0));
        _token.transfer(msg.sender, _amount);
    }

    function renounceOwnership() public override onlyOwner {}

    function uploadImage(bytes calldata s) external onlyOwner {}

    function uploadAttributes(bytes calldata s) external onlyOwner {}
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./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 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 5 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

File 6 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 7 of 18 : 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 {
    /**
     * @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.
     *
     * 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]
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // 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 recover(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 recover(hash, r, vs);
        } else {
            revert("ECDSA: invalid signature length");
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} 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.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return recover(hash, v, r, s);
    }

    /**
     * @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) {
        // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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.
        require(
            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "ECDSA: invalid signature 's' value"
        );
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @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 18 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 9 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(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 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"METADATA_PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"R","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistSummon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bytes32","name":"_leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"codeSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"code","type":"bytes32"}],"name":"codeSummon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"forwardERC20s","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genes","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCodeSigner","type":"address"}],"name":"setCodeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintStartBlock","type":"uint256"}],"name":"setMintStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"s","type":"bytes"}],"name":"uploadAttributes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"s","type":"bytes"}],"name":"uploadImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedCodes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

600019600c55610140604081905260006101208190526200002391600d91620002a6565b5060006010553480156200003657600080fd5b50604051620038753803806200387583398101604081905262000059916200034c565b6040518060400160405280600d81526020016c456c797369616e4669656c647360981b815250604051806040016040528060018152602001603160f81b8152506040518060400160405280600d81526020016c456c797369616e4669656c647360981b81525060405180604001604052806006815260200165504f4e49455360d01b8152508160009080519060200190620000f6929190620002a6565b5080516200010c906001906020840190620002a6565b50505062000129620001236200019d60201b60201c565b620001a1565b6001600b55815160208084019190912082519183019190912060c082905260e08190524660a0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200017e818484620001f3565b6080526101005250620001969250839150506200022f565b50620004cf565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008383834630604051602001620002109594939291906200041b565b6040516020818303038152906040528051906020012090509392505050565b620002396200019d565b6001600160a01b03166200024c62000297565b6001600160a01b0316146200027e5760405162461bcd60e51b8152600401620002759062000447565b60405180910390fd5b80516200029390600f906020840190620002a6565b5050565b600a546001600160a01b031690565b828054620002b4906200047c565b90600052602060002090601f016020900481019282620002d8576000855562000323565b82601f10620002f357805160ff191683800117855562000323565b8280016001018555821562000323579182015b828111156200032357825182559160200191906001019062000306565b506200033192915062000335565b5090565b5b8082111562000331576000815560010162000336565b600060208083850312156200035f578182fd5b82516001600160401b038082111562000376578384fd5b818501915085601f8301126200038a578384fd5b8151818111156200039f576200039f620004b9565b604051601f8201601f1916810185018381118282101715620003c557620003c5620004b9565b6040528181528382018501881015620003dc578586fd5b8592505b81831015620003ff5783830185015181840186015291840191620003e0565b818311156200041057858583830101525b979650505050505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6002810460018216806200049157607f821691505b60208210811415620004b357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a05160c05160e05161010051613361620005146000396000611b9001526000611bd201526000611bb101526000611b3e01526000611b6701526133616000f3fe60806040526004361061027d5760003560e01c8063715018a61161014f578063ae5e424f116100c1578063e985e9c51161007a578063e985e9c5146106ef578063f0c9dc601461070f578063f2fde38b14610724578063f698da2514610744578063f6a5ec3e14610759578063f95df414146107795761027d565b8063ae5e424f14610645578063b88d4fde14610665578063c87b56dd14610685578063cfc86f7b146106a5578063da0239a6146106ba578063e81ed044146106cf5761027d565b8063904077a011610113578063904077a01461059b57806395d89b41146105bb5780639727151a146105d0578063a22cb465146105f0578063a9722cf314610610578063ab1aa1c5146106255761027d565b8063715018a614610554578063732f240114610569578063853828b61461057e57806389009e38146103495780638da5cb5b146105865761027d565b806332cb6b0c116101f35780634a2516cc116101ac5780634a2516cc1461049f5780634f6ccce7146104bf57806355f804b3146104df57806361b8ce8c146104ff5780636352211e1461051457806370a08231146105345761027d565b806332cb6b0c14610400578063338c397b1461041557806342842e0e1461043557806342966c681461045557806348cd4cb1146104755780634980e1be1461048a5761027d565b806312e2cfca1161024557806312e2cfca1461034957806318160ddd14610369578063234da1091461038b57806323b872dd146103ab578063293108e0146103cb5780632f745c59146103e05761027d565b806301ffc9a71461028257806306fdde03146102b8578063081812fc146102da578063095ea7b3146103075780631096952314610329575b600080fd5b34801561028e57600080fd5b506102a261029d36600461265c565b610799565b6040516102af9190612944565b60405180910390f35b3480156102c457600080fd5b506102cd6107c6565b6040516102af91906129c1565b3480156102e657600080fd5b506102fa6102f53660046125fa565b610859565b6040516102af91906128e4565b34801561031357600080fd5b506103276103223660046125b3565b6108a5565b005b34801561033557600080fd5b50610327610344366004612744565b61093d565b34801561035557600080fd5b50610327610364366004612694565b610993565b34801561037557600080fd5b5061037e6109d2565b6040516102af919061294f565b34801561039757600080fd5b506102a26103a6366004612559565b6109d8565b3480156103b757600080fd5b506103276103c6366004612482565b610a72565b3480156103d757600080fd5b5061037e610aaa565b3480156103ec57600080fd5b5061037e6103fb3660046125b3565b610ab0565b34801561040c57600080fd5b5061037e610b05565b34801561042157600080fd5b50610327610430366004612701565b610b0b565b34801561044157600080fd5b50610327610450366004612482565b610c6a565b34801561046157600080fd5b506103276104703660046125fa565b610c85565b34801561048157600080fd5b5061037e610cb8565b34801561049657600080fd5b506102cd610cbe565b3480156104ab57600080fd5b506103276104ba366004612612565b610cda565b3480156104cb57600080fd5b5061037e6104da3660046125fa565b610e1e565b3480156104eb57600080fd5b506103276104fa366004612744565b610e79565b34801561050b57600080fd5b5061037e610ecb565b34801561052057600080fd5b506102fa61052f3660046125fa565b610ed1565b34801561054057600080fd5b5061037e61054f36600461242e565b610f06565b34801561056057600080fd5b50610327610f4a565b34801561057557600080fd5b506102fa610f8b565b610327610f9a565b34801561059257600080fd5b506102fa610ffd565b3480156105a757600080fd5b506102a26105b63660046125fa565b61100c565b3480156105c757600080fd5b506102cd611021565b3480156105dc57600080fd5b506103276105eb3660046125b3565b611030565b3480156105fc57600080fd5b5061032761060b36600461252c565b6110f9565b34801561061c57600080fd5b506102a26111c7565b34801561063157600080fd5b5061037e6106403660046125fa565b6111d0565b34801561065157600080fd5b5061032761066036600461242e565b6111e2565b34801561067157600080fd5b506103276106803660046124c2565b611243565b34801561069157600080fd5b506102cd6106a03660046125fa565b611282565b3480156106b157600080fd5b506102cd6112db565b3480156106c657600080fd5b5061037e611369565b3480156106db57600080fd5b506102a26106ea36600461242e565b611380565b3480156106fb57600080fd5b506102a261070a36600461244a565b611395565b34801561071b57600080fd5b506102cd6113c3565b34801561073057600080fd5b5061032761073f36600461242e565b6113d0565b34801561075057600080fd5b5061037e61143e565b34801561076557600080fd5b506103276107743660046125fa565b611448565b34801561078557600080fd5b506103276107943660046125fa565b61148c565b60006001600160e01b0319821663780e9d6360e01b14806107be57506107be826114d0565b90505b919050565b6060600080546107d59061320f565b80601f01602080910402602001604051908101604052809291908181526020018280546108019061320f565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b505050505090505b90565b600061086482611510565b6108895760405162461bcd60e51b815260040161088090612e64565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108b082610ed1565b9050806001600160a01b0316836001600160a01b031614156108e45760405162461bcd60e51b815260040161088090612f7d565b806001600160a01b03166108f661152d565b6001600160a01b0316148061091257506109128161070a61152d565b61092e5760405162461bcd60e51b815260040161088090612c8f565b6109388383611531565b505050565b61094561152d565b6001600160a01b0316610956610ffd565b6001600160a01b03161461097c5760405162461bcd60e51b815260040161088090612eb0565b805161098f90600d9060208401906122b6565b5050565b61099b61152d565b6001600160a01b03166109ac610ffd565b6001600160a01b03161461098f5760405162461bcd60e51b815260040161088090612eb0565b60085490565b600080856040516020016109ec91906127d2565b604051602081830303815290604052805190602001209050848114610a15576000915050610a6a565b610a5684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915088905061159f565b610a64576000915050610a6a565b60019150505b949350505050565b610a83610a7d61152d565b8261165a565b610a9f5760405162461bcd60e51b815260040161088090612fe9565b6109388383836116d7565b60115481565b6000610abb83610f06565b8210610ad95760405162461bcd60e51b815260040161088090612a42565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b61023781565b6002600b541415610b2e5760405162461bcd60e51b81526004016108809061310d565b6002600b55610b3b6111c7565b610b575760405162461bcd60e51b815260040161088090612bd7565b6000610bac7f2e56d6d35adcabadfff373dfd9fa8b2aaafb2d8e5da1d167ba7d5ba3c96436c33384604051602001610b9193929190612958565b60405160208183030381529060405280519060200120611804565b90506000610bba8285611817565b90506001600160a01b038116610be25760405162461bcd60e51b8152600401610880906129d4565b600e546001600160a01b03828116911614610c0f5760405162461bcd60e51b815260040161088090612df8565b60008381526012602052604090205460ff1615610c3e5760405162461bcd60e51b815260040161088090612fbe565b6000838152601260205260409020805460ff19166001179055610c5f61188b565b50506001600b555050565b61093883838360405180602001604052806000815250611243565b610c90610a7d61152d565b610cac5760405162461bcd60e51b815260040161088090613144565b610cb5816118f3565b50565b600c5481565b6040518060600160405280603781526020016132f56037913981565b6002600b541415610cfd5760405162461bcd60e51b81526004016108809061310d565b6002600b55610d0a6111c7565b610d265760405162461bcd60e51b815260040161088090612bd7565b3360009081526013602052604090205460ff1615610d565760405162461bcd60e51b8152600401610880906130bd565b336000818152601360209081526040808320805460ff19166001179055519192610d82929091016127d2565b604051602081830303815290604052805190602001209050838114610db95760405162461bcd60e51b815260040161088090613086565b610dfa83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915087905061159f565b610e165760405162461bcd60e51b8152600401610880906130e5565b610c5f61188b565b6000610e286109d2565b8210610e465760405162461bcd60e51b81526004016108809061303a565b60088281548110610e6757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610e8161152d565b6001600160a01b0316610e92610ffd565b6001600160a01b031614610eb85760405162461bcd60e51b815260040161088090612eb0565b805161098f90600f9060208401906122b6565b60105481565b6000818152600260205260408120546001600160a01b0316806107be5760405162461bcd60e51b815260040161088090612d6d565b60006001600160a01b038216610f2e5760405162461bcd60e51b815260040161088090612d23565b506001600160a01b031660009081526003602052604090205490565b610f5261152d565b6001600160a01b0316610f63610ffd565b6001600160a01b031614610f895760405162461bcd60e51b815260040161088090612eb0565b565b600e546001600160a01b031681565b610fa261152d565b6001600160a01b0316610fb3610ffd565b6001600160a01b031614610fd95760405162461bcd60e51b815260040161088090612eb0565b60405133904780156108fc02916000818181858888f19350505050610f8957600080fd5b600a546001600160a01b031690565b60126020526000908152604090205460ff1681565b6060600180546107d59061320f565b61103861152d565b6001600160a01b0316611049610ffd565b6001600160a01b03161461106f5760405162461bcd60e51b815260040161088090612eb0565b3361107957600080fd5b60405163a9059cbb60e01b81526001600160a01b0383169063a9059cbb906110a7903390859060040161292b565b602060405180830381600087803b1580156110c157600080fd5b505af11580156110d5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093891906125de565b61110161152d565b6001600160a01b0316826001600160a01b031614156111325760405162461bcd60e51b815260040161088090612ba0565b806005600061113f61152d565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561118361152d565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111bb9190612944565b60405180910390a35050565b600c5443101590565b60146020526000908152604090205481565b6111ea61152d565b6001600160a01b03166111fb610ffd565b6001600160a01b0316146112215760405162461bcd60e51b815260040161088090612eb0565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b61125461124e61152d565b8361165a565b6112705760405162461bcd60e51b815260040161088090612fe9565b61127c8484848461199a565b50505050565b606061128d82611510565b6112a95760405162461bcd60e51b815260040161088090612f2e565b600f6112b4836119cd565b6040516020016112c592919061282c565b6040516020818303038152906040529050919050565b600f80546112e89061320f565b80601f01602080910402602001604051908101604052809291908181526020018280546113149061320f565b80156113615780601f1061133657610100808354040283529160200191611361565b820191906000526020600020905b81548152906001019060200180831161134457829003601f168201915b505050505081565b600060105461023761137b91906131cc565b905090565b60136020526000908152604090205460ff1681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600d80546112e89061320f565b6113d861152d565b6001600160a01b03166113e9610ffd565b6001600160a01b03161461140f5760405162461bcd60e51b815260040161088090612eb0565b6001600160a01b0381166114355760405162461bcd60e51b815260040161088090612adf565b610cb581611ae8565b600061137b611b3a565b61145061152d565b6001600160a01b0316611461610ffd565b6001600160a01b0316146114875760405162461bcd60e51b815260040161088090612eb0565b600c55565b61149461152d565b6001600160a01b03166114a5610ffd565b6001600160a01b0316146114cb5760405162461bcd60e51b815260040161088090612eb0565b601155565b60006001600160e01b031982166380ac58cd60e01b148061150157506001600160e01b03198216635b5e139f60e01b145b806107be57506107be82611bfd565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061156682610ed1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b855181101561164f5760008682815181106115cf57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116116105782816040516020016115f392919061281e565b60405160208183030381529060405280519060200120925061163c565b808360405160200161162392919061281e565b6040516020818303038152906040528051906020012092505b50806116478161324a565b9150506115a4565b509092149392505050565b600061166582611510565b6116815760405162461bcd60e51b815260040161088090612c43565b600061168c83610ed1565b9050806001600160a01b0316846001600160a01b031614806116c75750836001600160a01b03166116bc84610859565b6001600160a01b0316145b80610a6a5750610a6a8185611395565b826001600160a01b03166116ea82610ed1565b6001600160a01b0316146117105760405162461bcd60e51b815260040161088090612ee5565b6001600160a01b0382166117365760405162461bcd60e51b815260040161088090612b5c565b611741838383611c16565b61174c600082611531565b6001600160a01b03831660009081526003602052604081208054600192906117759084906131cc565b90915550506001600160a01b03821660009081526003602052604081208054600192906117a39084906131a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006107be611811611b3a565b83611c9f565b600081516041141561184b5760208201516040830151606084015160001a61184186828585611cd2565b9350505050610aff565b815160401415611873576020820151604083015161186a858383611dc8565b92505050610aff565b60405162461bcd60e51b815260040161088090612a0b565b610237601054106118ae5760405162461bcd60e51b815260040161088090612cec565b6118ba33601054611df2565b6118c5601054611e0c565b601080546000908152601460205260408120929092558054600192906118ec9084906131a0565b9091555050565b60006118fe82610ed1565b905061190c81600084611c16565b611917600083611531565b6001600160a01b03811660009081526003602052604081208054600192906119409084906131cc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6119a58484846116d7565b6119b184848484611e4e565b61127c5760405162461bcd60e51b815260040161088090612a8d565b6060816119f257506040805180820190915260018152600360fc1b60208201526107c1565b8160005b8115611a1c5780611a068161324a565b9150611a159050600a836131b8565b91506119f6565b60008167ffffffffffffffff811115611a4557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a6f576020820181803683370190505b5090505b8415610a6a57611a846001836131cc565b9150611a91600a86613265565b611a9c9060306131a0565b60f81b818381518110611abf57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ae1600a866131b8565b9450611a73565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f0000000000000000000000000000000000000000000000000000000000000000461415611b8b57507f0000000000000000000000000000000000000000000000000000000000000000610856565b611bf67f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611f66565b9050610856565b6001600160e01b031981166301ffc9a760e01b14919050565b611c21838383610938565b6001600160a01b038316611c3d57611c3881611fa0565b611c60565b816001600160a01b0316836001600160a01b031614611c6057611c608382611fe4565b6001600160a01b038216611c7c57611c7781612081565b610938565b826001600160a01b0316826001600160a01b03161461093857610938828261215a565b60008282604051602001611cb49291906128c9565b60405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611d145760405162461bcd60e51b815260040161088090612c01565b8360ff16601b1480611d2957508360ff16601c145b611d455760405162461bcd60e51b815260040161088090612db6565b600060018686868660405160008152602001604052604051611d6a94939291906129a3565b6020604051602081039080840390855afa158015611d8c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611dbf5760405162461bcd60e51b8152600401610880906129d4565b95945050505050565b60006001600160ff1b03821660ff83901c601b01611de886828785611cd2565b9695505050505050565b61098f82826040518060200160405280600081525061219e565b600032611e1a6001436131cc565b404284604051602001611e3094939291906127ef565b60408051601f19818403018152919052805160209091012092915050565b6000611e62846001600160a01b03166121d1565b15611f5e57836001600160a01b031663150b7a02611e7e61152d565b8786866040518563ffffffff1660e01b8152600401611ea094939291906128f8565b602060405180830381600087803b158015611eba57600080fd5b505af1925050508015611eea575060408051601f3d908101601f19168201909252611ee791810190612678565b60015b611f44573d808015611f18576040519150601f19603f3d011682016040523d82523d6000602084013e611f1d565b606091505b508051611f3c5760405162461bcd60e51b815260040161088090612a8d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a6a565b506001610a6a565b60008383834630604051602001611f81959493929190612977565b6040516020818303038152906040528051906020012090509392505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611ff184610f06565b611ffb91906131cc565b60008381526007602052604090205490915080821461204e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612093906001906131cc565b600083815260096020526040812054600880549394509092849081106120c957634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106120f857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061213e57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061216583610f06565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6121a883836121d7565b6121b56000848484611e4e565b6109385760405162461bcd60e51b815260040161088090612a8d565b3b151590565b6001600160a01b0382166121fd5760405162461bcd60e51b815260040161088090612e2f565b61220681611510565b156122235760405162461bcd60e51b815260040161088090612b25565b61222f60008383611c16565b6001600160a01b03821660009081526003602052604081208054600192906122589084906131a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546122c29061320f565b90600052602060002090601f0160209004810192826122e4576000855561232a565b82601f106122fd57805160ff191683800117855561232a565b8280016001018555821561232a579182015b8281111561232a57825182559160200191906001019061230f565b5061233692915061233a565b5090565b5b80821115612336576000815560010161233b565b600067ffffffffffffffff8084111561236a5761236a6132a5565b604051601f8501601f19168101602001828111828210171561238e5761238e6132a5565b6040528481529150818385018610156123a657600080fd5b8484602083013760006020868301015250509392505050565b60008083601f8401126123d0578081fd5b50813567ffffffffffffffff8111156123e7578182fd5b602083019150836020808302850101111561240157600080fd5b9250929050565b600082601f830112612418578081fd5b6124278383356020850161234f565b9392505050565b60006020828403121561243f578081fd5b8135612427816132bb565b6000806040838503121561245c578081fd5b8235612467816132bb565b91506020830135612477816132bb565b809150509250929050565b600080600060608486031215612496578081fd5b83356124a1816132bb565b925060208401356124b1816132bb565b929592945050506040919091013590565b600080600080608085870312156124d7578081fd5b84356124e2816132bb565b935060208501356124f2816132bb565b925060408501359150606085013567ffffffffffffffff811115612514578182fd5b61252087828801612408565b91505092959194509250565b6000806040838503121561253e578182fd5b8235612549816132bb565b91506020830135612477816132d0565b6000806000806060858703121561256e578384fd5b8435612579816132bb565b935060208501359250604085013567ffffffffffffffff81111561259b578283fd5b6125a7878288016123bf565b95989497509550505050565b600080604083850312156125c5578182fd5b82356125d0816132bb565b946020939093013593505050565b6000602082840312156125ef578081fd5b8151612427816132d0565b60006020828403121561260b578081fd5b5035919050565b600080600060408486031215612626578283fd5b83359250602084013567ffffffffffffffff811115612643578283fd5b61264f868287016123bf565b9497909650939450505050565b60006020828403121561266d578081fd5b8135612427816132de565b600060208284031215612689578081fd5b8151612427816132de565b600080602083850312156126a6578182fd5b823567ffffffffffffffff808211156126bd578384fd5b818501915085601f8301126126d0578384fd5b8135818111156126de578485fd5b8660208285010111156126ef578485fd5b60209290920196919550909350505050565b60008060408385031215612713578182fd5b823567ffffffffffffffff811115612729578283fd5b61273585828601612408565b95602094909401359450505050565b600060208284031215612755578081fd5b813567ffffffffffffffff81111561276b578182fd5b8201601f8101841361277b578182fd5b610a6a8482356020840161234f565b600081518084526127a28160208601602086016131e3565b601f01601f19169290920160200192915050565b600081516127c88185602086016131e3565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b60609490941b6bffffffffffffffffffffffff1916845260148401929092526034830152605482015260740190565b918252602082015260400190565b825460009081906002810460018083168061284857607f831692505b602080841082141561286857634e487b7160e01b87526022600452602487fd5b81801561287c576001811461288d576128b9565b60ff198616895284890196506128b9565b6128968b613194565b885b868110156128b15781548b820152908501908301612898565b505084890196505b505050505050611dbf81856127b6565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611de89083018461278a565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b9283526001600160a01b03919091166020830152604082015260600190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252612427602083018461278a565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526010908201526f135a5b9d081b9bdd081cdd185c9d195960821b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601d908201527f416c6c20506f6e6965732068617665206265656e2073756d6d6f6e6564000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526017908201527f5369676e6174757265206e6f74206279207369676e6572000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526011908201527010dbd91948185b1c9958591e481d5cd959607a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601a908201527f4c656166206e6f74206d61746368696e6720746865206e6f6465000000000000604082015260600190565b6020808252600e908201526d446f6e742062652067726565647960901b604082015260600190565b6020808252600e908201526d24b73b30b634b210383937b7b31760911b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60009081526020902090565b600082198211156131b3576131b3613279565b500190565b6000826131c7576131c761328f565b500490565b6000828210156131de576131de613279565b500390565b60005b838110156131fe5781810151838201526020016131e6565b8381111561127c5750506000910152565b60028104600182168061322357607f821691505b6020821081141561324457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561325e5761325e613279565b5060010190565b6000826132745761327461328f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610cb557600080fd5b8015158114610cb557600080fd5b6001600160e01b031981168114610cb557600080fdfe507574207468792052756e65206f6e2074686520476174652c20616e6420656e7465722074686520456c797369616e204669656c64732ea264697066735822122032fb1c34b68bb61dd96c7001be006619a6f18139ee023fc46a71e46e1114f5d464736f6c634300080000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000770656e64696e6700000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061027d5760003560e01c8063715018a61161014f578063ae5e424f116100c1578063e985e9c51161007a578063e985e9c5146106ef578063f0c9dc601461070f578063f2fde38b14610724578063f698da2514610744578063f6a5ec3e14610759578063f95df414146107795761027d565b8063ae5e424f14610645578063b88d4fde14610665578063c87b56dd14610685578063cfc86f7b146106a5578063da0239a6146106ba578063e81ed044146106cf5761027d565b8063904077a011610113578063904077a01461059b57806395d89b41146105bb5780639727151a146105d0578063a22cb465146105f0578063a9722cf314610610578063ab1aa1c5146106255761027d565b8063715018a614610554578063732f240114610569578063853828b61461057e57806389009e38146103495780638da5cb5b146105865761027d565b806332cb6b0c116101f35780634a2516cc116101ac5780634a2516cc1461049f5780634f6ccce7146104bf57806355f804b3146104df57806361b8ce8c146104ff5780636352211e1461051457806370a08231146105345761027d565b806332cb6b0c14610400578063338c397b1461041557806342842e0e1461043557806342966c681461045557806348cd4cb1146104755780634980e1be1461048a5761027d565b806312e2cfca1161024557806312e2cfca1461034957806318160ddd14610369578063234da1091461038b57806323b872dd146103ab578063293108e0146103cb5780632f745c59146103e05761027d565b806301ffc9a71461028257806306fdde03146102b8578063081812fc146102da578063095ea7b3146103075780631096952314610329575b600080fd5b34801561028e57600080fd5b506102a261029d36600461265c565b610799565b6040516102af9190612944565b60405180910390f35b3480156102c457600080fd5b506102cd6107c6565b6040516102af91906129c1565b3480156102e657600080fd5b506102fa6102f53660046125fa565b610859565b6040516102af91906128e4565b34801561031357600080fd5b506103276103223660046125b3565b6108a5565b005b34801561033557600080fd5b50610327610344366004612744565b61093d565b34801561035557600080fd5b50610327610364366004612694565b610993565b34801561037557600080fd5b5061037e6109d2565b6040516102af919061294f565b34801561039757600080fd5b506102a26103a6366004612559565b6109d8565b3480156103b757600080fd5b506103276103c6366004612482565b610a72565b3480156103d757600080fd5b5061037e610aaa565b3480156103ec57600080fd5b5061037e6103fb3660046125b3565b610ab0565b34801561040c57600080fd5b5061037e610b05565b34801561042157600080fd5b50610327610430366004612701565b610b0b565b34801561044157600080fd5b50610327610450366004612482565b610c6a565b34801561046157600080fd5b506103276104703660046125fa565b610c85565b34801561048157600080fd5b5061037e610cb8565b34801561049657600080fd5b506102cd610cbe565b3480156104ab57600080fd5b506103276104ba366004612612565b610cda565b3480156104cb57600080fd5b5061037e6104da3660046125fa565b610e1e565b3480156104eb57600080fd5b506103276104fa366004612744565b610e79565b34801561050b57600080fd5b5061037e610ecb565b34801561052057600080fd5b506102fa61052f3660046125fa565b610ed1565b34801561054057600080fd5b5061037e61054f36600461242e565b610f06565b34801561056057600080fd5b50610327610f4a565b34801561057557600080fd5b506102fa610f8b565b610327610f9a565b34801561059257600080fd5b506102fa610ffd565b3480156105a757600080fd5b506102a26105b63660046125fa565b61100c565b3480156105c757600080fd5b506102cd611021565b3480156105dc57600080fd5b506103276105eb3660046125b3565b611030565b3480156105fc57600080fd5b5061032761060b36600461252c565b6110f9565b34801561061c57600080fd5b506102a26111c7565b34801561063157600080fd5b5061037e6106403660046125fa565b6111d0565b34801561065157600080fd5b5061032761066036600461242e565b6111e2565b34801561067157600080fd5b506103276106803660046124c2565b611243565b34801561069157600080fd5b506102cd6106a03660046125fa565b611282565b3480156106b157600080fd5b506102cd6112db565b3480156106c657600080fd5b5061037e611369565b3480156106db57600080fd5b506102a26106ea36600461242e565b611380565b3480156106fb57600080fd5b506102a261070a36600461244a565b611395565b34801561071b57600080fd5b506102cd6113c3565b34801561073057600080fd5b5061032761073f36600461242e565b6113d0565b34801561075057600080fd5b5061037e61143e565b34801561076557600080fd5b506103276107743660046125fa565b611448565b34801561078557600080fd5b506103276107943660046125fa565b61148c565b60006001600160e01b0319821663780e9d6360e01b14806107be57506107be826114d0565b90505b919050565b6060600080546107d59061320f565b80601f01602080910402602001604051908101604052809291908181526020018280546108019061320f565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b505050505090505b90565b600061086482611510565b6108895760405162461bcd60e51b815260040161088090612e64565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108b082610ed1565b9050806001600160a01b0316836001600160a01b031614156108e45760405162461bcd60e51b815260040161088090612f7d565b806001600160a01b03166108f661152d565b6001600160a01b0316148061091257506109128161070a61152d565b61092e5760405162461bcd60e51b815260040161088090612c8f565b6109388383611531565b505050565b61094561152d565b6001600160a01b0316610956610ffd565b6001600160a01b03161461097c5760405162461bcd60e51b815260040161088090612eb0565b805161098f90600d9060208401906122b6565b5050565b61099b61152d565b6001600160a01b03166109ac610ffd565b6001600160a01b03161461098f5760405162461bcd60e51b815260040161088090612eb0565b60085490565b600080856040516020016109ec91906127d2565b604051602081830303815290604052805190602001209050848114610a15576000915050610a6a565b610a5684848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915088905061159f565b610a64576000915050610a6a565b60019150505b949350505050565b610a83610a7d61152d565b8261165a565b610a9f5760405162461bcd60e51b815260040161088090612fe9565b6109388383836116d7565b60115481565b6000610abb83610f06565b8210610ad95760405162461bcd60e51b815260040161088090612a42565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b61023781565b6002600b541415610b2e5760405162461bcd60e51b81526004016108809061310d565b6002600b55610b3b6111c7565b610b575760405162461bcd60e51b815260040161088090612bd7565b6000610bac7f2e56d6d35adcabadfff373dfd9fa8b2aaafb2d8e5da1d167ba7d5ba3c96436c33384604051602001610b9193929190612958565b60405160208183030381529060405280519060200120611804565b90506000610bba8285611817565b90506001600160a01b038116610be25760405162461bcd60e51b8152600401610880906129d4565b600e546001600160a01b03828116911614610c0f5760405162461bcd60e51b815260040161088090612df8565b60008381526012602052604090205460ff1615610c3e5760405162461bcd60e51b815260040161088090612fbe565b6000838152601260205260409020805460ff19166001179055610c5f61188b565b50506001600b555050565b61093883838360405180602001604052806000815250611243565b610c90610a7d61152d565b610cac5760405162461bcd60e51b815260040161088090613144565b610cb5816118f3565b50565b600c5481565b6040518060600160405280603781526020016132f56037913981565b6002600b541415610cfd5760405162461bcd60e51b81526004016108809061310d565b6002600b55610d0a6111c7565b610d265760405162461bcd60e51b815260040161088090612bd7565b3360009081526013602052604090205460ff1615610d565760405162461bcd60e51b8152600401610880906130bd565b336000818152601360209081526040808320805460ff19166001179055519192610d82929091016127d2565b604051602081830303815290604052805190602001209050838114610db95760405162461bcd60e51b815260040161088090613086565b610dfa83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915087905061159f565b610e165760405162461bcd60e51b8152600401610880906130e5565b610c5f61188b565b6000610e286109d2565b8210610e465760405162461bcd60e51b81526004016108809061303a565b60088281548110610e6757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610e8161152d565b6001600160a01b0316610e92610ffd565b6001600160a01b031614610eb85760405162461bcd60e51b815260040161088090612eb0565b805161098f90600f9060208401906122b6565b60105481565b6000818152600260205260408120546001600160a01b0316806107be5760405162461bcd60e51b815260040161088090612d6d565b60006001600160a01b038216610f2e5760405162461bcd60e51b815260040161088090612d23565b506001600160a01b031660009081526003602052604090205490565b610f5261152d565b6001600160a01b0316610f63610ffd565b6001600160a01b031614610f895760405162461bcd60e51b815260040161088090612eb0565b565b600e546001600160a01b031681565b610fa261152d565b6001600160a01b0316610fb3610ffd565b6001600160a01b031614610fd95760405162461bcd60e51b815260040161088090612eb0565b60405133904780156108fc02916000818181858888f19350505050610f8957600080fd5b600a546001600160a01b031690565b60126020526000908152604090205460ff1681565b6060600180546107d59061320f565b61103861152d565b6001600160a01b0316611049610ffd565b6001600160a01b03161461106f5760405162461bcd60e51b815260040161088090612eb0565b3361107957600080fd5b60405163a9059cbb60e01b81526001600160a01b0383169063a9059cbb906110a7903390859060040161292b565b602060405180830381600087803b1580156110c157600080fd5b505af11580156110d5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093891906125de565b61110161152d565b6001600160a01b0316826001600160a01b031614156111325760405162461bcd60e51b815260040161088090612ba0565b806005600061113f61152d565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561118361152d565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111bb9190612944565b60405180910390a35050565b600c5443101590565b60146020526000908152604090205481565b6111ea61152d565b6001600160a01b03166111fb610ffd565b6001600160a01b0316146112215760405162461bcd60e51b815260040161088090612eb0565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b61125461124e61152d565b8361165a565b6112705760405162461bcd60e51b815260040161088090612fe9565b61127c8484848461199a565b50505050565b606061128d82611510565b6112a95760405162461bcd60e51b815260040161088090612f2e565b600f6112b4836119cd565b6040516020016112c592919061282c565b6040516020818303038152906040529050919050565b600f80546112e89061320f565b80601f01602080910402602001604051908101604052809291908181526020018280546113149061320f565b80156113615780601f1061133657610100808354040283529160200191611361565b820191906000526020600020905b81548152906001019060200180831161134457829003601f168201915b505050505081565b600060105461023761137b91906131cc565b905090565b60136020526000908152604090205460ff1681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600d80546112e89061320f565b6113d861152d565b6001600160a01b03166113e9610ffd565b6001600160a01b03161461140f5760405162461bcd60e51b815260040161088090612eb0565b6001600160a01b0381166114355760405162461bcd60e51b815260040161088090612adf565b610cb581611ae8565b600061137b611b3a565b61145061152d565b6001600160a01b0316611461610ffd565b6001600160a01b0316146114875760405162461bcd60e51b815260040161088090612eb0565b600c55565b61149461152d565b6001600160a01b03166114a5610ffd565b6001600160a01b0316146114cb5760405162461bcd60e51b815260040161088090612eb0565b601155565b60006001600160e01b031982166380ac58cd60e01b148061150157506001600160e01b03198216635b5e139f60e01b145b806107be57506107be82611bfd565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061156682610ed1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b855181101561164f5760008682815181106115cf57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116116105782816040516020016115f392919061281e565b60405160208183030381529060405280519060200120925061163c565b808360405160200161162392919061281e565b6040516020818303038152906040528051906020012092505b50806116478161324a565b9150506115a4565b509092149392505050565b600061166582611510565b6116815760405162461bcd60e51b815260040161088090612c43565b600061168c83610ed1565b9050806001600160a01b0316846001600160a01b031614806116c75750836001600160a01b03166116bc84610859565b6001600160a01b0316145b80610a6a5750610a6a8185611395565b826001600160a01b03166116ea82610ed1565b6001600160a01b0316146117105760405162461bcd60e51b815260040161088090612ee5565b6001600160a01b0382166117365760405162461bcd60e51b815260040161088090612b5c565b611741838383611c16565b61174c600082611531565b6001600160a01b03831660009081526003602052604081208054600192906117759084906131cc565b90915550506001600160a01b03821660009081526003602052604081208054600192906117a39084906131a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006107be611811611b3a565b83611c9f565b600081516041141561184b5760208201516040830151606084015160001a61184186828585611cd2565b9350505050610aff565b815160401415611873576020820151604083015161186a858383611dc8565b92505050610aff565b60405162461bcd60e51b815260040161088090612a0b565b610237601054106118ae5760405162461bcd60e51b815260040161088090612cec565b6118ba33601054611df2565b6118c5601054611e0c565b601080546000908152601460205260408120929092558054600192906118ec9084906131a0565b9091555050565b60006118fe82610ed1565b905061190c81600084611c16565b611917600083611531565b6001600160a01b03811660009081526003602052604081208054600192906119409084906131cc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6119a58484846116d7565b6119b184848484611e4e565b61127c5760405162461bcd60e51b815260040161088090612a8d565b6060816119f257506040805180820190915260018152600360fc1b60208201526107c1565b8160005b8115611a1c5780611a068161324a565b9150611a159050600a836131b8565b91506119f6565b60008167ffffffffffffffff811115611a4557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a6f576020820181803683370190505b5090505b8415610a6a57611a846001836131cc565b9150611a91600a86613265565b611a9c9060306131a0565b60f81b818381518110611abf57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ae1600a866131b8565b9450611a73565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f0000000000000000000000000000000000000000000000000000000000000001461415611b8b57507f98978f5b483f6cd0ee392dedec8afcab1316680ff2502ebc2e730c7b944deec3610856565b611bf67f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f06ca67406b5a81ad78d4b92f4b0d581c3edfd4205139cbcc253aa0b396b68d817fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6611f66565b9050610856565b6001600160e01b031981166301ffc9a760e01b14919050565b611c21838383610938565b6001600160a01b038316611c3d57611c3881611fa0565b611c60565b816001600160a01b0316836001600160a01b031614611c6057611c608382611fe4565b6001600160a01b038216611c7c57611c7781612081565b610938565b826001600160a01b0316826001600160a01b03161461093857610938828261215a565b60008282604051602001611cb49291906128c9565b60405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611d145760405162461bcd60e51b815260040161088090612c01565b8360ff16601b1480611d2957508360ff16601c145b611d455760405162461bcd60e51b815260040161088090612db6565b600060018686868660405160008152602001604052604051611d6a94939291906129a3565b6020604051602081039080840390855afa158015611d8c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611dbf5760405162461bcd60e51b8152600401610880906129d4565b95945050505050565b60006001600160ff1b03821660ff83901c601b01611de886828785611cd2565b9695505050505050565b61098f82826040518060200160405280600081525061219e565b600032611e1a6001436131cc565b404284604051602001611e3094939291906127ef565b60408051601f19818403018152919052805160209091012092915050565b6000611e62846001600160a01b03166121d1565b15611f5e57836001600160a01b031663150b7a02611e7e61152d565b8786866040518563ffffffff1660e01b8152600401611ea094939291906128f8565b602060405180830381600087803b158015611eba57600080fd5b505af1925050508015611eea575060408051601f3d908101601f19168201909252611ee791810190612678565b60015b611f44573d808015611f18576040519150601f19603f3d011682016040523d82523d6000602084013e611f1d565b606091505b508051611f3c5760405162461bcd60e51b815260040161088090612a8d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a6a565b506001610a6a565b60008383834630604051602001611f81959493929190612977565b6040516020818303038152906040528051906020012090509392505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611ff184610f06565b611ffb91906131cc565b60008381526007602052604090205490915080821461204e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612093906001906131cc565b600083815260096020526040812054600880549394509092849081106120c957634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106120f857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061213e57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061216583610f06565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6121a883836121d7565b6121b56000848484611e4e565b6109385760405162461bcd60e51b815260040161088090612a8d565b3b151590565b6001600160a01b0382166121fd5760405162461bcd60e51b815260040161088090612e2f565b61220681611510565b156122235760405162461bcd60e51b815260040161088090612b25565b61222f60008383611c16565b6001600160a01b03821660009081526003602052604081208054600192906122589084906131a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546122c29061320f565b90600052602060002090601f0160209004810192826122e4576000855561232a565b82601f106122fd57805160ff191683800117855561232a565b8280016001018555821561232a579182015b8281111561232a57825182559160200191906001019061230f565b5061233692915061233a565b5090565b5b80821115612336576000815560010161233b565b600067ffffffffffffffff8084111561236a5761236a6132a5565b604051601f8501601f19168101602001828111828210171561238e5761238e6132a5565b6040528481529150818385018610156123a657600080fd5b8484602083013760006020868301015250509392505050565b60008083601f8401126123d0578081fd5b50813567ffffffffffffffff8111156123e7578182fd5b602083019150836020808302850101111561240157600080fd5b9250929050565b600082601f830112612418578081fd5b6124278383356020850161234f565b9392505050565b60006020828403121561243f578081fd5b8135612427816132bb565b6000806040838503121561245c578081fd5b8235612467816132bb565b91506020830135612477816132bb565b809150509250929050565b600080600060608486031215612496578081fd5b83356124a1816132bb565b925060208401356124b1816132bb565b929592945050506040919091013590565b600080600080608085870312156124d7578081fd5b84356124e2816132bb565b935060208501356124f2816132bb565b925060408501359150606085013567ffffffffffffffff811115612514578182fd5b61252087828801612408565b91505092959194509250565b6000806040838503121561253e578182fd5b8235612549816132bb565b91506020830135612477816132d0565b6000806000806060858703121561256e578384fd5b8435612579816132bb565b935060208501359250604085013567ffffffffffffffff81111561259b578283fd5b6125a7878288016123bf565b95989497509550505050565b600080604083850312156125c5578182fd5b82356125d0816132bb565b946020939093013593505050565b6000602082840312156125ef578081fd5b8151612427816132d0565b60006020828403121561260b578081fd5b5035919050565b600080600060408486031215612626578283fd5b83359250602084013567ffffffffffffffff811115612643578283fd5b61264f868287016123bf565b9497909650939450505050565b60006020828403121561266d578081fd5b8135612427816132de565b600060208284031215612689578081fd5b8151612427816132de565b600080602083850312156126a6578182fd5b823567ffffffffffffffff808211156126bd578384fd5b818501915085601f8301126126d0578384fd5b8135818111156126de578485fd5b8660208285010111156126ef578485fd5b60209290920196919550909350505050565b60008060408385031215612713578182fd5b823567ffffffffffffffff811115612729578283fd5b61273585828601612408565b95602094909401359450505050565b600060208284031215612755578081fd5b813567ffffffffffffffff81111561276b578182fd5b8201601f8101841361277b578182fd5b610a6a8482356020840161234f565b600081518084526127a28160208601602086016131e3565b601f01601f19169290920160200192915050565b600081516127c88185602086016131e3565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b60609490941b6bffffffffffffffffffffffff1916845260148401929092526034830152605482015260740190565b918252602082015260400190565b825460009081906002810460018083168061284857607f831692505b602080841082141561286857634e487b7160e01b87526022600452602487fd5b81801561287c576001811461288d576128b9565b60ff198616895284890196506128b9565b6128968b613194565b885b868110156128b15781548b820152908501908301612898565b505084890196505b505050505050611dbf81856127b6565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611de89083018461278a565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b9283526001600160a01b03919091166020830152604082015260600190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252612427602083018461278a565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526010908201526f135a5b9d081b9bdd081cdd185c9d195960821b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601d908201527f416c6c20506f6e6965732068617665206265656e2073756d6d6f6e6564000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526017908201527f5369676e6174757265206e6f74206279207369676e6572000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526011908201527010dbd91948185b1c9958591e481d5cd959607a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601a908201527f4c656166206e6f74206d61746368696e6720746865206e6f6465000000000000604082015260600190565b6020808252600e908201526d446f6e742062652067726565647960901b604082015260600190565b6020808252600e908201526d24b73b30b634b210383937b7b31760911b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60009081526020902090565b600082198211156131b3576131b3613279565b500190565b6000826131c7576131c761328f565b500490565b6000828210156131de576131de613279565b500390565b60005b838110156131fe5781810151838201526020016131e6565b8381111561127c5750506000910152565b60028104600182168061322357607f821691505b6020821081141561324457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561325e5761325e613279565b5060010190565b6000826132745761327461328f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610cb557600080fd5b8015158114610cb557600080fd5b6001600160e01b031981168114610cb557600080fdfe507574207468792052756e65206f6e2074686520476174652c20616e6420656e7465722074686520456c797369616e204669656c64732ea264697066735822122032fb1c34b68bb61dd96c7001be006619a6f18139ee023fc46a71e46e1114f5d464736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000770656e64696e6700000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): pending

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [2] : 70656e64696e6700000000000000000000000000000000000000000000000000


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

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