ETH Price: $3,524.60 (+5.07%)

Token

Pepe Open Editions by Matt Furie (PEPE)
 

Overview

Max Total Supply

53,755 PEPE

Holders

4,660

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 PEPE
0xcdd9fdb9ab7dfa164b8355334ce986dc6e213b57
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:
Originals

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 18 : Originals.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

struct Original {
    bytes32 allowlistMerkleRoot;
    uint96 allowlistPrice;
    uint256 allowlistStart;
    uint256 allowlistEnd;
    uint48 allowlistWalletLimit;
    uint96 publicPrice;
    uint256 publicStart;
    uint256 publicEnd;
    uint48 publicWalletLimit;
    uint48 totalSupply;
    uint48 maxSupply;
    string uri;
}

contract Originals is
    ERC721,
    AccessControl,
    Ownable,
    ReentrancyGuard,
    ERC721Burnable
{
    error HasEnded();
    error HasNotStarted();
    error IncorrectMintPrice();
    error InvalidMaxSupply();
    error InvalidMintAmount();
    error InvalidOriginal();
    error InvalidPrice();
    error InvalidProof();
    error InvalidTimeframe();
    error MerkleRootNotSet();
    error MintAmountExceedsLimit();
    error MintLimitGreaterThanSupply();
    error NotEnoughSupply();

    event OriginalReleased(uint48 __originalId);
    event OriginalUpdated(uint48 __originalId);

    uint48 private _nextOriginalId = 1;
    uint48 private _nextTokenId = 1;

    mapping(uint256 => Original) private _originals;

    mapping(uint48 => mapping(address => uint48)) private _allowlistWalletMints;
    mapping(uint48 => mapping(address => uint48)) private _publicWalletMints;
    mapping(uint256 => uint256) private _tokenIdToOriginalId;

    bytes32 ADMIN_MINTER_ROLE = bytes32("ADMIN_MINTER_ROLE");

    constructor(
        string memory __name,
        string memory __symbol
    ) ERC721(__name, __symbol) {
        _grantRole(DEFAULT_ADMIN_ROLE, owner());
        _grantRole(ADMIN_MINTER_ROLE, owner());
    }

    ////////////////////////////////////////////////////////////////////////////
    // MODIFIERS
    ////////////////////////////////////////////////////////////////////////////

    modifier onlyExistingOriginal(uint48 __originalId) {
        if (__originalId >= _nextOriginalId) {
            revert InvalidOriginal();
        }
        _;
    }

    ////////////////////////////////////////////////////////////////////////////
    // INTERNALS
    ////////////////////////////////////////////////////////////////////////////

    function _mintOriginal(
        address __account,
        uint48 __originalId,
        uint48 __amount
    ) internal {
        Original memory original = _originals[__originalId];

        if (__amount < 1) revert InvalidMintAmount();

        if (original.maxSupply != 0) {
            if (original.totalSupply + __amount > original.maxSupply)
                revert NotEnoughSupply();
        }

        _originals[__originalId].totalSupply = original.totalSupply + __amount;
        for (uint48 i = 0; i < __amount; i++) {
            uint48 tokenId = _nextTokenId++;
            _tokenIdToOriginalId[tokenId] = __originalId;
            _safeMint(__account, tokenId);
        }
    }

    function _verifyProof(
        address __sender,
        uint48 __originalId,
        bytes32[] calldata __proof
    ) internal view {
        Original memory original = _originals[__originalId];

        if (original.allowlistMerkleRoot == 0x0) revert MerkleRootNotSet();

        bool verified = MerkleProof.verify(
            __proof,
            original.allowlistMerkleRoot,
            keccak256(abi.encodePacked(__sender))
        );

        if (!verified) revert InvalidProof();
    }

    ////////////////////////////////////////////////////////////////////////////
    // OWNER
    ////////////////////////////////////////////////////////////////////////////

    function releaseOriginal(
        uint96 __publicPrice,
        uint256 __publicStart,
        uint256 __publicEnd,
        uint48 __publicWalletLimit,
        uint48 __maxSupply,
        string calldata __uri
    ) external onlyOwner {
        if (__publicStart > __publicEnd) revert InvalidTimeframe();

        if (__maxSupply != 0) {
            if (__publicWalletLimit > __maxSupply)
                revert MintLimitGreaterThanSupply();
        }

        uint48 originalId = _nextOriginalId++;

        _originals[originalId] = Original({
            allowlistMerkleRoot: 0x0,
            allowlistPrice: 0,
            allowlistStart: 0,
            allowlistEnd: 0,
            allowlistWalletLimit: 0,
            publicPrice: __publicPrice,
            publicStart: __publicStart,
            publicEnd: __publicEnd,
            publicWalletLimit: __publicWalletLimit,
            totalSupply: 0,
            maxSupply: __maxSupply,
            uri: __uri
        });

        emit OriginalReleased(originalId);
    }

    function releaseOriginalWithAllowlist(
        bytes32 __allowlistMerkleRoot,
        uint96 __allowlistPrice,
        uint256 __allowlistStart,
        uint256 __allowlistEnd,
        uint48 __allowlistWalletLimit,
        uint96 __publicPrice,
        uint256 __publicStart,
        uint256 __publicEnd,
        uint48 __publicWalletLimit,
        uint48 __maxSupply,
        string calldata __uri
    ) external onlyOwner {
        if (__allowlistStart > __allowlistEnd || __publicStart > __publicEnd)
            revert InvalidTimeframe();

        if (__maxSupply != 0) {
            if (__allowlistWalletLimit > __maxSupply)
                revert MintLimitGreaterThanSupply();
            if (__publicWalletLimit > __maxSupply)
                revert MintLimitGreaterThanSupply();
        }

        uint48 originalId = _nextOriginalId++;

        _originals[originalId] = Original({
            allowlistMerkleRoot: __allowlistMerkleRoot,
            allowlistPrice: __allowlistPrice,
            allowlistStart: __allowlistStart,
            allowlistEnd: __allowlistEnd,
            allowlistWalletLimit: __allowlistWalletLimit,
            publicPrice: __publicPrice,
            publicStart: __publicStart,
            publicEnd: __publicEnd,
            publicWalletLimit: __publicWalletLimit,
            totalSupply: 0,
            maxSupply: __maxSupply,
            uri: __uri
        });

        emit OriginalReleased(originalId);
    }

    function editAllowlistMerkleRoot(
        uint48 __originalId,
        bytes32 __merkleRoot
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        _originals[__originalId].allowlistMerkleRoot = __merkleRoot;
    }

    function editAllowlistPrice(
        uint48 __originalId,
        uint96 __price
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        _originals[__originalId].allowlistPrice = __price;

        emit OriginalUpdated(__originalId);
    }

    function editAllowlistTimeframe(
        uint48 __originalId,
        uint256 __start,
        uint256 __end
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        if (__start > __end) revert InvalidTimeframe();

        _originals[__originalId].allowlistStart = __start;
        _originals[__originalId].allowlistEnd = __end;

        emit OriginalUpdated(__originalId);
    }

    function editAllowlistWalletLimit(
        uint48 __originalId,
        uint48 __walletLimit
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        if (__walletLimit > _originals[__originalId].maxSupply)
            revert MintLimitGreaterThanSupply();

        _originals[__originalId].allowlistWalletLimit = __walletLimit;

        emit OriginalUpdated(__originalId);
    }

    function editPublicPrice(
        uint48 __originalId,
        uint96 __price
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        _originals[__originalId].publicPrice = __price;

        emit OriginalUpdated(__originalId);
    }

    function editPublicTimeframe(
        uint48 __originalId,
        uint256 __start,
        uint256 __end
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        if (__start > __end) revert InvalidTimeframe();

        _originals[__originalId].publicStart = __start;
        _originals[__originalId].publicEnd = __end;

        emit OriginalUpdated(__originalId);
    }

    function editPublicWalletLimit(
        uint48 __originalId,
        uint48 __walletLimit
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        if (__walletLimit > _originals[__originalId].maxSupply)
            revert MintLimitGreaterThanSupply();

        _originals[__originalId].publicWalletLimit = __walletLimit;

        emit OriginalUpdated(__originalId);
    }

    function editMaxSupply(
        uint48 __originalId,
        uint48 __maxSupply
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        if (__maxSupply < _originals[__originalId].totalSupply) {
            revert InvalidMaxSupply();
        }

        _originals[__originalId].maxSupply = __maxSupply;

        emit OriginalUpdated(__originalId);
    }

    function editURI(
        uint48 __originalId,
        string calldata __uri
    ) external onlyOwner onlyExistingOriginal(__originalId) {
        _originals[__originalId].uri = __uri;

        emit OriginalUpdated(__originalId);
    }

    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    ////////////////////////////////////////////////////////////////////////////
    // ADMIN
    ////////////////////////////////////////////////////////////////////////////

    function adminMintOriginal(
        address __account,
        uint48 __originalId,
        uint48 __amount
    ) external onlyRole(ADMIN_MINTER_ROLE) onlyExistingOriginal(__originalId) {
        _mintOriginal(__account, __originalId, __amount);
    }

    ////////////////////////////////////////////////////////////////////////////
    // WRITES
    ////////////////////////////////////////////////////////////////////////////

    function allowlistMintOriginal(
        uint48 __originalId,
        uint48 __amount,
        bytes32[] calldata __proof
    ) external payable nonReentrant onlyExistingOriginal(__originalId) {
        _verifyProof(_msgSender(), __originalId, __proof);

        Original memory original = _originals[__originalId];

        if (original.allowlistWalletLimit != 0) {
            if (
                _allowlistWalletMints[__originalId][_msgSender()] + __amount >
                original.allowlistWalletLimit
            ) revert MintAmountExceedsLimit();
        }

        if (original.allowlistPrice * __amount != msg.value) {
            revert IncorrectMintPrice();
        }

        if (
            original.allowlistStart > 0 &&
            block.timestamp < original.allowlistStart
        ) {
            revert HasNotStarted();
        }

        if (
            original.allowlistEnd > 0 && block.timestamp > original.allowlistEnd
        ) {
            revert HasEnded();
        }

        _mintOriginal(_msgSender(), __originalId, __amount);
    }

    function mintOriginal(
        uint48 __originalId,
        uint48 __amount
    ) external payable nonReentrant onlyExistingOriginal(__originalId) {
        Original memory original = _originals[__originalId];

        if (original.publicWalletLimit != 0) {
            if (
                _publicWalletMints[__originalId][_msgSender()] + __amount >
                original.publicWalletLimit
            ) revert MintAmountExceedsLimit();
        }

        if (original.publicPrice * __amount != msg.value) {
            revert IncorrectMintPrice();
        }

        if (
            original.publicStart > 0 && block.timestamp < original.publicStart
        ) {
            revert HasNotStarted();
        }

        if (original.publicEnd > 0 && block.timestamp > original.publicEnd) {
            revert HasEnded();
        }

        _mintOriginal(_msgSender(), __originalId, __amount);
    }

    ////////////////////////////////////////////////////////////////////////////
    // READS
    ////////////////////////////////////////////////////////////////////////////

    function getOriginal(
        uint48 __originalId
    )
        external
        view
        onlyExistingOriginal(__originalId)
        returns (Original memory)
    {
        return _originals[__originalId];
    }

    function totalOriginals() public view returns (uint256) {
        return _nextOriginalId - 1;
    }

    function totalSupply() public view returns (uint256) {
        return _nextTokenId - 1;
    }

    function tokenURI(
        uint256 __tokenId
    ) public view virtual override returns (string memory) {
        _requireMinted(__tokenId);

        Original memory original = _originals[_tokenIdToOriginalId[__tokenId]];

        return original.uri;
    }

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

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(tokenId) != address(0);
    }

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

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 18 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 15 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 18 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"HasEnded","type":"error"},{"inputs":[],"name":"HasNotStarted","type":"error"},{"inputs":[],"name":"IncorrectMintPrice","type":"error"},{"inputs":[],"name":"InvalidMaxSupply","type":"error"},{"inputs":[],"name":"InvalidMintAmount","type":"error"},{"inputs":[],"name":"InvalidOriginal","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidTimeframe","type":"error"},{"inputs":[],"name":"MerkleRootNotSet","type":"error"},{"inputs":[],"name":"MintAmountExceedsLimit","type":"error"},{"inputs":[],"name":"MintLimitGreaterThanSupply","type":"error"},{"inputs":[],"name":"NotEnoughSupply","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint48","name":"__originalId","type":"uint48"}],"name":"OriginalReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint48","name":"__originalId","type":"uint48"}],"name":"OriginalUpdated","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":[{"internalType":"address","name":"__account","type":"address"},{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint48","name":"__amount","type":"uint48"}],"name":"adminMintOriginal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint48","name":"__amount","type":"uint48"},{"internalType":"bytes32[]","name":"__proof","type":"bytes32[]"}],"name":"allowlistMintOriginal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"bytes32","name":"__merkleRoot","type":"bytes32"}],"name":"editAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint96","name":"__price","type":"uint96"}],"name":"editAllowlistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint256","name":"__start","type":"uint256"},{"internalType":"uint256","name":"__end","type":"uint256"}],"name":"editAllowlistTimeframe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint48","name":"__walletLimit","type":"uint48"}],"name":"editAllowlistWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint48","name":"__maxSupply","type":"uint48"}],"name":"editMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint96","name":"__price","type":"uint96"}],"name":"editPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint256","name":"__start","type":"uint256"},{"internalType":"uint256","name":"__end","type":"uint256"}],"name":"editPublicTimeframe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint48","name":"__walletLimit","type":"uint48"}],"name":"editPublicWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"string","name":"__uri","type":"string"}],"name":"editURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"}],"name":"getOriginal","outputs":[{"components":[{"internalType":"bytes32","name":"allowlistMerkleRoot","type":"bytes32"},{"internalType":"uint96","name":"allowlistPrice","type":"uint96"},{"internalType":"uint256","name":"allowlistStart","type":"uint256"},{"internalType":"uint256","name":"allowlistEnd","type":"uint256"},{"internalType":"uint48","name":"allowlistWalletLimit","type":"uint48"},{"internalType":"uint96","name":"publicPrice","type":"uint96"},{"internalType":"uint256","name":"publicStart","type":"uint256"},{"internalType":"uint256","name":"publicEnd","type":"uint256"},{"internalType":"uint48","name":"publicWalletLimit","type":"uint48"},{"internalType":"uint48","name":"totalSupply","type":"uint48"},{"internalType":"uint48","name":"maxSupply","type":"uint48"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct Original","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint48","name":"__originalId","type":"uint48"},{"internalType":"uint48","name":"__amount","type":"uint48"}],"name":"mintOriginal","outputs":[],"stateMutability":"payable","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":"uint96","name":"__publicPrice","type":"uint96"},{"internalType":"uint256","name":"__publicStart","type":"uint256"},{"internalType":"uint256","name":"__publicEnd","type":"uint256"},{"internalType":"uint48","name":"__publicWalletLimit","type":"uint48"},{"internalType":"uint48","name":"__maxSupply","type":"uint48"},{"internalType":"string","name":"__uri","type":"string"}],"name":"releaseOriginal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"__allowlistMerkleRoot","type":"bytes32"},{"internalType":"uint96","name":"__allowlistPrice","type":"uint96"},{"internalType":"uint256","name":"__allowlistStart","type":"uint256"},{"internalType":"uint256","name":"__allowlistEnd","type":"uint256"},{"internalType":"uint48","name":"__allowlistWalletLimit","type":"uint48"},{"internalType":"uint96","name":"__publicPrice","type":"uint96"},{"internalType":"uint256","name":"__publicStart","type":"uint256"},{"internalType":"uint256","name":"__publicEnd","type":"uint256"},{"internalType":"uint48","name":"__publicWalletLimit","type":"uint48"},{"internalType":"uint48","name":"__maxSupply","type":"uint48"},{"internalType":"string","name":"__uri","type":"string"}],"name":"releaseOriginalWithAllowlist","outputs":[],"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"__tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalOriginals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600980546001600160601b03191666010000000000011790557041444d494e5f4d494e5445525f524f4c4560781b600e553480156200004257600080fd5b5060405162005744380380620057448339810160408190526200006591620002a8565b81816000620000758382620003a1565b506001620000848282620003a1565b505050620000a16200009b620000e860201b60201c565b620000ec565b6001600855620000c56000620000bf6007546001600160a01b031690565b6200013e565b600e54620000e090620000bf6007546001600160a01b031690565b50506200046d565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620001df5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200019e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020b57600080fd5b81516001600160401b0380821115620002285762000228620001e3565b604051601f8301601f19908116603f01168101908282118183101715620002535762000253620001e3565b816040528381526020925086838588010111156200027057600080fd5b600091505b8382101562000294578582018301518183018401529082019062000275565b600093810190920192909252949350505050565b60008060408385031215620002bc57600080fd5b82516001600160401b0380821115620002d457600080fd5b620002e286838701620001f9565b93506020850151915080821115620002f957600080fd5b506200030885828601620001f9565b9150509250929050565b600181811c908216806200032757607f821691505b6020821081036200034857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039c57600081815260208120601f850160051c81016020861015620003775750805b601f850160051c820191505b81811015620003985782815560010162000383565b5050505b505050565b81516001600160401b03811115620003bd57620003bd620001e3565b620003d581620003ce845462000312565b846200034e565b602080601f8311600181146200040d5760008415620003f45750858301515b600019600386901b1c1916600185901b17855562000398565b600085815260208120601f198616915b828110156200043e578886015182559484019460019091019084016200041d565b50858210156200045d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6152c7806200047d6000396000f3fe6080604052600436106102c65760003560e01c8063715018a611610179578063b88d4fde116100d6578063c87b56dd1161008a578063d706214911610064578063d7062149146107d6578063e985e9c5146107f6578063f2fde38b1461084c57600080fd5b8063c87b56dd14610776578063d06e6cfc14610796578063d547741f146107b657600080fd5b8063be0e7615116100bb578063be0e761514610723578063c2069c8b14610743578063c7bf98ef1461075657600080fd5b8063b88d4fde146106d6578063bc838571146106f657600080fd5b806395d89b411161012d578063a22cb46511610112578063a22cb46514610676578063a343201314610696578063b670c261146106b657600080fd5b806395d89b411461064c578063a217fddf1461066157600080fd5b80638da5cb5b1161015e5780638da5cb5b146105ae57806391775380146105d957806391d14854146105f957600080fd5b8063715018a61461058657806371c571c51461059b57600080fd5b80632f2ff15d116102275780636352211e116101db5780636d0ba8a4116101c05780636d0ba8a4146105265780636d33811d1461054657806370a082311461056657600080fd5b80636352211e146104e6578063654591cb1461050657600080fd5b80633ccfd60b1161020c5780633ccfd60b1461049157806342842e0e146104a657806342966c68146104c657600080fd5b80632f2ff15d1461045157806336568abe1461047157600080fd5b806318160ddd1161027e57806323b872dd1161026357806323b872dd146103ec578063248a9ca31461040c5780632e19141f1461043c57600080fd5b806318160ddd146103a95780631e0d38f0146103cc57600080fd5b806306fdde03116102af57806306fdde0314610322578063081812fc14610344578063095ea7b31461038957600080fd5b806301ffc9a7146102cb578063023120bd14610300575b600080fd5b3480156102d757600080fd5b506102eb6102e6366004614575565b61086c565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b5061032061031b3660046145f6565b61087d565b005b34801561032e57600080fd5b50610337610936565b6040516102f791906146b7565b34801561035057600080fd5b5061036461035f3660046146ca565b6109c8565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f7565b34801561039557600080fd5b506103206103a4366004614707565b6109fc565b3480156103b557600080fd5b506103be610b8d565b6040519081526020016102f7565b3480156103d857600080fd5b506103206103e7366004614731565b610bbe565b3480156103f857600080fd5b50610320610407366004614764565b610d05565b34801561041857600080fd5b506103be6104273660046146ca565b60009081526006602052604090206001015490565b34801561044857600080fd5b506103be610da7565b34801561045d57600080fd5b5061032061046c3660046147a0565b610dc1565b34801561047d57600080fd5b5061032061048c3660046147a0565b610de6565b34801561049d57600080fd5b50610320610e99565b3480156104b257600080fd5b506103206104c1366004614764565b610eea565b3480156104d257600080fd5b506103206104e13660046146ca565b610f05565b3480156104f257600080fd5b506103646105013660046146ca565b610fa3565b34801561051257600080fd5b50610320610521366004614731565b61102f565b34801561053257600080fd5b506103206105413660046147c3565b611162565b34801561055257600080fd5b50610320610561366004614812565b611242565b34801561057257600080fd5b506103be61058136600461483c565b61131d565b34801561059257600080fd5b506103206113eb565b6103206105a9366004614857565b6113ff565b3480156105ba57600080fd5b5060075473ffffffffffffffffffffffffffffffffffffffff16610364565b3480156105e557600080fd5b506103206105f4366004614812565b61175f565b34801561060557600080fd5b506102eb6106143660046147a0565b600091825260066020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561065857600080fd5b50610337611831565b34801561066d57600080fd5b506103be600081565b34801561068257600080fd5b506103206106913660046148e8565b611840565b3480156106a257600080fd5b506103206106b1366004614924565b61184b565b3480156106c257600080fd5b506103206106d13660046149f2565b611bdd565b3480156106e257600080fd5b506103206106f1366004614aaa565b611f1d565b34801561070257600080fd5b50610716610711366004614ba4565b611fbf565b6040516102f79190614bbf565b34801561072f57600080fd5b5061032061073e366004614cb8565b6121d2565b610320610751366004614731565b61223f565b34801561076257600080fd5b50610320610771366004614cd4565b61258f565b34801561078257600080fd5b506103376107913660046146ca565b6125f6565b3480156107a257600080fd5b506103206107b13660046147c3565b612771565b3480156107c257600080fd5b506103206107d13660046147a0565b612851565b3480156107e257600080fd5b506103206107f1366004614731565b612876565b34801561080257600080fd5b506102eb610811366004614d17565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085857600080fd5b5061032061086736600461483c565b6129a9565b600061087782612a5d565b92915050565b610885612ab3565b600954839065ffffffffffff908116908216106108ce576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff84166000908152600a602052604090206008016108f3838583614dd4565b5060405165ffffffffffff851681527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf981906020015b60405180910390a150505050565b60606000805461094590614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461097190614d41565b80156109be5780601f10610993576101008083540402835291602001916109be565b820191906000526020600020905b8154815290600101906020018083116109a157829003601f168201915b5050505050905090565b60006109d382612b34565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a0782610fa3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff82161480610af25750610af28133610811565b610b7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ac0565b610b888383612bbf565b505050565b600954600090610bb1906001906601000000000000900465ffffffffffff16614f1d565b65ffffffffffff16905090565b610bc6612ab3565b600954829065ffffffffffff90811690821610610c0f576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60205260409020600701546601000000000000900481169083161015610c72576040517f19bcc14c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8381166000818152600a602090815260409182902060070180549487166c01000000000000000000000000027fffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff90951694909417909355519081527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf98191015b60405180910390a1505050565b610d10335b82612c5f565b610d9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610ac0565b610b88838383612d1f565b600954600090610bb19060019065ffffffffffff16614f1d565b600082815260066020526040902060010154610ddc81613027565b610b888383613031565b73ffffffffffffffffffffffffffffffffffffffff81163314610e8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ac0565b610e958282613125565b5050565b610ea1612ab3565b60075460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610ee7573d6000803e3d6000fd5b50565b610b8883838360405180602001604052806000815250611f1d565b610f0e33610d0a565b610f9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610ac0565b610ee7816131e0565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610ac0565b611037612ab3565b600954829065ffffffffffff90811690821610611080576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60205260409020600701546c010000000000000000000000009004811690831611156110e9576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8381166000818152600a602090815260409182902060040180547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001694871694909417909355519081527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b61116a612ab3565b600954839065ffffffffffff908116908216106111b3576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818311156111ed576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff84166000818152600a60209081526040918290206005810187905560060185905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610928565b61124a612ab3565b600954829065ffffffffffff90811690821610611293576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff83166000818152600a602090815260409182902060040180547fffffffffffffffffffffffffffff000000000000000000000000ffffffffffff1666010000000000006bffffffffffffffffffffffff88160217905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b600073ffffffffffffffffffffffffffffffffffffffff82166113c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610ac0565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6113f3612ab3565b6113fd60006132c6565b565b61140761333d565b600954849065ffffffffffff90811690821610611450576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61145c338685856133b0565b65ffffffffffff8086166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c010000000000000000000000009092049093166101408401526008810180549293926101608401919061153790614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461156390614d41565b80156115b05780601f10611585576101008083540402835291602001916115b0565b820191906000526020600020905b81548152906001019060200180831161159357829003601f168201915b5050505050815250509050806080015165ffffffffffff1660001461164857608081015165ffffffffffff8781166000908152600b602090815260408083203384529091529020549181169161160891889116614f43565b65ffffffffffff161115611648576040517f6b25b2a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b348565ffffffffffff1682602001516116619190614f62565b6bffffffffffffffffffffffff16146116a6576040517fdc14ea7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081604001511180156116bd5750806040015142105b156116f4576040517fedfcf79700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816060015111801561170b5750806060015142115b15611742576040517f0cbb94e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61174d338787613617565b50506117596001600855565b50505050565b611767612ab3565b600954829065ffffffffffff908116908216106117b0576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff83166000818152600a602090815260409182902060010180547fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166bffffffffffffffffffffffff871617905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b60606001805461094590614d41565b610e95338383613940565b611853612ab3565b888a118061186057508486115b15611897576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff831615611939578265ffffffffffff168865ffffffffffff1611156118ef576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8265ffffffffffff168465ffffffffffff161115611939576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009805460009165ffffffffffff909116908261195583614f92565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555090506040518061018001604052808e81526020018d6bffffffffffffffffffffffff1681526020018c81526020018b81526020018a65ffffffffffff168152602001896bffffffffffffffffffffffff1681526020018881526020018781526020018665ffffffffffff168152602001600065ffffffffffff1681526020018565ffffffffffff16815260200184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505065ffffffffffff8481168252600a602090815260409283902085518155908501516001820180547fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009081166bffffffffffffffffffffffff9384161790915593860151600283015560608601516003830155608086015160048301805460a08901519286167fffffffffffffffffffffffffffff0000000000000000000000000000000000009091161766010000000000009290931682029290921790915560c0860151600583015560e086015160068301556101008601516007830180546101208901516101408a01519387169190971617958516909202949094177fffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff166c010000000000000000000000009490931693909302919091179091556101608301519091506008820190611b909082614fb7565b505060405165ffffffffffff831681527f29d7606bcd8a9ff4cad26ae3796069346eb311fcc5dca879be7da744ed9e526d915060200160405180910390a150505050505050505050505050565b611be5612ab3565b84861115611c1f576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff831615611c77578265ffffffffffff168465ffffffffffff161115611c77576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009805460009165ffffffffffff9091169082611c9383614f92565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555090506040518061018001604052806000801b815260200160006bffffffffffffffffffffffff1681526020016000815260200160008152602001600065ffffffffffff168152602001896bffffffffffffffffffffffff1681526020018881526020018781526020018665ffffffffffff168152602001600065ffffffffffff1681526020018565ffffffffffff16815260200184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505065ffffffffffff8481168252600a602090815260409283902085518155908501516001820180547fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009081166bffffffffffffffffffffffff9384161790915593860151600283015560608601516003830155608086015160048301805460a08901519286167fffffffffffffffffffffffffffff0000000000000000000000000000000000009091161766010000000000009290931682029290921790915560c0860151600583015560e086015160068301556101008601516007830180546101208901516101408a01519387169190971617958516909202949094177fffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff166c010000000000000000000000009490931693909302919091179091556101608301519091506008820190611ed59082614fb7565b505060405165ffffffffffff831681527f29d7606bcd8a9ff4cad26ae3796069346eb311fcc5dca879be7da744ed9e526d915060200160405180910390a15050505050505050565b611f273383612c5f565b611fb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610ac0565b61175984848484613a6d565b604080516101808101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018390526101208201839052610140820192909252610160810191909152600954829065ffffffffffff9081169082161061206b576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60209081526040918290208251610180810184528154815260018201546bffffffffffffffffffffffff90811693820193909352600282015493810193909352600381015460608401526004810154808516608085015266010000000000009081900490921660a0840152600581015460c0840152600681015460e0840152600781015480851661010085015291820484166101208401526c010000000000000000000000009091049092166101408201526008820180549192916101608401919061214790614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461217390614d41565b80156121c05780601f10612195576101008083540402835291602001916121c0565b820191906000526020600020905b8154815290600101906020018083116121a357829003601f168201915b50505050508152505091505b50919050565b6121da612ab3565b600954829065ffffffffffff90811690821610612223576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5065ffffffffffff9091166000908152600a6020526040902055565b61224761333d565b600954829065ffffffffffff90811690821610612290576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c010000000000000000000000009092049093166101408401526008810180549293926101608401919061236b90614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461239790614d41565b80156123e45780601f106123b9576101008083540402835291602001916123e4565b820191906000526020600020905b8154815290600101906020018083116123c757829003601f168201915b505050505081525050905080610100015165ffffffffffff1660001461247e5761010081015165ffffffffffff8581166000908152600c602090815260408083203384529091529020549181169161243e91869116614f43565b65ffffffffffff16111561247e576040517f6b25b2a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b348365ffffffffffff168260a001516124979190614f62565b6bffffffffffffffffffffffff16146124dc576040517fdc14ea7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160c001511180156124f357508060c0015142105b1561252a576040517fedfcf79700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160e0015111801561254157508060e0015142115b15612578576040517f0cbb94e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612583338585613617565b5050610e956001600855565b600e5461259b81613027565b600954839065ffffffffffff908116908216106125e4576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125ef858585613617565b5050505050565b606061260182612b34565b6000828152600d60209081526040808320548352600a82528083208151610180810183528154815260018201546bffffffffffffffffffffffff9081169482019490945260028201549281019290925260038101546060830152600481015465ffffffffffff808216608085015266010000000000009182900490941660a0840152600582015460c0840152600682015460e0840152600782015480851661010085015290810484166101208401526c010000000000000000000000009004909216610140820152600882018054919291610160840191906126e290614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461270e90614d41565b801561275b5780601f106127305761010080835404028352916020019161275b565b820191906000526020600020905b81548152906001019060200180831161273e57829003601f168201915b5050509190925250505061016001519392505050565b612779612ab3565b600954839065ffffffffffff908116908216106127c2576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818311156127fc576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff84166000818152600a60209081526040918290206002810187905560030185905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610928565b60008281526006602052604090206001015461286c81613027565b610b888383613125565b61287e612ab3565b600954829065ffffffffffff908116908216106128c7576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60205260409020600701546c01000000000000000000000000900481169083161115612930576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8381166000818152600a602090815260409182902060070180547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001694871694909417909355519081527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b6129b1612ab3565b73ffffffffffffffffffffffffffffffffffffffff8116612a54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ac0565b610ee7816132c6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610877575061087782613b10565b60075473ffffffffffffffffffffffffffffffffffffffff1633146113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ac0565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16610ee7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610ac0565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190612c1982610fa3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612c6b83610fa3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612cd9575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b80612d1757508373ffffffffffffffffffffffffffffffffffffffff16612cff846109c8565b73ffffffffffffffffffffffffffffffffffffffff16145b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612d3f82610fa3565b73ffffffffffffffffffffffffffffffffffffffff1614612de2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac0565b73ffffffffffffffffffffffffffffffffffffffff8216612e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ac0565b612e918383836001613bf3565b8273ffffffffffffffffffffffffffffffffffffffff16612eb182610fa3565b73ffffffffffffffffffffffffffffffffffffffff1614612f54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac0565b600081815260046020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff8781168086526003855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610ee78133613caf565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610e9557600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556130c73390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610e9557600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006131eb82610fa3565b90506131fb816000846001613bf3565b61320482610fa3565b600083815260046020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff85168085526003845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6007805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600854036133a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac0565b6002600855565b65ffffffffffff8084166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c010000000000000000000000009092049093166101408401526008810180549293926101608401919061348b90614d41565b80601f01602080910402602001604051908101604052809291908181526020018280546134b790614d41565b80156135045780601f106134d957610100808354040283529160200191613504565b820191906000526020600020905b8154815290600101906020018083116134e757829003601f168201915b50505091909252505081519192505060000361354c576040517f9f8a28f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006135d68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505085516040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608d901b166020820152909250603401905060405160208183030381529060405280519060200120613d69565b90508061360f576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b65ffffffffffff8083166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c01000000000000000000000000909204909316610140840152600881018054929392610160840191906136f290614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461371e90614d41565b801561376b5780601f106137405761010080835404028352916020019161376b565b820191906000526020600020905b81548152906001019060200180831161374e57829003601f168201915b505050505081525050905060018265ffffffffffff1610156137b9576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014081015165ffffffffffff161561382b5780610140015165ffffffffffff16828261012001516137eb9190614f43565b65ffffffffffff16111561382b576040517f74d9e0b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181610120015161383c9190614f43565b65ffffffffffff8085166000908152600a602052604081206007018054939092166601000000000000027fffffffffffffffffffffffffffffffffffffffff000000000000ffffffffffff9093169290921790555b8265ffffffffffff168165ffffffffffff1610156125ef5760098054600091660100000000000090910465ffffffffffff169060066138cf83614f92565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555090508465ffffffffffff16600d60008365ffffffffffff1681526020019081526020016000208190555061392d868265ffffffffffff16613d7f565b508061393881614f92565b915050613891565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac0565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613a78848484612d1f565b613a8484848484613d99565b611759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac0565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613ba357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061087757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610877565b60018111156117595773ffffffffffffffffffffffffffffffffffffffff841615613c535773ffffffffffffffffffffffffffffffffffffffff841660009081526003602052604081208054839290613c4d9084906150d1565b90915550505b73ffffffffffffffffffffffffffffffffffffffff8316156117595773ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054839290613ca49084906150e4565b909155505050505050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610e9557613cef81613f8c565b613cfa836020613fab565b604051602001613d0b9291906150f7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ac0916004016146b7565b600082613d7685846141f5565b14949350505050565b610e95828260405180602001604052806000815250614242565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613f81576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613e10903390899088908890600401615178565b6020604051808303816000875af1925050508015613e69575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613e66918101906151c1565b60015b613f36573d808015613e97576040519150601f19603f3d011682016040523d82523d6000602084013e613e9c565b606091505b508051600003613f2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612d17565b506001949350505050565b606061087773ffffffffffffffffffffffffffffffffffffffff831660145b60606000613fba8360026151de565b613fc59060026150e4565b67ffffffffffffffff811115613fdd57613fdd614a7b565b6040519080825280601f01601f191660200182016040528015614007576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061403e5761403e6151f5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106140a1576140a16151f5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006140dd8460026151de565b6140e89060016150e4565b90505b6001811115614185577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614129576141296151f5565b1a60f81b82828151811061413f5761413f6151f5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361417e81615224565b90506140eb565b5083156141ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ac0565b9392505050565b600081815b845181101561423a5761422682868381518110614219576142196151f5565b60200260200101516142e5565b91508061423281615259565b9150506141fa565b509392505050565b61424c8383614314565b6142596000848484613d99565b610b88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac0565b60008183106143015760008281526020849052604090206141ee565b60008381526020839052604090206141ee565b73ffffffffffffffffffffffffffffffffffffffff8216614391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac0565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561441d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b61442b600083836001613bf3565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156144b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610ee757600080fd5b60006020828403121561458757600080fd5b81356141ee81614547565b803565ffffffffffff811681146145a857600080fd5b919050565b60008083601f8401126145bf57600080fd5b50813567ffffffffffffffff8111156145d757600080fd5b6020830191508360208285010111156145ef57600080fd5b9250929050565b60008060006040848603121561460b57600080fd5b61461484614592565b9250602084013567ffffffffffffffff81111561463057600080fd5b61463c868287016145ad565b9497909650939450505050565b60005b8381101561466457818101518382015260200161464c565b50506000910152565b60008151808452614685816020860160208601614649565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006141ee602083018461466d565b6000602082840312156146dc57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146145a857600080fd5b6000806040838503121561471a57600080fd5b614723836146e3565b946020939093013593505050565b6000806040838503121561474457600080fd5b61474d83614592565b915061475b60208401614592565b90509250929050565b60008060006060848603121561477957600080fd5b614782846146e3565b9250614790602085016146e3565b9150604084013590509250925092565b600080604083850312156147b357600080fd5b8235915061475b602084016146e3565b6000806000606084860312156147d857600080fd5b6147e184614592565b95602085013595506040909401359392505050565b80356bffffffffffffffffffffffff811681146145a857600080fd5b6000806040838503121561482557600080fd5b61482e83614592565b915061475b602084016147f6565b60006020828403121561484e57600080fd5b6141ee826146e3565b6000806000806060858703121561486d57600080fd5b61487685614592565b935061488460208601614592565b9250604085013567ffffffffffffffff808211156148a157600080fd5b818701915087601f8301126148b557600080fd5b8135818111156148c457600080fd5b8860208260051b85010111156148d957600080fd5b95989497505060200194505050565b600080604083850312156148fb57600080fd5b614904836146e3565b91506020830135801515811461491957600080fd5b809150509250929050565b6000806000806000806000806000806000806101608d8f03121561494757600080fd5b8c359b5061495760208e016147f6565b9a5060408d0135995060608d0135985061497360808e01614592565b975061498160a08e016147f6565b965060c08d0135955060e08d0135945061499e6101008e01614592565b93506149ad6101208e01614592565b925067ffffffffffffffff6101408e013511156149c957600080fd5b6149da8e6101408f01358f016145ad565b81935080925050509295989b509295989b509295989b565b600080600080600080600060c0888a031215614a0d57600080fd5b614a16886147f6565b96506020880135955060408801359450614a3260608901614592565b9350614a4060808901614592565b925060a088013567ffffffffffffffff811115614a5c57600080fd5b614a688a828b016145ad565b989b979a50959850939692959293505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215614ac057600080fd5b614ac9856146e3565b9350614ad7602086016146e3565b925060408501359150606085013567ffffffffffffffff80821115614afb57600080fd5b818701915087601f830112614b0f57600080fd5b813581811115614b2157614b21614a7b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715614b6757614b67614a7b565b816040528281528a6020848701011115614b8057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215614bb657600080fd5b6141ee82614592565b602081528151602082015260006020830151614beb60408401826bffffffffffffffffffffffff169052565b5060408301516060830152606083015160808301526080830151614c1960a084018265ffffffffffff169052565b5060a08301516bffffffffffffffffffffffff811660c08401525060c083015160e083015260e0830151610100818185015280850151915050610120614c688185018365ffffffffffff169052565b8401519050610140614c838482018365ffffffffffff169052565b8401519050610160614c9e8482018365ffffffffffff169052565b840151610180848101529050612d176101a084018261466d565b60008060408385031215614ccb57600080fd5b61472383614592565b600080600060608486031215614ce957600080fd5b614cf2846146e3565b9250614d0060208501614592565b9150614d0e60408501614592565b90509250925092565b60008060408385031215614d2a57600080fd5b614d33836146e3565b915061475b602084016146e3565b600181811c90821680614d5557607f821691505b6020821081036121cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b601f821115610b8857600081815260208120601f850160051c81016020861015614db55750805b601f850160051c820191505b8181101561360f57828155600101614dc1565b67ffffffffffffffff831115614dec57614dec614a7b565b614e0083614dfa8354614d41565b83614d8e565b6000601f841160018114614e525760008515614e1c5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556125ef565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b82811015614ea15786850135825560209485019460019092019101614e81565b5086821015614edc577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b65ffffffffffff828116828216039080821115614f3c57614f3c614eee565b5092915050565b65ffffffffffff818116838216019080821115614f3c57614f3c614eee565b6bffffffffffffffffffffffff818116838216028082169190828114614f8a57614f8a614eee565b505092915050565b600065ffffffffffff808316818103614fad57614fad614eee565b6001019392505050565b815167ffffffffffffffff811115614fd157614fd1614a7b565b614fe581614fdf8454614d41565b84614d8e565b602080601f83116001811461503857600084156150025750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b17855561360f565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561508557888601518255948401946001909101908401615066565b50858210156150c157878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561087757610877614eee565b8082018082111561087757610877614eee565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161512f816017850160208801614649565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161516c816028840160208801614649565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526151b7608083018461466d565b9695505050505050565b6000602082840312156151d357600080fd5b81516141ee81614547565b808202811582820484141761087757610877614eee565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008161523357615233614eee565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361528a5761528a614eee565b506001019056fea26469706673582212200d4ed4e60f74f38a1348200026ee55a3b63ab9f94c5469dbbaccb43cb8f5752464736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002050657065204f70656e2045646974696f6e73206279204d61747420467572696500000000000000000000000000000000000000000000000000000000000000045045504500000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102c65760003560e01c8063715018a611610179578063b88d4fde116100d6578063c87b56dd1161008a578063d706214911610064578063d7062149146107d6578063e985e9c5146107f6578063f2fde38b1461084c57600080fd5b8063c87b56dd14610776578063d06e6cfc14610796578063d547741f146107b657600080fd5b8063be0e7615116100bb578063be0e761514610723578063c2069c8b14610743578063c7bf98ef1461075657600080fd5b8063b88d4fde146106d6578063bc838571146106f657600080fd5b806395d89b411161012d578063a22cb46511610112578063a22cb46514610676578063a343201314610696578063b670c261146106b657600080fd5b806395d89b411461064c578063a217fddf1461066157600080fd5b80638da5cb5b1161015e5780638da5cb5b146105ae57806391775380146105d957806391d14854146105f957600080fd5b8063715018a61461058657806371c571c51461059b57600080fd5b80632f2ff15d116102275780636352211e116101db5780636d0ba8a4116101c05780636d0ba8a4146105265780636d33811d1461054657806370a082311461056657600080fd5b80636352211e146104e6578063654591cb1461050657600080fd5b80633ccfd60b1161020c5780633ccfd60b1461049157806342842e0e146104a657806342966c68146104c657600080fd5b80632f2ff15d1461045157806336568abe1461047157600080fd5b806318160ddd1161027e57806323b872dd1161026357806323b872dd146103ec578063248a9ca31461040c5780632e19141f1461043c57600080fd5b806318160ddd146103a95780631e0d38f0146103cc57600080fd5b806306fdde03116102af57806306fdde0314610322578063081812fc14610344578063095ea7b31461038957600080fd5b806301ffc9a7146102cb578063023120bd14610300575b600080fd5b3480156102d757600080fd5b506102eb6102e6366004614575565b61086c565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b5061032061031b3660046145f6565b61087d565b005b34801561032e57600080fd5b50610337610936565b6040516102f791906146b7565b34801561035057600080fd5b5061036461035f3660046146ca565b6109c8565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f7565b34801561039557600080fd5b506103206103a4366004614707565b6109fc565b3480156103b557600080fd5b506103be610b8d565b6040519081526020016102f7565b3480156103d857600080fd5b506103206103e7366004614731565b610bbe565b3480156103f857600080fd5b50610320610407366004614764565b610d05565b34801561041857600080fd5b506103be6104273660046146ca565b60009081526006602052604090206001015490565b34801561044857600080fd5b506103be610da7565b34801561045d57600080fd5b5061032061046c3660046147a0565b610dc1565b34801561047d57600080fd5b5061032061048c3660046147a0565b610de6565b34801561049d57600080fd5b50610320610e99565b3480156104b257600080fd5b506103206104c1366004614764565b610eea565b3480156104d257600080fd5b506103206104e13660046146ca565b610f05565b3480156104f257600080fd5b506103646105013660046146ca565b610fa3565b34801561051257600080fd5b50610320610521366004614731565b61102f565b34801561053257600080fd5b506103206105413660046147c3565b611162565b34801561055257600080fd5b50610320610561366004614812565b611242565b34801561057257600080fd5b506103be61058136600461483c565b61131d565b34801561059257600080fd5b506103206113eb565b6103206105a9366004614857565b6113ff565b3480156105ba57600080fd5b5060075473ffffffffffffffffffffffffffffffffffffffff16610364565b3480156105e557600080fd5b506103206105f4366004614812565b61175f565b34801561060557600080fd5b506102eb6106143660046147a0565b600091825260066020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561065857600080fd5b50610337611831565b34801561066d57600080fd5b506103be600081565b34801561068257600080fd5b506103206106913660046148e8565b611840565b3480156106a257600080fd5b506103206106b1366004614924565b61184b565b3480156106c257600080fd5b506103206106d13660046149f2565b611bdd565b3480156106e257600080fd5b506103206106f1366004614aaa565b611f1d565b34801561070257600080fd5b50610716610711366004614ba4565b611fbf565b6040516102f79190614bbf565b34801561072f57600080fd5b5061032061073e366004614cb8565b6121d2565b610320610751366004614731565b61223f565b34801561076257600080fd5b50610320610771366004614cd4565b61258f565b34801561078257600080fd5b506103376107913660046146ca565b6125f6565b3480156107a257600080fd5b506103206107b13660046147c3565b612771565b3480156107c257600080fd5b506103206107d13660046147a0565b612851565b3480156107e257600080fd5b506103206107f1366004614731565b612876565b34801561080257600080fd5b506102eb610811366004614d17565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085857600080fd5b5061032061086736600461483c565b6129a9565b600061087782612a5d565b92915050565b610885612ab3565b600954839065ffffffffffff908116908216106108ce576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff84166000908152600a602052604090206008016108f3838583614dd4565b5060405165ffffffffffff851681527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf981906020015b60405180910390a150505050565b60606000805461094590614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461097190614d41565b80156109be5780601f10610993576101008083540402835291602001916109be565b820191906000526020600020905b8154815290600101906020018083116109a157829003601f168201915b5050505050905090565b60006109d382612b34565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a0782610fa3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff82161480610af25750610af28133610811565b610b7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610ac0565b610b888383612bbf565b505050565b600954600090610bb1906001906601000000000000900465ffffffffffff16614f1d565b65ffffffffffff16905090565b610bc6612ab3565b600954829065ffffffffffff90811690821610610c0f576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60205260409020600701546601000000000000900481169083161015610c72576040517f19bcc14c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8381166000818152600a602090815260409182902060070180549487166c01000000000000000000000000027fffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff90951694909417909355519081527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf98191015b60405180910390a1505050565b610d10335b82612c5f565b610d9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610ac0565b610b88838383612d1f565b600954600090610bb19060019065ffffffffffff16614f1d565b600082815260066020526040902060010154610ddc81613027565b610b888383613031565b73ffffffffffffffffffffffffffffffffffffffff81163314610e8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ac0565b610e958282613125565b5050565b610ea1612ab3565b60075460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610ee7573d6000803e3d6000fd5b50565b610b8883838360405180602001604052806000815250611f1d565b610f0e33610d0a565b610f9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610ac0565b610ee7816131e0565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610ac0565b611037612ab3565b600954829065ffffffffffff90811690821610611080576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60205260409020600701546c010000000000000000000000009004811690831611156110e9576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8381166000818152600a602090815260409182902060040180547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001694871694909417909355519081527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b61116a612ab3565b600954839065ffffffffffff908116908216106111b3576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818311156111ed576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff84166000818152600a60209081526040918290206005810187905560060185905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610928565b61124a612ab3565b600954829065ffffffffffff90811690821610611293576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff83166000818152600a602090815260409182902060040180547fffffffffffffffffffffffffffff000000000000000000000000ffffffffffff1666010000000000006bffffffffffffffffffffffff88160217905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b600073ffffffffffffffffffffffffffffffffffffffff82166113c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610ac0565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6113f3612ab3565b6113fd60006132c6565b565b61140761333d565b600954849065ffffffffffff90811690821610611450576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61145c338685856133b0565b65ffffffffffff8086166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c010000000000000000000000009092049093166101408401526008810180549293926101608401919061153790614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461156390614d41565b80156115b05780601f10611585576101008083540402835291602001916115b0565b820191906000526020600020905b81548152906001019060200180831161159357829003601f168201915b5050505050815250509050806080015165ffffffffffff1660001461164857608081015165ffffffffffff8781166000908152600b602090815260408083203384529091529020549181169161160891889116614f43565b65ffffffffffff161115611648576040517f6b25b2a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b348565ffffffffffff1682602001516116619190614f62565b6bffffffffffffffffffffffff16146116a6576040517fdc14ea7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081604001511180156116bd5750806040015142105b156116f4576040517fedfcf79700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816060015111801561170b5750806060015142115b15611742576040517f0cbb94e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61174d338787613617565b50506117596001600855565b50505050565b611767612ab3565b600954829065ffffffffffff908116908216106117b0576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff83166000818152600a602090815260409182902060010180547fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166bffffffffffffffffffffffff871617905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b60606001805461094590614d41565b610e95338383613940565b611853612ab3565b888a118061186057508486115b15611897576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff831615611939578265ffffffffffff168865ffffffffffff1611156118ef576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8265ffffffffffff168465ffffffffffff161115611939576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009805460009165ffffffffffff909116908261195583614f92565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555090506040518061018001604052808e81526020018d6bffffffffffffffffffffffff1681526020018c81526020018b81526020018a65ffffffffffff168152602001896bffffffffffffffffffffffff1681526020018881526020018781526020018665ffffffffffff168152602001600065ffffffffffff1681526020018565ffffffffffff16815260200184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505065ffffffffffff8481168252600a602090815260409283902085518155908501516001820180547fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009081166bffffffffffffffffffffffff9384161790915593860151600283015560608601516003830155608086015160048301805460a08901519286167fffffffffffffffffffffffffffff0000000000000000000000000000000000009091161766010000000000009290931682029290921790915560c0860151600583015560e086015160068301556101008601516007830180546101208901516101408a01519387169190971617958516909202949094177fffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff166c010000000000000000000000009490931693909302919091179091556101608301519091506008820190611b909082614fb7565b505060405165ffffffffffff831681527f29d7606bcd8a9ff4cad26ae3796069346eb311fcc5dca879be7da744ed9e526d915060200160405180910390a150505050505050505050505050565b611be5612ab3565b84861115611c1f576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff831615611c77578265ffffffffffff168465ffffffffffff161115611c77576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009805460009165ffffffffffff9091169082611c9383614f92565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555090506040518061018001604052806000801b815260200160006bffffffffffffffffffffffff1681526020016000815260200160008152602001600065ffffffffffff168152602001896bffffffffffffffffffffffff1681526020018881526020018781526020018665ffffffffffff168152602001600065ffffffffffff1681526020018565ffffffffffff16815260200184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505065ffffffffffff8481168252600a602090815260409283902085518155908501516001820180547fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009081166bffffffffffffffffffffffff9384161790915593860151600283015560608601516003830155608086015160048301805460a08901519286167fffffffffffffffffffffffffffff0000000000000000000000000000000000009091161766010000000000009290931682029290921790915560c0860151600583015560e086015160068301556101008601516007830180546101208901516101408a01519387169190971617958516909202949094177fffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff166c010000000000000000000000009490931693909302919091179091556101608301519091506008820190611ed59082614fb7565b505060405165ffffffffffff831681527f29d7606bcd8a9ff4cad26ae3796069346eb311fcc5dca879be7da744ed9e526d915060200160405180910390a15050505050505050565b611f273383612c5f565b611fb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610ac0565b61175984848484613a6d565b604080516101808101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018390526101208201839052610140820192909252610160810191909152600954829065ffffffffffff9081169082161061206b576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60209081526040918290208251610180810184528154815260018201546bffffffffffffffffffffffff90811693820193909352600282015493810193909352600381015460608401526004810154808516608085015266010000000000009081900490921660a0840152600581015460c0840152600681015460e0840152600781015480851661010085015291820484166101208401526c010000000000000000000000009091049092166101408201526008820180549192916101608401919061214790614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461217390614d41565b80156121c05780601f10612195576101008083540402835291602001916121c0565b820191906000526020600020905b8154815290600101906020018083116121a357829003601f168201915b50505050508152505091505b50919050565b6121da612ab3565b600954829065ffffffffffff90811690821610612223576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5065ffffffffffff9091166000908152600a6020526040902055565b61224761333d565b600954829065ffffffffffff90811690821610612290576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c010000000000000000000000009092049093166101408401526008810180549293926101608401919061236b90614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461239790614d41565b80156123e45780601f106123b9576101008083540402835291602001916123e4565b820191906000526020600020905b8154815290600101906020018083116123c757829003601f168201915b505050505081525050905080610100015165ffffffffffff1660001461247e5761010081015165ffffffffffff8581166000908152600c602090815260408083203384529091529020549181169161243e91869116614f43565b65ffffffffffff16111561247e576040517f6b25b2a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b348365ffffffffffff168260a001516124979190614f62565b6bffffffffffffffffffffffff16146124dc576040517fdc14ea7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160c001511180156124f357508060c0015142105b1561252a576040517fedfcf79700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160e0015111801561254157508060e0015142115b15612578576040517f0cbb94e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612583338585613617565b5050610e956001600855565b600e5461259b81613027565b600954839065ffffffffffff908116908216106125e4576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125ef858585613617565b5050505050565b606061260182612b34565b6000828152600d60209081526040808320548352600a82528083208151610180810183528154815260018201546bffffffffffffffffffffffff9081169482019490945260028201549281019290925260038101546060830152600481015465ffffffffffff808216608085015266010000000000009182900490941660a0840152600582015460c0840152600682015460e0840152600782015480851661010085015290810484166101208401526c010000000000000000000000009004909216610140820152600882018054919291610160840191906126e290614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461270e90614d41565b801561275b5780601f106127305761010080835404028352916020019161275b565b820191906000526020600020905b81548152906001019060200180831161273e57829003601f168201915b5050509190925250505061016001519392505050565b612779612ab3565b600954839065ffffffffffff908116908216106127c2576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818311156127fc576040517fa97de69b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff84166000818152600a60209081526040918290206002810187905560030185905590519182527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610928565b60008281526006602052604090206001015461286c81613027565b610b888383613125565b61287e612ab3565b600954829065ffffffffffff908116908216106128c7576040517fa5c4bd5c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8084166000908152600a60205260409020600701546c01000000000000000000000000900481169083161115612930576040517face0532100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b65ffffffffffff8381166000818152600a602090815260409182902060070180547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001694871694909417909355519081527f8e2b518cebd894f9b52cac20ee9080b7706a8d729f837a6aadb57153dfccf9819101610cf8565b6129b1612ab3565b73ffffffffffffffffffffffffffffffffffffffff8116612a54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ac0565b610ee7816132c6565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610877575061087782613b10565b60075473ffffffffffffffffffffffffffffffffffffffff1633146113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ac0565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16610ee7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610ac0565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190612c1982610fa3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612c6b83610fa3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612cd9575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b80612d1757508373ffffffffffffffffffffffffffffffffffffffff16612cff846109c8565b73ffffffffffffffffffffffffffffffffffffffff16145b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612d3f82610fa3565b73ffffffffffffffffffffffffffffffffffffffff1614612de2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac0565b73ffffffffffffffffffffffffffffffffffffffff8216612e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ac0565b612e918383836001613bf3565b8273ffffffffffffffffffffffffffffffffffffffff16612eb182610fa3565b73ffffffffffffffffffffffffffffffffffffffff1614612f54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ac0565b600081815260046020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff8781168086526003855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610ee78133613caf565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610e9557600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556130c73390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610e9557600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006131eb82610fa3565b90506131fb816000846001613bf3565b61320482610fa3565b600083815260046020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff85168085526003845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6007805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600854036133a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ac0565b6002600855565b65ffffffffffff8084166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c010000000000000000000000009092049093166101408401526008810180549293926101608401919061348b90614d41565b80601f01602080910402602001604051908101604052809291908181526020018280546134b790614d41565b80156135045780601f106134d957610100808354040283529160200191613504565b820191906000526020600020905b8154815290600101906020018083116134e757829003601f168201915b50505091909252505081519192505060000361354c576040517f9f8a28f200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006135d68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505085516040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608d901b166020820152909250603401905060405160208183030381529060405280519060200120613d69565b90508061360f576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b65ffffffffffff8083166000908152600a602090815260408083208151610180810183528154815260018201546bffffffffffffffffffffffff90811694820194909452600282015492810192909252600381015460608301526004810154808616608084015266010000000000009081900490931660a0830152600581015460c0830152600681015460e0830152600781015480861661010084015292830485166101208301526c01000000000000000000000000909204909316610140840152600881018054929392610160840191906136f290614d41565b80601f016020809104026020016040519081016040528092919081815260200182805461371e90614d41565b801561376b5780601f106137405761010080835404028352916020019161376b565b820191906000526020600020905b81548152906001019060200180831161374e57829003601f168201915b505050505081525050905060018265ffffffffffff1610156137b9576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014081015165ffffffffffff161561382b5780610140015165ffffffffffff16828261012001516137eb9190614f43565b65ffffffffffff16111561382b576040517f74d9e0b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181610120015161383c9190614f43565b65ffffffffffff8085166000908152600a602052604081206007018054939092166601000000000000027fffffffffffffffffffffffffffffffffffffffff000000000000ffffffffffff9093169290921790555b8265ffffffffffff168165ffffffffffff1610156125ef5760098054600091660100000000000090910465ffffffffffff169060066138cf83614f92565b91906101000a81548165ffffffffffff021916908365ffffffffffff16021790555090508465ffffffffffff16600d60008365ffffffffffff1681526020019081526020016000208190555061392d868265ffffffffffff16613d7f565b508061393881614f92565b915050613891565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac0565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613a78848484612d1f565b613a8484848484613d99565b611759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac0565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613ba357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061087757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610877565b60018111156117595773ffffffffffffffffffffffffffffffffffffffff841615613c535773ffffffffffffffffffffffffffffffffffffffff841660009081526003602052604081208054839290613c4d9084906150d1565b90915550505b73ffffffffffffffffffffffffffffffffffffffff8316156117595773ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054839290613ca49084906150e4565b909155505050505050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610e9557613cef81613f8c565b613cfa836020613fab565b604051602001613d0b9291906150f7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ac0916004016146b7565b600082613d7685846141f5565b14949350505050565b610e95828260405180602001604052806000815250614242565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613f81576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613e10903390899088908890600401615178565b6020604051808303816000875af1925050508015613e69575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613e66918101906151c1565b60015b613f36573d808015613e97576040519150601f19603f3d011682016040523d82523d6000602084013e613e9c565b606091505b508051600003613f2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612d17565b506001949350505050565b606061087773ffffffffffffffffffffffffffffffffffffffff831660145b60606000613fba8360026151de565b613fc59060026150e4565b67ffffffffffffffff811115613fdd57613fdd614a7b565b6040519080825280601f01601f191660200182016040528015614007576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061403e5761403e6151f5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106140a1576140a16151f5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006140dd8460026151de565b6140e89060016150e4565b90505b6001811115614185577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110614129576141296151f5565b1a60f81b82828151811061413f5761413f6151f5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361417e81615224565b90506140eb565b5083156141ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ac0565b9392505050565b600081815b845181101561423a5761422682868381518110614219576142196151f5565b60200260200101516142e5565b91508061423281615259565b9150506141fa565b509392505050565b61424c8383614314565b6142596000848484613d99565b610b88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ac0565b60008183106143015760008281526020849052604090206141ee565b60008381526020839052604090206141ee565b73ffffffffffffffffffffffffffffffffffffffff8216614391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac0565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561441d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b61442b600083836001613bf3565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156144b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac0565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610ee757600080fd5b60006020828403121561458757600080fd5b81356141ee81614547565b803565ffffffffffff811681146145a857600080fd5b919050565b60008083601f8401126145bf57600080fd5b50813567ffffffffffffffff8111156145d757600080fd5b6020830191508360208285010111156145ef57600080fd5b9250929050565b60008060006040848603121561460b57600080fd5b61461484614592565b9250602084013567ffffffffffffffff81111561463057600080fd5b61463c868287016145ad565b9497909650939450505050565b60005b8381101561466457818101518382015260200161464c565b50506000910152565b60008151808452614685816020860160208601614649565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006141ee602083018461466d565b6000602082840312156146dc57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146145a857600080fd5b6000806040838503121561471a57600080fd5b614723836146e3565b946020939093013593505050565b6000806040838503121561474457600080fd5b61474d83614592565b915061475b60208401614592565b90509250929050565b60008060006060848603121561477957600080fd5b614782846146e3565b9250614790602085016146e3565b9150604084013590509250925092565b600080604083850312156147b357600080fd5b8235915061475b602084016146e3565b6000806000606084860312156147d857600080fd5b6147e184614592565b95602085013595506040909401359392505050565b80356bffffffffffffffffffffffff811681146145a857600080fd5b6000806040838503121561482557600080fd5b61482e83614592565b915061475b602084016147f6565b60006020828403121561484e57600080fd5b6141ee826146e3565b6000806000806060858703121561486d57600080fd5b61487685614592565b935061488460208601614592565b9250604085013567ffffffffffffffff808211156148a157600080fd5b818701915087601f8301126148b557600080fd5b8135818111156148c457600080fd5b8860208260051b85010111156148d957600080fd5b95989497505060200194505050565b600080604083850312156148fb57600080fd5b614904836146e3565b91506020830135801515811461491957600080fd5b809150509250929050565b6000806000806000806000806000806000806101608d8f03121561494757600080fd5b8c359b5061495760208e016147f6565b9a5060408d0135995060608d0135985061497360808e01614592565b975061498160a08e016147f6565b965060c08d0135955060e08d0135945061499e6101008e01614592565b93506149ad6101208e01614592565b925067ffffffffffffffff6101408e013511156149c957600080fd5b6149da8e6101408f01358f016145ad565b81935080925050509295989b509295989b509295989b565b600080600080600080600060c0888a031215614a0d57600080fd5b614a16886147f6565b96506020880135955060408801359450614a3260608901614592565b9350614a4060808901614592565b925060a088013567ffffffffffffffff811115614a5c57600080fd5b614a688a828b016145ad565b989b979a50959850939692959293505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215614ac057600080fd5b614ac9856146e3565b9350614ad7602086016146e3565b925060408501359150606085013567ffffffffffffffff80821115614afb57600080fd5b818701915087601f830112614b0f57600080fd5b813581811115614b2157614b21614a7b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715614b6757614b67614a7b565b816040528281528a6020848701011115614b8057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215614bb657600080fd5b6141ee82614592565b602081528151602082015260006020830151614beb60408401826bffffffffffffffffffffffff169052565b5060408301516060830152606083015160808301526080830151614c1960a084018265ffffffffffff169052565b5060a08301516bffffffffffffffffffffffff811660c08401525060c083015160e083015260e0830151610100818185015280850151915050610120614c688185018365ffffffffffff169052565b8401519050610140614c838482018365ffffffffffff169052565b8401519050610160614c9e8482018365ffffffffffff169052565b840151610180848101529050612d176101a084018261466d565b60008060408385031215614ccb57600080fd5b61472383614592565b600080600060608486031215614ce957600080fd5b614cf2846146e3565b9250614d0060208501614592565b9150614d0e60408501614592565b90509250925092565b60008060408385031215614d2a57600080fd5b614d33836146e3565b915061475b602084016146e3565b600181811c90821680614d5557607f821691505b6020821081036121cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b601f821115610b8857600081815260208120601f850160051c81016020861015614db55750805b601f850160051c820191505b8181101561360f57828155600101614dc1565b67ffffffffffffffff831115614dec57614dec614a7b565b614e0083614dfa8354614d41565b83614d8e565b6000601f841160018114614e525760008515614e1c5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556125ef565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b82811015614ea15786850135825560209485019460019092019101614e81565b5086821015614edc577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b65ffffffffffff828116828216039080821115614f3c57614f3c614eee565b5092915050565b65ffffffffffff818116838216019080821115614f3c57614f3c614eee565b6bffffffffffffffffffffffff818116838216028082169190828114614f8a57614f8a614eee565b505092915050565b600065ffffffffffff808316818103614fad57614fad614eee565b6001019392505050565b815167ffffffffffffffff811115614fd157614fd1614a7b565b614fe581614fdf8454614d41565b84614d8e565b602080601f83116001811461503857600084156150025750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b17855561360f565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561508557888601518255948401946001909101908401615066565b50858210156150c157878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561087757610877614eee565b8082018082111561087757610877614eee565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161512f816017850160208801614649565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161516c816028840160208801614649565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526151b7608083018461466d565b9695505050505050565b6000602082840312156151d357600080fd5b81516141ee81614547565b808202811582820484141761087757610877614eee565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008161523357615233614eee565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361528a5761528a614eee565b506001019056fea26469706673582212200d4ed4e60f74f38a1348200026ee55a3b63ab9f94c5469dbbaccb43cb8f5752464736f6c63430008130033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002050657065204f70656e2045646974696f6e73206279204d61747420467572696500000000000000000000000000000000000000000000000000000000000000045045504500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __name (string): Pepe Open Editions by Matt Furie
Arg [1] : __symbol (string): PEPE

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [3] : 50657065204f70656e2045646974696f6e73206279204d617474204675726965
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 5045504500000000000000000000000000000000000000000000000000000000


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.