Contract 0x76994161eefb868399041339446424d947d91095

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x85b9c558e54f0348ee886100cef3c3a414be66262fe400854f43df71109978f1Set Approval For...229601042022-11-28 18:34:1611 hrs 2 mins ago0x82e877608df8cc19d036af227dd1cd3a8e82d930 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001226261 26.5
0x5edf0d404d17831d632c622540421fd5da53925f067fa267ffb21736da6cdaa3Set Approval For...229600732022-11-28 18:33:0911 hrs 3 mins ago0x2b6d105f02915bedc77fe1a266b1570a39e84423 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001236324116 26.717468051
0x6170e29940118e86fea2ac7cc137ec04be453ad64116431db32dee11df70836bSet Approval For...229240792022-11-27 21:58:441 day 7 hrs ago0xf470f43632c86fbe39f03b671dab68de0408e39b IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001226261 26.5
0x4d9acffcf43b655818233d5e1f2918a290c8316b2f7bcba202048c24e62193c5Safe Transfer Fr...229203912022-11-27 19:51:291 day 9 hrs ago0xa2f82a1222e08b3983f7e99dc371598a4ee7f60c IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0034621125 27.5
0x76d8e1a8320a39c900723136835ec4a5829becf712b09c8bf3f51cd413a22d5fSet Approval For...229181592022-11-27 18:34:561 day 11 hrs ago0x9c588b91106f3a7ec1c878024f88ef65ea83b659 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0xb5d3aebed9c7edc2cf79f586bc8dae824086bbd57c025dd45943ac44f10c3a04Safe Transfer Fr...228997882022-11-27 8:11:421 day 21 hrs ago0xa2f82a1222e08b3983f7e99dc371598a4ee7f60c IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0029918625 27.5
0xb7248e8a2691d63f7e7523dac1d96a87099aa6e9877579b60abfd756a433855eSet Approval For...228935472022-11-27 4:37:102 days 59 mins ago0xf707e946ab7ca1bcb7b5b9c4260fdcbe75200d6d IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0x6a837dc36a5f12f42b680d2a90798deaa19a609b33f9ed6e66e193b8fa9f0fc1Set Approval For...228853182022-11-26 23:56:062 days 5 hrs ago0xbeb223878fb3f4b2106d6181d31ff7bd525fd6ed IN  0x76994161eefb868399041339446424d947d910950 AVAX0.000698911 26.5
0xdbd100aef272ed6d9c5179a6fdd9b84cba41fb73736dc502a9651aac83894cacSet Approval For...228853072022-11-26 23:55:442 days 5 hrs ago0xbeb223878fb3f4b2106d6181d31ff7bd525fd6ed IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001226261 26.5
0x64d2d985b877cd70febac1781eb12fbf7809a1f66ffed1d4b42a365bc64606b7Set Approval For...228745082022-11-26 17:44:522 days 11 hrs ago0x6dd7e162781839e8d8ebd0d8f1f506f7b819193f IN  0x76994161eefb868399041339446424d947d910950 AVAX0.00122209634 26.41
0xa27722b775f392aaa204db2cc00d44c169244df801c63f5dc64dce07bc52dc72Set Approval For...228309942022-11-25 16:28:543 days 13 hrs ago0xb54fcf63703ea4757bbbc9bb11df3d129bf1af2e IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0x6154788bb8a6bffb23f6032513a2df3965db9d194178d2150cd8a6fefa4bc0e6Set Approval For...228307442022-11-25 16:20:203 days 13 hrs ago0x0fa7c9b846cffbbedacfb07d41053ab06d16adf6 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001226261 26.5
0x3a15e7bee968decab7725e1db73016fb2bdf212eba82150298395c46dbbf1086Set Approval For...228184702022-11-25 9:19:333 days 20 hrs ago0xf8a3c07b01c508d304a6ba9e45309acb2281e6f0 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0011568525
0x16548d49f3d7fa49234714b4187dad33c39a5047b02ce6943350d9d55645db8fSet Approval For...228020962022-11-24 23:52:254 days 5 hrs ago0x6a84c2c051e672e3cfbe5a2a7e19804e3260154f IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0xb8e741e43d4b50682b03a407e7d1116dda95e8a7e4d8890a9d1fac7e1514996eSafe Transfer Fr...227926332022-11-24 18:25:154 days 11 hrs ago0xa2f82a1222e08b3983f7e99dc371598a4ee7f60c IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0034621125 27.5
0x2e04bdae3b18e03b4564ddadee7ad96a4ac36a2e36fab3249d032fdecf0179faSet Approval For...227607532022-11-24 0:11:405 days 5 hrs ago0x57ba2abfc91b1a13a92f709a67b2da35d7cc9a00 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0xa25782a37975802ad7e890620fffb6742246e69664058ea6f19aec49e4d8476dSafe Transfer Fr...227586702022-11-23 23:00:215 days 6 hrs ago0x6a31fa2c525b97c88732db31a551bccf77a23a48 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0031016975 27.5
0x6ad103c91c9a87dd5b2bf2356a60b5a83f8a03e3e1abdd2e9d0035a04fd10231Safe Transfer Fr...227586482022-11-23 22:59:365 days 6 hrs ago0x6a31fa2c525b97c88732db31a551bccf77a23a48 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0033851125 27.5
0x8844d3fb1b879aa7a1457bb7aeabef723f8e25b12435d6e721e9fbbf38bafebcSafe Transfer Fr...227583592022-11-23 22:49:315 days 6 hrs ago0x2732517de5a302b0c47a552b932cba8e75af8aaf IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0031790275 27.5
0xfff0129349987951d08dd9a0747075802258bbcba0d565e0947e63b6e8c442d7Safe Transfer Fr...227581282022-11-23 22:41:435 days 6 hrs ago0x2732517de5a302b0c47a552b932cba8e75af8aaf IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0033847825 27.5
0x88fa39e1060d8bc2d7db70be33a36f55a1e60e2e5f8106156cddd0106ae7cd34Safe Transfer Fr...227579982022-11-23 22:37:175 days 6 hrs ago0x2732517de5a302b0c47a552b932cba8e75af8aaf IN  0x76994161eefb868399041339446424d947d910950 AVAX0.0031786975 27.5
0xc58e2e04b56c1675ffd909249810117f65c8f27f9727c09aa905569ca4320be2Set Approval For...227571882022-11-23 22:09:435 days 7 hrs ago0xa2f82a1222e08b3983f7e99dc371598a4ee7f60c IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0x6d8533fecf02bcab7190a3cfe392b68c0b0727578d814f926a64146e91f1f4a5Set Approval For...227569002022-11-23 21:59:545 days 7 hrs ago0xbf653889c245a2e112f60b4c97bdd967fdfe4796 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.001272535 27.5
0xeadcc29cbbc3662314855c60949354fd68959b95fbb7d9bc250caae19974a7b2Set Approval For...227503692022-11-23 18:19:005 days 11 hrs ago0x6ec6875f2e9958f64df8f05d123dcfa3abdf3bb8 IN  0x76994161eefb868399041339446424d947d910950 AVAX0.00126906445 27.425
0x57242f25b4f4ffec6a6731accd18d6684e68caefea0b78bcb470e023c67cd67cSet Approval For...227471132022-11-23 16:28:485 days 13 hrs ago0x7f9e823d0392377cdb1447997db79ab53612fc2f IN  0x76994161eefb868399041339446424d947d910950 AVAX0.00122209634 26.41
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LoveMonsterZombieNFT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 18 : LM_NFT_ZOMBIE.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "../utils/RoyaltiesAddon.sol";
import "../utils/ERC2981.sol";

contract LoveMonsterZombieNFT is
    ERC721,
    ERC721Enumerable,
    RoyaltiesAddon,
    ERC2981,
    AccessControl
{
    uint256 constant MAX_TOTAL_SUPPLY = 999;

    mapping(uint256 => Monster) public Monsters;

    //GameCurrency
    IERC20 public LMTCurrency;
    uint256 public LMTCurrencyDecimals;

    //Marketplace
    bool public MarketplaceOpen = false;
    bool public MarketplaceOnlyNative = true;
    mapping(uint256 => bool) public isForSale;

    mapping(address => bool) public AdminContracts;

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    string public tokenURIPrefix =
        "ipfs://QmV3vocyTuuLxtwxaTYnvffxo7VCQ5jKbJ5F6vq5YLArJb/";
    string public tokenURISuffix = ".json";

    event MonsterBought(
        uint256 tokenId,
        address seller,
        address buyer,
        uint256 price,
        bool nativeCurrency
    );
    event MonsterIsForSale(
        uint256 tokenId,
        address seller,
        uint256 price,
        bool nativeCurrency
    );
    event MonsterSellingCanceled(uint256 tokenId);

    // Structs
    struct Market {
        bool selling;
        uint256 price;
        uint256 latestPrice;
        address currentOwner;
        bool nativeCurrency;
    }

    struct Monster {
        uint256 id;
        Market marketInfo;
        bool initialized;
    }

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

    constructor(address royaltiesAddr)
        ERC721("Love Monster Zombie Edition", "LMZ")
    {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(MINTER_ROLE, msg.sender);
        UpdateRoyalties(royaltiesAddr, 6, true);
    }

    function burn(uint256 tokenId) external {
        _burn(tokenId);
    }

    function mint() external onlyRole(MINTER_ROLE) {
        require(
            totalSupply() < MAX_TOTAL_SUPPLY,
            "Cannot mint more than total supply"
        );
        uint256 tokenId = totalSupply() + 1;
        _mint(msg.sender, tokenId);
    }

    function batchMint(uint256 quantity) external onlyRole(MINTER_ROLE) {
        require(
            totalSupply() + quantity <= MAX_TOTAL_SUPPLY,
            "Cannot mint more than total supply"
        );
        require(quantity > 0, "Cannot mint 0 nft");
        for (uint256 index = 0; index < quantity; index++) {
            uint256 tokenId = totalSupply() + 1;
            _mint(msg.sender, tokenId);
        }
    }

    modifier MonsterInitialized(uint256 tokenId) {
        Monster storage monster = Monsters[tokenId];
        require(monster.initialized, "Monster not Initialized");
        _;
    }

    function RegisterMonster(uint256 tokenId) public {
        address ownerOfMonster = ownerOf(tokenId);
        require(ownerOfMonster == msg.sender, "Not monster owner");
        require(!Monsters[tokenId].initialized, "Monster already initialized");

        Market memory initMarket = Market(false, 0, 0, msg.sender, false);

        Monster memory initMonster = Monster(tokenId, initMarket, true);

        Monsters[tokenId] = initMonster;
    }

    function GetMonster(uint256 tokenId)
        external
        view
        returns (Monster memory)
    {
        return Monsters[tokenId];
    }

    function BuyMonster(uint256 tokenId)
        external
        payable
        MonsterInitialized(tokenId)
    {
        require(MarketplaceOpen, "Marketplace is closed at the moment");

        require(_exists(tokenId), "Monster doenst exists");

        address tokenOwner = ownerOf(tokenId);
        require(tokenOwner != msg.sender, "Not the monster owner");

        Monster memory monster = Monsters[tokenId];

        require(monster.marketInfo.selling, "Monster is not for sale");

        uint256 amount = monster.marketInfo.nativeCurrency
            ? monster.marketInfo.price
            : monster.marketInfo.price * (10**LMTCurrencyDecimals);

        (address _royaltyAddress, uint256 _royaltiesAmount) = royaltyInfo(
            tokenId,
            amount
        );

        uint256 payOwnerAmount = amount - _royaltiesAmount;

        if (monster.marketInfo.nativeCurrency) {
            require(msg.value >= amount, "Payment failed on BuyMonster");

            payable(monster.marketInfo.currentOwner).transfer(payOwnerAmount);
            payable(_royaltyAddress).transfer(_royaltiesAmount);
        } else {
            require(
                LMTCurrency.balanceOf(msg.sender) >= amount,
                "Doenst have the balance to buy the monster"
            );
            require(
                LMTCurrency.allowance(address(this), msg.sender) >= amount,
                "Not allowed to move the funds, approve more tokens to transfer"
            );
            require(
                LMTCurrency.transferFrom(msg.sender, address(this), amount),
                "Payment failed on BuyMonster"
            );

            LMTCurrency.transfer(msg.sender, payOwnerAmount);
            LMTCurrency.transfer(_royaltyAddress, _royaltiesAmount);
        }

        monster.marketInfo.latestPrice = monster.marketInfo.price;

        Monsters[tokenId] = monster;

        _transfer(tokenOwner, msg.sender, tokenId);

        emit MonsterBought(
            tokenId,
            monster.marketInfo.currentOwner,
            msg.sender,
            monster.marketInfo.price,
            monster.marketInfo.nativeCurrency
        );
    }

    /// @notice Put a sell offer
    /// @param tokenId Token ID
    /// @param price price in tokens
    function SellMonster(
        uint256 tokenId,
        bool nativeCurrency,
        uint256 price
    ) external MonsterInitialized(tokenId) {
        require(MarketplaceOpen, "Marketplace is closed at the moment");

        address ownerOfMonster = ownerOf(tokenId);
        require(ownerOfMonster == msg.sender);

        if (MarketplaceOnlyNative && !nativeCurrency) {
            revert("Marketplace is only in native currency mode");
        }

        Monster memory monster = Monsters[tokenId];

        monster.marketInfo.selling = true;
        monster.marketInfo.price = price;
        monster.marketInfo.nativeCurrency = nativeCurrency;

        Monsters[tokenId] = monster;

        emit MonsterIsForSale(tokenId, msg.sender, price, nativeCurrency);
    }

    function GetAllMonsterForSale() public view returns (uint256[] memory) {
        uint256 _totalSupply = totalSupply();
        uint256[] memory _tokenForSales = new uint256[](_totalSupply);
        uint256 counter = 0;
        for (uint256 i = 0; i <= _totalSupply; i++) {
            if (Monsters[i].marketInfo.selling == true) {
                _tokenForSales[counter] = Monsters[i].id;
                counter++;
            }
        }
        return _tokenForSales;
    }

    function GetAllMonsterForSalePerPage(uint256 start, uint256 end)
        public
        view
        returns (uint256[] memory)
    {
        require(
            start < MAX_TOTAL_SUPPLY,
            "the start number cannot be more than the max total supply"
        );
        require(
            start < end,
            "the start number cannot be more or equal the end number"
        );

        uint256 counter = start;
        uint256 howMany = end > MAX_TOTAL_SUPPLY ? MAX_TOTAL_SUPPLY : end;

        uint256 quantity = howMany - start;

        uint256[] memory _tokenForSales = new uint256[](quantity);

        for (uint256 i = start; i <= howMany; i++) {
            if (Monsters[i].marketInfo.selling == true) {
                _tokenForSales[counter] = Monsters[i].id;
                counter++;
            }
        }

        return _tokenForSales;
    }

    function CancelSelling(uint256 tokenId)
        external
        MonsterInitialized(tokenId)
    {
        address ownerOfMonster = ownerOf(tokenId);
        require(ownerOfMonster == msg.sender);

        _cancelSelling(tokenId);
        emit MonsterSellingCanceled(tokenId);
    }

    function _cancelSelling(uint256 tokenId) internal {
        Monster memory monster = Monsters[tokenId];

        if (monster.marketInfo.selling) {
            monster.marketInfo.selling = false;
            monster.marketInfo.price = 0;
            Monsters[tokenId] = monster;
        }
    }

    function _updateMarketInfo(uint256 tokenId, address newOwner) internal {
        Monster storage monster = Monsters[tokenId];
        monster.marketInfo.currentOwner = newOwner;
        Monsters[tokenId] = monster;
        _cancelSelling(tokenId);
    }

    function UpdateAdminContract(address _address, bool _value)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        AdminContracts[_address] = _value;
    }

    function UpdateTokenURIInfo(
        string memory _newTokenURIPrefix,
        string memory _newTokenURISuffix
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        tokenURIPrefix = _newTokenURIPrefix;
        tokenURISuffix = _newTokenURISuffix;
    }

    //Royalties
    function royaltyInfo(uint256 tokenId, uint256 value)
        public
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (royaltiesAddress, (value * royaltiesFees) / 100);
    }

    function UpdateRoyalties(
        address newAddress,
        uint256 newPercentage,
        bool _royaltiesAuto
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _setRoyaltiesAddress(newAddress);
        _setRoyaltiesFees(newPercentage);
    }

    function UpdateLMTCurrency(address newAddress, uint256 decimals)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        LMTCurrency = IERC20(newAddress);
        LMTCurrencyDecimals = decimals;
    }

    function ChangeMarketplace(bool value)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        MarketplaceOpen = value;
    }

    function ChangeMarketplaceOnlyNative(bool value)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        MarketplaceOnlyNative = value;
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);

        _updateMarketInfo(tokenId, to);
    }

    function _burn(uint256 tokenId) internal override(ERC721) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721)
        returns (string memory)
    {
        string memory _tokenUri = string(
            abi.encodePacked(
                tokenURIPrefix,
                Strings.toString(tokenId),
                tokenURISuffix
            )
        );
        return _tokenUri;
    }

    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, ERC2981, AccessControl)
        returns (bool)
    {
        return
            interfaceId == _INTERFACE_ID_ERC2981 ||
            super.supportsInterface(interfaceId);
    }
}

File 2 of 18 : RoyaltiesAddon.sol
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Address.sol";

interface RoyaltiesInterface {
    function claimCommunity(uint256 tokenId) external;
}

abstract contract RoyaltiesAddon {
    address public royaltiesAddress;
    uint256 public royaltiesFees;
    
    /**
     * @dev internal set royalties address
     * @param _royaltiesAddress address of the Royalties.sol
     */
    function _setRoyaltiesAddress(
        address _royaltiesAddress
    ) internal {
        royaltiesAddress = _royaltiesAddress;
    }
    
    function _setRoyaltiesFees(uint256 _royaltiesFees) internal {
        royaltiesFees = _royaltiesFees;
    }
}

File 3 of 18 : ERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

import './IERC2981.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981 is ERC165, IERC2981 {
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == _INTERFACE_ID_ERC2981 ||
            super.supportsInterface(interfaceId);
    }
}

File 4 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 5 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 6 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

File 7 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

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 9 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @title IERC2981
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981 {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

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

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 12 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 13 of 18 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 14 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 15 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface 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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

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 18 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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

    /**
     * @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);
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"royaltiesAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"bool","name":"nativeCurrency","type":"bool"}],"name":"MonsterBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"bool","name":"nativeCurrency","type":"bool"}],"name":"MonsterIsForSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MonsterSellingCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":[{"internalType":"address","name":"","type":"address"}],"name":"AdminContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BuyMonster","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"CancelSelling","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"ChangeMarketplace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"ChangeMarketplaceOnlyNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GetAllMonsterForSale","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"GetAllMonsterForSalePerPage","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GetMonster","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"bool","name":"selling","type":"bool"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"latestPrice","type":"uint256"},{"internalType":"address","name":"currentOwner","type":"address"},{"internalType":"bool","name":"nativeCurrency","type":"bool"}],"internalType":"struct LoveMonsterZombieNFT.Market","name":"marketInfo","type":"tuple"},{"internalType":"bool","name":"initialized","type":"bool"}],"internalType":"struct LoveMonsterZombieNFT.Monster","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LMTCurrency","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LMTCurrencyDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MarketplaceOnlyNative","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MarketplaceOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Monsters","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"bool","name":"selling","type":"bool"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"latestPrice","type":"uint256"},{"internalType":"address","name":"currentOwner","type":"address"},{"internalType":"bool","name":"nativeCurrency","type":"bool"}],"internalType":"struct LoveMonsterZombieNFT.Market","name":"marketInfo","type":"tuple"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RegisterMonster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"nativeCurrency","type":"bool"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"SellMonster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"UpdateAdminContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"UpdateLMTCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"},{"internalType":"uint256","name":"newPercentage","type":"uint256"},{"internalType":"bool","name":"_royaltiesAuto","type":"bool"}],"name":"UpdateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newTokenURIPrefix","type":"string"},{"internalType":"string","name":"_newTokenURISuffix","type":"string"}],"name":"UpdateTokenURIInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isForSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltiesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltiesFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","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"}]

6010805461ffff191661010017905560e0604052603660808181529062004ae660a03960139062000031908262000544565b50604080518082019091526005815264173539b7b760d91b60208201526014906200005d908262000544565b503480156200006b57600080fd5b5060405162004b1c38038062004b1c8339810160408190526200008e9162000610565b6040518060400160405280601b81526020017f4c6f7665204d6f6e73746572205a6f6d6269652045646974696f6e0000000000815250604051806040016040528060038152602001622626ad60e91b8152508160009081620000f1919062000544565b50600162000100828262000544565b50620001129150600090503362000154565b6200013e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000154565b6200014d8160066001620001df565b5062000785565b62000160828262000217565b620001db576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200019a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620001ec8162000244565b600a80546001600160a01b0319166001600160a01b0386161790556200021183600b55565b50505050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b62000250813362000253565b50565b6200025f828262000217565b620001db5762000285816001600160a01b03166014620002df60201b6200275c1760201c565b6200029b8360206200275c620002df821b17811c565b604051602001620002ae92919062000661565b60408051601f198184030181529082905262461bcd60e51b8252620002d691600401620006da565b60405180910390fd5b60606000620002f083600262000725565b620002fd9060026200073f565b6001600160401b038111156200031757620003176200049f565b6040519080825280601f01601f19166020018201604052801562000342576020820181803683370190505b509050600360fc1b8160008151811062000360576200036062000755565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000392576200039262000755565b60200101906001600160f81b031916908160001a9053506000620003b884600262000725565b620003c59060016200073f565b90505b600181111562000447576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620003fd57620003fd62000755565b1a60f81b82828151811062000416576200041662000755565b60200101906001600160f81b031916908160001a90535060049490941c936200043f816200076b565b9050620003c8565b508315620004985760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620002d6565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004ca57607f821691505b602082108103620004eb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200053f57600081815260208120601f850160051c810160208610156200051a5750805b601f850160051c820191505b818110156200053b5782815560010162000526565b5050505b505050565b81516001600160401b038111156200056057620005606200049f565b6200057881620005718454620004b5565b84620004f1565b602080601f831160018114620005b05760008415620005975750858301515b600019600386901b1c1916600185901b1785556200053b565b600085815260208120601f198616915b82811015620005e157888601518255948401946001909101908401620005c0565b5085821015620006005787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200062357600080fd5b81516001600160a01b03811681146200049857600080fd5b60005b83811015620006585781810151838201526020016200063e565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516200069b8160178501602088016200063b565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351620006ce8160288401602088016200063b565b01602801949350505050565b6020815260008251806020840152620006fb8160408501602087016200063b565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176200023e576200023e6200070f565b808201808211156200023e576200023e6200070f565b634e487b7160e01b600052603260045260246000fd5b6000816200077d576200077d6200070f565b506000190190565b61435180620007956000396000f3fe6080604052600436106103345760003560e01c806350e86199116101b0578063a217fddf116100ec578063d4d7595711610095578063dbbc853b1161006f578063dbbc853b14610a19578063e528045b14610a2e578063e985e9c514610a43578063ecdd2ef714610a8c57600080fd5b8063d4d75957146109a5578063d5391393146109c5578063d547741f146109f957600080fd5b8063be5f0565116100c6578063be5f056514610950578063c0ac998314610970578063c87b56dd1461098557600080fd5b8063a217fddf146108fb578063a22cb46514610910578063b88d4fde1461093057600080fd5b80638467be0d116101595780639311d40b116101335780639311d40b1461088757806395d89b41146108a657806398a01e56146108bb5780639bdd48d3146108ce57600080fd5b80638467be0d146107f15780638546d0021461081157806391d148541461084157600080fd5b806370a082311161018a57806370a082311461079b578063769d473e146107bb57806380c644f1146107db57600080fd5b806350e861991461073b57806360b71e091461075b5780636352211e1461077b57600080fd5b80632625036d1161027f578063328825351161022857806342842e0e1161020257806342842e0e146106bb57806342966c68146106db5780634db6fc4f146106fb5780634f6ccce71461071b57600080fd5b8063328825351461064e57806336568abe1461066e578063411375df1461068e57600080fd5b80632f1b5db1116102595780632f1b5db1146105ee5780632f2ff15d1461060e5780632f745c591461062e57600080fd5b80632625036d1461055f57806328c9300d1461058f5780632a55205a146105af57600080fd5b80630b521a75116102e15780631b0fd31f116102bb5780631b0fd31f1461047257806323b872dd1461050f578063248a9ca31461052f57600080fd5b80630b521a75146104285780631249c58b1461044857806318160ddd1461045d57600080fd5b8063081812fc11610312578063081812fc146103b4578063088a22bb146103ec578063095ea7b31461040657600080fd5b80630158921e1461033957806301ffc9a71461036257806306fdde0314610392575b600080fd5b34801561034557600080fd5b5061034f600f5481565b6040519081526020015b60405180910390f35b34801561036e57600080fd5b5061038261037d366004613926565b610aac565b6040519015158152602001610359565b34801561039e57600080fd5b506103a7610ad7565b6040516103599190613993565b3480156103c057600080fd5b506103d46103cf3660046139a6565b610b69565b6040516001600160a01b039091168152602001610359565b3480156103f857600080fd5b506010546103829060ff1681565b34801561041257600080fd5b506104266104213660046139db565b610b90565b005b34801561043457600080fd5b50610426610443366004613a13565b610cc6565b34801561045457600080fd5b50610426611072565b34801561046957600080fd5b5060085461034f565b34801561047e57600080fd5b5061050061048d3660046139a6565b600d602090815260009182526040918290208054835160a081018552600183015460ff9081161515825260028401549482019490945260038301549481019490945260048201546001600160a01b0381166060860152600160a01b90048316151560808501526005909101549092911683565b60405161035993929190613a4b565b34801561051b57600080fd5b5061042661052a366004613aa7565b611126565b34801561053b57600080fd5b5061034f61054a3660046139a6565b6000908152600c602052604090206001015490565b34801561056b57600080fd5b5061038261057a366004613ae3565b60126020526000908152604090205460ff1681565b34801561059b57600080fd5b506104266105aa3660046139db565b6111ad565b3480156105bb57600080fd5b506105cf6105ca366004613afe565b6111df565b604080516001600160a01b039093168352602083019190915201610359565b3480156105fa57600080fd5b506104266106093660046139a6565b611218565b34801561061a57600080fd5b50610426610629366004613b20565b6113b6565b34801561063a57600080fd5b5061034f6106493660046139db565b6113db565b34801561065a57600080fd5b50600a546103d4906001600160a01b031681565b34801561067a57600080fd5b50610426610689366004613b20565b611483565b34801561069a57600080fd5b506106ae6106a93660046139a6565b61150b565b6040516103599190613b4c565b3480156106c757600080fd5b506104266106d6366004613aa7565b6115df565b3480156106e757600080fd5b506104266106f63660046139a6565b6115fa565b34801561070757600080fd5b50600e546103d4906001600160a01b031681565b34801561072757600080fd5b5061034f6107363660046139a6565b611606565b34801561074757600080fd5b50610426610756366004613bb2565b6116aa565b34801561076757600080fd5b506104266107763660046139a6565b6116df565b34801561078757600080fd5b506103d46107963660046139a6565b6117a8565b3480156107a757600080fd5b5061034f6107b6366004613ae3565b61180d565b3480156107c757600080fd5b506104266107d6366004613bf2565b6118a7565b3480156107e757600080fd5b5061034f600b5481565b3480156107fd57600080fd5b5061042661080c3660046139a6565b6118c6565b34801561081d57600080fd5b5061038261082c3660046139a6565b60116020526000908152604090205460ff1681565b34801561084d57600080fd5b5061038261085c366004613b20565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561089357600080fd5b5060105461038290610100900460ff1681565b3480156108b257600080fd5b506103a76119f0565b6104266108c93660046139a6565b6119ff565b3480156108da57600080fd5b506108ee6108e9366004613afe565b61229b565b6040516103599190613c0f565b34801561090757600080fd5b5061034f600081565b34801561091c57600080fd5b5061042661092b366004613c53565b612477565b34801561093c57600080fd5b5061042661094b366004613d16565b612482565b34801561095c57600080fd5b5061042661096b366004613db2565b61250a565b34801561097c57600080fd5b506103a761252e565b34801561099157600080fd5b506103a76109a03660046139a6565b6125bc565b3480156109b157600080fd5b506104266109c0366004613bf2565b6125f6565b3480156109d157600080fd5b5061034f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610a0557600080fd5b50610426610a14366004613b20565b61261c565b348015610a2557600080fd5b506103a7612641565b348015610a3a57600080fd5b506108ee61264e565b348015610a4f57600080fd5b50610382610a5e366004613e16565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a9857600080fd5b50610426610aa7366004613c53565b612725565b60006001600160e01b0319821663152a902d60e11b1480610ad15750610ad182612928565b92915050565b606060008054610ae690613e40565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1290613e40565b8015610b5f5780601f10610b3457610100808354040283529160200191610b5f565b820191906000526020600020905b815481529060010190602001808311610b4257829003601f168201915b5050505050905090565b6000610b7482612966565b506000908152600460205260409020546001600160a01b031690565b6000610b9b826117a8565b9050806001600160a01b0316836001600160a01b031603610c295760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610c455750610c458133610a5e565b610cb75760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610c20565b610cc183836129ca565b505050565b6000838152600d60205260409020600581015484919060ff16610d2b5760405162461bcd60e51b815260206004820152601760248201527f4d6f6e73746572206e6f7420496e697469616c697a65640000000000000000006044820152606401610c20565b60105460ff16610d895760405162461bcd60e51b815260206004820152602360248201527f4d61726b6574706c61636520697320636c6f73656420617420746865206d6f6d604482015262195b9d60ea1b6064820152608401610c20565b6000610d94866117a8565b90506001600160a01b0381163314610dab57600080fd5b601054610100900460ff168015610dc0575084155b15610e335760405162461bcd60e51b815260206004820152602b60248201527f4d61726b6574706c616365206973206f6e6c7920696e206e617469766520637560448201527f7272656e6379206d6f64650000000000000000000000000000000000000000006064820152608401610c20565b6000600d600088815260200190815260200160002060405180606001604052908160008201548152602001600182016040518060a00160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016003820160149054906101000a900460ff16151515158152505081526020016005820160009054906101000a900460ff16151515158152505090506001816020015160000190151590811515815250508481602001516020018181525050858160200151608001901515908115158152505080600d60008981526020019081526020016000206000820151816000015560208201518160010160008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060808201518160030160146101000a81548160ff021916908315150217905550505060408201518160050160006101000a81548160ff0219169083151502179055509050507f8061389be9e26d8277583c3323e175d469e5d9fc615b85def7fe0c637ed1ad918733878960405161106194939291909384526001600160a01b0392909216602084015260408301521515606082015260800190565b60405180910390a150505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661109c81612a38565b6103e76110a860085490565b106111005760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f74206d696e74206d6f7265207468616e20746f74616c20737570706044820152616c7960f01b6064820152608401610c20565b600061110b60085490565b611116906001613e90565b90506111223382612a42565b5050565b6111303382612b90565b6111a25760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610c20565b610cc1838383612c0f565b60006111b881612a38565b50600e80546001600160a01b0319166001600160a01b039390931692909217909155600f55565b600a54600b5460009182916001600160a01b03909116906064906112039086613ea3565b61120d9190613ed0565b915091509250929050565b6000611223826117a8565b90506001600160a01b038116331461127d5760405162461bcd60e51b815260206004820152601160248201527f4e6f74206d6f6e73746572206f776e65720000000000000000000000000000006044820152606401610c20565b6000828152600d602052604090206005015460ff16156112df5760405162461bcd60e51b815260206004820152601b60248201527f4d6f6e7374657220616c726561647920696e697469616c697a656400000000006044820152606401610c20565b506040805160a08101825260008082526020808301829052828401829052336060808501919091526080808501849052855180830187528781528084019586526001818801818152988652600d8552948790209051815594518051948601805495151560ff1996871617905592830151600286015594820151600385015581015160048401805492909501511515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199092166001600160a01b0391909116171790925591516005909201805492151592909116919091179055565b6000828152600c60205260409020600101546113d181612a38565b610cc18383612de7565b60006113e68361180d565b821061145a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c20565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146115015760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610c20565b6111228282612e89565b61155460408051606080820183526000808352835160a0810185528181526020818101839052948101829052918201819052608082015290918201908152600060209091015290565b506000908152600d602090815260409182902082516060808201855282548252845160a081018652600184015460ff9081161515825260028501548287015260038501548288015260048501546001600160a01b03811693830193909352600160a01b9092048216151560808201529382019390935260059091015490911615159181019190915290565b610cc183838360405180602001604052806000815250612482565b61160381612f0c565b50565b600061161160085490565b82106116855760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c20565b6008828154811061169857611698613ee4565b90600052602060002001549050919050565b60006116b581612a38565b600a80546001600160a01b0319166001600160a01b0386161790556116d983600b55565b50505050565b6000818152600d60205260409020600581015482919060ff166117445760405162461bcd60e51b815260206004820152601760248201527f4d6f6e73746572206e6f7420496e697469616c697a65640000000000000000006044820152606401610c20565b600061174f846117a8565b90506001600160a01b038116331461176657600080fd5b61176f84612f15565b6040518481527f132dfa87b35a5511c6e5a246c1aea497e06d538a73e2357a3f54dde4b5b0e7de9060200160405180910390a150505050565b6000818152600260205260408120546001600160a01b031680610ad15760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610c20565b60006001600160a01b03821661188b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610c20565b506001600160a01b031660009081526003602052604090205490565b60006118b281612a38565b506010805460ff1916911515919091179055565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66118f081612a38565b6103e7826118fd60085490565b6119079190613e90565b11156119605760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f74206d696e74206d6f7265207468616e20746f74616c20737570706044820152616c7960f01b6064820152608401610c20565b600082116119b05760405162461bcd60e51b815260206004820152601160248201527f43616e6e6f74206d696e742030206e66740000000000000000000000000000006044820152606401610c20565b60005b82811015610cc15760006119c660085490565b6119d1906001613e90565b90506119dd3382612a42565b50806119e881613efa565b9150506119b3565b606060018054610ae690613e40565b6000818152600d60205260409020600581015482919060ff16611a645760405162461bcd60e51b815260206004820152601760248201527f4d6f6e73746572206e6f7420496e697469616c697a65640000000000000000006044820152606401610c20565b60105460ff16611ac25760405162461bcd60e51b815260206004820152602360248201527f4d61726b6574706c61636520697320636c6f73656420617420746865206d6f6d604482015262195b9d60ea1b6064820152608401610c20565b6000838152600260205260409020546001600160a01b0316611b265760405162461bcd60e51b815260206004820152601560248201527f4d6f6e7374657220646f656e73742065786973747300000000000000000000006044820152606401610c20565b6000611b31846117a8565b9050336001600160a01b03821603611b8b5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420746865206d6f6e73746572206f776e657200000000000000000000006044820152606401610c20565b6000848152600d602090815260409182902082516060808201855282548252845160a081018652600184015460ff9081161515825260028501548287015260038501548288015260048501546001600160a01b03811693830193909352600160a01b90920482161515608082015293820184905260059092015490911615159281019290925251611c5e5760405162461bcd60e51b815260206004820152601760248201527f4d6f6e73746572206973206e6f7420666f722073616c650000000000000000006044820152606401610c20565b6000816020015160800151611c9357600f54611c7b90600a613ff7565b826020015160200151611c8e9190613ea3565b611c9d565b8160200151602001515b9050600080611cac88846111df565b90925090506000611cbd8285614003565b905084602001516080015115611d9b5783341015611d1d5760405162461bcd60e51b815260206004820152601c60248201527f5061796d656e74206661696c6564206f6e204275794d6f6e73746572000000006044820152606401610c20565b8460200151606001516001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015611d5e573d6000803e3d6000fd5b506040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015611d95573d6000803e3d6000fd5b50612162565b600e546040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa158015611dfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e209190614016565b1015611e945760405162461bcd60e51b815260206004820152602a60248201527f446f656e73742068617665207468652062616c616e636520746f20627579207460448201527f6865206d6f6e73746572000000000000000000000000000000000000000000006064820152608401610c20565b600e546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015233602482015285916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015611efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1f9190614016565b1015611f935760405162461bcd60e51b815260206004820152603e60248201527f4e6f7420616c6c6f77656420746f206d6f7665207468652066756e64732c206160448201527f7070726f7665206d6f726520746f6b656e7320746f207472616e7366657200006064820152608401610c20565b600e546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015612003573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612027919061402f565b6120735760405162461bcd60e51b815260206004820152601c60248201527f5061796d656e74206661696c6564206f6e204275794d6f6e73746572000000006044820152606401610c20565b600e5460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156120c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e8919061402f565b50600e5460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af115801561213c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612160919061402f565b505b602080860180518083015160409182015260008c8152600d8452819020885181559151805160018401805491151560ff1992831617905593810151600284015580820151600384015560608101516004840180546080909301511515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199093166001600160a01b0390921691909117919091179055870151600590910180549115159190921617905561221286338b612c0f565b6020808601516060810151918101516080909101516040517fe9917050503e9343adf804d543af4b9ea0f7c448ca38e9b8748161b5ac48b88193612288938e9391923392909485526001600160a01b03938416602086015291909216604084015260608301919091521515608082015260a00190565b60405180910390a1505050505050505050565b60606103e783106123145760405162461bcd60e51b815260206004820152603960248201527f746865207374617274206e756d6265722063616e6e6f74206265206d6f72652060448201527f7468616e20746865206d617820746f74616c20737570706c79000000000000006064820152608401610c20565b8183106123895760405162461bcd60e51b815260206004820152603760248201527f746865207374617274206e756d6265722063616e6e6f74206265206d6f72652060448201527f6f7220657175616c2074686520656e64206e756d6265720000000000000000006064820152608401610c20565b8260006103e7841161239b578361239f565b6103e75b905060006123ad8683614003565b905060008167ffffffffffffffff8111156123ca576123ca613c8a565b6040519080825280602002602001820160405280156123f3578160200160208202803683370190505b509050865b83811161246c576000818152600d6020526040902060019081015460ff161515900361245a576000818152600d6020526040902054825183908790811061244157612441613ee4565b60209081029190910101528461245681613efa565b9550505b8061246481613efa565b9150506123f8565b509695505050505050565b61112233838361304e565b61248c3383612b90565b6124fe5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610c20565b6116d98484848461311c565b600061251581612a38565b6013612521848261409a565b5060146116d9838261409a565b6013805461253b90613e40565b80601f016020809104026020016040519081016040528092919081815260200182805461256790613e40565b80156125b45780601f10612589576101008083540402835291602001916125b4565b820191906000526020600020905b81548152906001019060200180831161259757829003601f168201915b505050505081565b6060600060136125cb846131a5565b60146040516020016125df939291906141cd565b60408051601f198184030181529190529392505050565b600061260181612a38565b50601080549115156101000261ff0019909216919091179055565b6000828152600c602052604090206001015461263781612a38565b610cc18383612e89565b6014805461253b90613e40565b6060600061265b60085490565b905060008167ffffffffffffffff81111561267857612678613c8a565b6040519080825280602002602001820160405280156126a1578160200160208202803683370190505b5090506000805b83811161271c576000818152600d6020526040902060019081015460ff161515900361270a576000818152600d602052604090205483518490849081106126f1576126f1613ee4565b60209081029190910101528161270681613efa565b9250505b8061271481613efa565b9150506126a8565b50909392505050565b600061273081612a38565b506001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b6060600061276b836002613ea3565b612776906002613e90565b67ffffffffffffffff81111561278e5761278e613c8a565b6040519080825280601f01601f1916602001820160405280156127b8576020820181803683370190505b509050600360fc1b816000815181106127d3576127d3613ee4565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061281e5761281e613ee4565b60200101906001600160f81b031916908160001a9053506000612842846002613ea3565b61284d906001613e90565b90505b60018111156128d2577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061288e5761288e613ee4565b1a60f81b8282815181106128a4576128a4613ee4565b60200101906001600160f81b031916908160001a90535060049490941c936128cb81614200565b9050612850565b5083156129215760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c20565b9392505050565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610ad15750610ad1826132a6565b6000818152600260205260409020546001600160a01b03166116035760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610c20565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129ff826117a8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61160381336132cb565b6001600160a01b038216612a985760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c20565b6000818152600260205260409020546001600160a01b031615612afd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c20565b612b096000838361334b565b6001600160a01b0382166000908152600360205260408120805460019290612b32908490613e90565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080612b9c836117a8565b9050806001600160a01b0316846001600160a01b03161480612be357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612c075750836001600160a01b0316612bfc84610b69565b6001600160a01b0316145b949350505050565b826001600160a01b0316612c22826117a8565b6001600160a01b031614612c9e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610c20565b6001600160a01b038216612d195760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c20565b612d2483838361334b565b612d2f6000826129ca565b6001600160a01b0383166000908152600360205260408120805460019290612d58908490614003565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d86908490613e90565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16611122576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612e453390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff1615611122576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61160381613360565b6000818152600d602090815260409182902082516060808201855282548252845160a081018652600184015460ff9081161515825260028501548287015260038501548288015260048501546001600160a01b03811693830193909352600160a01b9092048216151560808201529382018490526005909201549091161515928101929092525115611122576020808201805160009081905281518301819052848152600d8352604090819020845181559151805160018401805491151560ff1992831617905593810151600284015580820151600384015560608101516004840180546080909301511515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199093166001600160a01b039092169190911791909117905583015160059091018054911515919092161790555050565b816001600160a01b0316836001600160a01b0316036130af5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c20565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613127848484612c0f565b61313384848484613407565b6116d95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c20565b6060816000036131cc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131f657806131e081613efa565b91506131ef9050600a83613ed0565b91506131d0565b60008167ffffffffffffffff81111561321157613211613c8a565b6040519080825280601f01601f19166020018201604052801561323b576020820181803683370190505b5090505b8415612c0757613250600183614003565b915061325d600a86614217565b613268906030613e90565b60f81b81838151811061327d5761327d613ee4565b60200101906001600160f81b031916908160001a90535061329f600a86613ed0565b945061323f565b60006001600160e01b0319821663152a902d60e11b1480610ad15750610ad18261355e565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff1661112257613309816001600160a01b0316601461275c565b61331483602061275c565b60405160200161332592919061422b565b60408051601f198184030181529082905262461bcd60e51b8252610c2091600401613993565b61335683838361359c565b610cc18183613654565b600061336b826117a8565b90506133798160008461334b565b6133846000836129ca565b6001600160a01b03811660009081526003602052604081208054600192906133ad908490614003565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561355357604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061344b9033908990889088906004016142ac565b6020604051808303816000875af1925050508015613486575060408051601f3d908101601f19168201909252613483918101906142e8565b60015b613539573d8080156134b4576040519150601f19603f3d011682016040523d82523d6000602084013e6134b9565b606091505b5080516000036135315760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c20565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c07565b506001949350505050565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610ad15750610ad1826136e5565b6001600160a01b0383166135f7576135f281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61361a565b816001600160a01b0316836001600160a01b03161461361a5761361a8382613780565b6001600160a01b03821661363157610cc18161381d565b826001600160a01b0316826001600160a01b031614610cc157610cc182826138cc565b6000828152600d6020526040902060048101805460018301805460ff808216151560ff1992831617909255600160a01b6001600160a01b0387166001600160a01b0319851681178290048416151590910274ffffffffffffffffffffffffffffffffffffffffff199094161792909217909255600583018054928316151592909116919091179055610cc183612f15565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061374857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ad157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610ad1565b6000600161378d8461180d565b6137979190614003565b6000838152600760205260409020549091508082146137ea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061382f90600190614003565b6000838152600960205260408120546008805493945090928490811061385757613857613ee4565b90600052602060002001549050806008838154811061387857613878613ee4565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806138b0576138b0614305565b6001900381819060005260206000200160009055905550505050565b60006138d78361180d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461160357600080fd5b60006020828403121561393857600080fd5b813561292181613910565b60005b8381101561395e578181015183820152602001613946565b50506000910152565b6000815180845261397f816020860160208601613943565b601f01601f19169290920160200192915050565b6020815260006129216020830184613967565b6000602082840312156139b857600080fd5b5035919050565b80356001600160a01b03811681146139d657600080fd5b919050565b600080604083850312156139ee57600080fd5b6139f7836139bf565b946020939093013593505050565b801515811461160357600080fd5b600080600060608486031215613a2857600080fd5b833592506020840135613a3a81613a05565b929592945050506040919091013590565b83815260e08101613a97602083018580511515825260208101516020830152604081015160408301526001600160a01b0360608201511660608301526080810151151560808301525050565b82151560c0830152949350505050565b600080600060608486031215613abc57600080fd5b613ac5846139bf565b9250613ad3602085016139bf565b9150604084013590509250925092565b600060208284031215613af557600080fd5b612921826139bf565b60008060408385031215613b1157600080fd5b50508035926020909101359150565b60008060408385031215613b3357600080fd5b82359150613b43602084016139bf565b90509250929050565b8151815260208083015160e0830191613b9f9084018280511515825260208101516020830152604081015160408301526001600160a01b0360608201511660608301526080810151151560808301525050565b506040830151151560c083015292915050565b600080600060608486031215613bc757600080fd5b613bd0846139bf565b9250602084013591506040840135613be781613a05565b809150509250925092565b600060208284031215613c0457600080fd5b813561292181613a05565b6020808252825182820181905260009190848201906040850190845b81811015613c4757835183529284019291840191600101613c2b565b50909695505050505050565b60008060408385031215613c6657600080fd5b613c6f836139bf565b91506020830135613c7f81613a05565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613cbb57613cbb613c8a565b604051601f8501601f19908116603f01168101908282118183101715613ce357613ce3613c8a565b81604052809350858152868686011115613cfc57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215613d2c57600080fd5b613d35856139bf565b9350613d43602086016139bf565b925060408501359150606085013567ffffffffffffffff811115613d6657600080fd5b8501601f81018713613d7757600080fd5b613d8687823560208401613ca0565b91505092959194509250565b600082601f830112613da357600080fd5b61292183833560208501613ca0565b60008060408385031215613dc557600080fd5b823567ffffffffffffffff80821115613ddd57600080fd5b613de986838701613d92565b93506020850135915080821115613dff57600080fd5b50613e0c85828601613d92565b9150509250929050565b60008060408385031215613e2957600080fd5b613e32836139bf565b9150613b43602084016139bf565b600181811c90821680613e5457607f821691505b602082108103613e7457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ad157610ad1613e7a565b8082028115828204841417610ad157610ad1613e7a565b634e487b7160e01b600052601260045260246000fd5b600082613edf57613edf613eba565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201613f0c57613f0c613e7a565b5060010190565b600181815b80851115613f4e578160001904821115613f3457613f34613e7a565b80851615613f4157918102915b93841c9390800290613f18565b509250929050565b600082613f6557506001610ad1565b81613f7257506000610ad1565b8160018114613f885760028114613f9257613fae565b6001915050610ad1565b60ff841115613fa357613fa3613e7a565b50506001821b610ad1565b5060208310610133831016604e8410600b8410161715613fd1575081810a610ad1565b613fdb8383613f13565b8060001904821115613fef57613fef613e7a565b029392505050565b60006129218383613f56565b81810381811115610ad157610ad1613e7a565b60006020828403121561402857600080fd5b5051919050565b60006020828403121561404157600080fd5b815161292181613a05565b601f821115610cc157600081815260208120601f850160051c810160208610156140735750805b601f850160051c820191505b818110156140925782815560010161407f565b505050505050565b815167ffffffffffffffff8111156140b4576140b4613c8a565b6140c8816140c28454613e40565b8461404c565b602080601f8311600181146140fd57600084156140e55750858301515b600019600386901b1c1916600185901b178555614092565b600085815260208120601f198616915b8281101561412c5788860151825594840194600190910190840161410d565b508582101561414a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000815461416781613e40565b6001828116801561417f5760018114614194576141c3565b60ff19841687528215158302870194506141c3565b8560005260208060002060005b858110156141ba5781548a8201529084019082016141a1565b50505082870194505b5050505092915050565b60006141d9828661415a565b84516141e9818360208901613943565b6141f58183018661415a565b979650505050505050565b60008161420f5761420f613e7a565b506000190190565b60008261422657614226613eba565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614263816017850160208801613943565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516142a0816028840160208801613943565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142de6080830184613967565b9695505050505050565b6000602082840312156142fa57600080fd5b815161292181613910565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203cb61a813fbe34a8d1db08cd9de9e12d38a507181f19db1ba7d0b7cd92f167d964736f6c63430008110033697066733a2f2f516d5633766f63795475754c787477786154596e766666786f37564351356a4b624a354636767135594c41724a622f00000000000000000000000057ba2abfc91b1a13a92f709a67b2da35d7cc9a00

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

00000000000000000000000057ba2abfc91b1a13a92f709a67b2da35d7cc9a00

-----Decoded View---------------
Arg [0] : royaltiesAddr (address): 0x57ba2abfc91b1a13a92f709a67b2da35d7cc9a00

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


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