ETH Price: $3,392.44 (+1.92%)

Token

KeenVerse Genesis (KeenVerse Genesis)
 

Overview

Max Total Supply

222 KeenVerse Genesis

Holders

150

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
keltiv.eth
Balance
1 KeenVerse Genesis
0xc9eb3e456af6971d7dcb3064a162926bf3697fe3
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:
KeenVerse

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : KeenVerse.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;


/*///////////////////////////////////////////////////////////////////
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
*/////////////////////////////////////////////////////////////////////


import './ERC721A.sol';
import './IERC721A.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

/// @author cry (https://twitter.com/cryethereum)
/// @title KeenVerse.sol
contract KeenVerse is ERC721A, Ownable {
    
    using Strings for uint256;

    /// @notice 50 + 171 + 1 is 222, maxSupply
    /// @param _phases array to be set with respective value of _supply
    /// @dev Maps the _phases current index to the same _supply index, resulting in phase:supply association
    /// @dev Mints first token ID (0) to admin, this is the reserved token for keeny.
    /// @dev Sets current phase to first value in array
    
    constructor(uint8[] memory _phases, uint256[] memory _supply, uint64 _maxSupply, string memory _setbaseURI) ERC721A("KeenVerse Genesis", "KeenVerse Genesis"){
        
        setPhaseInformation(_phases, _supply);
        setPhase(_phases[0]);

        _mint(msg.sender, 1);

        maxSupply = _maxSupply;
        URI_BASE = _setbaseURI;
    }

    ////////////////////////////
    // Type: Variables & Misc //
    ////////////////////////////


    mapping (address => uint8) public authorizationList;
    mapping (uint8 => uint256) public phaseSupply;


    /// vars stacked into one slot
    uint64 public maxSupply;
    uint64 public maxPerWallet = 1;
    uint8 public mintPhase;
    
    bool public keenverseEnabled = false;

    string public URI_BASE;

    address public KeenLand;

    error keenverseClosed();
    error maxTotalKeeny();
    error maxPhaseKeeny();
    error notKeenlist();
    error cryAIO();
    error nonExistentTokenID();



    //////////////////////////////////////////////////
    // Type: Utility // Auth: Admin //
    //////////////////////////////////////////////////

    /// @dev Flipsale function inverts boolean value of keenverseEnabled
    function enableKeenverse() 
        public 
        onlyOwner 
    {
        keenverseEnabled = !keenverseEnabled;
    }

    modifier keenyVerseAvailable() {
        if (!keenverseEnabled) revert keenverseClosed();
        _;
    }

    ///////////////////////////////////////////
    // Type: Minting // Auth: Fnf, Whitelist //
    ///////////////////////////////////////////

    /// @dev Mint function, hardcoded 1 per, maxPhaseSupply, Authorization, and tx.origin checks.
    /// @notice Only public function used to execute the mint.
    function enterKeenverse() 
        public 
        keenyVerseAvailable() 
    {
        
        if (totalSupply() >= maxSupply) revert maxTotalKeeny();
        if (phaseSupply[mintPhase] == 0) revert maxPhaseKeeny();
        if (authorizationList[msg.sender] != mintPhase) revert notKeenlist();
        if (tx.origin != msg.sender) revert cryAIO();
        
        _mint(msg.sender, 1);

        /// @dev reset auth list to 0, not able to remint
        /// @dev decrement phaseSupply
        authorizationList[msg.sender] = 0;
        --phaseSupply[mintPhase];
    }
    
    //////////////////////////////
    // Type: URI // Auth: Admin //
    //////////////////////////////
    
    function setURI(string memory _URI_BASE)
        external 
        onlyOwner 
    {
        URI_BASE = _URI_BASE;
    }


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

    function tokenURI(uint256 _tokenID) 
        public 
        view 
        override 
        returns 
    (string memory) {
        if (!_exists(_tokenID)) revert nonExistentTokenID();
        return string(abi.encodePacked(_baseURI(), _tokenID.toString(), ".json"));
    }


    //////////////////////////////////////
    // Type: Mint Auth // Auth: Admin //
    //////////////////////////////////////


    /// @notice Addresses can be set according to phase 1 (FnF), or phase 2 (Whitelist), or removed setting phase to 0; 
    /// @param _authAddresses feed address to respective phase
    function setPhaseAuthList(address[] memory _authAddresses, uint8 _phase) 
        public 
        onlyOwner 
    {
        for (uint256 i = 0; i < _authAddresses.length;) {
            authorizationList[_authAddresses[i]] = _phase;
            unchecked { ++i; }
        }
    }

    function setPhaseInformation(uint8[] memory _phases, uint256[] memory _supply) 
        public 
        onlyOwner 
    {
        require(_phases.length == _supply.length, "@dev: incorrect length");
        for (uint256 i = 0; i < _phases.length;) {
            phaseSupply[_phases[i]] = _supply[i];
            unchecked { ++i; }
        }
    }

    /// @notice Phase set using a uint, 1 for FnF, 2 for Public
    function setPhase(uint8 _phase) 
        public 
        onlyOwner 
    {
        mintPhase = _phase;
    }


    //////////////////////////////////////
    // Type: Aux Admin // Auth: Admin //
    //////////////////////////////////////

    function devMint(uint256 _quantity) 
        public 
        onlyOwner 
    {
        if (totalSupply() + _quantity > maxSupply) revert maxTotalKeeny();
        _mint(msg.sender, _quantity);
    }

    function withdrawFunds() 
        external 
        onlyOwner 
    {
        uint256 _value = address(this).balance;
        address _to = msg.sender;
        (bool success, ) = _to.call{value: _value}("");
        require(success, "Call Failed");
    }

    ////////////////////////////////////
    // Type: KeenVerse // Auth: Admin //
    ////////////////////////////////////

    function setKeenLand(address _keenLand) public onlyOwner {
        KeenLand = _keenLand;
    }

}

File 2 of 6 : 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 3 of 6 : 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 4 of 6 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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();

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

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

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

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

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

File 5 of 6 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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 {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    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 payable 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 {
        _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].value`.
        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 payable 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 payable 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 payable 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.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            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`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                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 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // 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 6 of 6 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint8[]","name":"_phases","type":"uint8[]"},{"internalType":"uint256[]","name":"_supply","type":"uint256[]"},{"internalType":"uint64","name":"_maxSupply","type":"uint64"},{"internalType":"string","name":"_setbaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","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"},{"inputs":[],"name":"cryAIO","type":"error"},{"inputs":[],"name":"keenverseClosed","type":"error"},{"inputs":[],"name":"maxPhaseKeeny","type":"error"},{"inputs":[],"name":"maxTotalKeeny","type":"error"},{"inputs":[],"name":"nonExistentTokenID","type":"error"},{"inputs":[],"name":"notKeenlist","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":"KeenLand","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"URI_BASE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorizationList","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableKeenverse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enterKeenverse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"keenverseEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"phaseSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keenLand","type":"address"}],"name":"setKeenLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_phase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_authAddresses","type":"address[]"},{"internalType":"uint8","name":"_phase","type":"uint8"}],"name":"setPhaseAuthList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"_phases","type":"uint8[]"},{"internalType":"uint256[]","name":"_supply","type":"uint256[]"}],"name":"setPhaseInformation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI_BASE","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600b60086101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600b60116101000a81548160ff0219169083151502179055503480156200005657600080fd5b50604051620045583803806200455883398181016040528101906200007c919062000acf565b6040518060400160405280601181526020017f4b65656e56657273652047656e657369730000000000000000000000000000008152506040518060400160405280601181526020017f4b65656e56657273652047656e657369730000000000000000000000000000008152508160029081620000f9919062000ddf565b5080600390816200010b919062000ddf565b506200011c620001dd60201b60201c565b60008190555050506200014462000138620001e260201b60201c565b620001ea60201b60201c565b620001568484620002b060201b60201c565b620001858460008151811062000171576200017062000ec6565b5b60200260200101516200037d60201b60201c565b62000198336001620003ab60201b60201c565b81600b60006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600c9081620001d2919062000ddf565b505050505062000fea565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002c06200059260201b60201c565b805182511462000307576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002fe9062000f56565b60405180910390fd5b60005b825181101562000378578181815181106200032a576200032962000ec6565b5b6020026020010151600a60008584815181106200034c576200034b62000ec6565b5b602002602001015160ff1660ff168152602001908152602001600020819055508060010190506200030a565b505050565b6200038d6200059260201b60201c565b80600b60106101000a81548160ff021916908360ff16021790555050565b60008054905060008203620003ec576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200040160008483856200062360201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555062000490836200047260008660006200062960201b60201c565b62000483856200065960201b60201c565b176200066960201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200053357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620004f6565b50600082036200056f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506200058d60008483856200069460201b60201c565b505050565b620005a2620001e260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620005c86200069a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000621576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006189062000fc8565b60405180910390fd5b565b50505050565b60008060e883901c905060e862000648868684620006c460201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60009392505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200073182620006e6565b810181811067ffffffffffffffff82111715620007535762000752620006f7565b5b80604052505050565b600062000768620006cd565b905062000776828262000726565b919050565b600067ffffffffffffffff821115620007995762000798620006f7565b5b602082029050602081019050919050565b600080fd5b600060ff82169050919050565b620007c781620007af565b8114620007d357600080fd5b50565b600081519050620007e781620007bc565b92915050565b600062000804620007fe846200077b565b6200075c565b905080838252602082019050602084028301858111156200082a5762000829620007aa565b5b835b81811015620008575780620008428882620007d6565b8452602084019350506020810190506200082c565b5050509392505050565b600082601f830112620008795762000878620006e1565b5b81516200088b848260208601620007ed565b91505092915050565b600067ffffffffffffffff821115620008b257620008b1620006f7565b5b602082029050602081019050919050565b6000819050919050565b620008d881620008c3565b8114620008e457600080fd5b50565b600081519050620008f881620008cd565b92915050565b6000620009156200090f8462000894565b6200075c565b905080838252602082019050602084028301858111156200093b576200093a620007aa565b5b835b81811015620009685780620009538882620008e7565b8452602084019350506020810190506200093d565b5050509392505050565b600082601f8301126200098a5762000989620006e1565b5b81516200099c848260208601620008fe565b91505092915050565b600067ffffffffffffffff82169050919050565b620009c481620009a5565b8114620009d057600080fd5b50565b600081519050620009e481620009b9565b92915050565b600080fd5b600067ffffffffffffffff82111562000a0d5762000a0c620006f7565b5b62000a1882620006e6565b9050602081019050919050565b60005b8381101562000a4557808201518184015260208101905062000a28565b60008484015250505050565b600062000a6862000a6284620009ef565b6200075c565b90508281526020810184848401111562000a875762000a86620009ea565b5b62000a9484828562000a25565b509392505050565b600082601f83011262000ab45762000ab3620006e1565b5b815162000ac684826020860162000a51565b91505092915050565b6000806000806080858703121562000aec5762000aeb620006d7565b5b600085015167ffffffffffffffff81111562000b0d5762000b0c620006dc565b5b62000b1b8782880162000861565b945050602085015167ffffffffffffffff81111562000b3f5762000b3e620006dc565b5b62000b4d8782880162000972565b935050604062000b6087828801620009d3565b925050606085015167ffffffffffffffff81111562000b845762000b83620006dc565b5b62000b928782880162000a9c565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000bf157607f821691505b60208210810362000c075762000c0662000ba9565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000c717fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000c32565b62000c7d868362000c32565b95508019841693508086168417925050509392505050565b6000819050919050565b600062000cc062000cba62000cb484620008c3565b62000c95565b620008c3565b9050919050565b6000819050919050565b62000cdc8362000c9f565b62000cf462000ceb8262000cc7565b84845462000c3f565b825550505050565b600090565b62000d0b62000cfc565b62000d1881848462000cd1565b505050565b5b8181101562000d405762000d3460008262000d01565b60018101905062000d1e565b5050565b601f82111562000d8f5762000d598162000c0d565b62000d648462000c22565b8101602085101562000d74578190505b62000d8c62000d838562000c22565b83018262000d1d565b50505b505050565b600082821c905092915050565b600062000db46000198460080262000d94565b1980831691505092915050565b600062000dcf838362000da1565b9150826002028217905092915050565b62000dea8262000b9e565b67ffffffffffffffff81111562000e065762000e05620006f7565b5b62000e12825462000bd8565b62000e1f82828562000d44565b600060209050601f83116001811462000e57576000841562000e42578287015190505b62000e4e858262000dc1565b86555062000ebe565b601f19841662000e678662000c0d565b60005b8281101562000e915784890151825560018201915060208501945060208101905062000e6a565b8683101562000eb1578489015162000ead601f89168262000da1565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f406465763a20696e636f7272656374206c656e67746800000000000000000000600082015250565b600062000f3e60168362000ef5565b915062000f4b8262000f06565b602082019050919050565b6000602082019050818103600083015262000f718162000f2f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000fb060208362000ef5565b915062000fbd8262000f78565b602082019050919050565b6000602082019050818103600083015262000fe38162000fa1565b9050919050565b61355e8062000ffa6000396000f3fe6080604052600436106101f95760003560e01c80636c5a3b5e1161010d578063bd273b94116100a0578063d26c35e91161006f578063d26c35e9146106d7578063d5abeb0114610700578063e985e9c51461072b578063f2fde38b14610768578063ffb5478d14610791576101f9565b8063bd273b941461061d578063c03afb5914610646578063c87b56dd1461066f578063ccc2a3ee146106ac576101f9565b80638da5cb5b116100dc5780638da5cb5b1461058257806395d89b41146105ad578063a22cb465146105d8578063b88d4fde14610601576101f9565b80636c5a3b5e146104c657806370a08231146104f1578063715018a61461052e578063882afc4614610545576101f9565b806323b872dd11610190578063453c23101161015f578063453c2310146103f357806349f1b90d1461041e5780635b140e0b14610447578063634f82261461045e5780636352211e14610489576101f9565b806323b872dd1461037b57806324600fc314610397578063375a069a146103ae57806342842e0e146103d7576101f9565b8063095ea7b3116101cc578063095ea7b3146102cc5780631628d07f146102e857806317881cbf1461032557806318160ddd14610350576101f9565b806301ffc9a7146101fe57806302fe53051461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b50610225600480360381019061022091906122a4565b6107a8565b60405161023291906122ec565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d919061244d565b61083a565b005b34801561027057600080fd5b50610279610855565b6040516102869190612515565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b1919061256d565b6108e7565b6040516102c391906125db565b60405180910390f35b6102e660048036038101906102e19190612622565b610966565b005b3480156102f457600080fd5b5061030f600480360381019061030a919061269b565b610aaa565b60405161031c91906126d7565b60405180910390f35b34801561033157600080fd5b5061033a610ac2565b6040516103479190612701565b60405180910390f35b34801561035c57600080fd5b50610365610ad5565b60405161037291906126d7565b60405180910390f35b6103956004803603810190610390919061271c565b610aec565b005b3480156103a357600080fd5b506103ac610e0e565b005b3480156103ba57600080fd5b506103d560048036038101906103d0919061256d565b610ed1565b005b6103f160048036038101906103ec919061271c565b610f52565b005b3480156103ff57600080fd5b50610408610f72565b6040516104159190612792565b60405180910390f35b34801561042a57600080fd5b5061044560048036038101906104409190612938565b610f8c565b005b34801561045357600080fd5b5061045c611046565b005b34801561046a57600080fd5b506104736112ef565b60405161048091906122ec565b60405180910390f35b34801561049557600080fd5b506104b060048036038101906104ab919061256d565b611302565b6040516104bd91906125db565b60405180910390f35b3480156104d257600080fd5b506104db611314565b6040516104e891906125db565b60405180910390f35b3480156104fd57600080fd5b50610518600480360381019061051391906129b0565b61133a565b60405161052591906126d7565b60405180910390f35b34801561053a57600080fd5b506105436113f2565b005b34801561055157600080fd5b5061056c600480360381019061056791906129b0565b611406565b6040516105799190612701565b60405180910390f35b34801561058e57600080fd5b50610597611426565b6040516105a491906125db565b60405180910390f35b3480156105b957600080fd5b506105c2611450565b6040516105cf9190612515565b60405180910390f35b3480156105e457600080fd5b506105ff60048036038101906105fa9190612a09565b6114e2565b005b61061b60048036038101906106169190612aea565b6115ed565b005b34801561062957600080fd5b50610644600480360381019061063f9190612c30565b611660565b005b34801561065257600080fd5b5061066d6004803603810190610668919061269b565b6116f6565b005b34801561067b57600080fd5b506106966004803603810190610691919061256d565b61171c565b6040516106a39190612515565b60405180910390f35b3480156106b857600080fd5b506106c1611795565b6040516106ce9190612515565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f991906129b0565b611823565b005b34801561070c57600080fd5b5061071561186f565b6040516107229190612792565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190612c8c565b611889565b60405161075f91906122ec565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a91906129b0565b61191d565b005b34801561079d57600080fd5b506107a66119a0565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061080357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108335750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108426119d4565b80600c90816108519190612ed8565b5050565b60606002805461086490612cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461089090612cfb565b80156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b5050505050905090565b60006108f282611a52565b610928576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097182611302565b90508073ffffffffffffffffffffffffffffffffffffffff16610992611ab1565b73ffffffffffffffffffffffffffffffffffffffff16146109f5576109be816109b9611ab1565b611889565b6109f4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528060005260406000206000915090505481565b600b60109054906101000a900460ff1681565b6000610adf611ab9565b6001546000540303905090565b6000610af782611abe565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b5e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b6a84611b8a565b91509150610b808187610b7b611ab1565b611bb1565b610bcc57610b9586610b90611ab1565b611889565b610bcb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c32576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c3f8686866001611bf5565b8015610c4a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d1885610cf4888887611bfb565b7c020000000000000000000000000000000000000000000000000000000017611c23565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d9e5760006001850190506000600460008381526020019081526020016000205403610d9c576000548114610d9b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e068686866001611c4e565b505050505050565b610e166119d4565b6000479050600033905060008173ffffffffffffffffffffffffffffffffffffffff1683604051610e4690612fdb565b60006040518083038185875af1925050503d8060008114610e83576040519150601f19603f3d011682016040523d82523d6000602084013e610e88565b606091505b5050905080610ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec39061303c565b60405180910390fd5b505050565b610ed96119d4565b600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff1681610f03610ad5565b610f0d919061308b565b1115610f45576040517f4cd9a9e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f4f3382611c54565b50565b610f6d838383604051806020016040528060008152506115ed565b505050565b600b60089054906101000a900467ffffffffffffffff1681565b610f946119d4565b8051825114610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf9061310b565b60405180910390fd5b60005b825181101561104157818181518110610ff757610ff661312b565b5b6020026020010151600a60008584815181106110165761101561312b565b5b602002602001015160ff1660ff16815260200190815260200160002081905550806001019050610fdb565b505050565b600b60119054906101000a900460ff1661108c576040517f31f2132500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff166110b5610ad5565b106110ec576040517f4cd9a9e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600a6000600b60109054906101000a900460ff1660ff1660ff168152602001908152602001600020540361114e576040517f0fb2645f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60109054906101000a900460ff1660ff16600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16146111e8576040517fbc1c76e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461124d576040517f625eb48400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611258336001611c54565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff160217905550600a6000600b60109054906101000a900460ff1660ff1660ff168152602001908152602001600020600081546112e69061315a565b91905081905550565b600b60119054906101000a900460ff1681565b600061130d82611abe565b9050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113a1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113fa6119d4565b6114046000611e0f565b565b60096020528060005260406000206000915054906101000a900460ff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461145f90612cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461148b90612cfb565b80156114d85780601f106114ad576101008083540402835291602001916114d8565b820191906000526020600020905b8154815290600101906020018083116114bb57829003601f168201915b5050505050905090565b80600760006114ef611ab1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661159c611ab1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115e191906122ec565b60405180910390a35050565b6115f8848484610aec565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461165a5761162384848484611ed5565b611659576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6116686119d4565b60005b82518110156116f157816009600085848151811061168c5761168b61312b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080600101905061166b565b505050565b6116fe6119d4565b80600b60106101000a81548160ff021916908360ff16021790555050565b606061172782611a52565b61175d576040517f01f53d4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611765612025565b61176e836120b7565b60405160200161177f92919061320b565b6040516020818303038152906040529050919050565b600c80546117a290612cfb565b80601f01602080910402602001604051908101604052809291908181526020018280546117ce90612cfb565b801561181b5780601f106117f05761010080835404028352916020019161181b565b820191906000526020600020905b8154815290600101906020018083116117fe57829003601f168201915b505050505081565b61182b6119d4565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60009054906101000a900467ffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119256119d4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198b906132ac565b60405180910390fd5b61199d81611e0f565b50565b6119a86119d4565b600b60119054906101000a900460ff1615600b60116101000a81548160ff021916908315150217905550565b6119dc612217565b73ffffffffffffffffffffffffffffffffffffffff166119fa611426565b73ffffffffffffffffffffffffffffffffffffffff1614611a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4790613318565b60405180910390fd5b565b600081611a5d611ab9565b11158015611a6c575060005482105b8015611aaa575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611acd611ab9565b11611b5357600054811015611b525760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611b50575b60008103611b46576004600083600190039350838152602001908152602001600020549050611b1c565b8092505050611b85565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c1286868461221f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008054905060008203611c94576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ca16000848385611bf5565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611d1883611d096000866000611bfb565b611d1285612228565b17611c23565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611db957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611d7e565b5060008203611df4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611e0a6000848385611c4e565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611efb611ab1565b8786866040518563ffffffff1660e01b8152600401611f1d949392919061338d565b6020604051808303816000875af1925050508015611f5957506040513d601f19601f82011682018060405250810190611f5691906133ee565b60015b611fd2573d8060008114611f89576040519150601f19603f3d011682016040523d82523d6000602084013e611f8e565b606091505b506000815103611fca576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c805461203490612cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461206090612cfb565b80156120ad5780601f10612082576101008083540402835291602001916120ad565b820191906000526020600020905b81548152906001019060200180831161209057829003601f168201915b5050505050905090565b6060600082036120fe576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612212565b600082905060005b600082146121305780806121199061341b565b915050600a826121299190613492565b9150612106565b60008167ffffffffffffffff81111561214c5761214b612322565b5b6040519080825280601f01601f19166020018201604052801561217e5781602001600182028036833780820191505090505b5090505b6000851461220b5760018261219791906134c3565b9150600a856121a691906134f7565b60306121b2919061308b565b60f81b8183815181106121c8576121c761312b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122049190613492565b9450612182565b8093505050505b919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6122818161224c565b811461228c57600080fd5b50565b60008135905061229e81612278565b92915050565b6000602082840312156122ba576122b9612242565b5b60006122c88482850161228f565b91505092915050565b60008115159050919050565b6122e6816122d1565b82525050565b600060208201905061230160008301846122dd565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61235a82612311565b810181811067ffffffffffffffff8211171561237957612378612322565b5b80604052505050565b600061238c612238565b90506123988282612351565b919050565b600067ffffffffffffffff8211156123b8576123b7612322565b5b6123c182612311565b9050602081019050919050565b82818337600083830152505050565b60006123f06123eb8461239d565b612382565b90508281526020810184848401111561240c5761240b61230c565b5b6124178482856123ce565b509392505050565b600082601f83011261243457612433612307565b5b81356124448482602086016123dd565b91505092915050565b60006020828403121561246357612462612242565b5b600082013567ffffffffffffffff81111561248157612480612247565b5b61248d8482850161241f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124d05780820151818401526020810190506124b5565b60008484015250505050565b60006124e782612496565b6124f181856124a1565b93506125018185602086016124b2565b61250a81612311565b840191505092915050565b6000602082019050818103600083015261252f81846124dc565b905092915050565b6000819050919050565b61254a81612537565b811461255557600080fd5b50565b60008135905061256781612541565b92915050565b60006020828403121561258357612582612242565b5b600061259184828501612558565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125c58261259a565b9050919050565b6125d5816125ba565b82525050565b60006020820190506125f060008301846125cc565b92915050565b6125ff816125ba565b811461260a57600080fd5b50565b60008135905061261c816125f6565b92915050565b6000806040838503121561263957612638612242565b5b60006126478582860161260d565b925050602061265885828601612558565b9150509250929050565b600060ff82169050919050565b61267881612662565b811461268357600080fd5b50565b6000813590506126958161266f565b92915050565b6000602082840312156126b1576126b0612242565b5b60006126bf84828501612686565b91505092915050565b6126d181612537565b82525050565b60006020820190506126ec60008301846126c8565b92915050565b6126fb81612662565b82525050565b600060208201905061271660008301846126f2565b92915050565b60008060006060848603121561273557612734612242565b5b60006127438682870161260d565b93505060206127548682870161260d565b925050604061276586828701612558565b9150509250925092565b600067ffffffffffffffff82169050919050565b61278c8161276f565b82525050565b60006020820190506127a76000830184612783565b92915050565b600067ffffffffffffffff8211156127c8576127c7612322565b5b602082029050602081019050919050565b600080fd5b60006127f16127ec846127ad565b612382565b90508083825260208201905060208402830185811115612814576128136127d9565b5b835b8181101561283d57806128298882612686565b845260208401935050602081019050612816565b5050509392505050565b600082601f83011261285c5761285b612307565b5b813561286c8482602086016127de565b91505092915050565b600067ffffffffffffffff8211156128905761288f612322565b5b602082029050602081019050919050565b60006128b46128af84612875565b612382565b905080838252602082019050602084028301858111156128d7576128d66127d9565b5b835b8181101561290057806128ec8882612558565b8452602084019350506020810190506128d9565b5050509392505050565b600082601f83011261291f5761291e612307565b5b813561292f8482602086016128a1565b91505092915050565b6000806040838503121561294f5761294e612242565b5b600083013567ffffffffffffffff81111561296d5761296c612247565b5b61297985828601612847565b925050602083013567ffffffffffffffff81111561299a57612999612247565b5b6129a68582860161290a565b9150509250929050565b6000602082840312156129c6576129c5612242565b5b60006129d48482850161260d565b91505092915050565b6129e6816122d1565b81146129f157600080fd5b50565b600081359050612a03816129dd565b92915050565b60008060408385031215612a2057612a1f612242565b5b6000612a2e8582860161260d565b9250506020612a3f858286016129f4565b9150509250929050565b600067ffffffffffffffff821115612a6457612a63612322565b5b612a6d82612311565b9050602081019050919050565b6000612a8d612a8884612a49565b612382565b905082815260208101848484011115612aa957612aa861230c565b5b612ab48482856123ce565b509392505050565b600082601f830112612ad157612ad0612307565b5b8135612ae1848260208601612a7a565b91505092915050565b60008060008060808587031215612b0457612b03612242565b5b6000612b128782880161260d565b9450506020612b238782880161260d565b9350506040612b3487828801612558565b925050606085013567ffffffffffffffff811115612b5557612b54612247565b5b612b6187828801612abc565b91505092959194509250565b600067ffffffffffffffff821115612b8857612b87612322565b5b602082029050602081019050919050565b6000612bac612ba784612b6d565b612382565b90508083825260208201905060208402830185811115612bcf57612bce6127d9565b5b835b81811015612bf85780612be4888261260d565b845260208401935050602081019050612bd1565b5050509392505050565b600082601f830112612c1757612c16612307565b5b8135612c27848260208601612b99565b91505092915050565b60008060408385031215612c4757612c46612242565b5b600083013567ffffffffffffffff811115612c6557612c64612247565b5b612c7185828601612c02565b9250506020612c8285828601612686565b9150509250929050565b60008060408385031215612ca357612ca2612242565b5b6000612cb18582860161260d565b9250506020612cc28582860161260d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612d1357607f821691505b602082108103612d2657612d25612ccc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612d8e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612d51565b612d988683612d51565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612dd5612dd0612dcb84612537565b612db0565b612537565b9050919050565b6000819050919050565b612def83612dba565b612e03612dfb82612ddc565b848454612d5e565b825550505050565b600090565b612e18612e0b565b612e23818484612de6565b505050565b5b81811015612e4757612e3c600082612e10565b600181019050612e29565b5050565b601f821115612e8c57612e5d81612d2c565b612e6684612d41565b81016020851015612e75578190505b612e89612e8185612d41565b830182612e28565b50505b505050565b600082821c905092915050565b6000612eaf60001984600802612e91565b1980831691505092915050565b6000612ec88383612e9e565b9150826002028217905092915050565b612ee182612496565b67ffffffffffffffff811115612efa57612ef9612322565b5b612f048254612cfb565b612f0f828285612e4b565b600060209050601f831160018114612f425760008415612f30578287015190505b612f3a8582612ebc565b865550612fa2565b601f198416612f5086612d2c565b60005b82811015612f7857848901518255600182019150602085019450602081019050612f53565b86831015612f955784890151612f91601f891682612e9e565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b6000612fc5600083612faa565b9150612fd082612fb5565b600082019050919050565b6000612fe682612fb8565b9150819050919050565b7f43616c6c204661696c6564000000000000000000000000000000000000000000600082015250565b6000613026600b836124a1565b915061303182612ff0565b602082019050919050565b6000602082019050818103600083015261305581613019565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061309682612537565b91506130a183612537565b92508282019050808211156130b9576130b861305c565b5b92915050565b7f406465763a20696e636f7272656374206c656e67746800000000000000000000600082015250565b60006130f56016836124a1565b9150613100826130bf565b602082019050919050565b60006020820190508181036000830152613124816130e8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061316582612537565b9150600082036131785761317761305c565b5b600182039050919050565b600081905092915050565b600061319982612496565b6131a38185613183565b93506131b38185602086016124b2565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006131f5600583613183565b9150613200826131bf565b600582019050919050565b6000613217828561318e565b9150613223828461318e565b915061322e826131e8565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006132966026836124a1565b91506132a18261323a565b604082019050919050565b600060208201905081810360008301526132c581613289565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133026020836124a1565b915061330d826132cc565b602082019050919050565b60006020820190508181036000830152613331816132f5565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061335f82613338565b6133698185613343565b93506133798185602086016124b2565b61338281612311565b840191505092915050565b60006080820190506133a260008301876125cc565b6133af60208301866125cc565b6133bc60408301856126c8565b81810360608301526133ce8184613354565b905095945050505050565b6000815190506133e881612278565b92915050565b60006020828403121561340457613403612242565b5b6000613412848285016133d9565b91505092915050565b600061342682612537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134585761345761305c565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061349d82612537565b91506134a883612537565b9250826134b8576134b7613463565b5b828204905092915050565b60006134ce82612537565b91506134d983612537565b92508282039050818111156134f1576134f061305c565b5b92915050565b600061350282612537565b915061350d83612537565b92508261351d5761351c613463565b5b82820690509291505056fea2646970667358221220c4df6346284a3dc6ed77b128a43cf60da9adbb21f0a74fefe478b0e98dfead8864736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000ab0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696776343765627a70647061636574736a7569616a64736b666b66626c746f7578786675777a6d6e77637970366c356e32637579652f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80636c5a3b5e1161010d578063bd273b94116100a0578063d26c35e91161006f578063d26c35e9146106d7578063d5abeb0114610700578063e985e9c51461072b578063f2fde38b14610768578063ffb5478d14610791576101f9565b8063bd273b941461061d578063c03afb5914610646578063c87b56dd1461066f578063ccc2a3ee146106ac576101f9565b80638da5cb5b116100dc5780638da5cb5b1461058257806395d89b41146105ad578063a22cb465146105d8578063b88d4fde14610601576101f9565b80636c5a3b5e146104c657806370a08231146104f1578063715018a61461052e578063882afc4614610545576101f9565b806323b872dd11610190578063453c23101161015f578063453c2310146103f357806349f1b90d1461041e5780635b140e0b14610447578063634f82261461045e5780636352211e14610489576101f9565b806323b872dd1461037b57806324600fc314610397578063375a069a146103ae57806342842e0e146103d7576101f9565b8063095ea7b3116101cc578063095ea7b3146102cc5780631628d07f146102e857806317881cbf1461032557806318160ddd14610350576101f9565b806301ffc9a7146101fe57806302fe53051461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b50610225600480360381019061022091906122a4565b6107a8565b60405161023291906122ec565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d919061244d565b61083a565b005b34801561027057600080fd5b50610279610855565b6040516102869190612515565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b1919061256d565b6108e7565b6040516102c391906125db565b60405180910390f35b6102e660048036038101906102e19190612622565b610966565b005b3480156102f457600080fd5b5061030f600480360381019061030a919061269b565b610aaa565b60405161031c91906126d7565b60405180910390f35b34801561033157600080fd5b5061033a610ac2565b6040516103479190612701565b60405180910390f35b34801561035c57600080fd5b50610365610ad5565b60405161037291906126d7565b60405180910390f35b6103956004803603810190610390919061271c565b610aec565b005b3480156103a357600080fd5b506103ac610e0e565b005b3480156103ba57600080fd5b506103d560048036038101906103d0919061256d565b610ed1565b005b6103f160048036038101906103ec919061271c565b610f52565b005b3480156103ff57600080fd5b50610408610f72565b6040516104159190612792565b60405180910390f35b34801561042a57600080fd5b5061044560048036038101906104409190612938565b610f8c565b005b34801561045357600080fd5b5061045c611046565b005b34801561046a57600080fd5b506104736112ef565b60405161048091906122ec565b60405180910390f35b34801561049557600080fd5b506104b060048036038101906104ab919061256d565b611302565b6040516104bd91906125db565b60405180910390f35b3480156104d257600080fd5b506104db611314565b6040516104e891906125db565b60405180910390f35b3480156104fd57600080fd5b50610518600480360381019061051391906129b0565b61133a565b60405161052591906126d7565b60405180910390f35b34801561053a57600080fd5b506105436113f2565b005b34801561055157600080fd5b5061056c600480360381019061056791906129b0565b611406565b6040516105799190612701565b60405180910390f35b34801561058e57600080fd5b50610597611426565b6040516105a491906125db565b60405180910390f35b3480156105b957600080fd5b506105c2611450565b6040516105cf9190612515565b60405180910390f35b3480156105e457600080fd5b506105ff60048036038101906105fa9190612a09565b6114e2565b005b61061b60048036038101906106169190612aea565b6115ed565b005b34801561062957600080fd5b50610644600480360381019061063f9190612c30565b611660565b005b34801561065257600080fd5b5061066d6004803603810190610668919061269b565b6116f6565b005b34801561067b57600080fd5b506106966004803603810190610691919061256d565b61171c565b6040516106a39190612515565b60405180910390f35b3480156106b857600080fd5b506106c1611795565b6040516106ce9190612515565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f991906129b0565b611823565b005b34801561070c57600080fd5b5061071561186f565b6040516107229190612792565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190612c8c565b611889565b60405161075f91906122ec565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a91906129b0565b61191d565b005b34801561079d57600080fd5b506107a66119a0565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061080357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108335750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108426119d4565b80600c90816108519190612ed8565b5050565b60606002805461086490612cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461089090612cfb565b80156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b5050505050905090565b60006108f282611a52565b610928576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097182611302565b90508073ffffffffffffffffffffffffffffffffffffffff16610992611ab1565b73ffffffffffffffffffffffffffffffffffffffff16146109f5576109be816109b9611ab1565b611889565b6109f4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528060005260406000206000915090505481565b600b60109054906101000a900460ff1681565b6000610adf611ab9565b6001546000540303905090565b6000610af782611abe565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b5e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b6a84611b8a565b91509150610b808187610b7b611ab1565b611bb1565b610bcc57610b9586610b90611ab1565b611889565b610bcb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c32576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c3f8686866001611bf5565b8015610c4a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d1885610cf4888887611bfb565b7c020000000000000000000000000000000000000000000000000000000017611c23565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d9e5760006001850190506000600460008381526020019081526020016000205403610d9c576000548114610d9b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e068686866001611c4e565b505050505050565b610e166119d4565b6000479050600033905060008173ffffffffffffffffffffffffffffffffffffffff1683604051610e4690612fdb565b60006040518083038185875af1925050503d8060008114610e83576040519150601f19603f3d011682016040523d82523d6000602084013e610e88565b606091505b5050905080610ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec39061303c565b60405180910390fd5b505050565b610ed96119d4565b600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff1681610f03610ad5565b610f0d919061308b565b1115610f45576040517f4cd9a9e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f4f3382611c54565b50565b610f6d838383604051806020016040528060008152506115ed565b505050565b600b60089054906101000a900467ffffffffffffffff1681565b610f946119d4565b8051825114610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf9061310b565b60405180910390fd5b60005b825181101561104157818181518110610ff757610ff661312b565b5b6020026020010151600a60008584815181106110165761101561312b565b5b602002602001015160ff1660ff16815260200190815260200160002081905550806001019050610fdb565b505050565b600b60119054906101000a900460ff1661108c576040517f31f2132500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60009054906101000a900467ffffffffffffffff1667ffffffffffffffff166110b5610ad5565b106110ec576040517f4cd9a9e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600a6000600b60109054906101000a900460ff1660ff1660ff168152602001908152602001600020540361114e576040517f0fb2645f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60109054906101000a900460ff1660ff16600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16146111e8576040517fbc1c76e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461124d576040517f625eb48400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611258336001611c54565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff160217905550600a6000600b60109054906101000a900460ff1660ff1660ff168152602001908152602001600020600081546112e69061315a565b91905081905550565b600b60119054906101000a900460ff1681565b600061130d82611abe565b9050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113a1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113fa6119d4565b6114046000611e0f565b565b60096020528060005260406000206000915054906101000a900460ff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461145f90612cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461148b90612cfb565b80156114d85780601f106114ad576101008083540402835291602001916114d8565b820191906000526020600020905b8154815290600101906020018083116114bb57829003601f168201915b5050505050905090565b80600760006114ef611ab1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661159c611ab1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115e191906122ec565b60405180910390a35050565b6115f8848484610aec565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461165a5761162384848484611ed5565b611659576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6116686119d4565b60005b82518110156116f157816009600085848151811061168c5761168b61312b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080600101905061166b565b505050565b6116fe6119d4565b80600b60106101000a81548160ff021916908360ff16021790555050565b606061172782611a52565b61175d576040517f01f53d4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611765612025565b61176e836120b7565b60405160200161177f92919061320b565b6040516020818303038152906040529050919050565b600c80546117a290612cfb565b80601f01602080910402602001604051908101604052809291908181526020018280546117ce90612cfb565b801561181b5780601f106117f05761010080835404028352916020019161181b565b820191906000526020600020905b8154815290600101906020018083116117fe57829003601f168201915b505050505081565b61182b6119d4565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60009054906101000a900467ffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119256119d4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198b906132ac565b60405180910390fd5b61199d81611e0f565b50565b6119a86119d4565b600b60119054906101000a900460ff1615600b60116101000a81548160ff021916908315150217905550565b6119dc612217565b73ffffffffffffffffffffffffffffffffffffffff166119fa611426565b73ffffffffffffffffffffffffffffffffffffffff1614611a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4790613318565b60405180910390fd5b565b600081611a5d611ab9565b11158015611a6c575060005482105b8015611aaa575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611acd611ab9565b11611b5357600054811015611b525760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611b50575b60008103611b46576004600083600190039350838152602001908152602001600020549050611b1c565b8092505050611b85565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c1286868461221f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008054905060008203611c94576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ca16000848385611bf5565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611d1883611d096000866000611bfb565b611d1285612228565b17611c23565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611db957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611d7e565b5060008203611df4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611e0a6000848385611c4e565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611efb611ab1565b8786866040518563ffffffff1660e01b8152600401611f1d949392919061338d565b6020604051808303816000875af1925050508015611f5957506040513d601f19601f82011682018060405250810190611f5691906133ee565b60015b611fd2573d8060008114611f89576040519150601f19603f3d011682016040523d82523d6000602084013e611f8e565b606091505b506000815103611fca576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c805461203490612cfb565b80601f016020809104026020016040519081016040528092919081815260200182805461206090612cfb565b80156120ad5780601f10612082576101008083540402835291602001916120ad565b820191906000526020600020905b81548152906001019060200180831161209057829003601f168201915b5050505050905090565b6060600082036120fe576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612212565b600082905060005b600082146121305780806121199061341b565b915050600a826121299190613492565b9150612106565b60008167ffffffffffffffff81111561214c5761214b612322565b5b6040519080825280601f01601f19166020018201604052801561217e5781602001600182028036833780820191505090505b5090505b6000851461220b5760018261219791906134c3565b9150600a856121a691906134f7565b60306121b2919061308b565b60f81b8183815181106121c8576121c761312b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122049190613492565b9450612182565b8093505050505b919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6122818161224c565b811461228c57600080fd5b50565b60008135905061229e81612278565b92915050565b6000602082840312156122ba576122b9612242565b5b60006122c88482850161228f565b91505092915050565b60008115159050919050565b6122e6816122d1565b82525050565b600060208201905061230160008301846122dd565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61235a82612311565b810181811067ffffffffffffffff8211171561237957612378612322565b5b80604052505050565b600061238c612238565b90506123988282612351565b919050565b600067ffffffffffffffff8211156123b8576123b7612322565b5b6123c182612311565b9050602081019050919050565b82818337600083830152505050565b60006123f06123eb8461239d565b612382565b90508281526020810184848401111561240c5761240b61230c565b5b6124178482856123ce565b509392505050565b600082601f83011261243457612433612307565b5b81356124448482602086016123dd565b91505092915050565b60006020828403121561246357612462612242565b5b600082013567ffffffffffffffff81111561248157612480612247565b5b61248d8482850161241f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124d05780820151818401526020810190506124b5565b60008484015250505050565b60006124e782612496565b6124f181856124a1565b93506125018185602086016124b2565b61250a81612311565b840191505092915050565b6000602082019050818103600083015261252f81846124dc565b905092915050565b6000819050919050565b61254a81612537565b811461255557600080fd5b50565b60008135905061256781612541565b92915050565b60006020828403121561258357612582612242565b5b600061259184828501612558565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125c58261259a565b9050919050565b6125d5816125ba565b82525050565b60006020820190506125f060008301846125cc565b92915050565b6125ff816125ba565b811461260a57600080fd5b50565b60008135905061261c816125f6565b92915050565b6000806040838503121561263957612638612242565b5b60006126478582860161260d565b925050602061265885828601612558565b9150509250929050565b600060ff82169050919050565b61267881612662565b811461268357600080fd5b50565b6000813590506126958161266f565b92915050565b6000602082840312156126b1576126b0612242565b5b60006126bf84828501612686565b91505092915050565b6126d181612537565b82525050565b60006020820190506126ec60008301846126c8565b92915050565b6126fb81612662565b82525050565b600060208201905061271660008301846126f2565b92915050565b60008060006060848603121561273557612734612242565b5b60006127438682870161260d565b93505060206127548682870161260d565b925050604061276586828701612558565b9150509250925092565b600067ffffffffffffffff82169050919050565b61278c8161276f565b82525050565b60006020820190506127a76000830184612783565b92915050565b600067ffffffffffffffff8211156127c8576127c7612322565b5b602082029050602081019050919050565b600080fd5b60006127f16127ec846127ad565b612382565b90508083825260208201905060208402830185811115612814576128136127d9565b5b835b8181101561283d57806128298882612686565b845260208401935050602081019050612816565b5050509392505050565b600082601f83011261285c5761285b612307565b5b813561286c8482602086016127de565b91505092915050565b600067ffffffffffffffff8211156128905761288f612322565b5b602082029050602081019050919050565b60006128b46128af84612875565b612382565b905080838252602082019050602084028301858111156128d7576128d66127d9565b5b835b8181101561290057806128ec8882612558565b8452602084019350506020810190506128d9565b5050509392505050565b600082601f83011261291f5761291e612307565b5b813561292f8482602086016128a1565b91505092915050565b6000806040838503121561294f5761294e612242565b5b600083013567ffffffffffffffff81111561296d5761296c612247565b5b61297985828601612847565b925050602083013567ffffffffffffffff81111561299a57612999612247565b5b6129a68582860161290a565b9150509250929050565b6000602082840312156129c6576129c5612242565b5b60006129d48482850161260d565b91505092915050565b6129e6816122d1565b81146129f157600080fd5b50565b600081359050612a03816129dd565b92915050565b60008060408385031215612a2057612a1f612242565b5b6000612a2e8582860161260d565b9250506020612a3f858286016129f4565b9150509250929050565b600067ffffffffffffffff821115612a6457612a63612322565b5b612a6d82612311565b9050602081019050919050565b6000612a8d612a8884612a49565b612382565b905082815260208101848484011115612aa957612aa861230c565b5b612ab48482856123ce565b509392505050565b600082601f830112612ad157612ad0612307565b5b8135612ae1848260208601612a7a565b91505092915050565b60008060008060808587031215612b0457612b03612242565b5b6000612b128782880161260d565b9450506020612b238782880161260d565b9350506040612b3487828801612558565b925050606085013567ffffffffffffffff811115612b5557612b54612247565b5b612b6187828801612abc565b91505092959194509250565b600067ffffffffffffffff821115612b8857612b87612322565b5b602082029050602081019050919050565b6000612bac612ba784612b6d565b612382565b90508083825260208201905060208402830185811115612bcf57612bce6127d9565b5b835b81811015612bf85780612be4888261260d565b845260208401935050602081019050612bd1565b5050509392505050565b600082601f830112612c1757612c16612307565b5b8135612c27848260208601612b99565b91505092915050565b60008060408385031215612c4757612c46612242565b5b600083013567ffffffffffffffff811115612c6557612c64612247565b5b612c7185828601612c02565b9250506020612c8285828601612686565b9150509250929050565b60008060408385031215612ca357612ca2612242565b5b6000612cb18582860161260d565b9250506020612cc28582860161260d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612d1357607f821691505b602082108103612d2657612d25612ccc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612d8e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612d51565b612d988683612d51565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612dd5612dd0612dcb84612537565b612db0565b612537565b9050919050565b6000819050919050565b612def83612dba565b612e03612dfb82612ddc565b848454612d5e565b825550505050565b600090565b612e18612e0b565b612e23818484612de6565b505050565b5b81811015612e4757612e3c600082612e10565b600181019050612e29565b5050565b601f821115612e8c57612e5d81612d2c565b612e6684612d41565b81016020851015612e75578190505b612e89612e8185612d41565b830182612e28565b50505b505050565b600082821c905092915050565b6000612eaf60001984600802612e91565b1980831691505092915050565b6000612ec88383612e9e565b9150826002028217905092915050565b612ee182612496565b67ffffffffffffffff811115612efa57612ef9612322565b5b612f048254612cfb565b612f0f828285612e4b565b600060209050601f831160018114612f425760008415612f30578287015190505b612f3a8582612ebc565b865550612fa2565b601f198416612f5086612d2c565b60005b82811015612f7857848901518255600182019150602085019450602081019050612f53565b86831015612f955784890151612f91601f891682612e9e565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b6000612fc5600083612faa565b9150612fd082612fb5565b600082019050919050565b6000612fe682612fb8565b9150819050919050565b7f43616c6c204661696c6564000000000000000000000000000000000000000000600082015250565b6000613026600b836124a1565b915061303182612ff0565b602082019050919050565b6000602082019050818103600083015261305581613019565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061309682612537565b91506130a183612537565b92508282019050808211156130b9576130b861305c565b5b92915050565b7f406465763a20696e636f7272656374206c656e67746800000000000000000000600082015250565b60006130f56016836124a1565b9150613100826130bf565b602082019050919050565b60006020820190508181036000830152613124816130e8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061316582612537565b9150600082036131785761317761305c565b5b600182039050919050565b600081905092915050565b600061319982612496565b6131a38185613183565b93506131b38185602086016124b2565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006131f5600583613183565b9150613200826131bf565b600582019050919050565b6000613217828561318e565b9150613223828461318e565b915061322e826131e8565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006132966026836124a1565b91506132a18261323a565b604082019050919050565b600060208201905081810360008301526132c581613289565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133026020836124a1565b915061330d826132cc565b602082019050919050565b60006020820190508181036000830152613331816132f5565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061335f82613338565b6133698185613343565b93506133798185602086016124b2565b61338281612311565b840191505092915050565b60006080820190506133a260008301876125cc565b6133af60208301866125cc565b6133bc60408301856126c8565b81810360608301526133ce8184613354565b905095945050505050565b6000815190506133e881612278565b92915050565b60006020828403121561340457613403612242565b5b6000613412848285016133d9565b91505092915050565b600061342682612537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134585761345761305c565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061349d82612537565b91506134a883612537565b9250826134b8576134b7613463565b5b828204905092915050565b60006134ce82612537565b91506134d983612537565b92508282039050818111156134f1576134f061305c565b5b92915050565b600061350282612537565b915061350d83612537565b92508261351d5761351c613463565b5b82820690509291505056fea2646970667358221220c4df6346284a3dc6ed77b128a43cf60da9adbb21f0a74fefe478b0e98dfead8864736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000ab0000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696776343765627a70647061636574736a7569616a64736b666b66626c746f7578786675777a6d6e77637970366c356e32637579652f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _phases (uint8[]): 1,2
Arg [1] : _supply (uint256[]): 50,171
Arg [2] : _maxSupply (uint64): 222
Arg [3] : _setbaseURI (string): ipfs://bafybeigv47ebzpdpacetsjuiajdskfkfbltouxxfuwzmnwcyp6l5n2cuye/

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000de
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [9] : 00000000000000000000000000000000000000000000000000000000000000ab
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [11] : 697066733a2f2f626166796265696776343765627a70647061636574736a7569
Arg [12] : 616a64736b666b66626c746f7578786675777a6d6e77637970366c356e326375
Arg [13] : 79652f0000000000000000000000000000000000000000000000000000000000


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.