ETH Price: $2,304.48 (+0.97%)

Token

Tideweigh Cendrillon (CEND)
 

Overview

Max Total Supply

736 CEND

Holders

35

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
elerium115.eth
Balance
2 CEND
0xdf610269c6587c579e76b03fba17ee51dd02b0c8
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:
Cendrillon

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 18 : TideweighCendrillon.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./SparseERC721/SparseERC721Enumerable.sol";
import "./IERC2981.sol";

/**
 * @title Cendrillon
 */
contract Cendrillon is SparseERC721Enumerable, AccessControlEnumerable, IERC2981 {

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

    string private __baseURI; // Token base URI

    string public contractURI; // OpenSea contract-level metadata uri

    uint24 royalty = 10;    // Royalty expected by the artist on secondary transfers (IERC2981)

    mapping(uint256 => string) tokenIdToIpfsCID;                 // Each minted token can be infinitized to IPFS

    constructor(string memory name, string memory symbol, string memory baseTokenURI, address _proxyRegistryAddress) SparseERC721(name, symbol) {

        __baseURI = baseTokenURI;
        proxyRegistryAddress = _proxyRegistryAddress;

        // Grant owner a reasonable set of roles by default
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(MINTER_ROLE, msg.sender);
        _setupRole(PAUSER_ROLE, msg.sender);
        _setupRole(INFINITIZER_ROLE, msg.sender);

    }

    function onlyAdmin() private view {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Must have admin role");
    }

    //
    // ERC165 interface implementation
    //

    function supportsInterface(bytes4 interfaceId) public view override(SparseERC721Enumerable, AccessControlEnumerable) returns (bool) {
        return SparseERC721Enumerable.supportsInterface(interfaceId)
            || AccessControlEnumerable.supportsInterface(interfaceId)
            || interfaceId == type(IERC2981).interfaceId;
    }

    // 
    // ERC721 functions
    //

    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function mint(address to, uint256 tokenId) public {
        Cendrillon.mint(to, tokenId, "");
    }

    function mint(address to, uint256 tokenId, bytes memory _data) public {
        require(hasRole(MINTER_ROLE, msg.sender), "Must have minter role");
        require(tokenId <= 1024, "Cendrillon has 1024 pieces");
        _safeMint(to, tokenId, _data);
    }

    /**
     * Multi-mint functionality
     * Always mints to owner, and therefore can skip safe mint check
     */
    function multiMint(uint256 startTokenId, uint256 endTokenId) public {
        require(hasRole(MINTER_ROLE, msg.sender), "Must have minter role");
        require(startTokenId < endTokenId, "Two mints minimum");
        require(endTokenId <= 1024, "Cendrillon has 1024 pieces");
        address to = owner();
        for(uint256 tokenId = startTokenId; tokenId <= endTokenId; tokenId++) {
            _mint(to, tokenId);
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Implements Cendrillon special functionality
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        require(tokenId > 0, "Cendrillon is too modest");
        super._transfer(from, to, tokenId);
        if(_exists(0)) {
            // Cendrillon token ZERO exists and therefore follows
            super._transfer(ownerOf(0), from, 0);
        }
    }

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

        return bytes(tokenIdToIpfsCID[tokenId]).length > 0 
            ? string(abi.encodePacked("ipfs://", tokenIdToIpfsCID[tokenId]))
            : SparseERC721.tokenURI(tokenId);
    }

    // Allow updates of base URI
    function setBaseURI(string memory baseTokenURI) external {
        onlyAdmin();
        __baseURI = baseTokenURI;
    }

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

    function baseURI() public view returns (string memory) {
        return __baseURI;
    }

    /**
     * @dev Infinitize the token to IPFS
     *
     * Set the token's CID. Null/zero length byte array is allowed to remove the CID.
     *
     */
    function setIpfsCID(uint256 tokenId, string calldata ipfsCID) external {
        require(hasRole(INFINITIZER_ROLE, msg.sender), "Must have infinitizer role");
        require(_exists(tokenId), "URI query for nonexistent token");

        tokenIdToIpfsCID[tokenId] = ipfsCID;
    }

    /**
     * @dev set contract URI for OpenSea
     */
    function setContractURI(string calldata _contractURI) external {
        onlyAdmin();
        contractURI = _contractURI;
    }

    //
    // ERC2981 royalties interface implementation
    //

    /**
     * @dev See {IERC2981-royaltyInfo}.
     */
    function royaltyInfo(uint256 /* _tokenId */, uint256 _value, bytes calldata /* _data */) external view returns (address receiver, uint256 royaltyAmount, bytes memory royaltyPaymentData) {
        return (owner(), royalty * _value / 100, "");
    }

    function royaltyInfo(uint256 /* _tokenId */, uint256 _value) external view override returns (address receiver, uint256 royaltyAmount) {
        return (owner(), royalty * _value / 100);
    }

    /**
     * @dev Update expected royalty
     */
    function setRoyaltyInfo(uint24 amount) external {
        onlyAdmin();
        royalty = amount;
    }

    //
    // OpenSea registry functions
    //

    /* @dev Update the OpenSea proxy registry address
     *
     * Zero address is allowed, and disables the whitelisting
     *
     */
    function setProxyRegistryAddress(address _proxyRegistryAddress) external {
        onlyAdmin();
        proxyRegistryAddress = _proxyRegistryAddress;
    }

    /* @dev Retrieve the current OpenSea proxy registry address
     *
     * Zero indicates that OpenSea whitelisting is disabled
     *
     */
    function getProxyRegistryAddress() external view returns (address) {
        return proxyRegistryAddress;
    }

    /**
     * @dev Manually recover all sorts of tokens sent to this contract 
     *
     * Supports various recovery attempt types
     */
    function recoverReceivedTokens(uint256 _recoveryOperation, address _contractAddress, address _from, address _to, uint256 _tokenIdOrValue, bytes calldata _data) external returns (bool) {
        onlyAdmin();

        if(_recoveryOperation <= 2) {
            IERC721 erc721Contract = IERC721(_contractAddress);
            if(_recoveryOperation == 0) {
                erc721Contract.safeTransferFrom(_from, _to, _tokenIdOrValue, _data);
            } else if(_recoveryOperation == 1) {
                erc721Contract.safeTransferFrom(_from, _to, _tokenIdOrValue);
            } else {
                // _recoveryOperation == 2
                erc721Contract.transferFrom(_from, _to, _tokenIdOrValue);
            } 
        } else if(_recoveryOperation <= 4) {
            IERC20 erc20Contract = IERC20(_contractAddress);
            if(_recoveryOperation == 3) {
                return erc20Contract.transfer(_to, _tokenIdOrValue);
            } else {
                // _recoveryOperation == 4
                return erc20Contract.approve(_to, _tokenIdOrValue);
            } 
        } else if(_recoveryOperation == 5) {
            payable(msg.sender).transfer(_tokenIdOrValue);
        } else {
            revert('Invalid recovery operation');
        }
        return true;
    }
    
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 18 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        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 override returns (bytes32) {
        return _roles[role].adminRole;
    }

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

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

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

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    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 {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

import "./SparseERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract SparseERC721Enumerable is SparseERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _sparseOwnedTokens;

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < SparseERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        if(owner == Ownable.owner() && index < SparseERC721.nrOfTokensInitiallyOwnedByContractOwner()) {
            return SparseERC721.tokenInitiallyOwnedByContractOwnerByIndex(index);
        } else {
            return _sparseOwnedTokens[owner][index - (owner == Ownable.owner() ? SparseERC721.nrOfTokensInitiallyOwnedByContractOwner() : 0)];
        }
    }

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

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

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

        if (from == address(0)) {
            if(to == Ownable.owner() && tokenId >= 1 && tokenId <= 1024) {
                // Case handled separately by base token
            } else {
                _addTokenToAllTokensEnumeration(tokenId);
            }
        } else if (from != to) {
            if(from == Ownable.owner() && tokenId >= 1 && tokenId <= 1024) {
                // Case handled separately by base token
            } else {
                _removeTokenFromOwnerEnumeration(from, tokenId);
            }
        }
        if (to == address(0)) {
            if(from == Ownable.owner() && tokenId >= 1 && tokenId <= 1024) {
                // Case handled separately by base token
            } else {
                _removeTokenFromAllTokensEnumeration(tokenId);
            }
        } else if (to != from) {
            if(to == Ownable.owner() && tokenId >= 1 && tokenId <= 1024) {
                // Case handled separately by base token
            } else {
                _addTokenToOwnerEnumeration(to, tokenId);
            }
        }
    }

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

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

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

        uint256 lastTokenIndex = SparseERC721.balanceOf(from) - 1 - (from == Ownable.owner() ? SparseERC721.nrOfTokensInitiallyOwnedByContractOwner() : 0);
        uint256 tokenIndex = _sparseOwnedTokensIndex[tokenId];

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

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

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

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

        uint256 lastTokenIndex = _sparseAllTokens.length - 1;
        uint256 tokenIndex = _sparseAllTokensIndex[tokenId];

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

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

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

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

pragma solidity ^0.8.4;

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

///
/// @dev Interface for the NFT Royalty Standard
///
interface IERC2981 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(
        uint256 _tokenId,
        uint256 _salePrice
    ) external view returns (
        address receiver,
        uint256 royaltyAmount
    );
}

File 7 of 18 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 8 of 18 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 11 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 18 : SparseERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/* Functionality used to whitelist OpenSea trading address, if desired */

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @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 SparseERC721 is Context, ERC165, Ownable, 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 _sparseOwners;

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

    // Optimize minting
    // Bitmap for tokens 1-1024
    uint256[4] private _tokenInitiallyOwnedByContractOwnerBitmap;

    // Track how many optimized tokens we have
    uint256 internal _nrOfTokensInitiallyOwnedByContractOwner;

    // OpenSea trading proxy
    address proxyRegistryAddress;

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

    /**
     * Number of tokens currently initially owner by contract owner
     */
    function nrOfTokensInitiallyOwnedByContractOwner() internal view returns (uint256) {
        return _nrOfTokensInitiallyOwnedByContractOwner;
    }

    /**
     * Check if token is eligible for special handling of ownership by contract owner
     */
    function eligibleForContractOwnerSpecialHandling(address addr, uint256 tokenId) internal view returns (bool) {
        return addr == Ownable.owner() && tokenId >= 1 && tokenId <= 1024;
    }


    /**
     * Check if token is initially owned by contract owner
     */
    function tokenInitiallyOwnedByContractOwner(uint256 tokenId) internal view returns (bool) {
        if(tokenId == 0 || tokenId > 1024) return false; // The special zero token always has all data set, and above 1024 we are not tracking
        uint256 flagIndex = tokenId - 1; // offset by one to save flag storage
        return (_tokenInitiallyOwnedByContractOwnerBitmap[flagIndex / 256] & (1 << (flagIndex % 256))) != 0;
    }

    /**
     * Get token of owner by index
     */
    function tokenInitiallyOwnedByContractOwnerByIndex(uint256 index) internal view returns (uint256) {
        require(index < nrOfTokensInitiallyOwnedByContractOwner(), "ERC721: wrong internal query for owner token");
        uint256 tokenCount;
        for(uint256 p; p < 4; p++) {
            for(uint256 i; i < 256; i++) {
                if((_tokenInitiallyOwnedByContractOwnerBitmap[p] & (1 << i)) != 0) {
                    if(tokenCount == index) {
                        return p * 256 + i + 1;
                    } else {
                        tokenCount++;
                    }
                }
            }
        }
        revert("ERC721: internal error");
    }

    /**
     * Set initial token ownership to contract owner
     */
    function markTokenInitiallyOwnedByContractOwner(uint256 tokenId) internal {
        uint256 flagIndex = tokenId - 1; // offset by one to save flag storage
        if((_tokenInitiallyOwnedByContractOwnerBitmap[flagIndex / 256] & (1 << (flagIndex % 256))) == 0) {
            _tokenInitiallyOwnedByContractOwnerBitmap[flagIndex / 256] |= 1 << (flagIndex % 256);
            _nrOfTokensInitiallyOwnedByContractOwner += 1;
        }
    }

    /**
     * Remove initial token ownership from contract owner
     */
    function unsetTokenInitiallyOwnedByContractOwner(uint256 tokenId) internal {
        uint256 flagIndex = tokenId - 1; // offset by one to save flag storage
        if((_tokenInitiallyOwnedByContractOwnerBitmap[flagIndex / 256] & (1 << (flagIndex % 256))) != 0) {
            _tokenInitiallyOwnedByContractOwnerBitmap[flagIndex / 256] &= ~(1 << (flagIndex % 256));
            _nrOfTokensInitiallyOwnedByContractOwner -= 1;
        }
    }

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading - if we have a valid proxy registry address on file
        if (proxyRegistryAddress != address(0)) {
            ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
            if (address(proxyRegistry.proxies(owner)) == operator) {
                return true;
            }
        }

        return _operatorApprovals[owner][operator];
    }

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        if(eligibleForContractOwnerSpecialHandling(to, tokenId)) {
            markTokenInitiallyOwnedByContractOwner(tokenId);
        } else {
            // If there is another owner, or we have exhausted the virtual token pool, we record the minting fully
            _sparseOwners[tokenId] = to;
        }

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

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

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

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

        _balances[owner] -= 1;
        if(tokenInitiallyOwnedByContractOwner(tokenId)) {
            unsetTokenInitiallyOwnedByContractOwner(tokenId);
        } else {
            delete _sparseOwners[tokenId];
        }

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        if(tokenInitiallyOwnedByContractOwner(tokenId)) {
            unsetTokenInitiallyOwnedByContractOwner(tokenId);
        }

        if (eligibleForContractOwnerSpecialHandling(to, tokenId)) {
            markTokenInitiallyOwnedByContractOwner(tokenId);
            delete _sparseOwners[tokenId];
        } else {
            _sparseOwners[tokenId] = to;
        }

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 16 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INFINITIZER_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":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","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":[{"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"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"endTokenId","type":"uint256"}],"name":"multiMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_recoveryOperation","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenIdOrValue","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"recoverReceivedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"},{"internalType":"bytes","name":"royaltyPaymentData","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"ipfsCID","type":"string"}],"name":"setIpfsCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"amount","type":"uint24"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526015805462ffffff1916600a1790553480156200002057600080fd5b50604051620044b9380380620044b9833981016040819052620000439162000460565b838362000050336200014a565b81516200006590600190602085019062000303565b5080516200007b90600290602084019062000303565b50508251620000939150601390602085019062000303565b50600c80546001600160a01b0319166001600160a01b038316179055620000bc6000336200019a565b620000e87f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200019a565b620001147f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336200019a565b620001407fdf8a581f79457556edcf2987041a7bee8a54c05fddda38ff714707a557017412336200019a565b5050505062000566565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001b18282620001dd60201b62001ada1760201c565b6000828152601260209081526040909120620001d891839062001ae4620001ed821b17901c565b505050565b620001e982826200020d565b5050565b600062000204836001600160a01b038416620002b1565b90505b92915050565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff16620001e95760008281526011602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200026d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620002fa5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000207565b50600062000207565b828054620003119062000513565b90600052602060002090601f01602090048101928262000335576000855562000380565b82601f106200035057805160ff191683800117855562000380565b8280016001018555821562000380579182015b828111156200038057825182559160200191906001019062000363565b506200038e92915062000392565b5090565b5b808211156200038e576000815560010162000393565b600082601f830112620003bb57600080fd5b81516001600160401b0380821115620003d857620003d862000550565b604051601f8301601f19908116603f0116810190828211818310171562000403576200040362000550565b816040528381526020925086838588010111156200042057600080fd5b600091505b8382101562000444578582018301518183018401529082019062000425565b83821115620004565760008385830101525b9695505050505050565b600080600080608085870312156200047757600080fd5b84516001600160401b03808211156200048f57600080fd5b6200049d88838901620003a9565b95506020870151915080821115620004b457600080fd5b620004c288838901620003a9565b94506040870151915080821115620004d957600080fd5b50620004e887828801620003a9565b606087015190935090506001600160a01b03811681146200050857600080fd5b939692955090935050565b600181811c908216806200052857607f821691505b602082108114156200054a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613f4380620005766000396000f3fe608060405234801561001057600080fd5b50600436106102ff5760003560e01c806370a082311161019c578063b874422a116100ee578063d539139311610097578063e8a3d48511610071578063e8a3d485146106c6578063e985e9c5146106ce578063f2fde38b146106e157600080fd5b8063d539139314610665578063d547741f1461068c578063e63ab1e91461069f57600080fd5b8063c87b56dd116100c8578063c87b56dd1461062c578063ca15c8731461063f578063d26ea6c01461065257600080fd5b8063b874422a146105e4578063b88d4fde146105f7578063c155531d1461060a57600080fd5b806391d148541161015057806395d89b411161012a57806395d89b41146105c1578063a217fddf146105c9578063a22cb465146105d157600080fd5b806391d1485414610562578063938e3d7b1461059b57806394d008ef146105ae57600080fd5b80637894b2db116101815780637894b2db1461052b5780638da5cb5b1461053e5780639010d07c1461054f57600080fd5b806370a0823114610510578063715018a61461052357600080fd5b80632f745c59116102555780634f558e79116102095780636352211e116101e35780636352211e146104e257806369eecfe1146104f55780636c0360eb1461050857600080fd5b80634f558e79146104a95780634f6ccce7146104bc57806355f804b3146104cf57600080fd5b806340c10f191161023a57806340c10f191461045c57806342842e0e1461046f578063457a5a3f1461048257600080fd5b80632f745c591461043657806336568abe1461044957600080fd5b80631fc22027116102b7578063248a9ca311610291578063248a9ca3146103ce5780632a55205a146103f15780632f2ff15d1461042357600080fd5b80631fc22027146103975780631fe5b457146103aa57806323b872dd146103bb57600080fd5b8063081812fc116102e8578063081812fc14610341578063095ea7b31461036c57806318160ddd1461038157600080fd5b806301ffc9a71461030457806306fdde031461032c575b600080fd5b6103176103123660046138b0565b6106f4565b60405190151581526020015b60405180910390f35b610334610748565b6040516103239190613d44565b61035461034f366004613850565b6107da565b6040516001600160a01b039091168152602001610323565b61037f61037a3660046137ae565b610878565b005b6103896109aa565b604051908152602001610323565b61037f6103a536600461388e565b6109c8565b600c546001600160a01b0316610354565b61037f6103c93660046136d3565b610b1e565b6103896103dc366004613850565b60009081526011602052604090206001015490565b6104046103ff36600461388e565b610ba5565b604080516001600160a01b039093168352602083019190915201610323565b61037f610431366004613869565b610be6565b6103896104443660046137ae565b610c08565b61037f610457366004613869565b610d29565b61037f61046a3660046137ae565b610d4b565b61037f61047d3660046136d3565b610d69565b6103897fdf8a581f79457556edcf2987041a7bee8a54c05fddda38ff714707a55701741281565b6103176104b7366004613850565b610d84565b6103896104ca366004613850565b610d8f565b61037f6104dd366004613949565b610e57565b6103546104f0366004613850565b610e72565b61037f610503366004613a46565b610f2a565b610334611016565b61038961051e36600461367d565b611025565b61037f6110bf565b6103176105393660046139b7565b611125565b6000546001600160a01b0316610354565b61035461055d36600461388e565b61143b565b610317610570366004613869565b60009182526011602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61037f6105a9366004613907565b61145a565b61037f6105bc3660046137da565b61146e565b610334611549565b610389600081565b61037f6105df366004613780565b611558565b61037f6105f2366004613992565b61161d565b61037f610605366004613714565b61165b565b61061d610618366004613a92565b6116e3565b60405161032393929190613d1c565b61033461063a366004613850565b61173a565b61038961064d366004613850565b611819565b61037f61066036600461367d565b611830565b6103897f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61037f61069a366004613869565b611867565b6103897f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b610334611871565b6103176106dc36600461369a565b6118ff565b61037f6106ef36600461367d565b6119f8565b60006106ff82611af9565b8061070e575061070e82611b37565b8061074257506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b60606001805461075790613dfc565b80601f016020809104026020016040519081016040528092919081815260200182805461078390613dfc565b80156107d05780601f106107a5576101008083540402835291602001916107d0565b820191906000526020600020905b8154815290600101906020018083116107b357829003601f168201915b5050505050905090565b60006107e582611b75565b61085c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061088382610e72565b9050806001600160a01b0316836001600160a01b0316141561090d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610853565b336001600160a01b0382161480610929575061092981336118ff565b61099b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610853565b6109a58383611bc0565b505050565b600f546000906109b9600b5490565b6109c39190613d57565b905090565b3360009081527f7cd3358d899eff85cf53455c19e2a8e7691849a116fff9e0c3729849ab619882602052604090205460ff16610a465760405162461bcd60e51b815260206004820152601560248201527f4d7573742068617665206d696e74657220726f6c6500000000000000000000006044820152606401610853565b808210610a955760405162461bcd60e51b815260206004820152601160248201527f54776f206d696e7473206d696e696d756d0000000000000000000000000000006044820152606401610853565b610400811115610ae75760405162461bcd60e51b815260206004820152601a60248201527f43656e6472696c6c6f6e206861732031303234207069656365730000000000006044820152606401610853565b6000546001600160a01b0316825b828111610b1857610b068282611c3b565b80610b1081613e37565b915050610af5565b50505050565b610b283382611db0565b610b9a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610853565b6109a5838383611e8b565b600080610bba6000546001600160a01b031690565b601554606490610bd090869062ffffff16613d83565b610bda9190613d6f565b915091505b9250929050565b610bf08282611f0a565b60008281526012602052604090206109a59082611ae4565b6000610c1383611025565b8210610c875760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610853565b6000546001600160a01b038481169116148015610ca55750600b5482105b15610cba57610cb382611f30565b9050610742565b6001600160a01b0383166000908152600d6020526040812090610ce56000546001600160a01b031690565b6001600160a01b0316856001600160a01b031614610d04576000610d08565b600b545b610d129085613da2565b815260200190815260200160002054905092915050565b610d338282612097565b60008281526012602052604090206109a5908261211f565b610d6582826040518060200160405280600081525061146e565b5050565b6109a58383836040518060200160405280600081525061165b565b600061074282611b75565b6000610d996109aa565b8210610e0d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610853565b600b54821015610e205761074282611f30565b600f610e2b600b5490565b610e359084613da2565b81548110610e4557610e45613ea8565b90600052602060002001549050919050565b610e5f612134565b8051610d65906013906020840190613498565b600080610e7e836121b2565b610e9f576000838152600360205260409020546001600160a01b0316610eac565b6000546001600160a01b03165b90506001600160a01b0381166107425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610853565b3360009081527f565525d248681c95689b6eebae8e6abc491ff2a8aeff51a5fbb419b282bd6af7602052604090205460ff16610fa85760405162461bcd60e51b815260206004820152601a60248201527f4d757374206861766520696e66696e6974697a657220726f6c650000000000006044820152606401610853565b610fb183611b75565b610ffd5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610853565b6000838152601660205260409020610b1890838361351c565b60606013805461075790613dfc565b60006001600160a01b0382166110a35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610853565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146111195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610853565b6111236000612218565b565b600061112f612134565b600288116112aa5786886111c1576040517fb88d4fde0000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063b88d4fde9061118a908a908a908a908a908a90600401613c8c565b600060405180830381600087803b1580156111a457600080fd5b505af11580156111b8573d6000803e3d6000fd5b505050506112a4565b8860011415611220576040517f42842e0e0000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301528781166024830152604482018790528216906342842e0e9060640161118a565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301528781166024830152604482018790528216906323b872dd90606401600060405180830381600087803b15801561128b57600080fd5b505af115801561129f573d6000803e3d6000fd5b505050505b5061142c565b600488116113ae57866003891415611360576040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301526024820187905282169063a9059cbb906044015b602060405180830381600087803b15801561132057600080fd5b505af1158015611334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113589190613833565b915050611430565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301526024820187905282169063095ea7b390604401611306565b87600514156113e457604051339085156108fc029086906000818181858888f193505050501580156112a4573d6000803e3d6000fd5b60405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964207265636f76657279206f7065726174696f6e0000000000006044820152606401610853565b5060015b979650505050505050565b60008281526012602052604081206114539083612275565b9392505050565b611462612134565b6109a56014838361351c565b3360009081527f7cd3358d899eff85cf53455c19e2a8e7691849a116fff9e0c3729849ab619882602052604090205460ff166114ec5760405162461bcd60e51b815260206004820152601560248201527f4d7573742068617665206d696e74657220726f6c6500000000000000000000006044820152606401610853565b61040082111561153e5760405162461bcd60e51b815260206004820152601a60248201527f43656e6472696c6c6f6e206861732031303234207069656365730000000000006044820152606401610853565b6109a5838383612281565b60606002805461075790613dfc565b6001600160a01b0382163314156115b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610853565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611625612134565b601580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff92909216919091179055565b6116653383611db0565b6116d75760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610853565b610b188484848461230a565b60008060606116fa6000546001600160a01b031690565b60155460649061171090899062ffffff16613d83565b61171a9190613d6f565b604051806020016040528060008152509250925092509450945094915050565b606061174582611b75565b6117b75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610853565b600082815260166020526040812080546117d090613dfc565b9050116117e5576117e082612393565b610742565b6000828152601660209081526040918290209151611804929101613b40565b60405160208183030381529060405292915050565b60008181526012602052604081206107429061246b565b611838612134565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610d338282612475565b6014805461187e90613dfc565b80601f01602080910402602001604051908101604052809291908181526020018280546118aa90613dfc565b80156118f75780601f106118cc576101008083540402835291602001916118f7565b820191906000526020600020905b8154815290600101906020018083116118da57829003601f168201915b505050505081565b600c546000906001600160a01b0316156119c957600c546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b15801561197657600080fd5b505afa15801561198a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ae91906138ea565b6001600160a01b031614156119c7576001915050610742565b505b506001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b03163314611a525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610853565b6001600160a01b038116611ace5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610853565b611ad781612218565b50565b610d65828261249b565b6000611453836001600160a01b03841661253d565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061074257506107428261258c565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610742575061074282612627565b600080611b81836121b2565b611ba2576000838152600360205260409020546001600160a01b0316611baf565b6000546001600160a01b03165b6001600160a01b0316141592915050565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611c0282610e72565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611c915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610853565b611c9a81611b75565b15611ce75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610853565b611cf360008383612665565b6001600160a01b0382166000908152600460205260408120805460019290611d1c908490613d57565b90915550611d2c905082826127f5565b15611d3f57611d3a81612826565b611d74565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790555b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611dbb82611b75565b611e2d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610853565b6000611e3883610e72565b9050806001600160a01b0316846001600160a01b03161480611e735750836001600160a01b0316611e68846107da565b6001600160a01b0316145b80611e835750611e8381856118ff565b949350505050565b60008111611edb5760405162461bcd60e51b815260206004820152601860248201527f43656e6472696c6c6f6e20697320746f6f206d6f6465737400000000000000006044820152606401610853565b611ee68383836128bf565b611ef06000611b75565b156109a5576109a5611f026000610e72565b8460006128bf565b600082815260116020526040902060010154611f268133612b14565b6109a5838361249b565b6000611f3b600b5490565b8210611faf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a2077726f6e6720696e7465726e616c20717565727920666f7260448201527f206f776e657220746f6b656e00000000000000000000000000000000000000006064820152608401610853565b6000805b600481101561204e5760005b61010081101561203b576001811b60078360048110611fe057611fe0613ea8565b01541615612029578483141561201b5780611ffd83610100613d83565b6120079190613d57565b612012906001613d57565b95945050505050565b8261202581613e37565b9350505b8061203381613e37565b915050611fbf565b508061204681613e37565b915050611fb3565b5060405162461bcd60e51b815260206004820152601660248201527f4552433732313a20696e7465726e616c206572726f72000000000000000000006044820152606401610853565b6001600160a01b03811633146121155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610853565b610d658282612b94565b6000611453836001600160a01b038416612c17565b3360009081527f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7602052604090205460ff166111235760405162461bcd60e51b815260206004820152601460248201527f4d75737420686176652061646d696e20726f6c650000000000000000000000006044820152606401610853565b60008115806121c2575061040082115b156121cf57506000919050565b60006121dc600184613da2565b90506121ea61010082613e52565b6001901b60076121fc61010084613d6f565b6004811061220c5761220c613ea8565b01541615159392505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114538383612d0a565b61228b8383611c3b565b6122986000848484612d34565b6109a55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610853565b612315848484611e8b565b61232184848484612d34565b610b185760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610853565b606061239e82611b75565b6124105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610853565b600061241a611016565b9050600081511161243a5760405180602001604052806000815250611453565b8061244484612ec9565b604051602001612455929190613b11565b6040516020818303038152906040529392505050565b6000610742825490565b6000828152601160205260409020600101546124918133612b14565b6109a58383612b94565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff16610d655760008281526011602090815260408083206001600160a01b03851684529091529020805460ff191660011790556124f93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461258457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610742565b506000610742565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061074257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610742565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610742575061074282611af9565b6001600160a01b0383166126f6576000546001600160a01b038381169116148015612691575060018110155b801561269f57506104008111155b156126a95761274f565b6126f181600f80546000838152601060205260408120829055600182018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b61274f565b816001600160a01b0316836001600160a01b03161461274f576000546001600160a01b03848116911614801561272d575060018110155b801561273b57506104008111155b156127455761274f565b61274f8382612ffb565b6001600160a01b03821661279c576000546001600160a01b03848116911614801561277b575060018110155b801561278957506104008111155b1561279357505050565b6109a5816130c1565b826001600160a01b0316826001600160a01b0316146109a5576000546001600160a01b0383811691161480156127d3575060018110155b80156127e157506104008111155b156127eb57505050565b6109a58282613170565b600080546001600160a01b038481169116148015612814575060018210155b80156114535750506104001015919050565b6000612833600183613da2565b905061284161010082613e52565b6001901b600761285361010084613d6f565b6004811061286357612863613ea8565b015416610d655761287661010082613e52565b6001901b600761288861010084613d6f565b6004811061289857612898613ea8565b0180549091179055600b8054600191906000906128b6908490613d57565b90915550505050565b826001600160a01b03166128d282610e72565b6001600160a01b03161461294e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610853565b6001600160a01b0382166129c95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610853565b6129d4838383612665565b6129df600082611bc0565b6001600160a01b0383166000908152600460205260408120805460019290612a08908490613da2565b90915550506001600160a01b0382166000908152600460205260408120805460019290612a36908490613d57565b90915550612a459050816121b2565b15612a5357612a53816131dd565b612a5d82826127f5565b15612a9957612a6b81612826565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055612ace565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790555b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff16610d6557612b52816001600160a01b0316601461326f565b612b5d83602061326f565b604051602001612b6e929190613c0b565b60408051601f198184030181529082905262461bcd60e51b825261085391600401613d44565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff1615610d655760008281526011602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015612d00576000612c3b600183613da2565b8554909150600090612c4f90600190613da2565b9050818114612cb4576000866000018281548110612c6f57612c6f613ea8565b9060005260206000200154905080876000018481548110612c9257612c92613ea8565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612cc557612cc5613e92565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610742565b6000915050610742565b6000826000018281548110612d2157612d21613ea8565b9060005260206000200154905092915050565b60006001600160a01b0384163b15612ebe576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612d91903390899088908890600401613ce0565b602060405180830381600087803b158015612dab57600080fd5b505af1925050508015612ddb575060408051601f3d908101601f19168201909252612dd8918101906138cd565b60015b612e8b573d808015612e09576040519150601f19603f3d011682016040523d82523d6000602084013e612e0e565b606091505b508051612e835760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610853565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611e83565b506001949350505050565b606081612f0957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f335780612f1d81613e37565b9150612f2c9050600a83613d6f565b9150612f0d565b60008167ffffffffffffffff811115612f4e57612f4e613ebe565b6040519080825280601f01601f191660200182016040528015612f78576020820181803683370190505b5090505b8415611e8357612f8d600183613da2565b9150612f9a600a86613e52565b612fa5906030613d57565b60f81b818381518110612fba57612fba613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ff4600a86613d6f565b9450612f7c565b600080546001600160a01b0384811691161461301857600061301c565b600b545b600161302785611025565b6130319190613da2565b61303b9190613da2565b6000838152600e602052604090205490915080821461308e576001600160a01b0384166000908152600d602090815260408083208584528252808320548484528184208190558352600e90915290208190555b506000918252600e602090815260408084208490556001600160a01b039094168352600d81528383209183525290812055565b600f546000906130d390600190613da2565b600083815260106020526040812054600f80549394509092849081106130fb576130fb613ea8565b9060005260206000200154905080600f838154811061311c5761311c613ea8565b600091825260208083209091019290925582815260109091526040808220849055858252812055600f80548061315457613154613e92565b6001900381819060005260206000200160009055905550505050565b600080546001600160a01b0384811691161461318d576000613191565b600b545b61319a84611025565b6131a49190613da2565b6001600160a01b039093166000908152600d602090815260408083208684528252808320859055938252600e9052919091209190915550565b60006131ea600183613da2565b90506131f861010082613e52565b6001901b600761320a61010084613d6f565b6004811061321a5761321a613ea8565b01541615610d655761322e61010082613e52565b6001901b19600761324161010084613d6f565b6004811061325157613251613ea8565b0180549091169055600b8054600191906000906128b6908490613da2565b6060600061327e836002613d83565b613289906002613d57565b67ffffffffffffffff8111156132a1576132a1613ebe565b6040519080825280601f01601f1916602001820160405280156132cb576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061330257613302613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061336557613365613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006133a1846002613d83565b6133ac906001613d57565b90505b6001811115613449577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106133ed576133ed613ea8565b1a60f81b82828151811061340357613403613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361344281613de5565b90506133af565b5083156114535760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610853565b8280546134a490613dfc565b90600052602060002090601f0160209004810192826134c6576000855561350c565b82601f106134df57805160ff191683800117855561350c565b8280016001018555821561350c579182015b8281111561350c5782518255916020019190600101906134f1565b50613518929150613590565b5090565b82805461352890613dfc565b90600052602060002090601f01602090048101928261354a576000855561350c565b82601f106135635782800160ff1982351617855561350c565b8280016001018555821561350c579182015b8281111561350c578235825591602001919060010190613575565b5b808211156135185760008155600101613591565b600067ffffffffffffffff808411156135c0576135c0613ebe565b604051601f8501601f19908116603f011681019082821181831017156135e8576135e8613ebe565b8160405280935085815286868601111561360157600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261362d57600080fd5b50813567ffffffffffffffff81111561364557600080fd5b602083019150836020828501011115610bdf57600080fd5b600082601f83011261366e57600080fd5b611453838335602085016135a5565b60006020828403121561368f57600080fd5b813561145381613ed4565b600080604083850312156136ad57600080fd5b82356136b881613ed4565b915060208301356136c881613ed4565b809150509250929050565b6000806000606084860312156136e857600080fd5b83356136f381613ed4565b9250602084013561370381613ed4565b929592945050506040919091013590565b6000806000806080858703121561372a57600080fd5b843561373581613ed4565b9350602085013561374581613ed4565b925060408501359150606085013567ffffffffffffffff81111561376857600080fd5b6137748782880161365d565b91505092959194509250565b6000806040838503121561379357600080fd5b823561379e81613ed4565b915060208301356136c881613ee9565b600080604083850312156137c157600080fd5b82356137cc81613ed4565b946020939093013593505050565b6000806000606084860312156137ef57600080fd5b83356137fa81613ed4565b925060208401359150604084013567ffffffffffffffff81111561381d57600080fd5b6138298682870161365d565b9150509250925092565b60006020828403121561384557600080fd5b815161145381613ee9565b60006020828403121561386257600080fd5b5035919050565b6000806040838503121561387c57600080fd5b8235915060208301356136c881613ed4565b600080604083850312156138a157600080fd5b50508035926020909101359150565b6000602082840312156138c257600080fd5b813561145381613ef7565b6000602082840312156138df57600080fd5b815161145381613ef7565b6000602082840312156138fc57600080fd5b815161145381613ed4565b6000806020838503121561391a57600080fd5b823567ffffffffffffffff81111561393157600080fd5b61393d8582860161361b565b90969095509350505050565b60006020828403121561395b57600080fd5b813567ffffffffffffffff81111561397257600080fd5b8201601f8101841361398357600080fd5b611e83848235602084016135a5565b6000602082840312156139a457600080fd5b813562ffffff8116811461145357600080fd5b600080600080600080600060c0888a0312156139d257600080fd5b8735965060208801356139e481613ed4565b955060408801356139f481613ed4565b94506060880135613a0481613ed4565b93506080880135925060a088013567ffffffffffffffff811115613a2757600080fd5b613a338a828b0161361b565b989b979a50959850939692959293505050565b600080600060408486031215613a5b57600080fd5b83359250602084013567ffffffffffffffff811115613a7957600080fd5b613a858682870161361b565b9497909650939450505050565b60008060008060608587031215613aa857600080fd5b8435935060208501359250604085013567ffffffffffffffff811115613acd57600080fd5b613ad98782880161361b565b95989497509550505050565b60008151808452613afd816020860160208601613db9565b601f01601f19169290920160200192915050565b60008351613b23818460208801613db9565b835190830190613b37818360208801613db9565b01949350505050565b7f697066733a2f2f000000000000000000000000000000000000000000000000008152600060076000845481600182811c915080831680613b8257607f831692505b6020808410821415613ba257634e487b7160e01b86526022600452602486fd5b818015613bb65760018114613bcb57613bfc565b60ff198616888b015287858b01019650613bfc565b60008b81526020902060005b86811015613bf25781548c82018b0152908501908301613bd7565b505087858b010196505b50949998505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c43816017850160208801613db9565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613c80816028840160208801613db9565b01602801949350505050565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613d126080830184613ae5565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006120126060830184613ae5565b6020815260006114536020830184613ae5565b60008219821115613d6a57613d6a613e66565b500190565b600082613d7e57613d7e613e7c565b500490565b6000816000190483118215151615613d9d57613d9d613e66565b500290565b600082821015613db457613db4613e66565b500390565b60005b83811015613dd4578181015183820152602001613dbc565b83811115610b185750506000910152565b600081613df457613df4613e66565b506000190190565b600181811c90821680613e1057607f821691505b60208210811415613e3157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e4b57613e4b613e66565b5060010190565b600082613e6157613e61613e7c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ad757600080fd5b8015158114611ad757600080fd5b6001600160e01b031981168114611ad757600080fdfea2646970667358221220f8ffbad08ba8e83d02ca00f4f49246dbfc39e502fabd76e9e0aedb0f38cbf3c564736f6c63430008060033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000145469646577656967682043656e6472696c6c6f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000443454e4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6170692e7469646577656967682e6172742f76312f746f6b656e732f63656e6472696c6c6f6e2f0000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102ff5760003560e01c806370a082311161019c578063b874422a116100ee578063d539139311610097578063e8a3d48511610071578063e8a3d485146106c6578063e985e9c5146106ce578063f2fde38b146106e157600080fd5b8063d539139314610665578063d547741f1461068c578063e63ab1e91461069f57600080fd5b8063c87b56dd116100c8578063c87b56dd1461062c578063ca15c8731461063f578063d26ea6c01461065257600080fd5b8063b874422a146105e4578063b88d4fde146105f7578063c155531d1461060a57600080fd5b806391d148541161015057806395d89b411161012a57806395d89b41146105c1578063a217fddf146105c9578063a22cb465146105d157600080fd5b806391d1485414610562578063938e3d7b1461059b57806394d008ef146105ae57600080fd5b80637894b2db116101815780637894b2db1461052b5780638da5cb5b1461053e5780639010d07c1461054f57600080fd5b806370a0823114610510578063715018a61461052357600080fd5b80632f745c59116102555780634f558e79116102095780636352211e116101e35780636352211e146104e257806369eecfe1146104f55780636c0360eb1461050857600080fd5b80634f558e79146104a95780634f6ccce7146104bc57806355f804b3146104cf57600080fd5b806340c10f191161023a57806340c10f191461045c57806342842e0e1461046f578063457a5a3f1461048257600080fd5b80632f745c591461043657806336568abe1461044957600080fd5b80631fc22027116102b7578063248a9ca311610291578063248a9ca3146103ce5780632a55205a146103f15780632f2ff15d1461042357600080fd5b80631fc22027146103975780631fe5b457146103aa57806323b872dd146103bb57600080fd5b8063081812fc116102e8578063081812fc14610341578063095ea7b31461036c57806318160ddd1461038157600080fd5b806301ffc9a71461030457806306fdde031461032c575b600080fd5b6103176103123660046138b0565b6106f4565b60405190151581526020015b60405180910390f35b610334610748565b6040516103239190613d44565b61035461034f366004613850565b6107da565b6040516001600160a01b039091168152602001610323565b61037f61037a3660046137ae565b610878565b005b6103896109aa565b604051908152602001610323565b61037f6103a536600461388e565b6109c8565b600c546001600160a01b0316610354565b61037f6103c93660046136d3565b610b1e565b6103896103dc366004613850565b60009081526011602052604090206001015490565b6104046103ff36600461388e565b610ba5565b604080516001600160a01b039093168352602083019190915201610323565b61037f610431366004613869565b610be6565b6103896104443660046137ae565b610c08565b61037f610457366004613869565b610d29565b61037f61046a3660046137ae565b610d4b565b61037f61047d3660046136d3565b610d69565b6103897fdf8a581f79457556edcf2987041a7bee8a54c05fddda38ff714707a55701741281565b6103176104b7366004613850565b610d84565b6103896104ca366004613850565b610d8f565b61037f6104dd366004613949565b610e57565b6103546104f0366004613850565b610e72565b61037f610503366004613a46565b610f2a565b610334611016565b61038961051e36600461367d565b611025565b61037f6110bf565b6103176105393660046139b7565b611125565b6000546001600160a01b0316610354565b61035461055d36600461388e565b61143b565b610317610570366004613869565b60009182526011602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61037f6105a9366004613907565b61145a565b61037f6105bc3660046137da565b61146e565b610334611549565b610389600081565b61037f6105df366004613780565b611558565b61037f6105f2366004613992565b61161d565b61037f610605366004613714565b61165b565b61061d610618366004613a92565b6116e3565b60405161032393929190613d1c565b61033461063a366004613850565b61173a565b61038961064d366004613850565b611819565b61037f61066036600461367d565b611830565b6103897f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61037f61069a366004613869565b611867565b6103897f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b610334611871565b6103176106dc36600461369a565b6118ff565b61037f6106ef36600461367d565b6119f8565b60006106ff82611af9565b8061070e575061070e82611b37565b8061074257506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b60606001805461075790613dfc565b80601f016020809104026020016040519081016040528092919081815260200182805461078390613dfc565b80156107d05780601f106107a5576101008083540402835291602001916107d0565b820191906000526020600020905b8154815290600101906020018083116107b357829003601f168201915b5050505050905090565b60006107e582611b75565b61085c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061088382610e72565b9050806001600160a01b0316836001600160a01b0316141561090d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610853565b336001600160a01b0382161480610929575061092981336118ff565b61099b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610853565b6109a58383611bc0565b505050565b600f546000906109b9600b5490565b6109c39190613d57565b905090565b3360009081527f7cd3358d899eff85cf53455c19e2a8e7691849a116fff9e0c3729849ab619882602052604090205460ff16610a465760405162461bcd60e51b815260206004820152601560248201527f4d7573742068617665206d696e74657220726f6c6500000000000000000000006044820152606401610853565b808210610a955760405162461bcd60e51b815260206004820152601160248201527f54776f206d696e7473206d696e696d756d0000000000000000000000000000006044820152606401610853565b610400811115610ae75760405162461bcd60e51b815260206004820152601a60248201527f43656e6472696c6c6f6e206861732031303234207069656365730000000000006044820152606401610853565b6000546001600160a01b0316825b828111610b1857610b068282611c3b565b80610b1081613e37565b915050610af5565b50505050565b610b283382611db0565b610b9a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610853565b6109a5838383611e8b565b600080610bba6000546001600160a01b031690565b601554606490610bd090869062ffffff16613d83565b610bda9190613d6f565b915091505b9250929050565b610bf08282611f0a565b60008281526012602052604090206109a59082611ae4565b6000610c1383611025565b8210610c875760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610853565b6000546001600160a01b038481169116148015610ca55750600b5482105b15610cba57610cb382611f30565b9050610742565b6001600160a01b0383166000908152600d6020526040812090610ce56000546001600160a01b031690565b6001600160a01b0316856001600160a01b031614610d04576000610d08565b600b545b610d129085613da2565b815260200190815260200160002054905092915050565b610d338282612097565b60008281526012602052604090206109a5908261211f565b610d6582826040518060200160405280600081525061146e565b5050565b6109a58383836040518060200160405280600081525061165b565b600061074282611b75565b6000610d996109aa565b8210610e0d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610853565b600b54821015610e205761074282611f30565b600f610e2b600b5490565b610e359084613da2565b81548110610e4557610e45613ea8565b90600052602060002001549050919050565b610e5f612134565b8051610d65906013906020840190613498565b600080610e7e836121b2565b610e9f576000838152600360205260409020546001600160a01b0316610eac565b6000546001600160a01b03165b90506001600160a01b0381166107425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610853565b3360009081527f565525d248681c95689b6eebae8e6abc491ff2a8aeff51a5fbb419b282bd6af7602052604090205460ff16610fa85760405162461bcd60e51b815260206004820152601a60248201527f4d757374206861766520696e66696e6974697a657220726f6c650000000000006044820152606401610853565b610fb183611b75565b610ffd5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610853565b6000838152601660205260409020610b1890838361351c565b60606013805461075790613dfc565b60006001600160a01b0382166110a35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610853565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146111195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610853565b6111236000612218565b565b600061112f612134565b600288116112aa5786886111c1576040517fb88d4fde0000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063b88d4fde9061118a908a908a908a908a908a90600401613c8c565b600060405180830381600087803b1580156111a457600080fd5b505af11580156111b8573d6000803e3d6000fd5b505050506112a4565b8860011415611220576040517f42842e0e0000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301528781166024830152604482018790528216906342842e0e9060640161118a565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301528781166024830152604482018790528216906323b872dd90606401600060405180830381600087803b15801561128b57600080fd5b505af115801561129f573d6000803e3d6000fd5b505050505b5061142c565b600488116113ae57866003891415611360576040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301526024820187905282169063a9059cbb906044015b602060405180830381600087803b15801561132057600080fd5b505af1158015611334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113589190613833565b915050611430565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301526024820187905282169063095ea7b390604401611306565b87600514156113e457604051339085156108fc029086906000818181858888f193505050501580156112a4573d6000803e3d6000fd5b60405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964207265636f76657279206f7065726174696f6e0000000000006044820152606401610853565b5060015b979650505050505050565b60008281526012602052604081206114539083612275565b9392505050565b611462612134565b6109a56014838361351c565b3360009081527f7cd3358d899eff85cf53455c19e2a8e7691849a116fff9e0c3729849ab619882602052604090205460ff166114ec5760405162461bcd60e51b815260206004820152601560248201527f4d7573742068617665206d696e74657220726f6c6500000000000000000000006044820152606401610853565b61040082111561153e5760405162461bcd60e51b815260206004820152601a60248201527f43656e6472696c6c6f6e206861732031303234207069656365730000000000006044820152606401610853565b6109a5838383612281565b60606002805461075790613dfc565b6001600160a01b0382163314156115b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610853565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611625612134565b601580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff92909216919091179055565b6116653383611db0565b6116d75760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610853565b610b188484848461230a565b60008060606116fa6000546001600160a01b031690565b60155460649061171090899062ffffff16613d83565b61171a9190613d6f565b604051806020016040528060008152509250925092509450945094915050565b606061174582611b75565b6117b75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610853565b600082815260166020526040812080546117d090613dfc565b9050116117e5576117e082612393565b610742565b6000828152601660209081526040918290209151611804929101613b40565b60405160208183030381529060405292915050565b60008181526012602052604081206107429061246b565b611838612134565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610d338282612475565b6014805461187e90613dfc565b80601f01602080910402602001604051908101604052809291908181526020018280546118aa90613dfc565b80156118f75780601f106118cc576101008083540402835291602001916118f7565b820191906000526020600020905b8154815290600101906020018083116118da57829003601f168201915b505050505081565b600c546000906001600160a01b0316156119c957600c546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b15801561197657600080fd5b505afa15801561198a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ae91906138ea565b6001600160a01b031614156119c7576001915050610742565b505b506001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b03163314611a525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610853565b6001600160a01b038116611ace5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610853565b611ad781612218565b50565b610d65828261249b565b6000611453836001600160a01b03841661253d565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061074257506107428261258c565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610742575061074282612627565b600080611b81836121b2565b611ba2576000838152600360205260409020546001600160a01b0316611baf565b6000546001600160a01b03165b6001600160a01b0316141592915050565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611c0282610e72565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611c915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610853565b611c9a81611b75565b15611ce75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610853565b611cf360008383612665565b6001600160a01b0382166000908152600460205260408120805460019290611d1c908490613d57565b90915550611d2c905082826127f5565b15611d3f57611d3a81612826565b611d74565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790555b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611dbb82611b75565b611e2d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610853565b6000611e3883610e72565b9050806001600160a01b0316846001600160a01b03161480611e735750836001600160a01b0316611e68846107da565b6001600160a01b0316145b80611e835750611e8381856118ff565b949350505050565b60008111611edb5760405162461bcd60e51b815260206004820152601860248201527f43656e6472696c6c6f6e20697320746f6f206d6f6465737400000000000000006044820152606401610853565b611ee68383836128bf565b611ef06000611b75565b156109a5576109a5611f026000610e72565b8460006128bf565b600082815260116020526040902060010154611f268133612b14565b6109a5838361249b565b6000611f3b600b5490565b8210611faf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a2077726f6e6720696e7465726e616c20717565727920666f7260448201527f206f776e657220746f6b656e00000000000000000000000000000000000000006064820152608401610853565b6000805b600481101561204e5760005b61010081101561203b576001811b60078360048110611fe057611fe0613ea8565b01541615612029578483141561201b5780611ffd83610100613d83565b6120079190613d57565b612012906001613d57565b95945050505050565b8261202581613e37565b9350505b8061203381613e37565b915050611fbf565b508061204681613e37565b915050611fb3565b5060405162461bcd60e51b815260206004820152601660248201527f4552433732313a20696e7465726e616c206572726f72000000000000000000006044820152606401610853565b6001600160a01b03811633146121155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610853565b610d658282612b94565b6000611453836001600160a01b038416612c17565b3360009081527f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7602052604090205460ff166111235760405162461bcd60e51b815260206004820152601460248201527f4d75737420686176652061646d696e20726f6c650000000000000000000000006044820152606401610853565b60008115806121c2575061040082115b156121cf57506000919050565b60006121dc600184613da2565b90506121ea61010082613e52565b6001901b60076121fc61010084613d6f565b6004811061220c5761220c613ea8565b01541615159392505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114538383612d0a565b61228b8383611c3b565b6122986000848484612d34565b6109a55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610853565b612315848484611e8b565b61232184848484612d34565b610b185760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610853565b606061239e82611b75565b6124105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610853565b600061241a611016565b9050600081511161243a5760405180602001604052806000815250611453565b8061244484612ec9565b604051602001612455929190613b11565b6040516020818303038152906040529392505050565b6000610742825490565b6000828152601160205260409020600101546124918133612b14565b6109a58383612b94565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff16610d655760008281526011602090815260408083206001600160a01b03851684529091529020805460ff191660011790556124f93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461258457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610742565b506000610742565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061074257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610742565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610742575061074282611af9565b6001600160a01b0383166126f6576000546001600160a01b038381169116148015612691575060018110155b801561269f57506104008111155b156126a95761274f565b6126f181600f80546000838152601060205260408120829055600182018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b61274f565b816001600160a01b0316836001600160a01b03161461274f576000546001600160a01b03848116911614801561272d575060018110155b801561273b57506104008111155b156127455761274f565b61274f8382612ffb565b6001600160a01b03821661279c576000546001600160a01b03848116911614801561277b575060018110155b801561278957506104008111155b1561279357505050565b6109a5816130c1565b826001600160a01b0316826001600160a01b0316146109a5576000546001600160a01b0383811691161480156127d3575060018110155b80156127e157506104008111155b156127eb57505050565b6109a58282613170565b600080546001600160a01b038481169116148015612814575060018210155b80156114535750506104001015919050565b6000612833600183613da2565b905061284161010082613e52565b6001901b600761285361010084613d6f565b6004811061286357612863613ea8565b015416610d655761287661010082613e52565b6001901b600761288861010084613d6f565b6004811061289857612898613ea8565b0180549091179055600b8054600191906000906128b6908490613d57565b90915550505050565b826001600160a01b03166128d282610e72565b6001600160a01b03161461294e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610853565b6001600160a01b0382166129c95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610853565b6129d4838383612665565b6129df600082611bc0565b6001600160a01b0383166000908152600460205260408120805460019290612a08908490613da2565b90915550506001600160a01b0382166000908152600460205260408120805460019290612a36908490613d57565b90915550612a459050816121b2565b15612a5357612a53816131dd565b612a5d82826127f5565b15612a9957612a6b81612826565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055612ace565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790555b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff16610d6557612b52816001600160a01b0316601461326f565b612b5d83602061326f565b604051602001612b6e929190613c0b565b60408051601f198184030181529082905262461bcd60e51b825261085391600401613d44565b60008281526011602090815260408083206001600160a01b038516845290915290205460ff1615610d655760008281526011602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015612d00576000612c3b600183613da2565b8554909150600090612c4f90600190613da2565b9050818114612cb4576000866000018281548110612c6f57612c6f613ea8565b9060005260206000200154905080876000018481548110612c9257612c92613ea8565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612cc557612cc5613e92565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610742565b6000915050610742565b6000826000018281548110612d2157612d21613ea8565b9060005260206000200154905092915050565b60006001600160a01b0384163b15612ebe576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612d91903390899088908890600401613ce0565b602060405180830381600087803b158015612dab57600080fd5b505af1925050508015612ddb575060408051601f3d908101601f19168201909252612dd8918101906138cd565b60015b612e8b573d808015612e09576040519150601f19603f3d011682016040523d82523d6000602084013e612e0e565b606091505b508051612e835760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610853565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611e83565b506001949350505050565b606081612f0957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612f335780612f1d81613e37565b9150612f2c9050600a83613d6f565b9150612f0d565b60008167ffffffffffffffff811115612f4e57612f4e613ebe565b6040519080825280601f01601f191660200182016040528015612f78576020820181803683370190505b5090505b8415611e8357612f8d600183613da2565b9150612f9a600a86613e52565b612fa5906030613d57565b60f81b818381518110612fba57612fba613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ff4600a86613d6f565b9450612f7c565b600080546001600160a01b0384811691161461301857600061301c565b600b545b600161302785611025565b6130319190613da2565b61303b9190613da2565b6000838152600e602052604090205490915080821461308e576001600160a01b0384166000908152600d602090815260408083208584528252808320548484528184208190558352600e90915290208190555b506000918252600e602090815260408084208490556001600160a01b039094168352600d81528383209183525290812055565b600f546000906130d390600190613da2565b600083815260106020526040812054600f80549394509092849081106130fb576130fb613ea8565b9060005260206000200154905080600f838154811061311c5761311c613ea8565b600091825260208083209091019290925582815260109091526040808220849055858252812055600f80548061315457613154613e92565b6001900381819060005260206000200160009055905550505050565b600080546001600160a01b0384811691161461318d576000613191565b600b545b61319a84611025565b6131a49190613da2565b6001600160a01b039093166000908152600d602090815260408083208684528252808320859055938252600e9052919091209190915550565b60006131ea600183613da2565b90506131f861010082613e52565b6001901b600761320a61010084613d6f565b6004811061321a5761321a613ea8565b01541615610d655761322e61010082613e52565b6001901b19600761324161010084613d6f565b6004811061325157613251613ea8565b0180549091169055600b8054600191906000906128b6908490613da2565b6060600061327e836002613d83565b613289906002613d57565b67ffffffffffffffff8111156132a1576132a1613ebe565b6040519080825280601f01601f1916602001820160405280156132cb576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061330257613302613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061336557613365613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006133a1846002613d83565b6133ac906001613d57565b90505b6001811115613449577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106133ed576133ed613ea8565b1a60f81b82828151811061340357613403613ea8565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361344281613de5565b90506133af565b5083156114535760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610853565b8280546134a490613dfc565b90600052602060002090601f0160209004810192826134c6576000855561350c565b82601f106134df57805160ff191683800117855561350c565b8280016001018555821561350c579182015b8281111561350c5782518255916020019190600101906134f1565b50613518929150613590565b5090565b82805461352890613dfc565b90600052602060002090601f01602090048101928261354a576000855561350c565b82601f106135635782800160ff1982351617855561350c565b8280016001018555821561350c579182015b8281111561350c578235825591602001919060010190613575565b5b808211156135185760008155600101613591565b600067ffffffffffffffff808411156135c0576135c0613ebe565b604051601f8501601f19908116603f011681019082821181831017156135e8576135e8613ebe565b8160405280935085815286868601111561360157600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261362d57600080fd5b50813567ffffffffffffffff81111561364557600080fd5b602083019150836020828501011115610bdf57600080fd5b600082601f83011261366e57600080fd5b611453838335602085016135a5565b60006020828403121561368f57600080fd5b813561145381613ed4565b600080604083850312156136ad57600080fd5b82356136b881613ed4565b915060208301356136c881613ed4565b809150509250929050565b6000806000606084860312156136e857600080fd5b83356136f381613ed4565b9250602084013561370381613ed4565b929592945050506040919091013590565b6000806000806080858703121561372a57600080fd5b843561373581613ed4565b9350602085013561374581613ed4565b925060408501359150606085013567ffffffffffffffff81111561376857600080fd5b6137748782880161365d565b91505092959194509250565b6000806040838503121561379357600080fd5b823561379e81613ed4565b915060208301356136c881613ee9565b600080604083850312156137c157600080fd5b82356137cc81613ed4565b946020939093013593505050565b6000806000606084860312156137ef57600080fd5b83356137fa81613ed4565b925060208401359150604084013567ffffffffffffffff81111561381d57600080fd5b6138298682870161365d565b9150509250925092565b60006020828403121561384557600080fd5b815161145381613ee9565b60006020828403121561386257600080fd5b5035919050565b6000806040838503121561387c57600080fd5b8235915060208301356136c881613ed4565b600080604083850312156138a157600080fd5b50508035926020909101359150565b6000602082840312156138c257600080fd5b813561145381613ef7565b6000602082840312156138df57600080fd5b815161145381613ef7565b6000602082840312156138fc57600080fd5b815161145381613ed4565b6000806020838503121561391a57600080fd5b823567ffffffffffffffff81111561393157600080fd5b61393d8582860161361b565b90969095509350505050565b60006020828403121561395b57600080fd5b813567ffffffffffffffff81111561397257600080fd5b8201601f8101841361398357600080fd5b611e83848235602084016135a5565b6000602082840312156139a457600080fd5b813562ffffff8116811461145357600080fd5b600080600080600080600060c0888a0312156139d257600080fd5b8735965060208801356139e481613ed4565b955060408801356139f481613ed4565b94506060880135613a0481613ed4565b93506080880135925060a088013567ffffffffffffffff811115613a2757600080fd5b613a338a828b0161361b565b989b979a50959850939692959293505050565b600080600060408486031215613a5b57600080fd5b83359250602084013567ffffffffffffffff811115613a7957600080fd5b613a858682870161361b565b9497909650939450505050565b60008060008060608587031215613aa857600080fd5b8435935060208501359250604085013567ffffffffffffffff811115613acd57600080fd5b613ad98782880161361b565b95989497509550505050565b60008151808452613afd816020860160208601613db9565b601f01601f19169290920160200192915050565b60008351613b23818460208801613db9565b835190830190613b37818360208801613db9565b01949350505050565b7f697066733a2f2f000000000000000000000000000000000000000000000000008152600060076000845481600182811c915080831680613b8257607f831692505b6020808410821415613ba257634e487b7160e01b86526022600452602486fd5b818015613bb65760018114613bcb57613bfc565b60ff198616888b015287858b01019650613bfc565b60008b81526020902060005b86811015613bf25781548c82018b0152908501908301613bd7565b505087858b010196505b50949998505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c43816017850160208801613db9565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613c80816028840160208801613db9565b01602801949350505050565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613d126080830184613ae5565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006120126060830184613ae5565b6020815260006114536020830184613ae5565b60008219821115613d6a57613d6a613e66565b500190565b600082613d7e57613d7e613e7c565b500490565b6000816000190483118215151615613d9d57613d9d613e66565b500290565b600082821015613db457613db4613e66565b500390565b60005b83811015613dd4578181015183820152602001613dbc565b83811115610b185750506000910152565b600081613df457613df4613e66565b506000190190565b600181811c90821680613e1057607f821691505b60208210811415613e3157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e4b57613e4b613e66565b5060010190565b600082613e6157613e61613e7c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ad757600080fd5b8015158114611ad757600080fd5b6001600160e01b031981168114611ad757600080fdfea2646970667358221220f8ffbad08ba8e83d02ca00f4f49246dbfc39e502fabd76e9e0aedb0f38cbf3c564736f6c63430008060033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000145469646577656967682043656e6472696c6c6f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000443454e4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6170692e7469646577656967682e6172742f76312f746f6b656e732f63656e6472696c6c6f6e2f0000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Tideweigh Cendrillon
Arg [1] : symbol (string): CEND
Arg [2] : baseTokenURI (string): https://api.tideweigh.art/v1/tokens/cendrillon/
Arg [3] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 5469646577656967682043656e6472696c6c6f6e000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 43454e4400000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [9] : 68747470733a2f2f6170692e7469646577656967682e6172742f76312f746f6b
Arg [10] : 656e732f63656e6472696c6c6f6e2f0000000000000000000000000000000000


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.