ETH Price: $2,475.94 (-1.79%)

Token

Grandma's Candies (CANDIES)
 

Overview

Max Total Supply

0 CANDIES

Holders

35

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CANDIES
0xbf13fa468a74825764bd5c57d28ea778cea29cce
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Candies

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 1000 runs

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

/**                                                      
 *      ,-----.  ,---.  ,--.  ,--.,------.  ,--.,------. ,---.   
 *     '  .--./ /  O  \ |  ,'.|  ||  .-.  \ |  ||  .---''   .-'  
 *     |  |    |  .-.  ||  |' '  ||  |  \  :|  ||  `--, `.  `-.  
 *     '  '--'\|  | |  ||  | `   ||  '--'  /|  ||  `---..-'    | 
 *      `-----'`--' `--'`--'  `--'`-------' `--'`------'`-----'  
 *
 *                   by @p0pps  ~  Est. 2022
 */
                                 
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";

contract Candies is ERC721, ERC721Royalty, AccessControl {
    using Random for Random.Manifest;
    using BitMaps for BitMaps.BitMap;
    using Strings for uint256;

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    string baseURI = "https://static.mustardlabs.io/candies/";
    string movURI = "https://static.mustardlabs.io/candies/";
    string externalURI = "https://candies.shop/candies/";
    mapping(uint => string) public names;
    mapping(uint => string) public attributes;
    mapping(uint => uint) public codes;
    mapping(uint => uint) public countsByType;
    uint public totalCount;
    bool public initComplete;
    Random.Manifest private collectionDeck;
    mapping(uint => Random.Manifest) private candyDecks;
    mapping(uint => uint) public unwrappedIds;
    BitMaps.BitMap private unwrapped;

    event Unwrap(uint tokenId, address indexed wallet, uint unwrappedID);
    event Add(uint index, uint count);

    constructor() ERC721("Grandma's Candies", "CANDIES") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(MINTER_ROLE, msg.sender);
        _setDefaultRoyalty(0xaF2b0Ff9227cC905ddb05139Dde85B6121023a27, 500);
    }

// Mint

    function mint(address _to) public onlyRole(MINTER_ROLE) {
        uint _pull = collectionDeck.draw();
        _safeMint(_to, _pull);
    }

    function unwrap(uint _tokenId, address _to) public onlyRole(MINTER_ROLE) {
        require(_exists(_tokenId), "Can't unwrap nonexistent token");
        require(ownerOf(_tokenId) == _to, "You don't own this candy");
        require(!unwrapped.get(_tokenId), "Already unwrapped");
        unwrapped.set(_tokenId);
        uint _pull = candyDecks[getType(_tokenId)].draw();
        uint _unwrappedId = _pull;
        for (uint i = 0; i < getType(_tokenId); i++){
            _unwrappedId += countsByType[i];
        }
        unwrappedIds[_tokenId] = _unwrappedId;
        emit Unwrap(_tokenId, _to, _unwrappedId);
    }

// View

    function remaining() public view returns (uint256) {
        return collectionDeck.remaining();
    }

    function getType(uint _tokenId) public view returns (uint) {
        return codes[_tokenId] / 10;
    }

    function getName(uint _tokenId) public view returns (string memory) {
        return names[ getType(_tokenId)];
    }

    function getMetadataJson(uint256 _tokenId) public view returns (string memory) {
        require(_exists(_tokenId), "Query for nonexistent token");
        uint _code = codes[_tokenId];
        string memory _status = unwrapped.get(_tokenId) ? "unwrapped" : "wrapped";
        uint _imageId = unwrapped.get(_tokenId) ? unwrappedIds[_tokenId] : _tokenId;
        string memory _attributes = string(abi.encodePacked('[\n{"trait_type":"Type","value": "',names[_code / 10],'"},\n'));

        if (unwrapped.get(_tokenId)) { // unwrapped
            _attributes = string(abi.encodePacked(_attributes,'{"trait_type":"Status","value": "Unwrapped"},\n'));
            _attributes = string(abi.encodePacked(_attributes,attributes[_code % 10]));
        } else { // wrapped
            _attributes = string(abi.encodePacked(_attributes,'{"trait_type":"Status","value": "Wrapped"}'));
        }
        _attributes = string(abi.encodePacked(_attributes,'\n]'));

        string memory meta = string(
            abi.encodePacked(
            '{\n"name":"#', _tokenId.toString(),', ',names[_code / 10],
            '",\n"description": "Grandma', "'", 's Candies by @p0pps', 
            '",\n"attributes":', _attributes
            )
        );
        meta = string(
            abi.encodePacked(
                meta,
                ',\n"external_url": "',externalURI, _tokenId.toString(),
                '",\n"image": "', baseURI, _status,'/', _imageId.toString(),'.gif"',
                ',\n"mp4": "', movURI, _status,'/', _imageId.toString(),'.mp4"'
            )
        );
      return string( abi.encodePacked(meta,'\n}'));
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
      string memory json = Base64.encode(bytes(getMetadataJson(tokenId)));
      string memory output = string(
        abi.encodePacked("data:application/json;base64,", json)
      );
      return output;
    }

// Contract Admin

    // Don't use!
    function somedayMint(address _to, uint _id) public onlyRole(MINTER_ROLE) {
        require(remaining() == 0, "Use at your own risk dummy.");
        require(_id > 229, "Can't mint in that range.");
        _safeMint(_to, _id);
    }

    function set(uint _index, uint8 _code) public onlyRole(MINTER_ROLE) {
        codes[_index] = _code;
    }

    function setBaseURI(string memory _val) public onlyRole(MINTER_ROLE) {
        baseURI = _val;
    }

    function setMovURI(string memory _val) public onlyRole(MINTER_ROLE) {
        movURI = _val;
    }
    function setExternalURI(string memory _val) public onlyRole(MINTER_ROLE) {
        externalURI = _val;
    }

// Initial Setup (Admin)

    function setName(uint index, string memory name) public onlyRole(MINTER_ROLE) {
        names[index] = name;
    }
    
    function setAttribute(uint index, string memory attribute) public onlyRole(MINTER_ROLE) {
        attributes[index] = attribute;
    }

    function add(uint _startIndex, uint8[] memory arr) public onlyRole(MINTER_ROLE) {
        totalCount += arr.length;   
        for (uint i = 0; i < arr.length; i++) {
            codes[i + _startIndex] = arr[i];
        }
        emit Add(_startIndex, arr.length);
    }

    function init() public onlyRole(MINTER_ROLE) {
        require(!initComplete,"Init complete.");
        uint _numTypes = 4;
        uint[] memory _counts = new uint[](_numTypes);
        for (uint i = 0; i < totalCount; i++) {
            _counts[codes[i] / 10]++;
        }
        uint _checkTotal;
        for (uint i = 0; i < _numTypes; i++) {
            _checkTotal += _counts[i];
            countsByType[i] = _counts[i];
        }
        require(totalCount == _checkTotal, "Totals don't match on init.");
        collectionDeck.setup(totalCount);
        for (uint i = 0; i < _numTypes; i++) {
            candyDecks[i].setup(_counts[i]);
        }
        initComplete = true;
    }

// Overrides

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

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl, ERC721Royalty) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

library Random {
    function random() internal view returns (bytes32) {
        return keccak256(abi.encodePacked(blockhash(block.number - 1), block.timestamp, msg.sender)) ;
    }

    struct Manifest {
        uint256[] _data;
    }

    function setup(Manifest storage self, uint256 length) internal {
        uint256[] storage data = self._data;

        require(data.length == 0, "cannot-setup-during-active-draw");
        assembly { sstore(data.slot, length) }
    }

    function draw(Manifest storage self) internal returns (uint256) {
        return draw(self, random());
    }

    function draw(Manifest storage self, bytes32 seed) internal returns (uint256) {
        uint256[] storage data = self._data;

        uint256 l = data.length;
        uint256 i = uint256(seed) % l;
        uint256 x = data[i];
        uint256 y = data[--l];
        if (x == 0) { x = i + 1;   }
        if (y == 0) { y = l + 1;   }
        if (i != l) { data[i] = y; }
        data.pop();
        return x - 1;
    }

    function put(Manifest storage self, uint256 i) internal {
        self._data.push(i + 1);
    }

    function remaining(Manifest storage self) internal view returns (uint256) {
        return self._data.length;
    }
}

File 2 of 17 : 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 3 of 17 : 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 4 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 5 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : 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 12 of 17 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 13 of 17 : 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 14 of 17 : 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 15 of 17 : 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 16 of 17 : 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 17 of 17 : BitMaps.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"unwrappedID","type":"uint256"}],"name":"Unwrap","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startIndex","type":"uint256"},{"internalType":"uint8[]","name":"arr","type":"uint8[]"}],"name":"add","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":"uint256","name":"","type":"uint256"}],"name":"attributes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"","type":"uint256"}],"name":"codes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"countsByType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getMetadataJson","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initComplete","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"names","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"uint256","name":"_index","type":"uint256"},{"internalType":"uint8","name":"_code","type":"uint8"}],"name":"set","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":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"attribute","type":"string"}],"name":"setAttribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_val","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_val","type":"string"}],"name":"setExternalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_val","type":"string"}],"name":"setMovURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"somedayMint","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"unwrappedIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60e0604052602660808181529062003ad760a039805162000029916009916020909101906200032e565b5060405180606001604052806026815260200162003ad76026913980516200005a91600a916020909101906200032e565b5060408051808201909152601d8082527f68747470733a2f2f63616e646965732e73686f702f63616e646965732f0000006020909201918252620000a191600b916200032e565b50348015620000af57600080fd5b5060408051808201825260118152704772616e646d6127732043616e6469657360781b60208083019182528351808501909452600784526643414e4449455360c81b90840152815191929162000108916002916200032e565b5080516200011e9060039060208401906200032e565b50620001309150600090503362000184565b6200015c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000184565b6200017e73af2b0ff9227cc905ddb05139dde85b6121023a276101f462000229565b62000411565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16620002255760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001e43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6127106001600160601b03821611156200029d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002f55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000294565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b8280546200033c90620003d4565b90600052602060002090601f016020900481019282620003605760008555620003ab565b82601f106200037b57805160ff1916838001178555620003ab565b82800160010185558215620003ab579182015b82811115620003ab5782518255916020019190600101906200038e565b50620003b9929150620003bd565b5090565b5b80821115620003b95760008155600101620003be565b600181811c90821680620003e957607f821691505b602082108114156200040b57634e487b7160e01b600052602260045260246000fd5b50919050565b6136b680620004216000396000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c80636b8ff57411610191578063c87b56dd116100e3578063e1c7392a11610097578063f419df7211610071578063f419df7214610690578063f7d027de146106a3578063fe55932a146106b657600080fd5b8063e1c7392a1461062c578063e86613a714610634578063e985e9c51461065457600080fd5b8063d08b4add116100c8578063d08b4add146105f1578063d539139314610604578063d547741f1461061957600080fd5b8063c87b56dd146105cb578063d05dcc6a146105de57600080fd5b806391d1485411610145578063a22cb4651161011f578063a22cb46514610585578063b88d4fde14610598578063b91b25b2146105ab57600080fd5b806391d148541461053c57806395d89b4114610575578063a217fddf1461057d57600080fd5b80637647691d116101765780637647691d1461050357806386ad3bb6146105165780638ecb2b411461052957600080fd5b80636b8ff574146104dd57806370a08231146104f057600080fd5b806334eafb111161024a578063431f8cde116101fe57806355f804b3116101d857806355f804b3146104a45780636352211e146104b75780636a627842146104ca57600080fd5b8063431f8cde146104765780634622ab031461048957806355234ec01461049c57600080fd5b80633851c6f61161022f5780633851c6f6146104305780634036ab781461045057806342842e0e1461046357600080fd5b806334eafb111461041457806336568abe1461041d57600080fd5b80631feb945c116102a1578063248a9ca311610286578063248a9ca31461039e5780632a55205a146103cf5780632f2ff15d1461040157600080fd5b80631feb945c1461037e57806323b872dd1461038b57600080fd5b8063081812fc116102d2578063081812fc1461032b578063095ea7b3146103565780631c5741491461036b57600080fd5b806301ffc9a7146102ee57806306fdde0314610316575b600080fd5b6103016102fc3660046129d5565b6106c9565b60405190151581526020015b60405180910390f35b61031e6106da565b60405161030d9190612a4a565b61033e610339366004612a5d565b61076c565b6040516001600160a01b03909116815260200161030d565b610369610364366004612a92565b610793565b005b610369610379366004612a92565b6108ca565b6011546103019060ff1681565b610369610399366004612abc565b610991565b6103c16103ac366004612a5d565b60009081526008602052604090206001015490565b60405190815260200161030d565b6103e26103dd366004612af8565b610a18565b604080516001600160a01b03909316835260208301919091520161030d565b61036961040f366004612b1a565b610ad3565b6103c160105481565b61036961042b366004612b1a565b610af8565b6103c161043e366004612a5d565b600f6020526000908152604090205481565b6103c161045e366004612a5d565b610b84565b610369610471366004612abc565b610b9f565b610369610484366004612b9e565b610bba565b61031e610497366004612a5d565b610c89565b6103c1610d23565b6103696104b2366004612ccf565b610d33565b61033e6104c5366004612a5d565b610d5e565b6103696104d8366004612d04565b610dc3565b61031e6104eb366004612a5d565b610df3565b6103c16104fe366004612d04565b610ea0565b610369610511366004612b1a565b610f3a565b610369610524366004612d1f565b61116a565b610369610537366004612ccf565b6111a7565b61030161054a366004612b1a565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61031e6111d2565b6103c1600081565b610369610593366004612d66565b6111e1565b6103696105a6366004612da2565b6111ec565b6103c16105b9366004612a5d565b60146020526000908152604090205481565b61031e6105d9366004612a5d565b611274565b61031e6105ec366004612a5d565b6112b6565b6103696105ff366004612ccf565b6112cf565b6103c160008051602061366183398151915281565b610369610627366004612b1a565b6112fa565b61036961131f565b6103c1610642366004612a5d565b600e6020526000908152604090205481565b610301610662366004612e1e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61036961069e366004612e48565b611556565b61031e6106b1366004612a5d565b611587565b6103696106c4366004612d1f565b61189d565b60006106d4826118d4565b92915050565b6060600280546106e990612e6b565b80601f016020809104026020016040519081016040528092919081815260200182805461071590612e6b565b80156107625780601f1061073757610100808354040283529160200191610762565b820191906000526020600020905b81548152906001019060200180831161074557829003601f168201915b5050505050905090565b600061077782611912565b506000908152600660205260409020546001600160a01b031690565b600061079e82610d5e565b9050806001600160a01b0316836001600160a01b0316141561082d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b038216148061084957506108498133610662565b6108bb5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610824565b6108c58383611979565b505050565b6000805160206136618339815191526108e2816119f4565b6108ea610d23565b156109375760405162461bcd60e51b815260206004820152601b60248201527f55736520617420796f7572206f776e207269736b2064756d6d792e00000000006044820152606401610824565b60e582116109875760405162461bcd60e51b815260206004820152601960248201527f43616e2774206d696e7420696e20746861742072616e67652e000000000000006044820152606401610824565b6108c583836119fe565b61099b3382611a18565b610a0d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610824565b6108c5838383611a97565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610a975750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610abb906bffffffffffffffffffffffff1687612ebc565b610ac59190612ef1565b915196919550909350505050565b600082815260086020526040902060010154610aee816119f4565b6108c58383611c71565b6001600160a01b0381163314610b765760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610824565b610b808282611d13565b5050565b6000818152600e60205260408120546106d490600a90612ef1565b6108c5838383604051806020016040528060008152506111ec565b600080516020613661833981519152610bd2816119f4565b815160106000828254610be59190612f05565b90915550600090505b8251811015610c4757828181518110610c0957610c09612f1d565b602002602001015160ff16600e60008684610c249190612f05565b815260208101919091526040016000205580610c3f81612f33565b915050610bee565b5081516040805185815260208101929092527f7afbe4f1c55b5f72ea356f5b4d5615831867af31454a5ca5557f315e6d11a369910160405180910390a1505050565b600c6020526000908152604090208054610ca290612e6b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cce90612e6b565b8015610d1b5780601f10610cf057610100808354040283529160200191610d1b565b820191906000526020600020905b815481529060010190602001808311610cfe57829003601f168201915b505050505081565b6000610d2e60125490565b905090565b600080516020613661833981519152610d4b816119f4565b81516108c5906009906020850190612926565b6000818152600460205260408120546001600160a01b0316806106d45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610824565b600080516020613661833981519152610ddb816119f4565b6000610de76012611d96565b90506108c583826119fe565b6060600c6000610e0284610b84565b81526020019081526020016000208054610e1b90612e6b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4790612e6b565b8015610e945780601f10610e6957610100808354040283529160200191610e94565b820191906000526020600020905b815481529060010190602001808311610e7757829003601f168201915b50505050509050919050565b60006001600160a01b038216610f1e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610824565b506001600160a01b031660009081526005602052604090205490565b600080516020613661833981519152610f52816119f4565b6000838152600460205260409020546001600160a01b0316610fb65760405162461bcd60e51b815260206004820152601e60248201527f43616e277420756e77726170206e6f6e6578697374656e7420746f6b656e00006044820152606401610824565b816001600160a01b0316610fc984610d5e565b6001600160a01b03161461101f5760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e20746869732063616e647900000000000000006044820152606401610824565b600883901c600090815260156020526040902054600160ff85161b16156110885760405162461bcd60e51b815260206004820152601160248201527f416c726561647920756e777261707065640000000000000000000000000000006044820152606401610824565b600883901c60009081526015602052604081208054600160ff87161b1790556110c96013826110b687610b84565b8152602001908152602001600020611d96565b90508060005b6110d886610b84565b81101561110c576000818152600f60205260409020546110f89083612f05565b91508061110481612f33565b9150506110cf565b5060008581526014602090815260409182902083905581518781529081018390526001600160a01b038616917faec8e13f64207044c453b2a37afb225aee4220504c856bb67504075327026c08910160405180910390a25050505050565b600080516020613661833981519152611182816119f4565b6000838152600d6020908152604090912083516111a192850190612926565b50505050565b6000805160206136618339815191526111bf816119f4565b81516108c590600a906020850190612926565b6060600380546106e990612e6b565b610b80338383611da9565b6111f63383611a18565b6112685760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610824565b6111a184848484611e78565b6060600061128961128484611587565b611ef6565b905060008160405160200161129e9190612f6a565b60408051601f19818403018152919052949350505050565b600d6020526000908152604090208054610ca290612e6b565b6000805160206136618339815191526112e7816119f4565b81516108c590600b906020850190612926565b600082815260086020526040902060010154611315816119f4565b6108c58383611d13565b600080516020613661833981519152611337816119f4565b60115460ff161561138a5760405162461bcd60e51b815260206004820152600e60248201527f496e697420636f6d706c6574652e0000000000000000000000000000000000006044820152606401610824565b60408051600480825260a08201909252600090826020820160808036833701905050905060005b601054811015611412576000818152600e602052604090205482906113d890600a90612ef1565b815181106113e8576113e8612f1d565b6020026020010180518091906113fd90612f33565b9052508061140a81612f33565b9150506113b1565b506000805b838110156114865782818151811061143157611431612f1d565b6020026020010151826114449190612f05565b915082818151811061145857611458612f1d565b6020908102919091018101516000838152600f9092526040909120558061147e81612f33565b915050611417565b5080601054146114d85760405162461bcd60e51b815260206004820152601b60248201527f546f74616c7320646f6e2774206d61746368206f6e20696e69742e00000000006044820152606401610824565b6010546114e79060129061204a565b60005b838110156115425761153083828151811061150757611507612f1d565b60200260200101516013600084815260200190815260200160002061204a90919063ffffffff16565b8061153a81612f33565b9150506114ea565b50506011805460ff19166001179055505050565b60008051602061366183398151915261156e816119f4565b506000918252600e602052604090912060ff9091169055565b6000818152600460205260409020546060906001600160a01b03166115ee5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610824565b6000828152600e6020908152604080832054600886901c84526015909252822054909190600160ff86161b16611659576040518060400160405280600781526020017f7772617070656400000000000000000000000000000000000000000000000000815250611690565b6040518060400160405280600981526020017f756e7772617070656400000000000000000000000000000000000000000000008152505b600885901c60009081526015602052604081205491925090600160ff87161b166116ba57846116ca565b6000858152601460205260409020545b90506000600c816116dc600a87612ef1565b81526020019081526020016000206040516020016116fa9190613049565b60408051808303601f19018152918152600888901c600090815260156020522054909150600160ff88161b1615611793578060405160200161173c91906130ce565b60408051601f19818403018152919052905080600d600061175e600a88613135565b815260200190815260200160002060405160200161177d929190613149565b60405160208183030381529060405290506117b6565b806040516020016117a49190613170565b60405160208183030381529060405290505b806040516020016117c791906131d7565b604051602081830303815290604052905060006117e38761209f565b600c60006117f2600a89612ef1565b81526020019081526020016000208360405160200161181393929190613218565b604051602081830303815290604052905080600b6118308961209f565b60098761183c8861209f565b600a8a6118488b61209f565b6040516020016118609998979695949392919061333e565b60405160208183030381529060405290508060405160200161188291906134c1565b60405160208183030381529060405295505050505050919050565b6000805160206136618339815191526118b5816119f4565b6000838152600c6020908152604090912083516111a192850190612926565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806106d457506106d48261219d565b6000818152600460205260409020546001600160a01b03166119765760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610824565b50565b6000818152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906119bb82610d5e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61197681336121a8565b610b80828260405180602001604052806000815250612228565b600080611a2483610d5e565b9050806001600160a01b0316846001600160a01b03161480611a6b57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80611a8f5750836001600160a01b0316611a848461076c565b6001600160a01b0316145b949350505050565b826001600160a01b0316611aaa82610d5e565b6001600160a01b031614611b265760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610824565b6001600160a01b038216611ba15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610824565b611bac600082611979565b6001600160a01b0383166000908152600560205260408120805460019290611bd5908490613502565b90915550506001600160a01b0382166000908152600560205260408120805460019290611c03908490612f05565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610b805760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611ccf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff1615610b805760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006106d482611da46122a6565b6122fa565b816001600160a01b0316836001600160a01b03161415611e0b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610824565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e83848484611a97565b611e8f848484846123e9565b6111a15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610824565b6060815160001415611f1657505060408051602081019091526000815290565b60006040518060600160405280604081526020016136216040913990506000600384516002611f459190612f05565b611f4f9190612ef1565b611f5a906004612ebc565b67ffffffffffffffff811115611f7257611f72612b46565b6040519080825280601f01601f191660200182016040528015611f9c576020820181803683370190505b509050600182016020820185865187015b80821015612008576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611fad565b505060038651066001811461202457600281146120375761203f565b603d6001830353603d600283035361203f565b603d60018303535b509195945050505050565b815482901561209b5760405162461bcd60e51b815260206004820152601f60248201527f63616e6e6f742d73657475702d647572696e672d6163746976652d64726177006044820152606401610824565b5550565b6060816120c35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120ed57806120d781612f33565b91506120e69050600a83612ef1565b91506120c7565b60008167ffffffffffffffff81111561210857612108612b46565b6040519080825280601f01601f191660200182016040528015612132576020820181803683370190505b5090505b8415611a8f57612147600183613502565b9150612154600a86613135565b61215f906030612f05565b60f81b81838151811061217457612174612f1d565b60200101906001600160f81b031916908160001a905350612196600a86612ef1565b9450612136565b60006106d482612532565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610b80576121e6816001600160a01b031660146125a4565b6121f18360206125a4565b604051602001612202929190613519565b60408051601f198184030181529082905262461bcd60e51b825261082491600401612a4a565b6122328383612770565b61223f60008484846123e9565b6108c55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610824565b60006122b3600143613502565b6040805191406020830152429082015233606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120905090565b815460009083908261230c8286613135565b9050600083828154811061232257612322612f1d565b60009182526020822001549150846123398561359a565b9450848154811061234c5761234c612f1d565b9060005260206000200154905081600014156123705761236d836001612f05565b91505b8061238357612380846001612f05565b90505b8383146123aa578085848154811061239d5761239d612f1d565b6000918252602090912001555b848054806123ba576123ba6135b1565b600190038181906000526020600020016000905590556001826123dd9190613502565b98975050505050505050565b60006001600160a01b0384163b1561252757604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061242d9033908990889088906004016135c7565b6020604051808303816000875af1925050508015612468575060408051601f3d908101601f1916820190925261246591810190613603565b60015b61250d573d808015612496576040519150601f19603f3d011682016040523d82523d6000602084013e61249b565b606091505b5080516125055760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610824565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a8f565b506001949350505050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061259557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106d457506106d4826128bf565b606060006125b3836002612ebc565b6125be906002612f05565b67ffffffffffffffff8111156125d6576125d6612b46565b6040519080825280601f01601f191660200182016040528015612600576020820181803683370190505b509050600360fc1b8160008151811061261b5761261b612f1d565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061266657612666612f1d565b60200101906001600160f81b031916908160001a905350600061268a846002612ebc565b612695906001612f05565b90505b600181111561271a577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106126d6576126d6612f1d565b1a60f81b8282815181106126ec576126ec612f1d565b60200101906001600160f81b031916908160001a90535060049490941c936127138161359a565b9050612698565b5083156127695760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610824565b9392505050565b6001600160a01b0382166127c65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610824565b6000818152600460205260409020546001600160a01b03161561282b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610824565b6001600160a01b0382166000908152600560205260408120805460019290612854908490612f05565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806106d457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146106d4565b82805461293290612e6b565b90600052602060002090601f016020900481019282612954576000855561299a565b82601f1061296d57805160ff191683800117855561299a565b8280016001018555821561299a579182015b8281111561299a57825182559160200191906001019061297f565b506129a69291506129aa565b5090565b5b808211156129a657600081556001016129ab565b6001600160e01b03198116811461197657600080fd5b6000602082840312156129e757600080fd5b8135612769816129bf565b60005b83811015612a0d5781810151838201526020016129f5565b838111156111a15750506000910152565b60008151808452612a368160208601602086016129f2565b601f01601f19169290920160200192915050565b6020815260006127696020830184612a1e565b600060208284031215612a6f57600080fd5b5035919050565b80356001600160a01b0381168114612a8d57600080fd5b919050565b60008060408385031215612aa557600080fd5b612aae83612a76565b946020939093013593505050565b600080600060608486031215612ad157600080fd5b612ada84612a76565b9250612ae860208501612a76565b9150604084013590509250925092565b60008060408385031215612b0b57600080fd5b50508035926020909101359150565b60008060408385031215612b2d57600080fd5b82359150612b3d60208401612a76565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612b8557612b85612b46565b604052919050565b803560ff81168114612a8d57600080fd5b60008060408385031215612bb157600080fd5b8235915060208084013567ffffffffffffffff80821115612bd157600080fd5b818601915086601f830112612be557600080fd5b813581811115612bf757612bf7612b46565b8060051b9150612c08848301612b5c565b8181529183018401918481019089841115612c2257600080fd5b938501935b83851015612c4757612c3885612b8d565b82529385019390850190612c27565b8096505050505050509250929050565b600067ffffffffffffffff831115612c7157612c71612b46565b612c84601f8401601f1916602001612b5c565b9050828152838383011115612c9857600080fd5b828260208301376000602084830101529392505050565b600082601f830112612cc057600080fd5b61276983833560208501612c57565b600060208284031215612ce157600080fd5b813567ffffffffffffffff811115612cf857600080fd5b611a8f84828501612caf565b600060208284031215612d1657600080fd5b61276982612a76565b60008060408385031215612d3257600080fd5b82359150602083013567ffffffffffffffff811115612d5057600080fd5b612d5c85828601612caf565b9150509250929050565b60008060408385031215612d7957600080fd5b612d8283612a76565b915060208301358015158114612d9757600080fd5b809150509250929050565b60008060008060808587031215612db857600080fd5b612dc185612a76565b9350612dcf60208601612a76565b925060408501359150606085013567ffffffffffffffff811115612df257600080fd5b8501601f81018713612e0357600080fd5b612e1287823560208401612c57565b91505092959194509250565b60008060408385031215612e3157600080fd5b612e3a83612a76565b9150612b3d60208401612a76565b60008060408385031215612e5b57600080fd5b82359150612b3d60208401612b8d565b600181811c90821680612e7f57607f821691505b60208210811415612ea057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612ed657612ed6612ea6565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612f0057612f00612edb565b500490565b60008219821115612f1857612f18612ea6565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612f4757612f47612ea6565b5060010190565b60008151612f608185602086016129f2565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612fa281601d8501602087016129f2565b91909101601d0192915050565b8054600090600181811c9080831680612fc957607f831692505b6020808410821415612feb57634e487b7160e01b600052602260045260246000fd5b818015612fff57600181146130105761303d565b60ff1986168952848901965061303d565b60008881526020902060005b868110156130355781548b82015290850190830161301c565b505084890196505b50505050505092915050565b7f5b0a7b2274726169745f74797065223a2254797065222c2276616c7565223a2081527f2200000000000000000000000000000000000000000000000000000000000000602082015260006130a16021830184612faf565b7f227d2c0a0000000000000000000000000000000000000000000000000000000081526004019392505050565b600082516130e08184602087016129f2565b7f7b2274726169745f74797065223a22537461747573222c2276616c7565223a209201918252507f22556e77726170706564227d2c0a0000000000000000000000000000000000006020820152602e01919050565b60008261314457613144612edb565b500690565b6000835161315b8184602088016129f2565b61316781840185612faf565b95945050505050565b600082516131828184602087016129f2565b7f7b2274726169745f74797065223a22537461747573222c2276616c7565223a209201918252507f2257726170706564227d000000000000000000000000000000000000000000006020820152602a01919050565b600082516131e98184602087016129f2565b7f0a5d000000000000000000000000000000000000000000000000000000000000920191825250600201919050565b7f7b0a226e616d65223a222300000000000000000000000000000000000000000081526000845161325081600b8501602089016129f2565b7f2c20000000000000000000000000000000000000000000000000000000000000600b91840191820152613287600d820186612faf565b90507f222c0a226465736372697074696f6e223a20224772616e646d6100000000000081527f2700000000000000000000000000000000000000000000000000000000000000601a8201527f732043616e646965732062792040703070707300000000000000000000000000601b8201527f222c0a2261747472696275746573223a00000000000000000000000000000000602e820152835161333181603e8401602088016129f2565b01603e0195945050505050565b60008a51613350818460208f016129f2565b7f2c0a2265787465726e616c5f75726c223a202200000000000000000000000000908301908152613384601382018c612faf565b90508951613396818360208e016129f2565b7f222c0a22696d616765223a20220000000000000000000000000000000000000091019081526133c9600d82018a612faf565b905087516133db818360208c016129f2565b602f60f81b910190815286516133f8816001840160208b016129f2565b7f2e67696622000000000000000000000000000000000000000000000000000000600192909101918201527f2c0a226d7034223a20220000000000000000000000000000000000000000000060068201526134566010820187612faf565b905084516134688183602089016129f2565b6134b0613487613481838501602f60f81b815260010190565b87612f4e565b7f2e6d703422000000000000000000000000000000000000000000000000000000815260050190565b9d9c50505050505050505050505050565b600082516134d38184602087016129f2565b7f0a7d000000000000000000000000000000000000000000000000000000000000920191825250600201919050565b60008282101561351457613514612ea6565b500390565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516135518160178501602088016129f2565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161358e8160288401602088016129f2565b01602801949350505050565b6000816135a9576135a9612ea6565b506000190190565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526135f96080830184612a1e565b9695505050505050565b60006020828403121561361557600080fd5b8151612769816129bf56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212206b161732c78f7d920e8c14f8f7690b7283026bab5825606a2aa51fadd72ea8e564736f6c634300080c003368747470733a2f2f7374617469632e6d7573746172646c6162732e696f2f63616e646965732f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102e95760003560e01c80636b8ff57411610191578063c87b56dd116100e3578063e1c7392a11610097578063f419df7211610071578063f419df7214610690578063f7d027de146106a3578063fe55932a146106b657600080fd5b8063e1c7392a1461062c578063e86613a714610634578063e985e9c51461065457600080fd5b8063d08b4add116100c8578063d08b4add146105f1578063d539139314610604578063d547741f1461061957600080fd5b8063c87b56dd146105cb578063d05dcc6a146105de57600080fd5b806391d1485411610145578063a22cb4651161011f578063a22cb46514610585578063b88d4fde14610598578063b91b25b2146105ab57600080fd5b806391d148541461053c57806395d89b4114610575578063a217fddf1461057d57600080fd5b80637647691d116101765780637647691d1461050357806386ad3bb6146105165780638ecb2b411461052957600080fd5b80636b8ff574146104dd57806370a08231146104f057600080fd5b806334eafb111161024a578063431f8cde116101fe57806355f804b3116101d857806355f804b3146104a45780636352211e146104b75780636a627842146104ca57600080fd5b8063431f8cde146104765780634622ab031461048957806355234ec01461049c57600080fd5b80633851c6f61161022f5780633851c6f6146104305780634036ab781461045057806342842e0e1461046357600080fd5b806334eafb111461041457806336568abe1461041d57600080fd5b80631feb945c116102a1578063248a9ca311610286578063248a9ca31461039e5780632a55205a146103cf5780632f2ff15d1461040157600080fd5b80631feb945c1461037e57806323b872dd1461038b57600080fd5b8063081812fc116102d2578063081812fc1461032b578063095ea7b3146103565780631c5741491461036b57600080fd5b806301ffc9a7146102ee57806306fdde0314610316575b600080fd5b6103016102fc3660046129d5565b6106c9565b60405190151581526020015b60405180910390f35b61031e6106da565b60405161030d9190612a4a565b61033e610339366004612a5d565b61076c565b6040516001600160a01b03909116815260200161030d565b610369610364366004612a92565b610793565b005b610369610379366004612a92565b6108ca565b6011546103019060ff1681565b610369610399366004612abc565b610991565b6103c16103ac366004612a5d565b60009081526008602052604090206001015490565b60405190815260200161030d565b6103e26103dd366004612af8565b610a18565b604080516001600160a01b03909316835260208301919091520161030d565b61036961040f366004612b1a565b610ad3565b6103c160105481565b61036961042b366004612b1a565b610af8565b6103c161043e366004612a5d565b600f6020526000908152604090205481565b6103c161045e366004612a5d565b610b84565b610369610471366004612abc565b610b9f565b610369610484366004612b9e565b610bba565b61031e610497366004612a5d565b610c89565b6103c1610d23565b6103696104b2366004612ccf565b610d33565b61033e6104c5366004612a5d565b610d5e565b6103696104d8366004612d04565b610dc3565b61031e6104eb366004612a5d565b610df3565b6103c16104fe366004612d04565b610ea0565b610369610511366004612b1a565b610f3a565b610369610524366004612d1f565b61116a565b610369610537366004612ccf565b6111a7565b61030161054a366004612b1a565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61031e6111d2565b6103c1600081565b610369610593366004612d66565b6111e1565b6103696105a6366004612da2565b6111ec565b6103c16105b9366004612a5d565b60146020526000908152604090205481565b61031e6105d9366004612a5d565b611274565b61031e6105ec366004612a5d565b6112b6565b6103696105ff366004612ccf565b6112cf565b6103c160008051602061366183398151915281565b610369610627366004612b1a565b6112fa565b61036961131f565b6103c1610642366004612a5d565b600e6020526000908152604090205481565b610301610662366004612e1e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61036961069e366004612e48565b611556565b61031e6106b1366004612a5d565b611587565b6103696106c4366004612d1f565b61189d565b60006106d4826118d4565b92915050565b6060600280546106e990612e6b565b80601f016020809104026020016040519081016040528092919081815260200182805461071590612e6b565b80156107625780601f1061073757610100808354040283529160200191610762565b820191906000526020600020905b81548152906001019060200180831161074557829003601f168201915b5050505050905090565b600061077782611912565b506000908152600660205260409020546001600160a01b031690565b600061079e82610d5e565b9050806001600160a01b0316836001600160a01b0316141561082d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b038216148061084957506108498133610662565b6108bb5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610824565b6108c58383611979565b505050565b6000805160206136618339815191526108e2816119f4565b6108ea610d23565b156109375760405162461bcd60e51b815260206004820152601b60248201527f55736520617420796f7572206f776e207269736b2064756d6d792e00000000006044820152606401610824565b60e582116109875760405162461bcd60e51b815260206004820152601960248201527f43616e2774206d696e7420696e20746861742072616e67652e000000000000006044820152606401610824565b6108c583836119fe565b61099b3382611a18565b610a0d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610824565b6108c5838383611a97565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610a975750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610abb906bffffffffffffffffffffffff1687612ebc565b610ac59190612ef1565b915196919550909350505050565b600082815260086020526040902060010154610aee816119f4565b6108c58383611c71565b6001600160a01b0381163314610b765760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610824565b610b808282611d13565b5050565b6000818152600e60205260408120546106d490600a90612ef1565b6108c5838383604051806020016040528060008152506111ec565b600080516020613661833981519152610bd2816119f4565b815160106000828254610be59190612f05565b90915550600090505b8251811015610c4757828181518110610c0957610c09612f1d565b602002602001015160ff16600e60008684610c249190612f05565b815260208101919091526040016000205580610c3f81612f33565b915050610bee565b5081516040805185815260208101929092527f7afbe4f1c55b5f72ea356f5b4d5615831867af31454a5ca5557f315e6d11a369910160405180910390a1505050565b600c6020526000908152604090208054610ca290612e6b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cce90612e6b565b8015610d1b5780601f10610cf057610100808354040283529160200191610d1b565b820191906000526020600020905b815481529060010190602001808311610cfe57829003601f168201915b505050505081565b6000610d2e60125490565b905090565b600080516020613661833981519152610d4b816119f4565b81516108c5906009906020850190612926565b6000818152600460205260408120546001600160a01b0316806106d45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610824565b600080516020613661833981519152610ddb816119f4565b6000610de76012611d96565b90506108c583826119fe565b6060600c6000610e0284610b84565b81526020019081526020016000208054610e1b90612e6b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4790612e6b565b8015610e945780601f10610e6957610100808354040283529160200191610e94565b820191906000526020600020905b815481529060010190602001808311610e7757829003601f168201915b50505050509050919050565b60006001600160a01b038216610f1e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610824565b506001600160a01b031660009081526005602052604090205490565b600080516020613661833981519152610f52816119f4565b6000838152600460205260409020546001600160a01b0316610fb65760405162461bcd60e51b815260206004820152601e60248201527f43616e277420756e77726170206e6f6e6578697374656e7420746f6b656e00006044820152606401610824565b816001600160a01b0316610fc984610d5e565b6001600160a01b03161461101f5760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e20746869732063616e647900000000000000006044820152606401610824565b600883901c600090815260156020526040902054600160ff85161b16156110885760405162461bcd60e51b815260206004820152601160248201527f416c726561647920756e777261707065640000000000000000000000000000006044820152606401610824565b600883901c60009081526015602052604081208054600160ff87161b1790556110c96013826110b687610b84565b8152602001908152602001600020611d96565b90508060005b6110d886610b84565b81101561110c576000818152600f60205260409020546110f89083612f05565b91508061110481612f33565b9150506110cf565b5060008581526014602090815260409182902083905581518781529081018390526001600160a01b038616917faec8e13f64207044c453b2a37afb225aee4220504c856bb67504075327026c08910160405180910390a25050505050565b600080516020613661833981519152611182816119f4565b6000838152600d6020908152604090912083516111a192850190612926565b50505050565b6000805160206136618339815191526111bf816119f4565b81516108c590600a906020850190612926565b6060600380546106e990612e6b565b610b80338383611da9565b6111f63383611a18565b6112685760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610824565b6111a184848484611e78565b6060600061128961128484611587565b611ef6565b905060008160405160200161129e9190612f6a565b60408051601f19818403018152919052949350505050565b600d6020526000908152604090208054610ca290612e6b565b6000805160206136618339815191526112e7816119f4565b81516108c590600b906020850190612926565b600082815260086020526040902060010154611315816119f4565b6108c58383611d13565b600080516020613661833981519152611337816119f4565b60115460ff161561138a5760405162461bcd60e51b815260206004820152600e60248201527f496e697420636f6d706c6574652e0000000000000000000000000000000000006044820152606401610824565b60408051600480825260a08201909252600090826020820160808036833701905050905060005b601054811015611412576000818152600e602052604090205482906113d890600a90612ef1565b815181106113e8576113e8612f1d565b6020026020010180518091906113fd90612f33565b9052508061140a81612f33565b9150506113b1565b506000805b838110156114865782818151811061143157611431612f1d565b6020026020010151826114449190612f05565b915082818151811061145857611458612f1d565b6020908102919091018101516000838152600f9092526040909120558061147e81612f33565b915050611417565b5080601054146114d85760405162461bcd60e51b815260206004820152601b60248201527f546f74616c7320646f6e2774206d61746368206f6e20696e69742e00000000006044820152606401610824565b6010546114e79060129061204a565b60005b838110156115425761153083828151811061150757611507612f1d565b60200260200101516013600084815260200190815260200160002061204a90919063ffffffff16565b8061153a81612f33565b9150506114ea565b50506011805460ff19166001179055505050565b60008051602061366183398151915261156e816119f4565b506000918252600e602052604090912060ff9091169055565b6000818152600460205260409020546060906001600160a01b03166115ee5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610824565b6000828152600e6020908152604080832054600886901c84526015909252822054909190600160ff86161b16611659576040518060400160405280600781526020017f7772617070656400000000000000000000000000000000000000000000000000815250611690565b6040518060400160405280600981526020017f756e7772617070656400000000000000000000000000000000000000000000008152505b600885901c60009081526015602052604081205491925090600160ff87161b166116ba57846116ca565b6000858152601460205260409020545b90506000600c816116dc600a87612ef1565b81526020019081526020016000206040516020016116fa9190613049565b60408051808303601f19018152918152600888901c600090815260156020522054909150600160ff88161b1615611793578060405160200161173c91906130ce565b60408051601f19818403018152919052905080600d600061175e600a88613135565b815260200190815260200160002060405160200161177d929190613149565b60405160208183030381529060405290506117b6565b806040516020016117a49190613170565b60405160208183030381529060405290505b806040516020016117c791906131d7565b604051602081830303815290604052905060006117e38761209f565b600c60006117f2600a89612ef1565b81526020019081526020016000208360405160200161181393929190613218565b604051602081830303815290604052905080600b6118308961209f565b60098761183c8861209f565b600a8a6118488b61209f565b6040516020016118609998979695949392919061333e565b60405160208183030381529060405290508060405160200161188291906134c1565b60405160208183030381529060405295505050505050919050565b6000805160206136618339815191526118b5816119f4565b6000838152600c6020908152604090912083516111a192850190612926565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806106d457506106d48261219d565b6000818152600460205260409020546001600160a01b03166119765760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610824565b50565b6000818152600660205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906119bb82610d5e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61197681336121a8565b610b80828260405180602001604052806000815250612228565b600080611a2483610d5e565b9050806001600160a01b0316846001600160a01b03161480611a6b57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80611a8f5750836001600160a01b0316611a848461076c565b6001600160a01b0316145b949350505050565b826001600160a01b0316611aaa82610d5e565b6001600160a01b031614611b265760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610824565b6001600160a01b038216611ba15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610824565b611bac600082611979565b6001600160a01b0383166000908152600560205260408120805460019290611bd5908490613502565b90915550506001600160a01b0382166000908152600560205260408120805460019290611c03908490612f05565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610b805760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611ccf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff1615610b805760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006106d482611da46122a6565b6122fa565b816001600160a01b0316836001600160a01b03161415611e0b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610824565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e83848484611a97565b611e8f848484846123e9565b6111a15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610824565b6060815160001415611f1657505060408051602081019091526000815290565b60006040518060600160405280604081526020016136216040913990506000600384516002611f459190612f05565b611f4f9190612ef1565b611f5a906004612ebc565b67ffffffffffffffff811115611f7257611f72612b46565b6040519080825280601f01601f191660200182016040528015611f9c576020820181803683370190505b509050600182016020820185865187015b80821015612008576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611fad565b505060038651066001811461202457600281146120375761203f565b603d6001830353603d600283035361203f565b603d60018303535b509195945050505050565b815482901561209b5760405162461bcd60e51b815260206004820152601f60248201527f63616e6e6f742d73657475702d647572696e672d6163746976652d64726177006044820152606401610824565b5550565b6060816120c35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120ed57806120d781612f33565b91506120e69050600a83612ef1565b91506120c7565b60008167ffffffffffffffff81111561210857612108612b46565b6040519080825280601f01601f191660200182016040528015612132576020820181803683370190505b5090505b8415611a8f57612147600183613502565b9150612154600a86613135565b61215f906030612f05565b60f81b81838151811061217457612174612f1d565b60200101906001600160f81b031916908160001a905350612196600a86612ef1565b9450612136565b60006106d482612532565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610b80576121e6816001600160a01b031660146125a4565b6121f18360206125a4565b604051602001612202929190613519565b60408051601f198184030181529082905262461bcd60e51b825261082491600401612a4a565b6122328383612770565b61223f60008484846123e9565b6108c55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610824565b60006122b3600143613502565b6040805191406020830152429082015233606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120905090565b815460009083908261230c8286613135565b9050600083828154811061232257612322612f1d565b60009182526020822001549150846123398561359a565b9450848154811061234c5761234c612f1d565b9060005260206000200154905081600014156123705761236d836001612f05565b91505b8061238357612380846001612f05565b90505b8383146123aa578085848154811061239d5761239d612f1d565b6000918252602090912001555b848054806123ba576123ba6135b1565b600190038181906000526020600020016000905590556001826123dd9190613502565b98975050505050505050565b60006001600160a01b0384163b1561252757604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061242d9033908990889088906004016135c7565b6020604051808303816000875af1925050508015612468575060408051601f3d908101601f1916820190925261246591810190613603565b60015b61250d573d808015612496576040519150601f19603f3d011682016040523d82523d6000602084013e61249b565b606091505b5080516125055760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610824565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a8f565b506001949350505050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061259557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106d457506106d4826128bf565b606060006125b3836002612ebc565b6125be906002612f05565b67ffffffffffffffff8111156125d6576125d6612b46565b6040519080825280601f01601f191660200182016040528015612600576020820181803683370190505b509050600360fc1b8160008151811061261b5761261b612f1d565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061266657612666612f1d565b60200101906001600160f81b031916908160001a905350600061268a846002612ebc565b612695906001612f05565b90505b600181111561271a577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106126d6576126d6612f1d565b1a60f81b8282815181106126ec576126ec612f1d565b60200101906001600160f81b031916908160001a90535060049490941c936127138161359a565b9050612698565b5083156127695760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610824565b9392505050565b6001600160a01b0382166127c65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610824565b6000818152600460205260409020546001600160a01b03161561282b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610824565b6001600160a01b0382166000908152600560205260408120805460019290612854908490612f05565b9091555050600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806106d457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146106d4565b82805461293290612e6b565b90600052602060002090601f016020900481019282612954576000855561299a565b82601f1061296d57805160ff191683800117855561299a565b8280016001018555821561299a579182015b8281111561299a57825182559160200191906001019061297f565b506129a69291506129aa565b5090565b5b808211156129a657600081556001016129ab565b6001600160e01b03198116811461197657600080fd5b6000602082840312156129e757600080fd5b8135612769816129bf565b60005b83811015612a0d5781810151838201526020016129f5565b838111156111a15750506000910152565b60008151808452612a368160208601602086016129f2565b601f01601f19169290920160200192915050565b6020815260006127696020830184612a1e565b600060208284031215612a6f57600080fd5b5035919050565b80356001600160a01b0381168114612a8d57600080fd5b919050565b60008060408385031215612aa557600080fd5b612aae83612a76565b946020939093013593505050565b600080600060608486031215612ad157600080fd5b612ada84612a76565b9250612ae860208501612a76565b9150604084013590509250925092565b60008060408385031215612b0b57600080fd5b50508035926020909101359150565b60008060408385031215612b2d57600080fd5b82359150612b3d60208401612a76565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612b8557612b85612b46565b604052919050565b803560ff81168114612a8d57600080fd5b60008060408385031215612bb157600080fd5b8235915060208084013567ffffffffffffffff80821115612bd157600080fd5b818601915086601f830112612be557600080fd5b813581811115612bf757612bf7612b46565b8060051b9150612c08848301612b5c565b8181529183018401918481019089841115612c2257600080fd5b938501935b83851015612c4757612c3885612b8d565b82529385019390850190612c27565b8096505050505050509250929050565b600067ffffffffffffffff831115612c7157612c71612b46565b612c84601f8401601f1916602001612b5c565b9050828152838383011115612c9857600080fd5b828260208301376000602084830101529392505050565b600082601f830112612cc057600080fd5b61276983833560208501612c57565b600060208284031215612ce157600080fd5b813567ffffffffffffffff811115612cf857600080fd5b611a8f84828501612caf565b600060208284031215612d1657600080fd5b61276982612a76565b60008060408385031215612d3257600080fd5b82359150602083013567ffffffffffffffff811115612d5057600080fd5b612d5c85828601612caf565b9150509250929050565b60008060408385031215612d7957600080fd5b612d8283612a76565b915060208301358015158114612d9757600080fd5b809150509250929050565b60008060008060808587031215612db857600080fd5b612dc185612a76565b9350612dcf60208601612a76565b925060408501359150606085013567ffffffffffffffff811115612df257600080fd5b8501601f81018713612e0357600080fd5b612e1287823560208401612c57565b91505092959194509250565b60008060408385031215612e3157600080fd5b612e3a83612a76565b9150612b3d60208401612a76565b60008060408385031215612e5b57600080fd5b82359150612b3d60208401612b8d565b600181811c90821680612e7f57607f821691505b60208210811415612ea057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612ed657612ed6612ea6565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612f0057612f00612edb565b500490565b60008219821115612f1857612f18612ea6565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612f4757612f47612ea6565b5060010190565b60008151612f608185602086016129f2565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612fa281601d8501602087016129f2565b91909101601d0192915050565b8054600090600181811c9080831680612fc957607f831692505b6020808410821415612feb57634e487b7160e01b600052602260045260246000fd5b818015612fff57600181146130105761303d565b60ff1986168952848901965061303d565b60008881526020902060005b868110156130355781548b82015290850190830161301c565b505084890196505b50505050505092915050565b7f5b0a7b2274726169745f74797065223a2254797065222c2276616c7565223a2081527f2200000000000000000000000000000000000000000000000000000000000000602082015260006130a16021830184612faf565b7f227d2c0a0000000000000000000000000000000000000000000000000000000081526004019392505050565b600082516130e08184602087016129f2565b7f7b2274726169745f74797065223a22537461747573222c2276616c7565223a209201918252507f22556e77726170706564227d2c0a0000000000000000000000000000000000006020820152602e01919050565b60008261314457613144612edb565b500690565b6000835161315b8184602088016129f2565b61316781840185612faf565b95945050505050565b600082516131828184602087016129f2565b7f7b2274726169745f74797065223a22537461747573222c2276616c7565223a209201918252507f2257726170706564227d000000000000000000000000000000000000000000006020820152602a01919050565b600082516131e98184602087016129f2565b7f0a5d000000000000000000000000000000000000000000000000000000000000920191825250600201919050565b7f7b0a226e616d65223a222300000000000000000000000000000000000000000081526000845161325081600b8501602089016129f2565b7f2c20000000000000000000000000000000000000000000000000000000000000600b91840191820152613287600d820186612faf565b90507f222c0a226465736372697074696f6e223a20224772616e646d6100000000000081527f2700000000000000000000000000000000000000000000000000000000000000601a8201527f732043616e646965732062792040703070707300000000000000000000000000601b8201527f222c0a2261747472696275746573223a00000000000000000000000000000000602e820152835161333181603e8401602088016129f2565b01603e0195945050505050565b60008a51613350818460208f016129f2565b7f2c0a2265787465726e616c5f75726c223a202200000000000000000000000000908301908152613384601382018c612faf565b90508951613396818360208e016129f2565b7f222c0a22696d616765223a20220000000000000000000000000000000000000091019081526133c9600d82018a612faf565b905087516133db818360208c016129f2565b602f60f81b910190815286516133f8816001840160208b016129f2565b7f2e67696622000000000000000000000000000000000000000000000000000000600192909101918201527f2c0a226d7034223a20220000000000000000000000000000000000000000000060068201526134566010820187612faf565b905084516134688183602089016129f2565b6134b0613487613481838501602f60f81b815260010190565b87612f4e565b7f2e6d703422000000000000000000000000000000000000000000000000000000815260050190565b9d9c50505050505050505050505050565b600082516134d38184602087016129f2565b7f0a7d000000000000000000000000000000000000000000000000000000000000920191825250600201919050565b60008282101561351457613514612ea6565b500390565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516135518160178501602088016129f2565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161358e8160288401602088016129f2565b01602801949350505050565b6000816135a9576135a9612ea6565b506000190190565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526135f96080830184612a1e565b9695505050505050565b60006020828403121561361557600080fd5b8151612769816129bf56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212206b161732c78f7d920e8c14f8f7690b7283026bab5825606a2aa51fadd72ea8e564736f6c634300080c0033

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

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