ETH Price: $3,489.31 (+4.29%)

Token

OnlyPass (OP)
 

Overview

Max Total Supply

3,690 OP

Holders

1,974

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
3 OP
0xa8153ea1dce111099c19c123ddc0e698d003fc47
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:
OnlyPass

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 11 : Onlypass.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.15;

import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/ERC721A.sol";
import "./Administered.sol";

contract OnlyPass is ERC721A, Ownable {
    enum Stage {
        Paused,
        AllowList,
        Public
    }

    address public constant TEAM_ADDRESS = 0x684781121eE7A976ff63739Db8Cacda475Cffc2F;

    uint256 public constant MAX_PER_WALLET = 3;
    uint256 public constant AL_MAX_PER_WALLET = 2;
    uint256 public constant MAX_SUPPLY = 3690;

    uint256 public publicPrice = 0.02 ether;
    uint256 public allowListPrice = 0.015 ether;

    /// @dev 2000 comes from 1667 free mints allocated to AL phase, and an additional 333 to public.
    uint256 public freeMintsRemaining = 2000; // (1667 + 333);
    uint256 public remainingReserveMints = 50;

    Stage public stage;
    string public baseTokenURI;

    constructor(address[] memory admins, string memory _baseTokenURI) ERC721A("OnlyPass", "OP") {
        baseTokenURI = _baseTokenURI;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "OP: EOA_ONLY");
        _;
    }

    modifier mintCompilance(uint256 _quantity) {
        require(_quantity > 0, "OP: MINT_QTY_GT_0");
        require(_totalMinted() + _quantity <= MAX_SUPPLY, "OP: MAX_SUPPLY_EXEECED");
        require(
            _numberMinted(msg.sender) + _quantity <=
                (stage == Stage.AllowList ? AL_MAX_PER_WALLET : MAX_PER_WALLET),
            "OP: MAX_PER_WALLET_EXEECED"
        );
        _;
    }

    function allowListMint(uint256 _quantity)
        external
        payable
        callerIsUser
        mintCompilance(_quantity)
    {
        require(stage == Stage.AllowList, "OP:AL INVALID_STAGE");
        require(_getAux(msg.sender) > 0, "OP:AL UNAUTHORIZED_CALLER");
        // modifier checks guarantee the invariant: _quantity > 0 && _quantity <= MAX_PER_WALLET
        if (_numberMinted(msg.sender) == 0) {
            freeMintsRemaining--;
        } else {
            require((_quantity - 1) * allowListPrice <= msg.value, "OP:AL INSUFFICIENT_PAYMENT");
        }
        _mint(msg.sender, _quantity);
    }

    function publicSaleMint(uint256 _quantity)
        external
        payable
        callerIsUser
        mintCompilance(_quantity)
    {
        require(stage == Stage.Public, "OP:PUB INVALID_STAGE");
        // modifier checks guarantee the invariant: _quantity > 0 && _quantity <= MAX_PER_WALLET
        if (_shouldApplyFreeClaim(msg.sender)) {
            freeMintsRemaining--;
            require((_quantity - 1) * publicPrice <= msg.value, "OP:PUB INSUFFICIENT_PAYMENT");
        } else {
            require((_quantity * publicPrice) <= msg.value, "OP:PUB INSUFFICIENT_PAYMENT");
        }
        _mint(msg.sender, _quantity);
    }

    function isAllowListed(address _address) public view returns (bool) {
        return _getAux(_address) > 0;
    }

    // EXTERNAL ADMIN ONLY FUNCTIONS ===============================================
    // =============================================================================

    function editAllowList(address[] calldata toAdd, address[] calldata toRemove)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < toAdd.length; i++) {
            _setAux(toAdd[i], 1);
        }
        for (uint256 i = 0; i < toRemove.length; i++) {
            _setAux(toRemove[i], 0);
        }
    }

    function reserveMint(address to, uint256 _quantity)
        external
        onlyOwner
        mintCompilance(_quantity)
    {
        require(_quantity <= remainingReserveMints, "OP:RESERVE INVALID_QTY");
        remainingReserveMints -= _quantity;
        _mint(to, _quantity);
    }

    function updatePrice(uint256 _alPrice, uint256 _publicPrice) public onlyOwner {
        publicPrice = _publicPrice;
        allowListPrice = _alPrice;
    }

    function setStage(Stage _state) external onlyOwner {
        stage = _state;
    }

    function withdraw() external onlyOwner {
        (bool success, ) = payable(TEAM_ADDRESS).call{value: address(this).balance}("");
        require(success, "OP: ETH_TRANSFER_FAILED");
    }

    function setFreeMintsRemaining(uint256 _freeMintsRemaining) external onlyOwner {
        freeMintsRemaining = _freeMintsRemaining;
    }

    function setBaseURI(string calldata _baseTokenURI) external onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    // INTERNAL ====================================================================
    // =============================================================================

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

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

    function _shouldApplyFreeClaim(address addr) private view returns (bool) {
        return _numberMinted(addr) == 0 && freeMintsRemaining > 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 5 of 11 : 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 6 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 7 of 11 : 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 8 of 11 : 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 9 of 11 : Administered.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.15;

import "@openzeppelin/contracts/access/AccessControl.sol";

abstract contract Administered is AccessControl {
    /// @dev Add `root` to the admin role as a member.
    constructor(address[] memory admins) {
        for (uint256 i = 0; i < admins.length; i++) {
            _grantRole(DEFAULT_ADMIN_ROLE, admins[i]);
        }
    }

    /// @dev Restricted to members of the admin role.
    modifier onlyAdmin() {
        require(isAdmin(msg.sender), "AUTH: ONLY_ADMIN");
        _;
    }

    /// @dev Return `true` if the account belongs to the admin role.
    function isAdmin(address account) public view virtual returns (bool) {
        return hasRole(DEFAULT_ADMIN_ROLE, account);
    }

    /// @dev Add an account to the admin role. Restricted to admins.
    function addAdmin(address account) public virtual onlyAdmin {
        grantRole(DEFAULT_ADMIN_ROLE, account);
    }

    /// @dev Remove oneself from the admin role.
    function renounceAdmin() public virtual {
        renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }
}

File 10 of 11 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Reference type for token approval.
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _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 {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

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

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev 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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 11 of 11 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"admins","type":"address[]"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AL_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowListPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"toAdd","type":"address[]"},{"internalType":"address[]","name":"toRemove","type":"address[]"}],"name":"editAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAllowListed","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":"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":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"remainingReserveMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freeMintsRemaining","type":"uint256"}],"name":"setFreeMintsRemaining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum OnlyPass.Stage","name":"_state","type":"uint8"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum OnlyPass.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_alPrice","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405266470de4df82000060095566354a6ba7a18000600a556107d0600b556032600c553480156200003257600080fd5b5060405162004495380380620044958339818101604052810190620000589190620004ee565b6040518060400160405280600881526020017f4f6e6c79506173730000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4f500000000000000000000000000000000000000000000000000000000000008152508160029081620000d59190620007be565b508060039081620000e79190620007be565b50620000f86200013a60201b60201c565b600081905550505062000120620001146200014360201b60201c565b6200014b60201b60201c565b80600e9081620001319190620007be565b505050620008a5565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000275826200022a565b810181811067ffffffffffffffff821117156200029757620002966200023b565b5b80604052505050565b6000620002ac62000211565b9050620002ba82826200026a565b919050565b600067ffffffffffffffff821115620002dd57620002dc6200023b565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032082620002f3565b9050919050565b620003328162000313565b81146200033e57600080fd5b50565b600081519050620003528162000327565b92915050565b60006200036f6200036984620002bf565b620002a0565b90508083825260208201905060208402830185811115620003955762000394620002ee565b5b835b81811015620003c25780620003ad888262000341565b84526020840193505060208101905062000397565b5050509392505050565b600082601f830112620003e457620003e362000225565b5b8151620003f684826020860162000358565b91505092915050565b600080fd5b600067ffffffffffffffff8211156200042257620004216200023b565b5b6200042d826200022a565b9050602081019050919050565b60005b838110156200045a5780820151818401526020810190506200043d565b838111156200046a576000848401525b50505050565b600062000487620004818462000404565b620002a0565b905082815260208101848484011115620004a657620004a5620003ff565b5b620004b38482856200043a565b509392505050565b600082601f830112620004d357620004d262000225565b5b8151620004e584826020860162000470565b91505092915050565b600080604083850312156200050857620005076200021b565b5b600083015167ffffffffffffffff81111562000529576200052862000220565b5b6200053785828601620003cc565b925050602083015167ffffffffffffffff8111156200055b576200055a62000220565b5b6200056985828601620004bb565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005c657607f821691505b602082108103620005dc57620005db6200057e565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006467fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000607565b62000652868362000607565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200069f6200069962000693846200066a565b62000674565b6200066a565b9050919050565b6000819050919050565b620006bb836200067e565b620006d3620006ca82620006a6565b84845462000614565b825550505050565b600090565b620006ea620006db565b620006f7818484620006b0565b505050565b5b818110156200071f5762000713600082620006e0565b600181019050620006fd565b5050565b601f8211156200076e576200073881620005e2565b6200074384620005f7565b8101602085101562000753578190505b6200076b6200076285620005f7565b830182620006fc565b50505b505050565b600082821c905092915050565b6000620007936000198460080262000773565b1980831691505092915050565b6000620007ae838362000780565b9150826002028217905092915050565b620007c98262000573565b67ffffffffffffffff811115620007e557620007e46200023b565b5b620007f18254620005ad565b620007fe82828562000723565b600060209050601f83116001811462000836576000841562000821578287015190505b6200082d8582620007a0565b8655506200089d565b601f1984166200084686620005e2565b60005b82811015620008705784890151825560018201915060208501945060208101905062000849565b868310156200089057848901516200088c601f89168262000780565b8355505b6001600288020188555050505b505050505050565b613be080620008b56000396000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063b0ea1802116100ab578063c87b56dd1161006f578063c87b56dd1461077f578063ce3cd997146107bc578063d547cfb7146107e5578063e985e9c514610810578063f2fde38b1461084d5761021a565b8063b0ea1802146106bb578063b3ab66b0146106e4578063b88d4fde14610700578063c040e6b814610729578063c16738ea146107545761021a565b80638da5cb5b116100f25780638da5cb5b146105e657806395d89b4114610611578063a22cb4651461063c578063a24e515314610665578063a945bf80146106905761021a565b8063715018a61461055f57806379995c111461057657806382367b2d146105925780638868b9ff146105bb5761021a565b8063351509a8116101a657806355f804b31161017557806355f804b31461045457806359b716961461047d5780636352211e146104a857806370a08231146104e557806370dd8d2e146105225761021a565b8063351509a8146103c05780633ccfd60b146103eb57806342842e0e146104025780634ceea6331461042b5761021a565b80630f2cdd6c116101ed5780630f2cdd6c146102ed57806318160ddd1461031857806323b872dd146103435780632fc3643f1461036c57806332cb6b0c146103955761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b50610246600480360381019061024191906127e6565b610876565b604051610253919061282e565b60405180910390f35b34801561026857600080fd5b50610271610908565b60405161027e91906128e2565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a9919061293a565b61099a565b6040516102bb91906129a8565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e691906129ef565b610a19565b005b3480156102f957600080fd5b50610302610b5d565b60405161030f9190612a3e565b60405180910390f35b34801561032457600080fd5b5061032d610b62565b60405161033a9190612a3e565b60405180910390f35b34801561034f57600080fd5b5061036a60048036038101906103659190612a59565b610b79565b005b34801561037857600080fd5b50610393600480360381019061038e919061293a565b610e9b565b005b3480156103a157600080fd5b506103aa610ead565b6040516103b79190612a3e565b60405180910390f35b3480156103cc57600080fd5b506103d5610eb3565b6040516103e291906129a8565b60405180910390f35b3480156103f757600080fd5b50610400610ecb565b005b34801561040e57600080fd5b5061042960048036038101906104249190612a59565b610f96565b005b34801561043757600080fd5b50610452600480360381019061044d9190612b11565b610fb6565b005b34801561046057600080fd5b5061047b60048036038101906104769190612be8565b61106c565b005b34801561048957600080fd5b5061049261108a565b60405161049f9190612a3e565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca919061293a565b61108f565b6040516104dc91906129a8565b60405180910390f35b3480156104f157600080fd5b5061050c60048036038101906105079190612c35565b6110a1565b6040516105199190612a3e565b60405180910390f35b34801561052e57600080fd5b5061054960048036038101906105449190612c35565b611159565b604051610556919061282e565b60405180910390f35b34801561056b57600080fd5b50610574611177565b005b610590600480360381019061058b919061293a565b61118b565b005b34801561059e57600080fd5b506105b960048036038101906105b49190612c62565b611491565b005b3480156105c757600080fd5b506105d06114ab565b6040516105dd9190612a3e565b60405180910390f35b3480156105f257600080fd5b506105fb6114b1565b60405161060891906129a8565b60405180910390f35b34801561061d57600080fd5b506106266114db565b60405161063391906128e2565b60405180910390f35b34801561064857600080fd5b50610663600480360381019061065e9190612cce565b61156d565b005b34801561067157600080fd5b5061067a6116e4565b6040516106879190612a3e565b60405180910390f35b34801561069c57600080fd5b506106a56116ea565b6040516106b29190612a3e565b60405180910390f35b3480156106c757600080fd5b506106e260048036038101906106dd91906129ef565b6116f0565b005b6106fe60048036038101906106f9919061293a565b61189a565b005b34801561070c57600080fd5b5061072760048036038101906107229190612e3e565b611b98565b005b34801561073557600080fd5b5061073e611c0b565b60405161074b9190612f38565b60405180910390f35b34801561076057600080fd5b50610769611c1e565b6040516107769190612a3e565b60405180910390f35b34801561078b57600080fd5b506107a660048036038101906107a1919061293a565b611c24565b6040516107b391906128e2565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190612f78565b611cc2565b005b3480156107f157600080fd5b506107fa611cf7565b60405161080791906128e2565b60405180910390f35b34801561081c57600080fd5b5061083760048036038101906108329190612fa5565b611d85565b604051610844919061282e565b60405180910390f35b34801561085957600080fd5b50610874600480360381019061086f9190612c35565b611e19565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109015750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461091790613014565b80601f016020809104026020016040519081016040528092919081815260200182805461094390613014565b80156109905780601f1061096557610100808354040283529160200191610990565b820191906000526020600020905b81548152906001019060200180831161097357829003601f168201915b5050505050905090565b60006109a582611e9c565b6109db576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a248261108f565b90508073ffffffffffffffffffffffffffffffffffffffff16610a45611efb565b73ffffffffffffffffffffffffffffffffffffffff1614610aa857610a7181610a6c611efb565b611d85565b610aa7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600381565b6000610b6c611f03565b6001546000540303905090565b6000610b8482611f0c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610beb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bf784611fd8565b91509150610c0d8187610c08611efb565b611fff565b610c5957610c2286610c1d611efb565b611d85565b610c58576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610cbf576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ccc8686866001612043565b8015610cd757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610da585610d81888887612049565b7c020000000000000000000000000000000000000000000000000000000017612071565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e2b5760006001850190506000600460008381526020019081526020016000205403610e29576000548114610e28578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e93868686600161209c565b505050505050565b610ea36120a2565b80600b8190555050565b610e6a81565b73684781121ee7a976ff63739db8cacda475cffc2f81565b610ed36120a2565b600073684781121ee7a976ff63739db8cacda475cffc2f73ffffffffffffffffffffffffffffffffffffffff1647604051610f0d90613076565b60006040518083038185875af1925050503d8060008114610f4a576040519150601f19603f3d011682016040523d82523d6000602084013e610f4f565b606091505b5050905080610f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8a906130d7565b60405180910390fd5b50565b610fb183838360405180602001604052806000815250611b98565b505050565b610fbe6120a2565b60005b8484905081101561101157610ffe858583818110610fe257610fe16130f7565b5b9050602002016020810190610ff79190612c35565b6001612120565b808061100990613155565b915050610fc1565b5060005b8282905081101561106557611052838383818110611036576110356130f7565b5b905060200201602081019061104b9190612c35565b6000612120565b808061105d90613155565b915050611015565b5050505050565b6110746120a2565b8181600e9182611085929190613354565b505050565b600281565b600061109a82611f0c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611108576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600080611165836121d6565b67ffffffffffffffff16119050919050565b61117f6120a2565b6111896000612223565b565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146111f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f090613470565b60405180910390fd5b806000811161123d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611234906134dc565b60405180910390fd5b610e6a816112496122e9565b61125391906134fc565b1115611294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128b9061359e565b60405180910390fd5b600160028111156112a8576112a7612ec1565b5b600d60009054906101000a900460ff1660028111156112ca576112c9612ec1565b5b146112d65760036112d9565b60025b816112e3336122fc565b6112ed91906134fc565b111561132e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113259061360a565b60405180910390fd5b6001600281111561134257611341612ec1565b5b600d60009054906101000a900460ff16600281111561136457611363612ec1565b5b146113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90613676565b60405180910390fd5b60006113af336121d6565b67ffffffffffffffff16116113f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f0906136e2565b60405180910390fd5b6000611404336122fc565b0361142657600b600081548092919061141c90613702565b9190505550611483565b34600a54600184611437919061372b565b611441919061375f565b1115611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147990613805565b60405180910390fd5b5b61148d3383612353565b5050565b6114996120a2565b8060098190555081600a819055505050565b600b5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546114ea90613014565b80601f016020809104026020016040519081016040528092919081815260200182805461151690613014565b80156115635780601f1061153857610100808354040283529160200191611563565b820191906000526020600020905b81548152906001019060200180831161154657829003601f168201915b5050505050905090565b611575611efb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115d9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006115e6611efb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611693611efb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116d8919061282e565b60405180910390a35050565b600a5481565b60095481565b6116f86120a2565b806000811161173c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611733906134dc565b60405180910390fd5b610e6a816117486122e9565b61175291906134fc565b1115611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a9061359e565b60405180910390fd5b600160028111156117a7576117a6612ec1565b5b600d60009054906101000a900460ff1660028111156117c9576117c8612ec1565b5b146117d55760036117d8565b60025b816117e2336122fc565b6117ec91906134fc565b111561182d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118249061360a565b60405180910390fd5b600c54821115611872576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186990613871565b60405180910390fd5b81600c6000828254611884919061372b565b925050819055506118958383612353565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ff90613470565b60405180910390fd5b806000811161194c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611943906134dc565b60405180910390fd5b610e6a816119586122e9565b61196291906134fc565b11156119a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199a9061359e565b60405180910390fd5b600160028111156119b7576119b6612ec1565b5b600d60009054906101000a900460ff1660028111156119d9576119d8612ec1565b5b146119e55760036119e8565b60025b816119f2336122fc565b6119fc91906134fc565b1115611a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a349061360a565b60405180910390fd5b600280811115611a5057611a4f612ec1565b5b600d60009054906101000a900460ff166002811115611a7257611a71612ec1565b5b14611ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa9906138dd565b60405180910390fd5b611abb3361250e565b15611b3957600b6000815480929190611ad390613702565b919050555034600954600184611ae9919061372b565b611af3919061375f565b1115611b34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2b90613949565b60405180910390fd5b611b8a565b3460095483611b48919061375f565b1115611b89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8090613949565b60405180910390fd5b5b611b943383612353565b5050565b611ba3848484610b79565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c0557611bce84848484612530565b611c04576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900460ff1681565b600c5481565b6060611c2f82611e9c565b611c65576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611c6f612680565b90506000815103611c8f5760405180602001604052806000815250611cba565b80611c9984612712565b604051602001611caa9291906139a5565b6040516020818303038152906040525b915050919050565b611cca6120a2565b80600d60006101000a81548160ff02191690836002811115611cef57611cee612ec1565b5b021790555050565b600e8054611d0490613014565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3090613014565b8015611d7d5780601f10611d5257610100808354040283529160200191611d7d565b820191906000526020600020905b815481529060010190602001808311611d6057829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e216120a2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8790613a3b565b60405180910390fd5b611e9981612223565b50565b600081611ea7611f03565b11158015611eb6575060005482105b8015611ef4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611f1b611f03565b11611fa157600054811015611fa05760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f9e575b60008103611f94576004600083600190039350838152602001908152602001600020549050611f6a565b8092505050611fd3565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612060868684612759565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6120aa612762565b73ffffffffffffffffffffffffffffffffffffffff166120c86114b1565b73ffffffffffffffffffffffffffffffffffffffff161461211e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211590613aa7565b60405180910390fd5b565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006122f3611f03565b60005403905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008054905060008203612393576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a06000848385612043565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612417836124086000866000612049565b6124118561276a565b17612071565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146124b857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061247d565b50600082036124f3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612509600084838561209c565b505050565b60008061251a836122fc565b14801561252957506000600b54115b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612556611efb565b8786866040518563ffffffff1660e01b81526004016125789493929190613b1c565b6020604051808303816000875af19250505080156125b457506040513d601f19601f820116820180604052508101906125b19190613b7d565b60015b61262d573d80600081146125e4576040519150601f19603f3d011682016040523d82523d6000602084013e6125e9565b606091505b506000815103612625576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e805461268f90613014565b80601f01602080910402602001604051908101604052809291908181526020018280546126bb90613014565b80156127085780601f106126dd57610100808354040283529160200191612708565b820191906000526020600020905b8154815290600101906020018083116126eb57829003601f168201915b5050505050905090565b606060806040510190508060405280825b60011561274557600183039250600a81066030018353600a8104905080612723575b508181036020830392508083525050919050565b60009392505050565b600033905090565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127c38161278e565b81146127ce57600080fd5b50565b6000813590506127e0816127ba565b92915050565b6000602082840312156127fc576127fb612784565b5b600061280a848285016127d1565b91505092915050565b60008115159050919050565b61282881612813565b82525050565b6000602082019050612843600083018461281f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612883578082015181840152602081019050612868565b83811115612892576000848401525b50505050565b6000601f19601f8301169050919050565b60006128b482612849565b6128be8185612854565b93506128ce818560208601612865565b6128d781612898565b840191505092915050565b600060208201905081810360008301526128fc81846128a9565b905092915050565b6000819050919050565b61291781612904565b811461292257600080fd5b50565b6000813590506129348161290e565b92915050565b6000602082840312156129505761294f612784565b5b600061295e84828501612925565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061299282612967565b9050919050565b6129a281612987565b82525050565b60006020820190506129bd6000830184612999565b92915050565b6129cc81612987565b81146129d757600080fd5b50565b6000813590506129e9816129c3565b92915050565b60008060408385031215612a0657612a05612784565b5b6000612a14858286016129da565b9250506020612a2585828601612925565b9150509250929050565b612a3881612904565b82525050565b6000602082019050612a536000830184612a2f565b92915050565b600080600060608486031215612a7257612a71612784565b5b6000612a80868287016129da565b9350506020612a91868287016129da565b9250506040612aa286828701612925565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112612ad157612ad0612aac565b5b8235905067ffffffffffffffff811115612aee57612aed612ab1565b5b602083019150836020820283011115612b0a57612b09612ab6565b5b9250929050565b60008060008060408587031215612b2b57612b2a612784565b5b600085013567ffffffffffffffff811115612b4957612b48612789565b5b612b5587828801612abb565b9450945050602085013567ffffffffffffffff811115612b7857612b77612789565b5b612b8487828801612abb565b925092505092959194509250565b60008083601f840112612ba857612ba7612aac565b5b8235905067ffffffffffffffff811115612bc557612bc4612ab1565b5b602083019150836001820283011115612be157612be0612ab6565b5b9250929050565b60008060208385031215612bff57612bfe612784565b5b600083013567ffffffffffffffff811115612c1d57612c1c612789565b5b612c2985828601612b92565b92509250509250929050565b600060208284031215612c4b57612c4a612784565b5b6000612c59848285016129da565b91505092915050565b60008060408385031215612c7957612c78612784565b5b6000612c8785828601612925565b9250506020612c9885828601612925565b9150509250929050565b612cab81612813565b8114612cb657600080fd5b50565b600081359050612cc881612ca2565b92915050565b60008060408385031215612ce557612ce4612784565b5b6000612cf3858286016129da565b9250506020612d0485828601612cb9565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d4b82612898565b810181811067ffffffffffffffff82111715612d6a57612d69612d13565b5b80604052505050565b6000612d7d61277a565b9050612d898282612d42565b919050565b600067ffffffffffffffff821115612da957612da8612d13565b5b612db282612898565b9050602081019050919050565b82818337600083830152505050565b6000612de1612ddc84612d8e565b612d73565b905082815260208101848484011115612dfd57612dfc612d0e565b5b612e08848285612dbf565b509392505050565b600082601f830112612e2557612e24612aac565b5b8135612e35848260208601612dce565b91505092915050565b60008060008060808587031215612e5857612e57612784565b5b6000612e66878288016129da565b9450506020612e77878288016129da565b9350506040612e8887828801612925565b925050606085013567ffffffffffffffff811115612ea957612ea8612789565b5b612eb587828801612e10565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110612f0157612f00612ec1565b5b50565b6000819050612f1282612ef0565b919050565b6000612f2282612f04565b9050919050565b612f3281612f17565b82525050565b6000602082019050612f4d6000830184612f29565b92915050565b60038110612f6057600080fd5b50565b600081359050612f7281612f53565b92915050565b600060208284031215612f8e57612f8d612784565b5b6000612f9c84828501612f63565b91505092915050565b60008060408385031215612fbc57612fbb612784565b5b6000612fca858286016129da565b9250506020612fdb858286016129da565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061302c57607f821691505b60208210810361303f5761303e612fe5565b5b50919050565b600081905092915050565b50565b6000613060600083613045565b915061306b82613050565b600082019050919050565b600061308182613053565b9150819050919050565b7f4f503a204554485f5452414e534645525f4641494c4544000000000000000000600082015250565b60006130c1601783612854565b91506130cc8261308b565b602082019050919050565b600060208201905081810360008301526130f0816130b4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061316082612904565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361319257613191613126565b5b600182019050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261320a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826131cd565b61321486836131cd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061325161324c61324784612904565b61322c565b612904565b9050919050565b6000819050919050565b61326b83613236565b61327f61327782613258565b8484546131da565b825550505050565b600090565b613294613287565b61329f818484613262565b505050565b5b818110156132c3576132b860008261328c565b6001810190506132a5565b5050565b601f821115613308576132d9816131a8565b6132e2846131bd565b810160208510156132f1578190505b6133056132fd856131bd565b8301826132a4565b50505b505050565b600082821c905092915050565b600061332b6000198460080261330d565b1980831691505092915050565b6000613344838361331a565b9150826002028217905092915050565b61335e838361319d565b67ffffffffffffffff81111561337757613376612d13565b5b6133818254613014565b61338c8282856132c7565b6000601f8311600181146133bb57600084156133a9578287013590505b6133b38582613338565b86555061341b565b601f1984166133c9866131a8565b60005b828110156133f1578489013582556001820191506020850194506020810190506133cc565b8683101561340e578489013561340a601f89168261331a565b8355505b6001600288020188555050505b50505050505050565b7f4f503a20454f415f4f4e4c590000000000000000000000000000000000000000600082015250565b600061345a600c83612854565b915061346582613424565b602082019050919050565b600060208201905081810360008301526134898161344d565b9050919050565b7f4f503a204d494e545f5154595f47545f30000000000000000000000000000000600082015250565b60006134c6601183612854565b91506134d182613490565b602082019050919050565b600060208201905081810360008301526134f5816134b9565b9050919050565b600061350782612904565b915061351283612904565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561354757613546613126565b5b828201905092915050565b7f4f503a204d41585f535550504c595f4558454543454400000000000000000000600082015250565b6000613588601683612854565b915061359382613552565b602082019050919050565b600060208201905081810360008301526135b78161357b565b9050919050565b7f4f503a204d41585f5045525f57414c4c45545f45584545434544000000000000600082015250565b60006135f4601a83612854565b91506135ff826135be565b602082019050919050565b60006020820190508181036000830152613623816135e7565b9050919050565b7f4f503a414c20494e56414c49445f535441474500000000000000000000000000600082015250565b6000613660601383612854565b915061366b8261362a565b602082019050919050565b6000602082019050818103600083015261368f81613653565b9050919050565b7f4f503a414c20554e415554484f52495a45445f43414c4c455200000000000000600082015250565b60006136cc601983612854565b91506136d782613696565b602082019050919050565b600060208201905081810360008301526136fb816136bf565b9050919050565b600061370d82612904565b9150600082036137205761371f613126565b5b600182039050919050565b600061373682612904565b915061374183612904565b92508282101561375457613753613126565b5b828203905092915050565b600061376a82612904565b915061377583612904565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156137ae576137ad613126565b5b828202905092915050565b7f4f503a414c20494e53554646494349454e545f5041594d454e54000000000000600082015250565b60006137ef601a83612854565b91506137fa826137b9565b602082019050919050565b6000602082019050818103600083015261381e816137e2565b9050919050565b7f4f503a5245534552564520494e56414c49445f51545900000000000000000000600082015250565b600061385b601683612854565b915061386682613825565b602082019050919050565b6000602082019050818103600083015261388a8161384e565b9050919050565b7f4f503a50554220494e56414c49445f5354414745000000000000000000000000600082015250565b60006138c7601483612854565b91506138d282613891565b602082019050919050565b600060208201905081810360008301526138f6816138ba565b9050919050565b7f4f503a50554220494e53554646494349454e545f5041594d454e540000000000600082015250565b6000613933601b83612854565b915061393e826138fd565b602082019050919050565b6000602082019050818103600083015261396281613926565b9050919050565b600081905092915050565b600061397f82612849565b6139898185613969565b9350613999818560208601612865565b80840191505092915050565b60006139b18285613974565b91506139bd8284613974565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a25602683612854565b9150613a30826139c9565b604082019050919050565b60006020820190508181036000830152613a5481613a18565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a91602083612854565b9150613a9c82613a5b565b602082019050919050565b60006020820190508181036000830152613ac081613a84565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613aee82613ac7565b613af88185613ad2565b9350613b08818560208601612865565b613b1181612898565b840191505092915050565b6000608082019050613b316000830187612999565b613b3e6020830186612999565b613b4b6040830185612a2f565b8181036060830152613b5d8184613ae3565b905095945050505050565b600081519050613b77816127ba565b92915050565b600060208284031215613b9357613b92612784565b5b6000613ba184828501613b68565b9150509291505056fea2646970667358221220e994bad36956373c433061d667a21cb2576103b8ae3dd3f9d240dd2b7485bc0164736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000684781121ee7a976ff63739db8cacda475cffc2f000000000000000000000000102a018ce5d5a4ce0e4da034de3e26f73cb9c866000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f6f70656e7365612e6d7970696e6174612e636c6f75642f697066732f516d646e3973735a6e5569696f417872505a4861696f3942765856687555714e39374539415658505165534d6b532f00000000000000000000000000

Deployed Bytecode

0x60806040526004361061021a5760003560e01c8063715018a611610123578063b0ea1802116100ab578063c87b56dd1161006f578063c87b56dd1461077f578063ce3cd997146107bc578063d547cfb7146107e5578063e985e9c514610810578063f2fde38b1461084d5761021a565b8063b0ea1802146106bb578063b3ab66b0146106e4578063b88d4fde14610700578063c040e6b814610729578063c16738ea146107545761021a565b80638da5cb5b116100f25780638da5cb5b146105e657806395d89b4114610611578063a22cb4651461063c578063a24e515314610665578063a945bf80146106905761021a565b8063715018a61461055f57806379995c111461057657806382367b2d146105925780638868b9ff146105bb5761021a565b8063351509a8116101a657806355f804b31161017557806355f804b31461045457806359b716961461047d5780636352211e146104a857806370a08231146104e557806370dd8d2e146105225761021a565b8063351509a8146103c05780633ccfd60b146103eb57806342842e0e146104025780634ceea6331461042b5761021a565b80630f2cdd6c116101ed5780630f2cdd6c146102ed57806318160ddd1461031857806323b872dd146103435780632fc3643f1461036c57806332cb6b0c146103955761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b50610246600480360381019061024191906127e6565b610876565b604051610253919061282e565b60405180910390f35b34801561026857600080fd5b50610271610908565b60405161027e91906128e2565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a9919061293a565b61099a565b6040516102bb91906129a8565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e691906129ef565b610a19565b005b3480156102f957600080fd5b50610302610b5d565b60405161030f9190612a3e565b60405180910390f35b34801561032457600080fd5b5061032d610b62565b60405161033a9190612a3e565b60405180910390f35b34801561034f57600080fd5b5061036a60048036038101906103659190612a59565b610b79565b005b34801561037857600080fd5b50610393600480360381019061038e919061293a565b610e9b565b005b3480156103a157600080fd5b506103aa610ead565b6040516103b79190612a3e565b60405180910390f35b3480156103cc57600080fd5b506103d5610eb3565b6040516103e291906129a8565b60405180910390f35b3480156103f757600080fd5b50610400610ecb565b005b34801561040e57600080fd5b5061042960048036038101906104249190612a59565b610f96565b005b34801561043757600080fd5b50610452600480360381019061044d9190612b11565b610fb6565b005b34801561046057600080fd5b5061047b60048036038101906104769190612be8565b61106c565b005b34801561048957600080fd5b5061049261108a565b60405161049f9190612a3e565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca919061293a565b61108f565b6040516104dc91906129a8565b60405180910390f35b3480156104f157600080fd5b5061050c60048036038101906105079190612c35565b6110a1565b6040516105199190612a3e565b60405180910390f35b34801561052e57600080fd5b5061054960048036038101906105449190612c35565b611159565b604051610556919061282e565b60405180910390f35b34801561056b57600080fd5b50610574611177565b005b610590600480360381019061058b919061293a565b61118b565b005b34801561059e57600080fd5b506105b960048036038101906105b49190612c62565b611491565b005b3480156105c757600080fd5b506105d06114ab565b6040516105dd9190612a3e565b60405180910390f35b3480156105f257600080fd5b506105fb6114b1565b60405161060891906129a8565b60405180910390f35b34801561061d57600080fd5b506106266114db565b60405161063391906128e2565b60405180910390f35b34801561064857600080fd5b50610663600480360381019061065e9190612cce565b61156d565b005b34801561067157600080fd5b5061067a6116e4565b6040516106879190612a3e565b60405180910390f35b34801561069c57600080fd5b506106a56116ea565b6040516106b29190612a3e565b60405180910390f35b3480156106c757600080fd5b506106e260048036038101906106dd91906129ef565b6116f0565b005b6106fe60048036038101906106f9919061293a565b61189a565b005b34801561070c57600080fd5b5061072760048036038101906107229190612e3e565b611b98565b005b34801561073557600080fd5b5061073e611c0b565b60405161074b9190612f38565b60405180910390f35b34801561076057600080fd5b50610769611c1e565b6040516107769190612a3e565b60405180910390f35b34801561078b57600080fd5b506107a660048036038101906107a1919061293a565b611c24565b6040516107b391906128e2565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190612f78565b611cc2565b005b3480156107f157600080fd5b506107fa611cf7565b60405161080791906128e2565b60405180910390f35b34801561081c57600080fd5b5061083760048036038101906108329190612fa5565b611d85565b604051610844919061282e565b60405180910390f35b34801561085957600080fd5b50610874600480360381019061086f9190612c35565b611e19565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109015750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461091790613014565b80601f016020809104026020016040519081016040528092919081815260200182805461094390613014565b80156109905780601f1061096557610100808354040283529160200191610990565b820191906000526020600020905b81548152906001019060200180831161097357829003601f168201915b5050505050905090565b60006109a582611e9c565b6109db576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a248261108f565b90508073ffffffffffffffffffffffffffffffffffffffff16610a45611efb565b73ffffffffffffffffffffffffffffffffffffffff1614610aa857610a7181610a6c611efb565b611d85565b610aa7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600381565b6000610b6c611f03565b6001546000540303905090565b6000610b8482611f0c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610beb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bf784611fd8565b91509150610c0d8187610c08611efb565b611fff565b610c5957610c2286610c1d611efb565b611d85565b610c58576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610cbf576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ccc8686866001612043565b8015610cd757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610da585610d81888887612049565b7c020000000000000000000000000000000000000000000000000000000017612071565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610e2b5760006001850190506000600460008381526020019081526020016000205403610e29576000548114610e28578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e93868686600161209c565b505050505050565b610ea36120a2565b80600b8190555050565b610e6a81565b73684781121ee7a976ff63739db8cacda475cffc2f81565b610ed36120a2565b600073684781121ee7a976ff63739db8cacda475cffc2f73ffffffffffffffffffffffffffffffffffffffff1647604051610f0d90613076565b60006040518083038185875af1925050503d8060008114610f4a576040519150601f19603f3d011682016040523d82523d6000602084013e610f4f565b606091505b5050905080610f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8a906130d7565b60405180910390fd5b50565b610fb183838360405180602001604052806000815250611b98565b505050565b610fbe6120a2565b60005b8484905081101561101157610ffe858583818110610fe257610fe16130f7565b5b9050602002016020810190610ff79190612c35565b6001612120565b808061100990613155565b915050610fc1565b5060005b8282905081101561106557611052838383818110611036576110356130f7565b5b905060200201602081019061104b9190612c35565b6000612120565b808061105d90613155565b915050611015565b5050505050565b6110746120a2565b8181600e9182611085929190613354565b505050565b600281565b600061109a82611f0c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611108576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600080611165836121d6565b67ffffffffffffffff16119050919050565b61117f6120a2565b6111896000612223565b565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146111f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f090613470565b60405180910390fd5b806000811161123d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611234906134dc565b60405180910390fd5b610e6a816112496122e9565b61125391906134fc565b1115611294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128b9061359e565b60405180910390fd5b600160028111156112a8576112a7612ec1565b5b600d60009054906101000a900460ff1660028111156112ca576112c9612ec1565b5b146112d65760036112d9565b60025b816112e3336122fc565b6112ed91906134fc565b111561132e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113259061360a565b60405180910390fd5b6001600281111561134257611341612ec1565b5b600d60009054906101000a900460ff16600281111561136457611363612ec1565b5b146113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90613676565b60405180910390fd5b60006113af336121d6565b67ffffffffffffffff16116113f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f0906136e2565b60405180910390fd5b6000611404336122fc565b0361142657600b600081548092919061141c90613702565b9190505550611483565b34600a54600184611437919061372b565b611441919061375f565b1115611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147990613805565b60405180910390fd5b5b61148d3383612353565b5050565b6114996120a2565b8060098190555081600a819055505050565b600b5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546114ea90613014565b80601f016020809104026020016040519081016040528092919081815260200182805461151690613014565b80156115635780601f1061153857610100808354040283529160200191611563565b820191906000526020600020905b81548152906001019060200180831161154657829003601f168201915b5050505050905090565b611575611efb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115d9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006115e6611efb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611693611efb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116d8919061282e565b60405180910390a35050565b600a5481565b60095481565b6116f86120a2565b806000811161173c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611733906134dc565b60405180910390fd5b610e6a816117486122e9565b61175291906134fc565b1115611793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178a9061359e565b60405180910390fd5b600160028111156117a7576117a6612ec1565b5b600d60009054906101000a900460ff1660028111156117c9576117c8612ec1565b5b146117d55760036117d8565b60025b816117e2336122fc565b6117ec91906134fc565b111561182d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118249061360a565b60405180910390fd5b600c54821115611872576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186990613871565b60405180910390fd5b81600c6000828254611884919061372b565b925050819055506118958383612353565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ff90613470565b60405180910390fd5b806000811161194c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611943906134dc565b60405180910390fd5b610e6a816119586122e9565b61196291906134fc565b11156119a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199a9061359e565b60405180910390fd5b600160028111156119b7576119b6612ec1565b5b600d60009054906101000a900460ff1660028111156119d9576119d8612ec1565b5b146119e55760036119e8565b60025b816119f2336122fc565b6119fc91906134fc565b1115611a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a349061360a565b60405180910390fd5b600280811115611a5057611a4f612ec1565b5b600d60009054906101000a900460ff166002811115611a7257611a71612ec1565b5b14611ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa9906138dd565b60405180910390fd5b611abb3361250e565b15611b3957600b6000815480929190611ad390613702565b919050555034600954600184611ae9919061372b565b611af3919061375f565b1115611b34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2b90613949565b60405180910390fd5b611b8a565b3460095483611b48919061375f565b1115611b89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8090613949565b60405180910390fd5b5b611b943383612353565b5050565b611ba3848484610b79565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c0557611bce84848484612530565b611c04576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900460ff1681565b600c5481565b6060611c2f82611e9c565b611c65576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611c6f612680565b90506000815103611c8f5760405180602001604052806000815250611cba565b80611c9984612712565b604051602001611caa9291906139a5565b6040516020818303038152906040525b915050919050565b611cca6120a2565b80600d60006101000a81548160ff02191690836002811115611cef57611cee612ec1565b5b021790555050565b600e8054611d0490613014565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3090613014565b8015611d7d5780601f10611d5257610100808354040283529160200191611d7d565b820191906000526020600020905b815481529060010190602001808311611d6057829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e216120a2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8790613a3b565b60405180910390fd5b611e9981612223565b50565b600081611ea7611f03565b11158015611eb6575060005482105b8015611ef4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611f1b611f03565b11611fa157600054811015611fa05760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f9e575b60008103611f94576004600083600190039350838152602001908152602001600020549050611f6a565b8092505050611fd3565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612060868684612759565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6120aa612762565b73ffffffffffffffffffffffffffffffffffffffff166120c86114b1565b73ffffffffffffffffffffffffffffffffffffffff161461211e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211590613aa7565b60405180910390fd5b565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006122f3611f03565b60005403905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008054905060008203612393576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123a06000848385612043565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612417836124086000866000612049565b6124118561276a565b17612071565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146124b857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061247d565b50600082036124f3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612509600084838561209c565b505050565b60008061251a836122fc565b14801561252957506000600b54115b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612556611efb565b8786866040518563ffffffff1660e01b81526004016125789493929190613b1c565b6020604051808303816000875af19250505080156125b457506040513d601f19601f820116820180604052508101906125b19190613b7d565b60015b61262d573d80600081146125e4576040519150601f19603f3d011682016040523d82523d6000602084013e6125e9565b606091505b506000815103612625576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e805461268f90613014565b80601f01602080910402602001604051908101604052809291908181526020018280546126bb90613014565b80156127085780601f106126dd57610100808354040283529160200191612708565b820191906000526020600020905b8154815290600101906020018083116126eb57829003601f168201915b5050505050905090565b606060806040510190508060405280825b60011561274557600183039250600a81066030018353600a8104905080612723575b508181036020830392508083525050919050565b60009392505050565b600033905090565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127c38161278e565b81146127ce57600080fd5b50565b6000813590506127e0816127ba565b92915050565b6000602082840312156127fc576127fb612784565b5b600061280a848285016127d1565b91505092915050565b60008115159050919050565b61282881612813565b82525050565b6000602082019050612843600083018461281f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612883578082015181840152602081019050612868565b83811115612892576000848401525b50505050565b6000601f19601f8301169050919050565b60006128b482612849565b6128be8185612854565b93506128ce818560208601612865565b6128d781612898565b840191505092915050565b600060208201905081810360008301526128fc81846128a9565b905092915050565b6000819050919050565b61291781612904565b811461292257600080fd5b50565b6000813590506129348161290e565b92915050565b6000602082840312156129505761294f612784565b5b600061295e84828501612925565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061299282612967565b9050919050565b6129a281612987565b82525050565b60006020820190506129bd6000830184612999565b92915050565b6129cc81612987565b81146129d757600080fd5b50565b6000813590506129e9816129c3565b92915050565b60008060408385031215612a0657612a05612784565b5b6000612a14858286016129da565b9250506020612a2585828601612925565b9150509250929050565b612a3881612904565b82525050565b6000602082019050612a536000830184612a2f565b92915050565b600080600060608486031215612a7257612a71612784565b5b6000612a80868287016129da565b9350506020612a91868287016129da565b9250506040612aa286828701612925565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112612ad157612ad0612aac565b5b8235905067ffffffffffffffff811115612aee57612aed612ab1565b5b602083019150836020820283011115612b0a57612b09612ab6565b5b9250929050565b60008060008060408587031215612b2b57612b2a612784565b5b600085013567ffffffffffffffff811115612b4957612b48612789565b5b612b5587828801612abb565b9450945050602085013567ffffffffffffffff811115612b7857612b77612789565b5b612b8487828801612abb565b925092505092959194509250565b60008083601f840112612ba857612ba7612aac565b5b8235905067ffffffffffffffff811115612bc557612bc4612ab1565b5b602083019150836001820283011115612be157612be0612ab6565b5b9250929050565b60008060208385031215612bff57612bfe612784565b5b600083013567ffffffffffffffff811115612c1d57612c1c612789565b5b612c2985828601612b92565b92509250509250929050565b600060208284031215612c4b57612c4a612784565b5b6000612c59848285016129da565b91505092915050565b60008060408385031215612c7957612c78612784565b5b6000612c8785828601612925565b9250506020612c9885828601612925565b9150509250929050565b612cab81612813565b8114612cb657600080fd5b50565b600081359050612cc881612ca2565b92915050565b60008060408385031215612ce557612ce4612784565b5b6000612cf3858286016129da565b9250506020612d0485828601612cb9565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d4b82612898565b810181811067ffffffffffffffff82111715612d6a57612d69612d13565b5b80604052505050565b6000612d7d61277a565b9050612d898282612d42565b919050565b600067ffffffffffffffff821115612da957612da8612d13565b5b612db282612898565b9050602081019050919050565b82818337600083830152505050565b6000612de1612ddc84612d8e565b612d73565b905082815260208101848484011115612dfd57612dfc612d0e565b5b612e08848285612dbf565b509392505050565b600082601f830112612e2557612e24612aac565b5b8135612e35848260208601612dce565b91505092915050565b60008060008060808587031215612e5857612e57612784565b5b6000612e66878288016129da565b9450506020612e77878288016129da565b9350506040612e8887828801612925565b925050606085013567ffffffffffffffff811115612ea957612ea8612789565b5b612eb587828801612e10565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110612f0157612f00612ec1565b5b50565b6000819050612f1282612ef0565b919050565b6000612f2282612f04565b9050919050565b612f3281612f17565b82525050565b6000602082019050612f4d6000830184612f29565b92915050565b60038110612f6057600080fd5b50565b600081359050612f7281612f53565b92915050565b600060208284031215612f8e57612f8d612784565b5b6000612f9c84828501612f63565b91505092915050565b60008060408385031215612fbc57612fbb612784565b5b6000612fca858286016129da565b9250506020612fdb858286016129da565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061302c57607f821691505b60208210810361303f5761303e612fe5565b5b50919050565b600081905092915050565b50565b6000613060600083613045565b915061306b82613050565b600082019050919050565b600061308182613053565b9150819050919050565b7f4f503a204554485f5452414e534645525f4641494c4544000000000000000000600082015250565b60006130c1601783612854565b91506130cc8261308b565b602082019050919050565b600060208201905081810360008301526130f0816130b4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061316082612904565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361319257613191613126565b5b600182019050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261320a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826131cd565b61321486836131cd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061325161324c61324784612904565b61322c565b612904565b9050919050565b6000819050919050565b61326b83613236565b61327f61327782613258565b8484546131da565b825550505050565b600090565b613294613287565b61329f818484613262565b505050565b5b818110156132c3576132b860008261328c565b6001810190506132a5565b5050565b601f821115613308576132d9816131a8565b6132e2846131bd565b810160208510156132f1578190505b6133056132fd856131bd565b8301826132a4565b50505b505050565b600082821c905092915050565b600061332b6000198460080261330d565b1980831691505092915050565b6000613344838361331a565b9150826002028217905092915050565b61335e838361319d565b67ffffffffffffffff81111561337757613376612d13565b5b6133818254613014565b61338c8282856132c7565b6000601f8311600181146133bb57600084156133a9578287013590505b6133b38582613338565b86555061341b565b601f1984166133c9866131a8565b60005b828110156133f1578489013582556001820191506020850194506020810190506133cc565b8683101561340e578489013561340a601f89168261331a565b8355505b6001600288020188555050505b50505050505050565b7f4f503a20454f415f4f4e4c590000000000000000000000000000000000000000600082015250565b600061345a600c83612854565b915061346582613424565b602082019050919050565b600060208201905081810360008301526134898161344d565b9050919050565b7f4f503a204d494e545f5154595f47545f30000000000000000000000000000000600082015250565b60006134c6601183612854565b91506134d182613490565b602082019050919050565b600060208201905081810360008301526134f5816134b9565b9050919050565b600061350782612904565b915061351283612904565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561354757613546613126565b5b828201905092915050565b7f4f503a204d41585f535550504c595f4558454543454400000000000000000000600082015250565b6000613588601683612854565b915061359382613552565b602082019050919050565b600060208201905081810360008301526135b78161357b565b9050919050565b7f4f503a204d41585f5045525f57414c4c45545f45584545434544000000000000600082015250565b60006135f4601a83612854565b91506135ff826135be565b602082019050919050565b60006020820190508181036000830152613623816135e7565b9050919050565b7f4f503a414c20494e56414c49445f535441474500000000000000000000000000600082015250565b6000613660601383612854565b915061366b8261362a565b602082019050919050565b6000602082019050818103600083015261368f81613653565b9050919050565b7f4f503a414c20554e415554484f52495a45445f43414c4c455200000000000000600082015250565b60006136cc601983612854565b91506136d782613696565b602082019050919050565b600060208201905081810360008301526136fb816136bf565b9050919050565b600061370d82612904565b9150600082036137205761371f613126565b5b600182039050919050565b600061373682612904565b915061374183612904565b92508282101561375457613753613126565b5b828203905092915050565b600061376a82612904565b915061377583612904565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156137ae576137ad613126565b5b828202905092915050565b7f4f503a414c20494e53554646494349454e545f5041594d454e54000000000000600082015250565b60006137ef601a83612854565b91506137fa826137b9565b602082019050919050565b6000602082019050818103600083015261381e816137e2565b9050919050565b7f4f503a5245534552564520494e56414c49445f51545900000000000000000000600082015250565b600061385b601683612854565b915061386682613825565b602082019050919050565b6000602082019050818103600083015261388a8161384e565b9050919050565b7f4f503a50554220494e56414c49445f5354414745000000000000000000000000600082015250565b60006138c7601483612854565b91506138d282613891565b602082019050919050565b600060208201905081810360008301526138f6816138ba565b9050919050565b7f4f503a50554220494e53554646494349454e545f5041594d454e540000000000600082015250565b6000613933601b83612854565b915061393e826138fd565b602082019050919050565b6000602082019050818103600083015261396281613926565b9050919050565b600081905092915050565b600061397f82612849565b6139898185613969565b9350613999818560208601612865565b80840191505092915050565b60006139b18285613974565b91506139bd8284613974565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a25602683612854565b9150613a30826139c9565b604082019050919050565b60006020820190508181036000830152613a5481613a18565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a91602083612854565b9150613a9c82613a5b565b602082019050919050565b60006020820190508181036000830152613ac081613a84565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613aee82613ac7565b613af88185613ad2565b9350613b08818560208601612865565b613b1181612898565b840191505092915050565b6000608082019050613b316000830187612999565b613b3e6020830186612999565b613b4b6040830185612a2f565b8181036060830152613b5d8184613ae3565b905095945050505050565b600081519050613b77816127ba565b92915050565b600060208284031215613b9357613b92612784565b5b6000613ba184828501613b68565b9150509291505056fea2646970667358221220e994bad36956373c433061d667a21cb2576103b8ae3dd3f9d240dd2b7485bc0164736f6c634300080f0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000684781121ee7a976ff63739db8cacda475cffc2f000000000000000000000000102a018ce5d5a4ce0e4da034de3e26f73cb9c866000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f6f70656e7365612e6d7970696e6174612e636c6f75642f697066732f516d646e3973735a6e5569696f417872505a4861696f3942765856687555714e39374539415658505165534d6b532f00000000000000000000000000

-----Decoded View---------------
Arg [0] : admins (address[]): 0x684781121eE7A976ff63739Db8Cacda475Cffc2F,0x102A018Ce5D5a4Ce0E4Da034de3E26F73CB9C866
Arg [1] : _baseTokenURI (string): https://opensea.mypinata.cloud/ipfs/Qmdn9ssZnUiioAxrPZHaio9BvXVhuUqN97E9AVXPQeSMkS/

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 000000000000000000000000684781121ee7a976ff63739db8cacda475cffc2f
Arg [4] : 000000000000000000000000102a018ce5d5a4ce0e4da034de3e26f73cb9c866
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [6] : 68747470733a2f2f6f70656e7365612e6d7970696e6174612e636c6f75642f69
Arg [7] : 7066732f516d646e3973735a6e5569696f417872505a4861696f394276585668
Arg [8] : 7555714e39374539415658505165534d6b532f00000000000000000000000000


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.