ETH Price: $3,492.65 (+3.61%)
Gas: 4 Gwei

Token

ToonPals (TP)
 

Overview

Max Total Supply

1,604 TP

Holders

673

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 TP
0x7a3d82148639ceef325b52a0753764849467439c
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:
ToonPals

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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, _msgSender());
        _;
    }

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

File 2 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 3 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 4 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 6 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 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 10 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

import "./ECDSA.sol";

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

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

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

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

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

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

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

File 13 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 14 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 15 of 18 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 16 of 18 : ToonPals.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

error PromoNotActive();
error RecipientIsNotEOA();
error SaleNotActive(uint256 timestamp);
error TPPPreviouslyMinted();
error MaxSupplyExceeded();
error MaxMintQuantityExceeded();
error IncorrectEtherValueSent(uint256 expectedValue);
error ValueUnchanged();
error InvalidValue();
error ExceedsAvailableAllowance(uint256 allowance);
error InvalidSignature();
error RefundsNotActive();
error ZeroRefundAvailable();
error NotTokenOwner();
error ContractFundsInsufficient();

contract OSOwnableDelegateProxy {}

contract OSProxyRegistry {
    mapping(address => OSOwnableDelegateProxy) public proxies;
}

/**
 * @notice A structure holding records of non-operator/admin transactions.
 *
 * @dev Definitions -
 *
 * promoRedemptions: Number of tokens minted via {ToonPals-mintPromo}
 * wlPurchases: Number of tokens minted via {ToonPals-mintWL}, a paid transaction
 * salePurchases: Number of tokens minted via {ToonPals-mint}, a paid transaction
 * refundQuantity: Number of tokens refunded and burned. Covers paid transactions
 *
 */
struct TransactionRecord {
    uint256 promoRedemptions;
    uint256 wlPurchases;
    uint256 salePurchases;
    uint256 refundQuantity;
}

/**
 * @title ToonPals
 *
 * @notice ERC-721 NFT Token Contract.
 * Includes support for promo minting, ToonPals Pass redemptions, WL & public sale.
 * Also supports refunds.
 *
 * Promo minting activation is based on number of tokens minted and is mutable.
 * Minting/sale activation is based on timestamp and is mutable.
 * Refund activation is based on an operator-gated function. See {ToonPals-setRefundsActive}.
 *
 * @author 0x1687572416fdd591bcc710fa07cee94a76eea201681884b1d5cc528cba584815
 */
contract ToonPals is
    ReentrancyGuard,
    Ownable,
    AccessControl,
    EIP712,
    ERC721AQueryable
{
    using Address for address payable;
    using ECDSA for bytes32;
    using EnumerableSet for EnumerableSet.AddressSet;

    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
    bytes32 public constant WL_SIGNER_ROLE = keccak256("WL_SIGNER_ROLE");
    bytes32 public constant WHITELIST_TYPEHASH =
        keccak256("Whitelist(address account)");
    uint256 public constant maxSupply = 6969;
    uint256 public constant mintValue = 0.065 ether;
    uint256 public constant reservedPals = 100;

    uint256 public maxPromoMintQuantity = 1;
    uint256 public maxWLMintQuantity = 3;
    uint256 public maxMintQuantity = 5;
    uint256 public promoThreshold;
    bool public tppMinted;
    uint256 public wlActiveTimestamp;
    uint256 public saleActiveTimestamp;
    bool public refundsActive;
    string public baseURI;
    mapping(address => TransactionRecord) public transactionRecords;

    EnumerableSet.AddressSet internal _transactingAddresses;
    OSProxyRegistry internal _osProxyRegistry;

    event MaxPromoMintQuantityUpdated(
        uint256 oldMaxPromoMintQuantity,
        uint256 maxPromoMintQuantity
    );
    event MaxWLMintQuantityUpdated(
        uint256 oldMaxWLMintQuantity,
        uint256 maxWLMintQuantity
    );
    event MaxMintQuantityUpdated(
        uint256 oldMaxMintQuantity,
        uint256 maxMintQuantity
    );
    event PromoThresholdUpdated(
        uint256 oldPromoThreshold,
        uint256 promoThreshold
    );
    event WLActiveTimestampUpdated(
        uint256 oldWLActiveTimestamp,
        uint256 wlActiveTimestamp
    );
    event SaleActiveTimestampUpdated(
        uint256 oldSaleActiveTimestamp,
        uint256 saleActiveTimestamp
    );
    event RefundsActiveUpdated(bool oldRefundsActive, bool refundsActive);
    event BaseURIUpdated(string oldBaseURI, string baseURI);

    constructor(
        uint256 wlActiveTimestamp_,
        uint256 saleActiveTimestamp_,
        string memory baseURI_,
        address osProxyRegistryAddress,
        address[] memory operators,
        address[] memory wlSigners
    ) EIP712("ToonPals", "1") ERC721A("ToonPals", "TP") {
        wlActiveTimestamp = wlActiveTimestamp_;
        saleActiveTimestamp = saleActiveTimestamp_;
        baseURI = baseURI_;
        _osProxyRegistry = OSProxyRegistry(osProxyRegistryAddress);

        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
        for (uint256 index = 0; index < operators.length; ++index) {
            _grantRole(OPERATOR_ROLE, operators[index]);
        }
        for (uint256 index = 0; index < wlSigners.length; ++index) {
            _grantRole(WL_SIGNER_ROLE, wlSigners[index]);
        }

        _safeMint(_msgSender(), reservedPals);
    }

    /**
     * @dev Promotional Mint function, enabled manually via {ToonPals-setPromoThreshold}.
     * Recipient must be an EOA.
     */
    function mintPromo(uint256 quantity) external {
        if (promoActive() != true) revert PromoNotActive();
        if (_msgSender() != tx.origin) revert RecipientIsNotEOA();
        if (quantity > maxPromoMintQuantity) revert MaxMintQuantityExceeded();
        if (_totalMinted() + quantity > maxSupply) revert MaxSupplyExceeded();

        transactionRecords[_msgSender()].promoRedemptions += quantity;
        _transactingAddresses.add(_msgSender());
        _safeMint(_msgSender(), quantity);
    }

    /**
     * @dev Whitelist Mint function, payable. With a valid signature from an account
     * with an operator role, accounts may mint up to maxWLMintQuantity tokens.
     */
    function mintWL(bytes calldata sig, uint256 quantity) external payable {
        if (wlActive() != true) revert SaleNotActive(block.timestamp);
        if (_totalMinted() + quantity > maxSupply) revert MaxSupplyExceeded();

        uint256 cost = quantity * mintValue;
        if (cost != msg.value) revert IncorrectEtherValueSent(cost);

        bytes32 digest = _hashTypedDataV4(
            keccak256(abi.encode(WHITELIST_TYPEHASH, _msgSender()))
        );
        address signer = ECDSA.recover(digest, sig);
        if (hasRole(WL_SIGNER_ROLE, signer) != true) revert InvalidSignature();

        uint256 wlPurchased = transactionRecords[_msgSender()].wlPurchases;
        uint256 allowance = maxWLMintQuantity - wlPurchased;
        if (quantity > allowance) revert ExceedsAvailableAllowance(allowance);

        transactionRecords[_msgSender()].wlPurchases += quantity;
        _transactingAddresses.add(_msgSender());
        _safeMint(_msgSender(), quantity);
    }

    /**
     * @dev Public Mint function, payable. Accounts may mint up to maxMintQuantity
     * tokens per transaction.
     */
    function mint(uint256 quantity) external payable {
        if (saleActive() != true) revert SaleNotActive(block.timestamp);
        if (quantity > maxMintQuantity) revert MaxMintQuantityExceeded();
        if (_totalMinted() + quantity > maxSupply) revert MaxSupplyExceeded();

        uint256 cost = quantity * mintValue;
        if (cost != msg.value) revert IncorrectEtherValueSent(cost);

        transactionRecords[_msgSender()].salePurchases += quantity;
        _transactingAddresses.add(_msgSender());
        _safeMint(_msgSender(), quantity);
    }

    /**
     * @dev Refund function, enabled manually via {ToonPals-setRefundsActive}.
     * Refunds are made according to the number of paid transactions and must
     * burn the respective number of tokens in return.
     */
    function refund(uint256[] calldata tokenIds) external nonReentrant {
        if (refundsActive != true) revert RefundsNotActive();

        TransactionRecord storage record = transactionRecords[_msgSender()];

        uint256 quantityPurchased = record.wlPurchases + record.salePurchases;
        uint256 quantityRefunded = record.refundQuantity;
        uint256 quantityAvailableForRefund = quantityPurchased -
            quantityRefunded;
        if (quantityAvailableForRefund == 0) revert ZeroRefundAvailable();
        if (tokenIds.length != quantityAvailableForRefund)
            revert InvalidValue();

        uint256 refundAmount = quantityAvailableForRefund * mintValue;
        if (address(this).balance < refundAmount)
            revert ContractFundsInsufficient();

        for (uint256 index = 0; index < tokenIds.length; ++index) {
            uint256 tokenId = tokenIds[index];
            if (ownerOf(tokenId) != _msgSender()) revert NotTokenOwner();

            _burn(tokenId);
        }

        record.refundQuantity += quantityAvailableForRefund;
        payable(_msgSender()).sendValue(refundAmount);
    }

    /**
     * @dev ToonPals Pass Mint function. Accounts who held a ToonPals Pass
     * on 05/05/2022 11:59:00PM EST are to be minted a token. The number
     * of ToonPals minted is equal to the number of ToonPals Passes held at
     * the time of the snapshot.
     */
    function mintTpp(
        address[] calldata addresses,
        uint256[] calldata quantities
    ) external onlyRole(OPERATOR_ROLE) {
        if (tppMinted == true) revert TPPPreviouslyMinted();
        if (addresses.length != quantities.length) revert InvalidValue();

        for (uint256 index = 0; index < addresses.length; ++index) {
            _safeMint(addresses[index], quantities[index]);
        }

        tppMinted = true;
    }

    /**
     * @dev Special Mint function. For miscellaneous purposes, e.g. raffles.
     */
    function mintSpecial(address[] calldata addresses)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (_totalMinted() + addresses.length > maxSupply)
            revert MaxSupplyExceeded();

        for (uint256 index = 0; index < addresses.length; ++index) {
            _safeMint(addresses[index], 1);
        }
    }

    /**
     * @dev Reserve Mint function.
     */
    function mintReserve(address to, uint256 quantity)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (_totalMinted() + quantity > maxSupply) revert MaxSupplyExceeded();

        _safeMint(to, quantity);
    }

    function setMaxPromoMintQuantity(uint256 maxPromoMintQuantity_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (maxPromoMintQuantity == maxPromoMintQuantity_)
            revert ValueUnchanged();

        uint256 oldMaxPromoMintQuantity = maxPromoMintQuantity;
        maxPromoMintQuantity = maxPromoMintQuantity_;

        emit MaxPromoMintQuantityUpdated(
            oldMaxPromoMintQuantity,
            maxPromoMintQuantity
        );
    }

    function setMaxWLMintQuantity(uint256 maxWLMintQuantity_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (maxWLMintQuantity == maxWLMintQuantity_) revert ValueUnchanged();

        uint256 oldMaxWLMintQuantity = maxWLMintQuantity;
        maxWLMintQuantity = maxWLMintQuantity_;

        emit MaxWLMintQuantityUpdated(oldMaxWLMintQuantity, maxWLMintQuantity);
    }

    function setMaxMintQuantity(uint256 maxMintQuantity_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (maxMintQuantity == maxMintQuantity_) revert ValueUnchanged();

        uint256 oldMaxMintQuantity = maxMintQuantity;
        maxMintQuantity = maxMintQuantity_;

        emit MaxMintQuantityUpdated(oldMaxMintQuantity, maxMintQuantity);
    }

    function setPromoThreshold(uint256 promoThreshold_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (promoThreshold == promoThreshold_) revert ValueUnchanged();

        uint256 oldPromoThreshold = promoThreshold;
        promoThreshold = promoThreshold_;

        emit PromoThresholdUpdated(oldPromoThreshold, promoThreshold);
    }

    function setWLActiveTimestamp(uint256 wlActiveTimestamp_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (wlActiveTimestamp == wlActiveTimestamp_) revert ValueUnchanged();

        uint256 oldWLActiveTimestamp = wlActiveTimestamp;
        wlActiveTimestamp = wlActiveTimestamp_;

        emit WLActiveTimestampUpdated(oldWLActiveTimestamp, wlActiveTimestamp);
    }

    function setSaleActiveTimestamp(uint256 saleActiveTimestamp_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (saleActiveTimestamp == saleActiveTimestamp_)
            revert ValueUnchanged();

        uint256 oldSaleActiveTimestamp = saleActiveTimestamp;
        saleActiveTimestamp = saleActiveTimestamp_;

        emit SaleActiveTimestampUpdated(
            oldSaleActiveTimestamp,
            saleActiveTimestamp
        );
    }

    function setRefundsActive(bool refundsActive_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (refundsActive == refundsActive_) revert ValueUnchanged();

        bool oldRefundsActive = refundsActive;
        refundsActive = refundsActive_;

        emit RefundsActiveUpdated(oldRefundsActive, refundsActive);
    }

    function setBaseURI(string memory baseURI_)
        external
        onlyRole(OPERATOR_ROLE)
    {
        if (
            keccak256(abi.encodePacked(baseURI_)) ==
            keccak256(abi.encodePacked(_baseURI()))
        ) revert ValueUnchanged();

        string memory oldBaseURI = _baseURI();
        baseURI = baseURI_;

        emit BaseURIUpdated(oldBaseURI, baseURI_);
    }

    function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
        payable(_msgSender()).sendValue(address(this).balance);
    }

    /**
     * @dev Number of tokens minted.
     */
    function totalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    /**
     * @dev Number of tokens burned.
     */
    function totalBurned() external view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev The set of addresses stored within transactionRecords.
     */
    function transactingAddresses() external view returns (address[] memory) {
        return _transactingAddresses.values();
    }

    function promoActive() public view returns (bool) {
        return _totalMinted() < promoThreshold;
    }

    function wlActive() public view returns (bool) {
        return block.timestamp >= wlActiveTimestamp;
    }

    function saleActive() public view returns (bool) {
        return block.timestamp >= saleActiveTimestamp;
    }

    function isApprovedForAll(address owner_, address operator)
        public
        view
        override
        returns (bool)
    {
        if (super.isApprovedForAll(owner_, operator)) {
            return true;
        }

        if (
            address(_osProxyRegistry) != address(0) &&
            address(_osProxyRegistry.proxies(owner_)) == operator
        ) {
            return true;
        }

        return false;
    }

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

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

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }
}

File 17 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 18 of 18 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../ERC721A.sol';

error InvalidQueryRange();

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _currentIndex) {
            return ownership;
        }
        ownership = _ownerships[tokenId];
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _currentIndex;
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, _currentIndex)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"wlActiveTimestamp_","type":"uint256"},{"internalType":"uint256","name":"saleActiveTimestamp_","type":"uint256"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"address","name":"osProxyRegistryAddress","type":"address"},{"internalType":"address[]","name":"operators","type":"address[]"},{"internalType":"address[]","name":"wlSigners","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractFundsInsufficient","type":"error"},{"inputs":[{"internalType":"uint256","name":"allowance","type":"uint256"}],"name":"ExceedsAvailableAllowance","type":"error"},{"inputs":[{"internalType":"uint256","name":"expectedValue","type":"uint256"}],"name":"IncorrectEtherValueSent","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidValue","type":"error"},{"inputs":[],"name":"MaxMintQuantityExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"PromoNotActive","type":"error"},{"inputs":[],"name":"RecipientIsNotEOA","type":"error"},{"inputs":[],"name":"RefundsNotActive","type":"error"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"TPPPreviouslyMinted","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ValueUnchanged","type":"error"},{"inputs":[],"name":"ZeroRefundAvailable","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":"string","name":"oldBaseURI","type":"string"},{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxMintQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxMintQuantity","type":"uint256"}],"name":"MaxMintQuantityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxPromoMintQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxPromoMintQuantity","type":"uint256"}],"name":"MaxPromoMintQuantityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxWLMintQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxWLMintQuantity","type":"uint256"}],"name":"MaxWLMintQuantityUpdated","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":false,"internalType":"uint256","name":"oldPromoThreshold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"promoThreshold","type":"uint256"}],"name":"PromoThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"oldRefundsActive","type":"bool"},{"indexed":false,"internalType":"bool","name":"refundsActive","type":"bool"}],"name":"RefundsActiveUpdated","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":false,"internalType":"uint256","name":"oldSaleActiveTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleActiveTimestamp","type":"uint256"}],"name":"SaleActiveTimestampUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldWLActiveTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"wlActiveTimestamp","type":"uint256"}],"name":"WLActiveTimestampUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"name":"maxMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPromoMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWLMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPromo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"mintSpecial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintTpp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintWL","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":[],"name":"promoActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refundsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"reservedPals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleActiveTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintQuantity_","type":"uint256"}],"name":"setMaxMintQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPromoMintQuantity_","type":"uint256"}],"name":"setMaxPromoMintQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxWLMintQuantity_","type":"uint256"}],"name":"setMaxWLMintQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"promoThreshold_","type":"uint256"}],"name":"setPromoThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"refundsActive_","type":"bool"}],"name":"setRefundsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleActiveTimestamp_","type":"uint256"}],"name":"setSaleActiveTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wlActiveTimestamp_","type":"uint256"}],"name":"setWLActiveTimestamp","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tppMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transactingAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transactionRecords","outputs":[{"internalType":"uint256","name":"promoRedemptions","type":"uint256"},{"internalType":"uint256","name":"wlPurchases","type":"uint256"},{"internalType":"uint256","name":"salePurchases","type":"uint256"},{"internalType":"uint256","name":"refundQuantity","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"},{"inputs":[],"name":"wlActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlActiveTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6101406040526001600b556003600c556005600d553480156200002157600080fd5b5060405162004d3b38038062004d3b8339810160408190526200004491620008a0565b60405180604001604052806008815260200167546f6f6e50616c7360c01b81525060405180604001604052806002815260200161054560f41b81525060405180604001604052806008815260200167546f6f6e50616c7360c01b815250604051806040016040528060018152602001603160f81b8152506001600081905550620000dd620000d7620002d360201b60201c565b620002d7565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250508351620001839250600591506020850190620006d4565b50805162000199906006906020840190620006d4565b5060016003555050601086905560118590558351620001c0906013906020870190620006d4565b50601780546001600160a01b0319166001600160a01b038516179055620001f06000620001ea3390565b62000329565b60005b82518110156200025e576200024b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929848381518110620002375762000237620009b3565b60200260200101516200032960201b60201c565b6200025681620009c9565b9050620001f3565b5060005b8151811015620002b957620002a67f4bdfd7a7ede714f70a9f7e698516c28d7902eb3b27bbdfeea83c6f3ae986b66b838381518110620002375762000237620009b3565b620002b181620009c9565b905062000262565b50620002c7336064620003ce565b50505050505062000ab9565b3390565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16620003ca5760008281526002602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b620003ca828260405180602001604052806000815250620003f060201b60201c565b620003ff838383600162000404565b505050565b6003546001600160a01b0385166200042e57604051622e076360e81b815260040160405180910390fd5b836200044d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260086020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600790925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801562000506575062000506876001600160a01b0316620005cd60201b620023de1760201c565b1562000586575b60405182906001600160a01b0389169060009060008051602062004d1b833981519152908290a460018201916200054a90600090899088620005d3565b62000568576040516368d2bf6b60e11b815260040160405180910390fd5b808214156200050d5782600354146200058057600080fd5b620005bc565b5b6040516001830192906001600160a01b0389169060009060008051602062004d1b833981519152908290a48082141562000587575b506003555050505050565b50505050565b3b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200060a903390899088908890600401620009f3565b602060405180830381600087803b1580156200062557600080fd5b505af192505050801562000658575060408051601f3d908101601f19168201909252620006559181019062000a49565b60015b620006b7573d80801562000689576040519150601f19603f3d011682016040523d82523d6000602084013e6200068e565b606091505b508051620006af576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b828054620006e29062000a7c565b90600052602060002090601f01602090048101928262000706576000855562000751565b82601f106200072157805160ff191683800117855562000751565b8280016001018555821562000751579182015b828111156200075157825182559160200191906001019062000734565b506200075f92915062000763565b5090565b5b808211156200075f576000815560010162000764565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620007bb57620007bb6200077a565b604052919050565b60005b83811015620007e0578181015183820152602001620007c6565b83811115620005c75750506000910152565b80516001600160a01b03811681146200080a57600080fd5b919050565b600082601f8301126200082157600080fd5b815160206001600160401b038211156200083f576200083f6200077a565b8160051b6200085082820162000790565b92835284810182019282810190878511156200086b57600080fd5b83870192505b8483101562000895576200088583620007f2565b8252918301919083019062000871565b979650505050505050565b60008060008060008060c08789031215620008ba57600080fd5b86516020880151604089015191975095506001600160401b0380821115620008e157600080fd5b818901915089601f830112620008f657600080fd5b8151818111156200090b576200090b6200077a565b62000920601f8201601f191660200162000790565b8181528b60208386010111156200093657600080fd5b62000949826020830160208701620007c3565b96506200095b905060608a01620007f2565b945060808901519150808211156200097257600080fd5b620009808a838b016200080f565b935060a08901519150808211156200099757600080fd5b50620009a689828a016200080f565b9150509295509295509295565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620009ec57634e487b7160e01b600052601160045260246000fd5b5060010190565b600060018060a01b03808716835280861660208401525083604083015260806060830152825180608084015262000a328160a0850160208701620007c3565b601f01601f19169190910160a00195945050505050565b60006020828403121562000a5c57600080fd5b81516001600160e01b03198116811462000a7557600080fd5b9392505050565b600181811c9082168062000a9157607f821691505b6020821081141562000ab357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161421262000b0960003960006131fd0152600061324c0152600061322701526000613180015260006131aa015260006131d401526142126000f3fe6080604052600436106103ce5760003560e01c80638462151c116101fd578063b26fb98311610118578063d5abeb01116100ab578063e985e9c51161007a578063e985e9c514610b4c578063f2fde38b14610b6c578063f5b541a614610b8c578063f88ca86b14610bae578063fb87eb0b14610bce57600080fd5b8063d5abeb0114610ae1578063d7ad08d314610af7578063d89135cd14610b17578063e79433f514610b2c57600080fd5b8063c87b56dd116100e7578063c87b56dd14610a6b578063c90f73af14610a8b578063cbf3182e14610aa1578063d547741f14610ac157600080fd5b8063b26fb983146109d7578063b88d4fde146109ea578063c23dc68f14610a0a578063c82b7a0014610a3757600080fd5b806399a2557a11610190578063a22cb4651161015f578063a22cb4651461096c578063a2309ff81461098c578063aa613df5146109a1578063ae9aea6d146109c157600080fd5b806399a2557a1461090e5780639d0f3add1461092e578063a0712d6814610944578063a217fddf1461095757600080fd5b806391d14854116101cc57806391d14854146108ae57806395d89b41146108ce578063961a43dd146108e35780639723cec4146108f857600080fd5b80638462151c1461082857806389c77dfe146108555780638da5cb5b146108705780638e825be01461088e57600080fd5b806342842e0e116102ed578063631e26831161028057806368428a1b1161024f57806368428a1b146107c65780636c0360eb146107de57806370a08231146107f3578063715018a61461081357600080fd5b8063631e2683146107445780636352211e14610764578063650789c6146107845780636645a038146107a657600080fd5b806349e64cc8116102bc57806349e64cc8146106a957806355f804b3146106c35780635bbb2177146106e35780636301dccf1461071057600080fd5b806342842e0e1461063b5780634852e3e41461065b57806348575bfa1461067157806349a75aba1461068957600080fd5b806318160ddd116103655780632f2ff15d116103345780632f2ff15d146105c657806333a9f452146105e657806336568abe146106065780633ccfd60b1461062657600080fd5b806318160ddd1461053f57806323b872dd1461055c578063248a9ca31461057c5780632c1bc455146105ac57600080fd5b8063095ea7b3116103a1578063095ea7b3146104845780630de030d3146104a457806312855bfb146104b95780631608b47b1461051b57600080fd5b8063014b0c8a146103d357806301ffc9a7146103f557806306fdde031461042a578063081812fc1461044c575b600080fd5b3480156103df57600080fd5b506103f36103ee36600461386a565b610bee565b005b34801561040157600080fd5b506104156104103660046138c1565b610c8e565b60405190151581526020015b60405180910390f35b34801561043657600080fd5b5061043f610c9f565b6040516104219190613936565b34801561045857600080fd5b5061046c610467366004613949565b610d31565b6040516001600160a01b039091168152602001610421565b34801561049057600080fd5b506103f361049f366004613977565b610d75565b3480156104b057600080fd5b50610415610e03565b3480156104c557600080fd5b506104fb6104d43660046139a3565b60146020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610421565b34801561052757600080fd5b5061053160115481565b604051908152602001610421565b34801561054b57600080fd5b506004546003540360001901610531565b34801561056857600080fd5b506103f36105773660046139c0565b610e16565b34801561058857600080fd5b50610531610597366004613949565b60009081526002602052604090206001015490565b3480156105b857600080fd5b50600f546104159060ff1681565b3480156105d257600080fd5b506103f36105e1366004613a01565b610e21565b3480156105f257600080fd5b506103f3610601366004613949565b610e47565b34801561061257600080fd5b506103f3610621366004613a01565b610eca565b34801561063257600080fd5b506103f3610f4d565b34801561064757600080fd5b506103f36106563660046139c0565b610f71565b34801561066757600080fd5b50610531600c5481565b34801561067d57600080fd5b50601054421015610415565b34801561069557600080fd5b506103f36106a4366004613949565b610f8c565b3480156106b557600080fd5b506012546104159060ff1681565b3480156106cf57600080fd5b506103f36106de366004613ace565b611006565b3480156106ef57600080fd5b506107036106fe366004613b16565b6110e5565b6040516104219190613bbb565b34801561071c57600080fd5b506105317fe74c04bdb85741f90efadc0228949f2b97fc0c6a16334216c9bd13273891142b81565b34801561075057600080fd5b506103f361075f366004613949565b6111ab565b34801561077057600080fd5b5061046c61077f366004613949565b611225565b34801561079057600080fd5b50610799611237565b6040516104219190613c25565b3480156107b257600080fd5b506103f36107c1366004613c66565b611248565b3480156107d257600080fd5b50601154421015610415565b3480156107ea57600080fd5b5061043f611322565b3480156107ff57600080fd5b5061053161080e3660046139a3565b6113b0565b34801561081f57600080fd5b506103f36113fe565b34801561083457600080fd5b506108486108433660046139a3565b611464565b6040516104219190613cd1565b34801561086157600080fd5b5061053166e6ed27d666800081565b34801561087c57600080fd5b506001546001600160a01b031661046c565b34801561089a57600080fd5b506103f36108a9366004613977565b6115b1565b3480156108ba57600080fd5b506104156108c9366004613a01565b611609565b3480156108da57600080fd5b5061043f611634565b3480156108ef57600080fd5b50610531606481565b34801561090457600080fd5b5061053160105481565b34801561091a57600080fd5b50610848610929366004613d09565b611643565b34801561093a57600080fd5b50610531600b5481565b6103f3610952366004613949565b61180b565b34801561096357600080fd5b50610531600081565b34801561097857600080fd5b506103f3610987366004613d53565b611905565b34801561099857600080fd5b5061053161199b565b3480156109ad57600080fd5b506103f36109bc36600461386a565b6119a5565b3480156109cd57600080fd5b50610531600d5481565b6103f36109e5366004613d88565b611b8a565b3480156109f657600080fd5b506103f3610a05366004613dff565b611d9a565b348015610a1657600080fd5b50610a2a610a25366004613949565b611de5565b6040516104219190613e7e565b348015610a4357600080fd5b506105317f4bdfd7a7ede714f70a9f7e698516c28d7902eb3b27bbdfeea83c6f3ae986b66b81565b348015610a7757600080fd5b5061043f610a86366004613949565b611e9f565b348015610a9757600080fd5b50610531600e5481565b348015610aad57600080fd5b506103f3610abc366004613949565b611f23565b348015610acd57600080fd5b506103f3610adc366004613a01565b611f9d565b348015610aed57600080fd5b50610531611b3981565b348015610b0357600080fd5b506103f3610b12366004613949565b611fc3565b348015610b2357600080fd5b50600454610531565b348015610b3857600080fd5b506103f3610b47366004613949565b61203d565b348015610b5857600080fd5b50610415610b67366004613eb3565b612118565b348015610b7857600080fd5b506103f3610b873660046139a3565b612205565b348015610b9857600080fd5b5061053160008051602061419d83398151915281565b348015610bba57600080fd5b506103f3610bc9366004613949565b6122cd565b348015610bda57600080fd5b506103f3610be9366004613ee1565b612347565b60008051602061419d833981519152610c0781336123e4565b611b3982610c13612448565b610c1d9190613f12565b1115610c3c57604051638a164f6360e01b815260040160405180910390fd5b60005b82811015610c8857610c78848483818110610c5c57610c5c613f2a565b9050602002016020810190610c7191906139a3565b6001612452565b610c8181613f40565b9050610c3f565b50505050565b6000610c998261246c565b92915050565b606060058054610cae90613f5b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cda90613f5b565b8015610d275780601f10610cfc57610100808354040283529160200191610d27565b820191906000526020600020905b815481529060010190602001808311610d0a57829003601f168201915b5050505050905090565b6000610d3c826124ac565b610d59576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b6000610d8082611225565b9050806001600160a01b0316836001600160a01b03161415610db55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610dd55750610dd38133612118565b155b15610df3576040516367d9dca160e11b815260040160405180910390fd5b610dfe8383836124e5565b505050565b6000600e54610e10612448565b10905090565b610dfe838383612541565b600082815260026020526040902060010154610e3d81336123e4565b610dfe838361271d565b60008051602061419d833981519152610e6081336123e4565b816010541415610e835760405163df82d43b60e01b815260040160405180910390fd5b601080549083905560408051828152602081018590527f1e5d6d89f4687ecb1ad2c42825b3ce7a1e77456a9c7e702a5b04b7d553ca5e6191015b60405180910390a1505050565b6001600160a01b0381163314610f3f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610f4982826127a3565b5050565b6000610f5981336123e4565b610f6e47335b6001600160a01b03169061280a565b50565b610dfe83838360405180602001604052806000815250611d9a565b60008051602061419d833981519152610fa581336123e4565b81600c541415610fc85760405163df82d43b60e01b815260040160405180910390fd5b600c80549083905560408051828152602081018590527f36253be6fa250456c32aee89544f545aef8b94519b45aae483d24fbb2b23d6e19101610ebd565b60008051602061419d83398151915261101f81336123e4565b611027612923565b6040516020016110379190613f96565b604051602081830303815290604052805190602001208260405160200161105e9190613f96565b6040516020818303038152906040528051906020012014156110935760405163df82d43b60e01b815260040160405180910390fd5b600061109d612923565b83519091506110b390601390602086019061378d565b507f309b29ded109b9e28fb9885757b3e0096eb75c51d23aa4635d68bcd569f6adc18184604051610ebd929190613fb2565b80516060906000816001600160401b0381111561110457611104613a31565b60405190808252806020026020018201604052801561114f57816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816111225790505b50905060005b8281146111a35761117e85828151811061117157611171613f2a565b6020026020010151611de5565b82828151811061119057611190613f2a565b6020908102919091010152600101611155565b509392505050565b60008051602061419d8339815191526111c481336123e4565b81600e5414156111e75760405163df82d43b60e01b815260040160405180910390fd5b600e80549083905560408051828152602081018590527f63a006998542ae5354652e8bd29296ff25a68f028d4a3b7b64dd0f16cb425fae9101610ebd565b600061123082612932565b5192915050565b60606112436015612a59565b905090565b60008051602061419d83398151915261126181336123e4565b600f5460ff1615156001141561128a5760405163eefd002b60e01b815260040160405180910390fd5b8382146112aa57604051632a9ffab760e21b815260040160405180910390fd5b60005b8481101561130d576112fd8686838181106112ca576112ca613f2a565b90506020020160208101906112df91906139a3565b8585848181106112f1576112f1613f2a565b90506020020135612452565b61130681613f40565b90506112ad565b5050600f805460ff1916600117905550505050565b6013805461132f90613f5b565b80601f016020809104026020016040519081016040528092919081815260200182805461135b90613f5b565b80156113a85780601f1061137d576101008083540402835291602001916113a8565b820191906000526020600020905b81548152906001019060200180831161138b57829003601f168201915b505050505081565b60006001600160a01b0382166113d9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600860205260409020546001600160401b031690565b6001546001600160a01b031633146114585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f36565b6114626000612a66565b565b60606000806000611474856113b0565b90506000816001600160401b0381111561149057611490613a31565b6040519080825280602002602001820160405280156114b9578160200160208202803683370190505b5090506114df604080516060810182526000808252602082018190529181019190915290565b60015b8386146115a557600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925292506115485761159d565b81516001600160a01b03161561155d57815194505b876001600160a01b0316856001600160a01b0316141561159d578083878060010198508151811061159057611590613f2a565b6020026020010181815250505b6001016114e2565b50909695505050505050565b60008051602061419d8339815191526115ca81336123e4565b611b39826115d6612448565b6115e09190613f12565b11156115ff57604051638a164f6360e01b815260040160405180910390fd5b610dfe8383612452565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060068054610cae90613f5b565b606081831061166557604051631960ccad60e11b815260040160405180910390fd5b600354600090600185101561167957600194505b80841115611685578093505b6000611690876113b0565b9050848610156116af57858503818110156116a9578091505b506116b3565b5060005b6000816001600160401b038111156116cd576116cd613a31565b6040519080825280602002602001820160405280156116f6578160200160208202803683370190505b5090508161170957935061180492505050565b600061171488611de5565b905060008160400151611725575080515b885b8881141580156117375750848714155b156117f857600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252935061179b576117f0565b82516001600160a01b0316156117b057825191505b8a6001600160a01b0316826001600160a01b031614156117f057808488806001019950815181106117e3576117e3613f2a565b6020026020010181815250505b600101611727565b50505092835250909150505b9392505050565b6011544210151515600114611835576040516309020d7360e21b8152426004820152602401610f36565b600d5481111561185857604051635861ada160e11b815260040160405180910390fd5b611b3981611864612448565b61186e9190613f12565b111561188d57604051638a164f6360e01b815260040160405180910390fd5b60006118a066e6ed27d666800083613fe0565b90503481146118c55760405163df9f49e160e01b815260048101829052602401610f36565b33600090815260146020526040812060020180548492906118e7908490613f12565b909155506118fa9050335b601590612ab8565b50610f493383612452565b6001600160a01b03821633141561192f5760405163b06307db60e01b815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000611243612448565b600260005414156119f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f36565b600260005560125460ff161515600114611a255760405163f82cae1160e01b815260040160405180910390fd5b33600090815260146020526040812060028101546001820154919291611a4b9190613f12565b60038301549091506000611a5f8284613fff565b905080611a7f57604051638419242b60e01b815260040160405180910390fd5b848114611a9f57604051632a9ffab760e21b815260040160405180910390fd5b6000611ab266e6ed27d666800083613fe0565b905080471015611ad5576040516338b40aa960e01b815260040160405180910390fd5b60005b86811015611b57576000888883818110611af457611af4613f2a565b905060200201359050611b043390565b6001600160a01b0316611b1682611225565b6001600160a01b031614611b3d576040516359dc379f60e01b815260040160405180910390fd5b611b4681612acd565b50611b5081613f40565b9050611ad8565b5081856003016000828254611b6c9190613f12565b90915550611b7c90508133610f5f565b505060016000555050505050565b6010544210151515600114611bb4576040516309020d7360e21b8152426004820152602401610f36565b611b3981611bc0612448565b611bca9190613f12565b1115611be957604051638a164f6360e01b815260040160405180910390fd5b6000611bfc66e6ed27d666800083613fe0565b9050348114611c215760405163df9f49e160e01b815260048101829052602401610f36565b604080517fe74c04bdb85741f90efadc0228949f2b97fc0c6a16334216c9bd13273891142b60208201523391810191909152600090611c789060600160405160208183030381529060405280519060200120612ad8565b90506000611cbc8287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612b2692505050565b9050611ce87f4bdfd7a7ede714f70a9f7e698516c28d7902eb3b27bbdfeea83c6f3ae986b66b82611609565b1515600114611d0a57604051638baa579f60e01b815260040160405180910390fd5b33600090815260146020526040812060010154600c54909190611d2e908390613fff565b905080861115611d5457604051637ee9f8d760e01b815260048101829052602401610f36565b3360009081526014602052604081206001018054889290611d76908490613f12565b90915550611d859050336118f2565b50611d903387612452565b5050505050505050565b611da5848484612541565b6001600160a01b0383163b15158015611dc75750611dc584848484612b42565b155b15610c88576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810192909252906001831080611e2b57506003548310155b15611e365792915050565b50600082815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290611e965792915050565b61180483612932565b6060611eaa826124ac565b611ec757604051630a14c4b560e41b815260040160405180910390fd5b6000611ed1612923565b9050805160001415611ef25760405180602001604052806000815250611804565b80611efc84612c3a565b604051602001611f0d929190614016565b6040516020818303038152906040529392505050565b60008051602061419d833981519152611f3c81336123e4565b81600b541415611f5f5760405163df82d43b60e01b815260040160405180910390fd5b600b80549083905560408051828152602081018590527fd697c1d4082e8779f14797568c3852d81673c59b125dfd277967477bf86aac669101610ebd565b600082815260026020526040902060010154611fb981336123e4565b610dfe83836127a3565b60008051602061419d833981519152611fdc81336123e4565b81600d541415611fff5760405163df82d43b60e01b815260040160405180910390fd5b600d80549083905560408051828152602081018590527f36e459432c9262e27b24bdc16f09aad50192c66a0889d180a2f1ce9cb1936a499101610ebd565b612045610e03565b151560011461206757604051630cc205f560e11b815260040160405180910390fd5b333214612087576040516318232a2160e21b815260040160405180910390fd5b600b548111156120aa57604051635861ada160e11b815260040160405180910390fd5b611b39816120b6612448565b6120c09190613f12565b11156120df57604051638a164f6360e01b815260040160405180910390fd5b33600090815260146020526040812080548392906120fe908490613f12565b9091555061210d9050336118f2565b50610f6e3382612452565b6001600160a01b038083166000908152600a6020908152604080832093851683529290529081205460ff161561215057506001610c99565b6017546001600160a01b0316158015906121ef575060175460405163c455279160e01b81526001600160a01b03858116600483015284811692169063c45527919060240160206040518083038186803b1580156121ac57600080fd5b505afa1580156121c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e49190614045565b6001600160a01b0316145b156121fc57506001610c99565b50600092915050565b6001546001600160a01b0316331461225f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f36565b6001600160a01b0381166122c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f36565b610f6e81612a66565b60008051602061419d8339815191526122e681336123e4565b8160115414156123095760405163df82d43b60e01b815260040160405180910390fd5b601180549083905560408051828152602081018590527fb6a32fbe2f08470f3fbcdb69a734b4b21474c0e2528d82aaf3eb55b68f0ec3799101610ebd565b60008051602061419d83398151915261236081336123e4565b60125460ff161515821515141561238a5760405163df82d43b60e01b815260040160405180910390fd5b6012805483151560ff19821681179092556040805160ff9283168015158252929093161515602084015290917f6b1bf3da58ab681bc65212834dd1a9b4b333f6de3797d81d8c6775b0d72221959101610ebd565b3b151590565b6123ee8282611609565b610f4957612406816001600160a01b03166014612d37565b612411836020612d37565b604051602001612422929190614062565b60408051601f198184030181529082905262461bcd60e51b8252610f3691600401613936565b6003546000190190565b610f49828260405180602001604052806000815250612ed2565b60006001600160e01b031982166380ac58cd60e01b148061249d57506001600160e01b03198216635b5e139f60e01b145b80610c995750610c9982612edf565b6000816001111580156124c0575060035482105b8015610c99575050600090815260076020526040902054600160e01b900460ff161590565b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061254c82612932565b9050836001600160a01b031681600001516001600160a01b0316146125835760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806125a157506125a18533612118565b806125bc5750336125b184610d31565b6001600160a01b0316145b9050806125dc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661260357604051633a954ecd60e21b815260040160405180910390fd5b61260f600084876124e5565b6001600160a01b038581166000908152600860209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600790945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166126e35760035482146126e357805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206141bd83398151915260405160405180910390a45b5050505050565b6127278282611609565b610f495760008281526002602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561275f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6127ad8282611609565b15610f495760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8047101561285a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610f36565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128a7576040519150601f19603f3d011682016040523d82523d6000602084013e6128ac565b606091505b5050905080610dfe5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610f36565b606060138054610cae90613f5b565b60408051606081018252600080825260208201819052918101919091528180600111158015612962575060035481105b15612a4057600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612a3e5780516001600160a01b0316156129d5579392505050565b5060001901600081815260076020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612a39579392505050565b6129d5565b505b604051636f96cda160e11b815260040160405180910390fd5b6060600061180483612f14565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611804836001600160a01b038416612f70565b610f6e816000612fbf565b6000610c99612ae5613173565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000612b35858561329a565b915091506111a38161330a565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b779033908990889088906004016140d7565b602060405180830381600087803b158015612b9157600080fd5b505af1925050508015612bc1575060408051601f3d908101601f19168201909252612bbe91810190614114565b60015b612c1c573d808015612bef576040519150601f19603f3d011682016040523d82523d6000602084013e612bf4565b606091505b508051612c14576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612c5e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c885780612c7281613f40565b9150612c819050600a83614147565b9150612c62565b6000816001600160401b03811115612ca257612ca2613a31565b6040519080825280601f01601f191660200182016040528015612ccc576020820181803683370190505b5090505b8415612c3257612ce1600183613fff565b9150612cee600a8661415b565b612cf9906030613f12565b60f81b818381518110612d0e57612d0e613f2a565b60200101906001600160f81b031916908160001a905350612d30600a86614147565b9450612cd0565b60606000612d46836002613fe0565b612d51906002613f12565b6001600160401b03811115612d6857612d68613a31565b6040519080825280601f01601f191660200182016040528015612d92576020820181803683370190505b509050600360fc1b81600081518110612dad57612dad613f2a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612ddc57612ddc613f2a565b60200101906001600160f81b031916908160001a9053506000612e00846002613fe0565b612e0b906001613f12565b90505b6001811115612e83576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e3f57612e3f613f2a565b1a60f81b828281518110612e5557612e55613f2a565b60200101906001600160f81b031916908160001a90535060049490941c93612e7c8161416f565b9050612e0e565b5083156118045760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610f36565b610dfe83838360016134c5565b60006001600160e01b03198216637965db0b60e01b1480610c9957506301ffc9a760e01b6001600160e01b0319831614610c99565b606081600001805480602002602001604051908101604052809291908181526020018280548015612f6457602002820191906000526020600020905b815481526020019060010190808311612f50575b50505050509050919050565b6000818152600183016020526040812054612fb757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c99565b506000610c99565b6000612fca83612932565b80519091508215613030576000336001600160a01b0383161480612ff35750612ff38233612118565b8061300e57503361300386610d31565b6001600160a01b0316145b90508061302e57604051632ce44b5f60e11b815260040160405180910390fd5b505b61303c600085836124e5565b6001600160a01b0380821660008181526008602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526007909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661313a57600354821461313a57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206141bd833981519152908390a450506004805460010190555050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156131cc57507f000000000000000000000000000000000000000000000000000000000000000046145b156131f657507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604114156132d15760208301516040840151606085015160001a6132c587828585613671565b94509450505050613303565b8251604014156132fb57602083015160408401516132f086838361375e565b935093505050613303565b506000905060025b9250929050565b600081600481111561331e5761331e614186565b14156133275750565b600181600481111561333b5761333b614186565b14156133895760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610f36565b600281600481111561339d5761339d614186565b14156133eb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f36565b60038160048111156133ff576133ff614186565b14156134585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f36565b600481600481111561346c5761346c614186565b1415610f6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f36565b6003546001600160a01b0385166134ee57604051622e076360e81b815260040160405180910390fd5b8361350c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260086020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600790925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156135bd57506001600160a01b0387163b15155b15613634575b60405182906001600160a01b038916906000906000805160206141bd833981519152908290a46135fc6000888480600101955088612b42565b613619576040516368d2bf6b60e11b815260040160405180910390fd5b808214156135c357826003541461362f57600080fd5b613668565b5b6040516001830192906001600160a01b038916906000906000805160206141bd833981519152908290a480821415613635575b50600355612716565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156136a85750600090506003613755565b8460ff16601b141580156136c057508460ff16601c14155b156136d15750600090506004613755565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613725573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661374e57600060019250925050613755565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161377f87828885613671565b935093505050935093915050565b82805461379990613f5b565b90600052602060002090601f0160209004810192826137bb5760008555613801565b82601f106137d457805160ff1916838001178555613801565b82800160010185558215613801579182015b828111156138015782518255916020019190600101906137e6565b5061380d929150613811565b5090565b5b8082111561380d5760008155600101613812565b60008083601f84011261383857600080fd5b5081356001600160401b0381111561384f57600080fd5b6020830191508360208260051b850101111561330357600080fd5b6000806020838503121561387d57600080fd5b82356001600160401b0381111561389357600080fd5b61389f85828601613826565b90969095509350505050565b6001600160e01b031981168114610f6e57600080fd5b6000602082840312156138d357600080fd5b8135611804816138ab565b60005b838110156138f95781810151838201526020016138e1565b83811115610c885750506000910152565b600081518084526139228160208601602086016138de565b601f01601f19169290920160200192915050565b602081526000611804602083018461390a565b60006020828403121561395b57600080fd5b5035919050565b6001600160a01b0381168114610f6e57600080fd5b6000806040838503121561398a57600080fd5b823561399581613962565b946020939093013593505050565b6000602082840312156139b557600080fd5b813561180481613962565b6000806000606084860312156139d557600080fd5b83356139e081613962565b925060208401356139f081613962565b929592945050506040919091013590565b60008060408385031215613a1457600080fd5b823591506020830135613a2681613962565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613a6f57613a6f613a31565b604052919050565b60006001600160401b03831115613a9057613a90613a31565b613aa3601f8401601f1916602001613a47565b9050828152838383011115613ab757600080fd5b828260208301376000602084830101529392505050565b600060208284031215613ae057600080fd5b81356001600160401b03811115613af657600080fd5b8201601f81018413613b0757600080fd5b612c3284823560208401613a77565b60006020808385031215613b2957600080fd5b82356001600160401b0380821115613b4057600080fd5b818501915085601f830112613b5457600080fd5b813581811115613b6657613b66613a31565b8060051b9150613b77848301613a47565b8181529183018401918481019088841115613b9157600080fd5b938501935b83851015613baf57843582529385019390850190613b96565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156115a557613c1283855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101613bd7565b6020808252825182820181905260009190848201906040850190845b818110156115a55783516001600160a01b031683529284019291840191600101613c41565b60008060008060408587031215613c7c57600080fd5b84356001600160401b0380821115613c9357600080fd5b613c9f88838901613826565b90965094506020870135915080821115613cb857600080fd5b50613cc587828801613826565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b818110156115a557835183529284019291840191600101613ced565b600080600060608486031215613d1e57600080fd5b8335613d2981613962565b95602085013595506040909401359392505050565b80358015158114613d4e57600080fd5b919050565b60008060408385031215613d6657600080fd5b8235613d7181613962565b9150613d7f60208401613d3e565b90509250929050565b600080600060408486031215613d9d57600080fd5b83356001600160401b0380821115613db457600080fd5b818601915086601f830112613dc857600080fd5b813581811115613dd757600080fd5b876020828501011115613de957600080fd5b6020928301989097509590910135949350505050565b60008060008060808587031215613e1557600080fd5b8435613e2081613962565b93506020850135613e3081613962565b92506040850135915060608501356001600160401b03811115613e5257600080fd5b8501601f81018713613e6357600080fd5b613e7287823560208401613a77565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610c99565b60008060408385031215613ec657600080fd5b8235613ed181613962565b91506020830135613a2681613962565b600060208284031215613ef357600080fd5b61180482613d3e565b634e487b7160e01b600052601160045260246000fd5b60008219821115613f2557613f25613efc565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613f5457613f54613efc565b5060010190565b600181811c90821680613f6f57607f821691505b60208210811415613f9057634e487b7160e01b600052602260045260246000fd5b50919050565b60008251613fa88184602087016138de565b9190910192915050565b604081526000613fc5604083018561390a565b8281036020840152613fd7818561390a565b95945050505050565b6000816000190483118215151615613ffa57613ffa613efc565b500290565b60008282101561401157614011613efc565b500390565b600083516140288184602088016138de565b83519083019061403c8183602088016138de565b01949350505050565b60006020828403121561405757600080fd5b815161180481613962565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161409a8160178501602088016138de565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516140cb8160288401602088016138de565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061410a9083018461390a565b9695505050505050565b60006020828403121561412657600080fd5b8151611804816138ab565b634e487b7160e01b600052601260045260246000fd5b60008261415657614156614131565b500490565b60008261416a5761416a614131565b500690565b60008161417e5761417e613efc565b506000190190565b634e487b7160e01b600052602160045260246000fdfe97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208bfddf426395b41c32f77ea3c089e84f4e78ae28f04098e7fd82990e858addf564736f6c63430008090033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000006276c1b0000000000000000000000000000000000000000000000000000000006278133000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6d657461646174612e746f6f6e70616c732e78797a2f746f6b656e2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000dfe5c72f8c144af10c18a3be5803149e8ea85ad000000000000000000000000ad20d82baf8d4d86e052699da1615429a0bd3a8900000000000000000000000000000000000000000000000000000000000000020000000000000000000000000dfe5c72f8c144af10c18a3be5803149e8ea85ad000000000000000000000000e9ab7246ddd40aee3a68fcd88fdcee1cdab8655e

Deployed Bytecode

0x6080604052600436106103ce5760003560e01c80638462151c116101fd578063b26fb98311610118578063d5abeb01116100ab578063e985e9c51161007a578063e985e9c514610b4c578063f2fde38b14610b6c578063f5b541a614610b8c578063f88ca86b14610bae578063fb87eb0b14610bce57600080fd5b8063d5abeb0114610ae1578063d7ad08d314610af7578063d89135cd14610b17578063e79433f514610b2c57600080fd5b8063c87b56dd116100e7578063c87b56dd14610a6b578063c90f73af14610a8b578063cbf3182e14610aa1578063d547741f14610ac157600080fd5b8063b26fb983146109d7578063b88d4fde146109ea578063c23dc68f14610a0a578063c82b7a0014610a3757600080fd5b806399a2557a11610190578063a22cb4651161015f578063a22cb4651461096c578063a2309ff81461098c578063aa613df5146109a1578063ae9aea6d146109c157600080fd5b806399a2557a1461090e5780639d0f3add1461092e578063a0712d6814610944578063a217fddf1461095757600080fd5b806391d14854116101cc57806391d14854146108ae57806395d89b41146108ce578063961a43dd146108e35780639723cec4146108f857600080fd5b80638462151c1461082857806389c77dfe146108555780638da5cb5b146108705780638e825be01461088e57600080fd5b806342842e0e116102ed578063631e26831161028057806368428a1b1161024f57806368428a1b146107c65780636c0360eb146107de57806370a08231146107f3578063715018a61461081357600080fd5b8063631e2683146107445780636352211e14610764578063650789c6146107845780636645a038146107a657600080fd5b806349e64cc8116102bc57806349e64cc8146106a957806355f804b3146106c35780635bbb2177146106e35780636301dccf1461071057600080fd5b806342842e0e1461063b5780634852e3e41461065b57806348575bfa1461067157806349a75aba1461068957600080fd5b806318160ddd116103655780632f2ff15d116103345780632f2ff15d146105c657806333a9f452146105e657806336568abe146106065780633ccfd60b1461062657600080fd5b806318160ddd1461053f57806323b872dd1461055c578063248a9ca31461057c5780632c1bc455146105ac57600080fd5b8063095ea7b3116103a1578063095ea7b3146104845780630de030d3146104a457806312855bfb146104b95780631608b47b1461051b57600080fd5b8063014b0c8a146103d357806301ffc9a7146103f557806306fdde031461042a578063081812fc1461044c575b600080fd5b3480156103df57600080fd5b506103f36103ee36600461386a565b610bee565b005b34801561040157600080fd5b506104156104103660046138c1565b610c8e565b60405190151581526020015b60405180910390f35b34801561043657600080fd5b5061043f610c9f565b6040516104219190613936565b34801561045857600080fd5b5061046c610467366004613949565b610d31565b6040516001600160a01b039091168152602001610421565b34801561049057600080fd5b506103f361049f366004613977565b610d75565b3480156104b057600080fd5b50610415610e03565b3480156104c557600080fd5b506104fb6104d43660046139a3565b60146020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610421565b34801561052757600080fd5b5061053160115481565b604051908152602001610421565b34801561054b57600080fd5b506004546003540360001901610531565b34801561056857600080fd5b506103f36105773660046139c0565b610e16565b34801561058857600080fd5b50610531610597366004613949565b60009081526002602052604090206001015490565b3480156105b857600080fd5b50600f546104159060ff1681565b3480156105d257600080fd5b506103f36105e1366004613a01565b610e21565b3480156105f257600080fd5b506103f3610601366004613949565b610e47565b34801561061257600080fd5b506103f3610621366004613a01565b610eca565b34801561063257600080fd5b506103f3610f4d565b34801561064757600080fd5b506103f36106563660046139c0565b610f71565b34801561066757600080fd5b50610531600c5481565b34801561067d57600080fd5b50601054421015610415565b34801561069557600080fd5b506103f36106a4366004613949565b610f8c565b3480156106b557600080fd5b506012546104159060ff1681565b3480156106cf57600080fd5b506103f36106de366004613ace565b611006565b3480156106ef57600080fd5b506107036106fe366004613b16565b6110e5565b6040516104219190613bbb565b34801561071c57600080fd5b506105317fe74c04bdb85741f90efadc0228949f2b97fc0c6a16334216c9bd13273891142b81565b34801561075057600080fd5b506103f361075f366004613949565b6111ab565b34801561077057600080fd5b5061046c61077f366004613949565b611225565b34801561079057600080fd5b50610799611237565b6040516104219190613c25565b3480156107b257600080fd5b506103f36107c1366004613c66565b611248565b3480156107d257600080fd5b50601154421015610415565b3480156107ea57600080fd5b5061043f611322565b3480156107ff57600080fd5b5061053161080e3660046139a3565b6113b0565b34801561081f57600080fd5b506103f36113fe565b34801561083457600080fd5b506108486108433660046139a3565b611464565b6040516104219190613cd1565b34801561086157600080fd5b5061053166e6ed27d666800081565b34801561087c57600080fd5b506001546001600160a01b031661046c565b34801561089a57600080fd5b506103f36108a9366004613977565b6115b1565b3480156108ba57600080fd5b506104156108c9366004613a01565b611609565b3480156108da57600080fd5b5061043f611634565b3480156108ef57600080fd5b50610531606481565b34801561090457600080fd5b5061053160105481565b34801561091a57600080fd5b50610848610929366004613d09565b611643565b34801561093a57600080fd5b50610531600b5481565b6103f3610952366004613949565b61180b565b34801561096357600080fd5b50610531600081565b34801561097857600080fd5b506103f3610987366004613d53565b611905565b34801561099857600080fd5b5061053161199b565b3480156109ad57600080fd5b506103f36109bc36600461386a565b6119a5565b3480156109cd57600080fd5b50610531600d5481565b6103f36109e5366004613d88565b611b8a565b3480156109f657600080fd5b506103f3610a05366004613dff565b611d9a565b348015610a1657600080fd5b50610a2a610a25366004613949565b611de5565b6040516104219190613e7e565b348015610a4357600080fd5b506105317f4bdfd7a7ede714f70a9f7e698516c28d7902eb3b27bbdfeea83c6f3ae986b66b81565b348015610a7757600080fd5b5061043f610a86366004613949565b611e9f565b348015610a9757600080fd5b50610531600e5481565b348015610aad57600080fd5b506103f3610abc366004613949565b611f23565b348015610acd57600080fd5b506103f3610adc366004613a01565b611f9d565b348015610aed57600080fd5b50610531611b3981565b348015610b0357600080fd5b506103f3610b12366004613949565b611fc3565b348015610b2357600080fd5b50600454610531565b348015610b3857600080fd5b506103f3610b47366004613949565b61203d565b348015610b5857600080fd5b50610415610b67366004613eb3565b612118565b348015610b7857600080fd5b506103f3610b873660046139a3565b612205565b348015610b9857600080fd5b5061053160008051602061419d83398151915281565b348015610bba57600080fd5b506103f3610bc9366004613949565b6122cd565b348015610bda57600080fd5b506103f3610be9366004613ee1565b612347565b60008051602061419d833981519152610c0781336123e4565b611b3982610c13612448565b610c1d9190613f12565b1115610c3c57604051638a164f6360e01b815260040160405180910390fd5b60005b82811015610c8857610c78848483818110610c5c57610c5c613f2a565b9050602002016020810190610c7191906139a3565b6001612452565b610c8181613f40565b9050610c3f565b50505050565b6000610c998261246c565b92915050565b606060058054610cae90613f5b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cda90613f5b565b8015610d275780601f10610cfc57610100808354040283529160200191610d27565b820191906000526020600020905b815481529060010190602001808311610d0a57829003601f168201915b5050505050905090565b6000610d3c826124ac565b610d59576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b6000610d8082611225565b9050806001600160a01b0316836001600160a01b03161415610db55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610dd55750610dd38133612118565b155b15610df3576040516367d9dca160e11b815260040160405180910390fd5b610dfe8383836124e5565b505050565b6000600e54610e10612448565b10905090565b610dfe838383612541565b600082815260026020526040902060010154610e3d81336123e4565b610dfe838361271d565b60008051602061419d833981519152610e6081336123e4565b816010541415610e835760405163df82d43b60e01b815260040160405180910390fd5b601080549083905560408051828152602081018590527f1e5d6d89f4687ecb1ad2c42825b3ce7a1e77456a9c7e702a5b04b7d553ca5e6191015b60405180910390a1505050565b6001600160a01b0381163314610f3f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610f4982826127a3565b5050565b6000610f5981336123e4565b610f6e47335b6001600160a01b03169061280a565b50565b610dfe83838360405180602001604052806000815250611d9a565b60008051602061419d833981519152610fa581336123e4565b81600c541415610fc85760405163df82d43b60e01b815260040160405180910390fd5b600c80549083905560408051828152602081018590527f36253be6fa250456c32aee89544f545aef8b94519b45aae483d24fbb2b23d6e19101610ebd565b60008051602061419d83398151915261101f81336123e4565b611027612923565b6040516020016110379190613f96565b604051602081830303815290604052805190602001208260405160200161105e9190613f96565b6040516020818303038152906040528051906020012014156110935760405163df82d43b60e01b815260040160405180910390fd5b600061109d612923565b83519091506110b390601390602086019061378d565b507f309b29ded109b9e28fb9885757b3e0096eb75c51d23aa4635d68bcd569f6adc18184604051610ebd929190613fb2565b80516060906000816001600160401b0381111561110457611104613a31565b60405190808252806020026020018201604052801561114f57816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816111225790505b50905060005b8281146111a35761117e85828151811061117157611171613f2a565b6020026020010151611de5565b82828151811061119057611190613f2a565b6020908102919091010152600101611155565b509392505050565b60008051602061419d8339815191526111c481336123e4565b81600e5414156111e75760405163df82d43b60e01b815260040160405180910390fd5b600e80549083905560408051828152602081018590527f63a006998542ae5354652e8bd29296ff25a68f028d4a3b7b64dd0f16cb425fae9101610ebd565b600061123082612932565b5192915050565b60606112436015612a59565b905090565b60008051602061419d83398151915261126181336123e4565b600f5460ff1615156001141561128a5760405163eefd002b60e01b815260040160405180910390fd5b8382146112aa57604051632a9ffab760e21b815260040160405180910390fd5b60005b8481101561130d576112fd8686838181106112ca576112ca613f2a565b90506020020160208101906112df91906139a3565b8585848181106112f1576112f1613f2a565b90506020020135612452565b61130681613f40565b90506112ad565b5050600f805460ff1916600117905550505050565b6013805461132f90613f5b565b80601f016020809104026020016040519081016040528092919081815260200182805461135b90613f5b565b80156113a85780601f1061137d576101008083540402835291602001916113a8565b820191906000526020600020905b81548152906001019060200180831161138b57829003601f168201915b505050505081565b60006001600160a01b0382166113d9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600860205260409020546001600160401b031690565b6001546001600160a01b031633146114585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f36565b6114626000612a66565b565b60606000806000611474856113b0565b90506000816001600160401b0381111561149057611490613a31565b6040519080825280602002602001820160405280156114b9578160200160208202803683370190505b5090506114df604080516060810182526000808252602082018190529181019190915290565b60015b8386146115a557600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925292506115485761159d565b81516001600160a01b03161561155d57815194505b876001600160a01b0316856001600160a01b0316141561159d578083878060010198508151811061159057611590613f2a565b6020026020010181815250505b6001016114e2565b50909695505050505050565b60008051602061419d8339815191526115ca81336123e4565b611b39826115d6612448565b6115e09190613f12565b11156115ff57604051638a164f6360e01b815260040160405180910390fd5b610dfe8383612452565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060068054610cae90613f5b565b606081831061166557604051631960ccad60e11b815260040160405180910390fd5b600354600090600185101561167957600194505b80841115611685578093505b6000611690876113b0565b9050848610156116af57858503818110156116a9578091505b506116b3565b5060005b6000816001600160401b038111156116cd576116cd613a31565b6040519080825280602002602001820160405280156116f6578160200160208202803683370190505b5090508161170957935061180492505050565b600061171488611de5565b905060008160400151611725575080515b885b8881141580156117375750848714155b156117f857600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252935061179b576117f0565b82516001600160a01b0316156117b057825191505b8a6001600160a01b0316826001600160a01b031614156117f057808488806001019950815181106117e3576117e3613f2a565b6020026020010181815250505b600101611727565b50505092835250909150505b9392505050565b6011544210151515600114611835576040516309020d7360e21b8152426004820152602401610f36565b600d5481111561185857604051635861ada160e11b815260040160405180910390fd5b611b3981611864612448565b61186e9190613f12565b111561188d57604051638a164f6360e01b815260040160405180910390fd5b60006118a066e6ed27d666800083613fe0565b90503481146118c55760405163df9f49e160e01b815260048101829052602401610f36565b33600090815260146020526040812060020180548492906118e7908490613f12565b909155506118fa9050335b601590612ab8565b50610f493383612452565b6001600160a01b03821633141561192f5760405163b06307db60e01b815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000611243612448565b600260005414156119f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f36565b600260005560125460ff161515600114611a255760405163f82cae1160e01b815260040160405180910390fd5b33600090815260146020526040812060028101546001820154919291611a4b9190613f12565b60038301549091506000611a5f8284613fff565b905080611a7f57604051638419242b60e01b815260040160405180910390fd5b848114611a9f57604051632a9ffab760e21b815260040160405180910390fd5b6000611ab266e6ed27d666800083613fe0565b905080471015611ad5576040516338b40aa960e01b815260040160405180910390fd5b60005b86811015611b57576000888883818110611af457611af4613f2a565b905060200201359050611b043390565b6001600160a01b0316611b1682611225565b6001600160a01b031614611b3d576040516359dc379f60e01b815260040160405180910390fd5b611b4681612acd565b50611b5081613f40565b9050611ad8565b5081856003016000828254611b6c9190613f12565b90915550611b7c90508133610f5f565b505060016000555050505050565b6010544210151515600114611bb4576040516309020d7360e21b8152426004820152602401610f36565b611b3981611bc0612448565b611bca9190613f12565b1115611be957604051638a164f6360e01b815260040160405180910390fd5b6000611bfc66e6ed27d666800083613fe0565b9050348114611c215760405163df9f49e160e01b815260048101829052602401610f36565b604080517fe74c04bdb85741f90efadc0228949f2b97fc0c6a16334216c9bd13273891142b60208201523391810191909152600090611c789060600160405160208183030381529060405280519060200120612ad8565b90506000611cbc8287878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612b2692505050565b9050611ce87f4bdfd7a7ede714f70a9f7e698516c28d7902eb3b27bbdfeea83c6f3ae986b66b82611609565b1515600114611d0a57604051638baa579f60e01b815260040160405180910390fd5b33600090815260146020526040812060010154600c54909190611d2e908390613fff565b905080861115611d5457604051637ee9f8d760e01b815260048101829052602401610f36565b3360009081526014602052604081206001018054889290611d76908490613f12565b90915550611d859050336118f2565b50611d903387612452565b5050505050505050565b611da5848484612541565b6001600160a01b0383163b15158015611dc75750611dc584848484612b42565b155b15610c88576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810192909252906001831080611e2b57506003548310155b15611e365792915050565b50600082815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290611e965792915050565b61180483612932565b6060611eaa826124ac565b611ec757604051630a14c4b560e41b815260040160405180910390fd5b6000611ed1612923565b9050805160001415611ef25760405180602001604052806000815250611804565b80611efc84612c3a565b604051602001611f0d929190614016565b6040516020818303038152906040529392505050565b60008051602061419d833981519152611f3c81336123e4565b81600b541415611f5f5760405163df82d43b60e01b815260040160405180910390fd5b600b80549083905560408051828152602081018590527fd697c1d4082e8779f14797568c3852d81673c59b125dfd277967477bf86aac669101610ebd565b600082815260026020526040902060010154611fb981336123e4565b610dfe83836127a3565b60008051602061419d833981519152611fdc81336123e4565b81600d541415611fff5760405163df82d43b60e01b815260040160405180910390fd5b600d80549083905560408051828152602081018590527f36e459432c9262e27b24bdc16f09aad50192c66a0889d180a2f1ce9cb1936a499101610ebd565b612045610e03565b151560011461206757604051630cc205f560e11b815260040160405180910390fd5b333214612087576040516318232a2160e21b815260040160405180910390fd5b600b548111156120aa57604051635861ada160e11b815260040160405180910390fd5b611b39816120b6612448565b6120c09190613f12565b11156120df57604051638a164f6360e01b815260040160405180910390fd5b33600090815260146020526040812080548392906120fe908490613f12565b9091555061210d9050336118f2565b50610f6e3382612452565b6001600160a01b038083166000908152600a6020908152604080832093851683529290529081205460ff161561215057506001610c99565b6017546001600160a01b0316158015906121ef575060175460405163c455279160e01b81526001600160a01b03858116600483015284811692169063c45527919060240160206040518083038186803b1580156121ac57600080fd5b505afa1580156121c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e49190614045565b6001600160a01b0316145b156121fc57506001610c99565b50600092915050565b6001546001600160a01b0316331461225f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f36565b6001600160a01b0381166122c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f36565b610f6e81612a66565b60008051602061419d8339815191526122e681336123e4565b8160115414156123095760405163df82d43b60e01b815260040160405180910390fd5b601180549083905560408051828152602081018590527fb6a32fbe2f08470f3fbcdb69a734b4b21474c0e2528d82aaf3eb55b68f0ec3799101610ebd565b60008051602061419d83398151915261236081336123e4565b60125460ff161515821515141561238a5760405163df82d43b60e01b815260040160405180910390fd5b6012805483151560ff19821681179092556040805160ff9283168015158252929093161515602084015290917f6b1bf3da58ab681bc65212834dd1a9b4b333f6de3797d81d8c6775b0d72221959101610ebd565b3b151590565b6123ee8282611609565b610f4957612406816001600160a01b03166014612d37565b612411836020612d37565b604051602001612422929190614062565b60408051601f198184030181529082905262461bcd60e51b8252610f3691600401613936565b6003546000190190565b610f49828260405180602001604052806000815250612ed2565b60006001600160e01b031982166380ac58cd60e01b148061249d57506001600160e01b03198216635b5e139f60e01b145b80610c995750610c9982612edf565b6000816001111580156124c0575060035482105b8015610c99575050600090815260076020526040902054600160e01b900460ff161590565b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061254c82612932565b9050836001600160a01b031681600001516001600160a01b0316146125835760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806125a157506125a18533612118565b806125bc5750336125b184610d31565b6001600160a01b0316145b9050806125dc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661260357604051633a954ecd60e21b815260040160405180910390fd5b61260f600084876124e5565b6001600160a01b038581166000908152600860209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600790945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166126e35760035482146126e357805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206141bd83398151915260405160405180910390a45b5050505050565b6127278282611609565b610f495760008281526002602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561275f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6127ad8282611609565b15610f495760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b8047101561285a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610f36565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128a7576040519150601f19603f3d011682016040523d82523d6000602084013e6128ac565b606091505b5050905080610dfe5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610f36565b606060138054610cae90613f5b565b60408051606081018252600080825260208201819052918101919091528180600111158015612962575060035481105b15612a4057600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612a3e5780516001600160a01b0316156129d5579392505050565b5060001901600081815260076020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612a39579392505050565b6129d5565b505b604051636f96cda160e11b815260040160405180910390fd5b6060600061180483612f14565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611804836001600160a01b038416612f70565b610f6e816000612fbf565b6000610c99612ae5613173565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000612b35858561329a565b915091506111a38161330a565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b779033908990889088906004016140d7565b602060405180830381600087803b158015612b9157600080fd5b505af1925050508015612bc1575060408051601f3d908101601f19168201909252612bbe91810190614114565b60015b612c1c573d808015612bef576040519150601f19603f3d011682016040523d82523d6000602084013e612bf4565b606091505b508051612c14576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612c5e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c885780612c7281613f40565b9150612c819050600a83614147565b9150612c62565b6000816001600160401b03811115612ca257612ca2613a31565b6040519080825280601f01601f191660200182016040528015612ccc576020820181803683370190505b5090505b8415612c3257612ce1600183613fff565b9150612cee600a8661415b565b612cf9906030613f12565b60f81b818381518110612d0e57612d0e613f2a565b60200101906001600160f81b031916908160001a905350612d30600a86614147565b9450612cd0565b60606000612d46836002613fe0565b612d51906002613f12565b6001600160401b03811115612d6857612d68613a31565b6040519080825280601f01601f191660200182016040528015612d92576020820181803683370190505b509050600360fc1b81600081518110612dad57612dad613f2a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612ddc57612ddc613f2a565b60200101906001600160f81b031916908160001a9053506000612e00846002613fe0565b612e0b906001613f12565b90505b6001811115612e83576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e3f57612e3f613f2a565b1a60f81b828281518110612e5557612e55613f2a565b60200101906001600160f81b031916908160001a90535060049490941c93612e7c8161416f565b9050612e0e565b5083156118045760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610f36565b610dfe83838360016134c5565b60006001600160e01b03198216637965db0b60e01b1480610c9957506301ffc9a760e01b6001600160e01b0319831614610c99565b606081600001805480602002602001604051908101604052809291908181526020018280548015612f6457602002820191906000526020600020905b815481526020019060010190808311612f50575b50505050509050919050565b6000818152600183016020526040812054612fb757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c99565b506000610c99565b6000612fca83612932565b80519091508215613030576000336001600160a01b0383161480612ff35750612ff38233612118565b8061300e57503361300386610d31565b6001600160a01b0316145b90508061302e57604051632ce44b5f60e11b815260040160405180910390fd5b505b61303c600085836124e5565b6001600160a01b0380821660008181526008602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526007909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661313a57600354821461313a57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206141bd833981519152908390a450506004805460010190555050565b6000306001600160a01b037f000000000000000000000000ae8b8bc2263d6b5c4c6da527115a162e134d0b9a161480156131cc57507f000000000000000000000000000000000000000000000000000000000000000146145b156131f657507ff43703a8fc332e11216164aeb639f5bb65c4dc77219684a8856e6f0dbca1349390565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fc777a3671977e40576e3c2f2a9ebbe7c34536e0f7bd48d72553060108851180a828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604114156132d15760208301516040840151606085015160001a6132c587828585613671565b94509450505050613303565b8251604014156132fb57602083015160408401516132f086838361375e565b935093505050613303565b506000905060025b9250929050565b600081600481111561331e5761331e614186565b14156133275750565b600181600481111561333b5761333b614186565b14156133895760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610f36565b600281600481111561339d5761339d614186565b14156133eb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f36565b60038160048111156133ff576133ff614186565b14156134585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f36565b600481600481111561346c5761346c614186565b1415610f6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f36565b6003546001600160a01b0385166134ee57604051622e076360e81b815260040160405180910390fd5b8361350c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260086020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600790925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156135bd57506001600160a01b0387163b15155b15613634575b60405182906001600160a01b038916906000906000805160206141bd833981519152908290a46135fc6000888480600101955088612b42565b613619576040516368d2bf6b60e11b815260040160405180910390fd5b808214156135c357826003541461362f57600080fd5b613668565b5b6040516001830192906001600160a01b038916906000906000805160206141bd833981519152908290a480821415613635575b50600355612716565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156136a85750600090506003613755565b8460ff16601b141580156136c057508460ff16601c14155b156136d15750600090506004613755565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613725573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661374e57600060019250925050613755565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161377f87828885613671565b935093505050935093915050565b82805461379990613f5b565b90600052602060002090601f0160209004810192826137bb5760008555613801565b82601f106137d457805160ff1916838001178555613801565b82800160010185558215613801579182015b828111156138015782518255916020019190600101906137e6565b5061380d929150613811565b5090565b5b8082111561380d5760008155600101613812565b60008083601f84011261383857600080fd5b5081356001600160401b0381111561384f57600080fd5b6020830191508360208260051b850101111561330357600080fd5b6000806020838503121561387d57600080fd5b82356001600160401b0381111561389357600080fd5b61389f85828601613826565b90969095509350505050565b6001600160e01b031981168114610f6e57600080fd5b6000602082840312156138d357600080fd5b8135611804816138ab565b60005b838110156138f95781810151838201526020016138e1565b83811115610c885750506000910152565b600081518084526139228160208601602086016138de565b601f01601f19169290920160200192915050565b602081526000611804602083018461390a565b60006020828403121561395b57600080fd5b5035919050565b6001600160a01b0381168114610f6e57600080fd5b6000806040838503121561398a57600080fd5b823561399581613962565b946020939093013593505050565b6000602082840312156139b557600080fd5b813561180481613962565b6000806000606084860312156139d557600080fd5b83356139e081613962565b925060208401356139f081613962565b929592945050506040919091013590565b60008060408385031215613a1457600080fd5b823591506020830135613a2681613962565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613a6f57613a6f613a31565b604052919050565b60006001600160401b03831115613a9057613a90613a31565b613aa3601f8401601f1916602001613a47565b9050828152838383011115613ab757600080fd5b828260208301376000602084830101529392505050565b600060208284031215613ae057600080fd5b81356001600160401b03811115613af657600080fd5b8201601f81018413613b0757600080fd5b612c3284823560208401613a77565b60006020808385031215613b2957600080fd5b82356001600160401b0380821115613b4057600080fd5b818501915085601f830112613b5457600080fd5b813581811115613b6657613b66613a31565b8060051b9150613b77848301613a47565b8181529183018401918481019088841115613b9157600080fd5b938501935b83851015613baf57843582529385019390850190613b96565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156115a557613c1283855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101613bd7565b6020808252825182820181905260009190848201906040850190845b818110156115a55783516001600160a01b031683529284019291840191600101613c41565b60008060008060408587031215613c7c57600080fd5b84356001600160401b0380821115613c9357600080fd5b613c9f88838901613826565b90965094506020870135915080821115613cb857600080fd5b50613cc587828801613826565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b818110156115a557835183529284019291840191600101613ced565b600080600060608486031215613d1e57600080fd5b8335613d2981613962565b95602085013595506040909401359392505050565b80358015158114613d4e57600080fd5b919050565b60008060408385031215613d6657600080fd5b8235613d7181613962565b9150613d7f60208401613d3e565b90509250929050565b600080600060408486031215613d9d57600080fd5b83356001600160401b0380821115613db457600080fd5b818601915086601f830112613dc857600080fd5b813581811115613dd757600080fd5b876020828501011115613de957600080fd5b6020928301989097509590910135949350505050565b60008060008060808587031215613e1557600080fd5b8435613e2081613962565b93506020850135613e3081613962565b92506040850135915060608501356001600160401b03811115613e5257600080fd5b8501601f81018713613e6357600080fd5b613e7287823560208401613a77565b91505092959194509250565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610c99565b60008060408385031215613ec657600080fd5b8235613ed181613962565b91506020830135613a2681613962565b600060208284031215613ef357600080fd5b61180482613d3e565b634e487b7160e01b600052601160045260246000fd5b60008219821115613f2557613f25613efc565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613f5457613f54613efc565b5060010190565b600181811c90821680613f6f57607f821691505b60208210811415613f9057634e487b7160e01b600052602260045260246000fd5b50919050565b60008251613fa88184602087016138de565b9190910192915050565b604081526000613fc5604083018561390a565b8281036020840152613fd7818561390a565b95945050505050565b6000816000190483118215151615613ffa57613ffa613efc565b500290565b60008282101561401157614011613efc565b500390565b600083516140288184602088016138de565b83519083019061403c8183602088016138de565b01949350505050565b60006020828403121561405757600080fd5b815161180481613962565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161409a8160178501602088016138de565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516140cb8160288401602088016138de565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061410a9083018461390a565b9695505050505050565b60006020828403121561412657600080fd5b8151611804816138ab565b634e487b7160e01b600052601260045260246000fd5b60008261415657614156614131565b500490565b60008261416a5761416a614131565b500690565b60008161417e5761417e613efc565b506000190190565b634e487b7160e01b600052602160045260246000fdfe97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208bfddf426395b41c32f77ea3c089e84f4e78ae28f04098e7fd82990e858addf564736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000006276c1b0000000000000000000000000000000000000000000000000000000006278133000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6d657461646174612e746f6f6e70616c732e78797a2f746f6b656e2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000dfe5c72f8c144af10c18a3be5803149e8ea85ad000000000000000000000000ad20d82baf8d4d86e052699da1615429a0bd3a8900000000000000000000000000000000000000000000000000000000000000020000000000000000000000000dfe5c72f8c144af10c18a3be5803149e8ea85ad000000000000000000000000e9ab7246ddd40aee3a68fcd88fdcee1cdab8655e

-----Decoded View---------------
Arg [0] : wlActiveTimestamp_ (uint256): 1651950000
Arg [1] : saleActiveTimestamp_ (uint256): 1652036400
Arg [2] : baseURI_ (string): https://metadata.toonpals.xyz/token/
Arg [3] : osProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [4] : operators (address[]): 0x0DfE5c72F8c144Af10c18a3BE5803149e8ea85AD,0xAD20D82bAF8D4D86e052699da1615429a0Bd3A89
Arg [5] : wlSigners (address[]): 0x0DfE5c72F8c144Af10c18a3BE5803149e8ea85AD,0xE9AB7246DDd40aeE3A68fcd88fDCEe1cdAb8655e

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000006276c1b0
Arg [1] : 0000000000000000000000000000000000000000000000000000000062781330
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [7] : 68747470733a2f2f6d657461646174612e746f6f6e70616c732e78797a2f746f
Arg [8] : 6b656e2f00000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 0000000000000000000000000dfe5c72f8c144af10c18a3be5803149e8ea85ad
Arg [11] : 000000000000000000000000ad20d82baf8d4d86e052699da1615429a0bd3a89
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000dfe5c72f8c144af10c18a3be5803149e8ea85ad
Arg [14] : 000000000000000000000000e9ab7246ddd40aee3a68fcd88fdcee1cdab8655e


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.