ETH Price: $3,338.55 (-1.08%)

Token

OOZ & mates (OOZ)
 

Overview

Max Total Supply

3,223 OOZ

Holders

509

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
24 OOZ
0x6b24ebd9781fcdb02b6c433d72a79cc0bf649036
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:
OOZ

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "./IERC20Upgradeable.sol";
import "./IERC721C.sol";

contract OOZ is IERC721C, ERC721AQueryable, Ownable, ReentrancyGuard {

    // Whether base URI is permanent. Once set, base URI is immutable.
    bool private _baseURIPermanent;

    // The total mintable supply.
    uint256 internal _maxMintableSupply;

    // Current base URI.
    string private _currentBaseURI;

    // The suffix for the token URL, e.g. ".json".
    string private _tokenURISuffix;

    bool public revealStarted;
    uint256 public IP3perReveal;
    address public IP3recipientAddr;
    IERC721A public Spaceship;
    IERC20Upgradeable public IP3token;

    constructor(
        string memory collectionName,
        string memory collectionSymbol,
        string memory tokenURISuffix,
        address spaceshipAddr,
        address IP3tokenAddr
    ) ERC721A(collectionName, collectionSymbol) {

        _maxMintableSupply = 9999;
        _tokenURISuffix = tokenURISuffix;
        Spaceship = IERC721A(spaceshipAddr);
        IP3token = IERC20Upgradeable(IP3tokenAddr);
        IP3perReveal = 135 * 10**18;
        IP3recipientAddr = owner();
    }

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

    function bulkTransfer(address[] calldata _to, uint256[] calldata _id) public {
        require(_to.length == _id.length, "Receivers and IDs are different length");
        for (uint256 i = 0; i < _to.length; i++) {
            transferFrom(msg.sender, _to[i], _id[i]);
        }
    }

    function oozReveal(uint256 shipId) external nonReentrant hasSupply(1) {
        require(revealStarted, "Reveal has not started yet");
        require(Spaceship.ownerOf(shipId) == msg.sender, "Does not own corresponding ship");
        IP3token.transferFrom(msg.sender, IP3recipientAddr, IP3perReveal);
        Spaceship.transferFrom(msg.sender, address(this), shipId);
        _safeMint(msg.sender, 1);
    }

    function startReveal() external onlyOwner {
        revealStarted = true;
    }

    function setIP3perReveal(uint256 amount) external onlyOwner {
        IP3perReveal = amount;
    }

    function setIP3recipientAddr(address addr) external onlyOwner {
        IP3recipientAddr = addr;
    }

    /**
     * @dev Returns whether it has enough supply for the given qty.
     */
    modifier hasSupply(uint256 qty) {
        if (totalSupply() + qty > _maxMintableSupply) revert NoSupplyLeft();
        _;
    }

    /**
     * @dev Returns maximum mintable supply.
     */
    function getMaxMintableSupply() external view override returns (uint256) {
        return _maxMintableSupply;
    }

    /**
     * @dev Sets maximum mintable supply.
     *
     * New supply cannot be larger than the old.
     */
    function setMaxMintableSupply(uint256 maxMintableSupply)
        external
        virtual
        onlyOwner
    {
        if (maxMintableSupply > _maxMintableSupply) {
            revert CannotIncreaseMaxMintableSupply();
        }
        _maxMintableSupply = maxMintableSupply;
        emit SetMaxMintableSupply(maxMintableSupply);
    }

    /**
     * @dev Returns number of minted token for a given address.
     */
    function totalMintedByAddress(address a)
        external
        view
        virtual
        override
        returns (uint256)
    {
        return _numberMinted(a);
    }

    /**
     * @dev Mints token(s) by owner.
     *
     * NOTE: This function bypasses validations thus only available for owner.
     * This is typically used for owner to  pre-mint or mint the remaining of the supply.
     */
    function ownerMint(uint32 qty, address to)
        external
        onlyOwner
        hasSupply(qty)
    {
        _safeMint(to, qty);
    }

    /**
     * @dev Withdraws funds by owner.
     */
    function withdraw() external onlyOwner {
        uint256 value = address(this).balance;
        (bool success, ) = msg.sender.call{value: value}("");
        if (!success) revert WithdrawFailed();
        emit Withdraw(value);
    }

    /**
     * @dev Sets token base URI.
     */
    function setBaseURI(string calldata baseURI) external onlyOwner {
        if (_baseURIPermanent) revert CannotUpdatePermanentBaseURI();
        _currentBaseURI = baseURI;
        emit SetBaseURI(baseURI);
    }

    /**
     * @dev Sets token base URI permanent. Cannot revert.
     */
    function setBaseURIPermanent() external onlyOwner {
        _baseURIPermanent = true;
        emit PermanentBaseURI(_currentBaseURI);
    }

    /**
     * @dev Returns token URI suffix.
     */
    function getTokenURISuffix()
        external
        view
        override
        returns (string memory)
    {
        return _tokenURISuffix;
    }

    /**
     * @dev Sets token URI suffix. e.g. ".json".
     */
    function setTokenURISuffix(string calldata suffix) external onlyOwner {
        _tokenURISuffix = suffix;
    }

    /**
     * @dev Returns token URI for a given token id.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A, IERC721A)
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _currentBaseURI;
        return
            bytes(baseURI).length != 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        _toString(tokenId),
                        _tokenURISuffix
                    )
                )
                : "";
    }

    /**
     * @dev Returns chain id.
     */
    function _chainID() private view returns (uint256) {
        uint256 chainID;
        assembly {
            chainID := chainid()
        }
        return chainID;
    }
}

File 2 of 10 : IERC721C.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "erc721a/contracts/extensions/IERC721AQueryable.sol";

interface IERC721C is IERC721AQueryable {
    error CannotIncreaseMaxMintableSupply();
    error CannotUpdatePermanentBaseURI();
    error NoSupplyLeft();
    error WithdrawFailed();

    event SetMaxMintableSupply(uint256 maxMintableSupply);
    event SetBaseURI(string baseURI);
    event PermanentBaseURI(string baseURI);
    event Withdraw(uint256 value);

    function getMaxMintableSupply() external view returns (uint256);

    function totalMintedByAddress(address a) external view returns (uint256);

    function getTokenURISuffix() external view returns (string memory);

}

File 3 of 10 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 4 of 10 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 6 of 10 : 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 7 of 10 : 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 8 of 10 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 10 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"collectionName","type":"string"},{"internalType":"string","name":"collectionSymbol","type":"string"},{"internalType":"string","name":"tokenURISuffix","type":"string"},{"internalType":"address","name":"spaceshipAddr","type":"address"},{"internalType":"address","name":"IP3tokenAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotIncreaseMaxMintableSupply","type":"error"},{"inputs":[],"name":"CannotUpdatePermanentBaseURI","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoSupplyLeft","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":"WithdrawFailed","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":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"PermanentBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxMintableSupply","type":"uint256"}],"name":"SetMaxMintableSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"IP3perReveal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IP3recipientAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IP3token","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Spaceship","outputs":[{"internalType":"contract IERC721A","name":"","type":"address"}],"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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_id","type":"uint256[]"}],"name":"bulkTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxMintableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shipId","type":"uint256"}],"name":"oozReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"qty","type":"uint32"},{"internalType":"address","name":"to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setBaseURIPermanent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setIP3perReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setIP3recipientAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintableSupply","type":"uint256"}],"name":"setMaxMintableSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"suffix","type":"string"}],"name":"setTokenURISuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"totalMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200476d3803806200476d833981810160405281019062000037919062000400565b8484816002908051906020019062000051929190620002bb565b5080600390805190602001906200006a929190620002bb565b506200007b620001ba60201b60201c565b6000819055505050620000a362000097620001c360201b60201c565b620001cb60201b60201c565b600160098190555061270f600b8190555082600d9080519060200190620000cc929190620002bb565b5081601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506807518058bd45bc0000600f819055506200016f6200029160201b60201c565b601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620006b7565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620002c990620005ae565b90600052602060002090601f016020900481019282620002ed576000855562000339565b82601f106200030857805160ff191683800117855562000339565b8280016001018555821562000339579182015b82811115620003385782518255916020019190600101906200031b565b5b5090506200034891906200034c565b5090565b5b80821115620003675760008160009055506001016200034d565b5090565b6000620003826200037c846200050e565b620004e5565b905082815260208101848484011115620003a157620003a06200067d565b5b620003ae84828562000578565b509392505050565b600081519050620003c7816200069d565b92915050565b600082601f830112620003e557620003e462000678565b5b8151620003f78482602086016200036b565b91505092915050565b600080600080600060a086880312156200041f576200041e62000687565b5b600086015167ffffffffffffffff81111562000440576200043f62000682565b5b6200044e88828901620003cd565b955050602086015167ffffffffffffffff81111562000472576200047162000682565b5b6200048088828901620003cd565b945050604086015167ffffffffffffffff811115620004a457620004a362000682565b5b620004b288828901620003cd565b9350506060620004c588828901620003b6565b9250506080620004d888828901620003b6565b9150509295509295909350565b6000620004f162000504565b9050620004ff8282620005e4565b919050565b6000604051905090565b600067ffffffffffffffff8211156200052c576200052b62000649565b5b62000537826200068c565b9050602081019050919050565b6000620005518262000558565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620005985780820151818401526020810190506200057b565b83811115620005a8576000848401525b50505050565b60006002820490506001821680620005c757607f821691505b60208210811415620005de57620005dd6200061a565b5b50919050565b620005ef826200068c565b810181811067ffffffffffffffff8211171562000611576200061062000649565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006a88162000544565b8114620006b457600080fd5b50565b6140a680620006c76000396000f3fe60806040526004361061023b5760003560e01c80638462151c1161012e578063b7a9fa60116100ab578063d9de4dc91161006f578063d9de4dc914610839578063e985e9c514610864578063f2fde38b146108a1578063f8d09696146108ca578063fd5b03fa146108f35761023b565b8063b7a9fa601461074f578063b88d4fde1461077a578063bf39a01814610796578063c23dc68f146107bf578063c87b56dd146107fc5761023b565b8063a22cb465116100f2578063a22cb46514610692578063a9852bfb146106bb578063aac5ab1f146106e4578063ad72202b1461070d578063aea1bc7d146107245761023b565b80638462151c146105855780638da5cb5b146105c257806395d89b41146105ed57806397cf84fc1461061857806399a2557a146106555761023b565b806342842e0e116101bc5780635bbb2177116101805780635bbb21771461048c5780636352211e146104c95780637069f85a1461050657806370a0823114610531578063715018a61461056e5761023b565b806342842e0e146103ca5780634299d7a2146103e657806346509bfe1461040f5780634b1c53b41461043857806355f804b3146104635761023b565b80631053a815116102035780631053a8151461032c578063153a1f3e1461034357806318160ddd1461036c57806323b872dd146103975780633ccfd60b146103b35761023b565b806301ffc9a71461024057806303a81a6e1461027d57806306fdde03146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613194565b61091e565b60405161027491906138c0565b60405180910390f35b34801561028957600080fd5b506102926109b0565b60405161029f91906138c0565b60405180910390f35b3480156102b457600080fd5b506102bd6109c3565b6040516102ca9190613935565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f5919061323b565b610a55565b60405161030791906137de565b60405180910390f35b61032a60048036038101906103259190613006565b610ad4565b005b34801561033857600080fd5b50610341610c18565b005b34801561034f57600080fd5b5061036a60048036038101906103659190613099565b610c75565b005b34801561037857600080fd5b50610381610d30565b60405161038e9190613a54565b60405180910390f35b6103b160048036038101906103ac9190612ef0565b610d47565b005b3480156103bf57600080fd5b506103c861106c565b005b6103e460048036038101906103df9190612ef0565b611157565b005b3480156103f257600080fd5b5061040d6004803603810190610408919061323b565b611177565b005b34801561041b57600080fd5b5061043660048036038101906104319190612e56565b611189565b005b34801561044457600080fd5b5061044d6111d5565b60405161045a9190613a54565b60405180910390f35b34801561046f57600080fd5b5061048a600480360381019061048591906131ee565b6111df565b005b34801561049857600080fd5b506104b360048036038101906104ae919061311a565b61127d565b6040516104c0919061387c565b60405180910390f35b3480156104d557600080fd5b506104f060048036038101906104eb919061323b565b611340565b6040516104fd91906137de565b60405180910390f35b34801561051257600080fd5b5061051b611352565b6040516105289190613a54565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190612e56565b611358565b6040516105659190613a54565b60405180910390f35b34801561057a57600080fd5b50610583611411565b005b34801561059157600080fd5b506105ac60048036038101906105a79190612e56565b611425565b6040516105b9919061389e565b60405180910390f35b3480156105ce57600080fd5b506105d761156f565b6040516105e491906137de565b60405180910390f35b3480156105f957600080fd5b50610602611599565b60405161060f9190613935565b60405180910390f35b34801561062457600080fd5b5061063f600480360381019061063a9190612e56565b61162b565b60405161064c9190613a54565b60405180910390f35b34801561066157600080fd5b5061067c60048036038101906106779190613046565b61163d565b604051610689919061389e565b60405180910390f35b34801561069e57600080fd5b506106b960048036038101906106b49190612fc6565b611851565b005b3480156106c757600080fd5b506106e260048036038101906106dd91906131ee565b61195c565b005b3480156106f057600080fd5b5061070b60048036038101906107069190613268565b61197a565b005b34801561071957600080fd5b506107226119ec565b005b34801561073057600080fd5b50610739611a11565b60405161074691906138f6565b60405180910390f35b34801561075b57600080fd5b50610764611a37565b6040516107719190613935565b60405180910390f35b610794600480360381019061078f9190612f43565b611ac9565b005b3480156107a257600080fd5b506107bd60048036038101906107b8919061323b565b611b3c565b005b3480156107cb57600080fd5b506107e660048036038101906107e1919061323b565b611e79565b6040516107f39190613a39565b60405180910390f35b34801561080857600080fd5b50610823600480360381019061081e919061323b565b611ee3565b6040516108309190613935565b60405180910390f35b34801561084557600080fd5b5061084e612008565b60405161085b91906138db565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190612eb0565b61202e565b60405161089891906138c0565b60405180910390f35b3480156108ad57600080fd5b506108c860048036038101906108c39190612e56565b6120c2565b005b3480156108d657600080fd5b506108f160048036038101906108ec919061323b565b612146565b005b3480156108ff57600080fd5b506109086121cb565b60405161091591906137de565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061097957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109a95750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600e60009054906101000a900460ff1681565b6060600280546109d290613d21565b80601f01602080910402602001604051908101604052809291908181526020018280546109fe90613d21565b8015610a4b5780601f10610a2057610100808354040283529160200191610a4b565b820191906000526020600020905b815481529060010190602001808311610a2e57829003601f168201915b5050505050905090565b6000610a60826121f1565b610a96576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610adf82611340565b90508073ffffffffffffffffffffffffffffffffffffffff16610b00612250565b73ffffffffffffffffffffffffffffffffffffffff1614610b6357610b2c81610b27612250565b61202e565b610b62576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c20612258565b6001600a60006101000a81548160ff0219169083151502179055507fc6a6c2b165e62c9d37fc51a18ed76e5be22304bc1d337877c98f31c23e40b0f5600c604051610c6b9190613957565b60405180910390a1565b818190508484905014610cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb4906139d9565b60405180910390fd5b60005b84849050811015610d2957610d1633868684818110610ce257610ce1613e2b565b5b9050602002016020810190610cf79190612e56565b858585818110610d0a57610d09613e2b565b5b90506020020135610d47565b8080610d2190613d84565b915050610cc0565b5050505050565b6000610d3a6122d6565b6001546000540303905090565b6000610d52826122df565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610db9576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dc5846123ad565b91509150610ddb8187610dd6612250565b6123d4565b610e2757610df086610deb612250565b61202e565b610e26576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e8e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e9b8686866001612418565b8015610ea657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f7485610f5088888761241e565b7c020000000000000000000000000000000000000000000000000000000017612446565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610ffc576000600185019050600060046000838152602001908152602001600020541415610ffa576000548114610ff9578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110648686866001612471565b505050505050565b611074612258565b600047905060003373ffffffffffffffffffffffffffffffffffffffff168260405161109f906137c9565b60006040518083038185875af1925050503d80600081146110dc576040519150601f19603f3d011682016040523d82523d6000602084013e6110e1565b606091505b505090508061111c576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8260405161114b9190613a54565b60405180910390a15050565b61117283838360405180602001604052806000815250611ac9565b505050565b61117f612258565b80600f8190555050565b611191612258565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600b54905090565b6111e7612258565b600a60009054906101000a900460ff161561122e576040517f6ccad41000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181600c919061123f929190612b4a565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8282604051611271929190613911565b60405180910390a15050565b6060600083839050905060008167ffffffffffffffff8111156112a3576112a2613e5a565b5b6040519080825280602002602001820160405280156112dc57816020015b6112c9612bd0565b8152602001906001900390816112c15790505b50905060005b8281146113345761130b8686838181106112ff576112fe613e2b565b5b90506020020135611e79565b82828151811061131e5761131d613e2b565b5b60200260200101819052508060010190506112e2565b50809250505092915050565b600061134b826122df565b9050919050565b600f5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113c0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611419612258565b6114236000612477565b565b6060600080600061143585611358565b905060008167ffffffffffffffff81111561145357611452613e5a565b5b6040519080825280602002602001820160405280156114815781602001602082028036833780820191505090505b50905061148c612bd0565b60006114966122d6565b90505b838614611561576114a98161253d565b91508160400151156114ba57611556565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146114fa57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611555578083878060010198508151811061154857611547613e2b565b5b6020026020010181815250505b5b806001019050611499565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546115a890613d21565b80601f01602080910402602001604051908101604052809291908181526020018280546115d490613d21565b80156116215780601f106115f657610100808354040283529160200191611621565b820191906000526020600020905b81548152906001019060200180831161160457829003601f168201915b5050505050905090565b600061163682612568565b9050919050565b6060818310611678576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116836125bf565b905061168d6122d6565b85101561169f5761169c6122d6565b94505b808411156116ab578093505b60006116b687611358565b9050848610156116d95760008686039050818110156116d3578091505b506116de565b600090505b60008167ffffffffffffffff8111156116fa576116f9613e5a565b5b6040519080825280602002602001820160405280156117285781602001602082028036833780820191505090505b5090506000821415611740578094505050505061184a565b600061174b88611e79565b90506000816040015161176057816000015190505b60008990505b8881141580156117765750848714155b1561183c576117848161253d565b925082604001511561179557611831565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146117d557826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611830578084888060010199508151811061182357611822613e2b565b5b6020026020010181815250505b5b806001019050611766565b508583528296505050505050505b9392505050565b806007600061185e612250565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661190b612250565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161195091906138c0565b60405180910390a35050565b611964612258565b8181600d9190611975929190612b4a565b505050565b611982612258565b8163ffffffff16600b5481611995610d30565b61199f9190613b9a565b11156119d7576040517f800113cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119e7828463ffffffff166125c8565b505050565b6119f4612258565b6001600e60006101000a81548160ff021916908315150217905550565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600d8054611a4690613d21565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7290613d21565b8015611abf5780601f10611a9457610100808354040283529160200191611abf565b820191906000526020600020905b815481529060010190602001808311611aa257829003601f168201915b5050505050905090565b611ad4848484610d47565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b3657611aff848484846125e6565b611b35576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611b44612746565b6001600b5481611b52610d30565b611b5c9190613b9a565b1115611b94576040517f800113cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e60009054906101000a900460ff16611be3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bda906139f9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401611c559190613a54565b60206040518083038186803b158015611c6d57600080fd5b505afa158015611c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca59190612e83565b73ffffffffffffffffffffffffffffffffffffffff1614611cfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf2906139b9565b60405180910390fd5b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f546040518463ffffffff1660e01b8152600401611d7e939291906137f9565b602060405180830381600087803b158015611d9857600080fd5b505af1158015611dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd09190613167565b50601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401611e30939291906137f9565b600060405180830381600087803b158015611e4a57600080fd5b505af1158015611e5e573d6000803e3d6000fd5b50505050611e6d3360016125c8565b50611e76612796565b50565b611e81612bd0565b611e89612bd0565b611e916122d6565b831080611ea55750611ea16125bf565b8310155b15611eb35780915050611ede565b611ebc8361253d565b9050806040015115611ed15780915050611ede565b611eda836127a0565b9150505b919050565b6060611eee826121f1565b611f24576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c8054611f3390613d21565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5f90613d21565b8015611fac5780601f10611f8157610100808354040283529160200191611fac565b820191906000526020600020905b815481529060010190602001808311611f8f57829003601f168201915b50505050509050600081511415611fd25760405180602001604052806000815250612000565b80611fdc846127c0565b600d604051602001611ff093929190613798565b6040516020818303038152906040525b915050919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120ca612258565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561213a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213190613979565b60405180910390fd5b61214381612477565b50565b61214e612258565b600b5481111561218a576040517f8617076200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b819055507fc7bbc2b288fc13314546ea4aa51f6bcf71b7ba4740beeb3d32e9acef57b6668a816040516121c09190613a54565b60405180910390a150565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000816121fc6122d6565b1115801561220b575060005482105b8015612249575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b612260612819565b73ffffffffffffffffffffffffffffffffffffffff1661227e61156f565b73ffffffffffffffffffffffffffffffffffffffff16146122d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122cb90613999565b60405180910390fd5b565b60006001905090565b600080829050806122ee6122d6565b11612376576000548110156123755760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612373575b600081141561236957600460008360019003935083815260200190815260200160002054905061233e565b80925050506123a8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612435868684612821565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612545612bd0565b612561600460008481526020019081526020016000205461282a565b9050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008054905090565b6125e28282604051806020016040528060008152506128e0565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261260c612250565b8786866040518563ffffffff1660e01b815260040161262e9493929190613830565b602060405180830381600087803b15801561264857600080fd5b505af192505050801561267957506040513d601f19601f8201168201806040525081019061267691906131c1565b60015b6126f3573d80600081146126a9576040519150601f19603f3d011682016040523d82523d6000602084013e6126ae565b606091505b506000815114156126eb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6002600954141561278c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278390613a19565b60405180910390fd5b6002600981905550565b6001600981905550565b6127a8612bd0565b6127b96127b4836122df565b61282a565b9050919050565b606060a060405101806040526020810391506000825281835b60011561280457600184039350600a81066030018453600a81049050806127ff57612804565b6127d9565b50828103602084039350808452505050919050565b600033905090565b60009392505050565b612832612bd0565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6128ea838361297d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461297857600080549050600083820390505b61292a60008683806001019450866125e6565b612960576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061291757816000541461297557600080fd5b50505b505050565b60008054905060008214156129be576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129cb6000848385612418565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612a4283612a33600086600061241e565b612a3c85612b3a565b17612446565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612ae357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612aa8565b506000821415612b1f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612b356000848385612471565b505050565b60006001821460e11b9050919050565b828054612b5690613d21565b90600052602060002090601f016020900481019282612b785760008555612bbf565b82601f10612b9157803560ff1916838001178555612bbf565b82800160010185558215612bbf579182015b82811115612bbe578235825591602001919060010190612ba3565b5b509050612bcc9190612c1f565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115612c38576000816000905550600101612c20565b5090565b6000612c4f612c4a84613a94565b613a6f565b905082815260208101848484011115612c6b57612c6a613e98565b5b612c76848285613cdf565b509392505050565b600081359050612c8d81613ffd565b92915050565b600081519050612ca281613ffd565b92915050565b60008083601f840112612cbe57612cbd613e8e565b5b8235905067ffffffffffffffff811115612cdb57612cda613e89565b5b602083019150836020820283011115612cf757612cf6613e93565b5b9250929050565b60008083601f840112612d1457612d13613e8e565b5b8235905067ffffffffffffffff811115612d3157612d30613e89565b5b602083019150836020820283011115612d4d57612d4c613e93565b5b9250929050565b600081359050612d6381614014565b92915050565b600081519050612d7881614014565b92915050565b600081359050612d8d8161402b565b92915050565b600081519050612da28161402b565b92915050565b600082601f830112612dbd57612dbc613e8e565b5b8135612dcd848260208601612c3c565b91505092915050565b60008083601f840112612dec57612deb613e8e565b5b8235905067ffffffffffffffff811115612e0957612e08613e89565b5b602083019150836001820283011115612e2557612e24613e93565b5b9250929050565b600081359050612e3b81614042565b92915050565b600081359050612e5081614059565b92915050565b600060208284031215612e6c57612e6b613ea2565b5b6000612e7a84828501612c7e565b91505092915050565b600060208284031215612e9957612e98613ea2565b5b6000612ea784828501612c93565b91505092915050565b60008060408385031215612ec757612ec6613ea2565b5b6000612ed585828601612c7e565b9250506020612ee685828601612c7e565b9150509250929050565b600080600060608486031215612f0957612f08613ea2565b5b6000612f1786828701612c7e565b9350506020612f2886828701612c7e565b9250506040612f3986828701612e2c565b9150509250925092565b60008060008060808587031215612f5d57612f5c613ea2565b5b6000612f6b87828801612c7e565b9450506020612f7c87828801612c7e565b9350506040612f8d87828801612e2c565b925050606085013567ffffffffffffffff811115612fae57612fad613e9d565b5b612fba87828801612da8565b91505092959194509250565b60008060408385031215612fdd57612fdc613ea2565b5b6000612feb85828601612c7e565b9250506020612ffc85828601612d54565b9150509250929050565b6000806040838503121561301d5761301c613ea2565b5b600061302b85828601612c7e565b925050602061303c85828601612e2c565b9150509250929050565b60008060006060848603121561305f5761305e613ea2565b5b600061306d86828701612c7e565b935050602061307e86828701612e2c565b925050604061308f86828701612e2c565b9150509250925092565b600080600080604085870312156130b3576130b2613ea2565b5b600085013567ffffffffffffffff8111156130d1576130d0613e9d565b5b6130dd87828801612ca8565b9450945050602085013567ffffffffffffffff811115613100576130ff613e9d565b5b61310c87828801612cfe565b925092505092959194509250565b6000806020838503121561313157613130613ea2565b5b600083013567ffffffffffffffff81111561314f5761314e613e9d565b5b61315b85828601612cfe565b92509250509250929050565b60006020828403121561317d5761317c613ea2565b5b600061318b84828501612d69565b91505092915050565b6000602082840312156131aa576131a9613ea2565b5b60006131b884828501612d7e565b91505092915050565b6000602082840312156131d7576131d6613ea2565b5b60006131e584828501612d93565b91505092915050565b6000806020838503121561320557613204613ea2565b5b600083013567ffffffffffffffff81111561322357613222613e9d565b5b61322f85828601612dd6565b92509250509250929050565b60006020828403121561325157613250613ea2565b5b600061325f84828501612e2c565b91505092915050565b6000806040838503121561327f5761327e613ea2565b5b600061328d85828601612e41565b925050602061329e85828601612c7e565b9150509250929050565b60006132b483836136b2565b60808301905092915050565b60006132cc838361376b565b60208301905092915050565b6132e181613bf0565b82525050565b6132f081613bf0565b82525050565b600061330182613afa565b61330b8185613b40565b935061331683613ac5565b8060005b8381101561334757815161332e88826132a8565b975061333983613b26565b92505060018101905061331a565b5085935050505092915050565b600061335f82613b05565b6133698185613b51565b935061337483613ad5565b8060005b838110156133a557815161338c88826132c0565b975061339783613b33565b925050600181019050613378565b5085935050505092915050565b6133bb81613c02565b82525050565b6133ca81613c02565b82525050565b60006133db82613b10565b6133e58185613b62565b93506133f5818560208601613cee565b6133fe81613ea7565b840191505092915050565b61341281613c97565b82525050565b61342181613ca9565b82525050565b60006134338385613b7e565b9350613440838584613cdf565b61344983613ea7565b840190509392505050565b600061345f82613b1b565b6134698185613b7e565b9350613479818560208601613cee565b61348281613ea7565b840191505092915050565b600061349882613b1b565b6134a28185613b8f565b93506134b2818560208601613cee565b80840191505092915050565b600081546134cb81613d21565b6134d58186613b7e565b945060018216600081146134f0576001811461350257613535565b60ff1983168652602086019350613535565b61350b85613ae5565b60005b8381101561352d5781548189015260018201915060208101905061350e565b808801955050505b50505092915050565b6000815461354b81613d21565b6135558186613b8f565b945060018216600081146135705760018114613581576135b4565b60ff198316865281860193506135b4565b61358a85613ae5565b60005b838110156135ac5781548189015260018201915060208101905061358d565b838801955050505b50505092915050565b60006135ca602683613b7e565b91506135d582613eb8565b604082019050919050565b60006135ed602083613b7e565b91506135f882613f07565b602082019050919050565b6000613610601f83613b7e565b915061361b82613f30565b602082019050919050565b6000613633602683613b7e565b915061363e82613f59565b604082019050919050565b6000613656601a83613b7e565b915061366182613fa8565b602082019050919050565b6000613679600083613b73565b915061368482613fd1565b600082019050919050565b600061369c601f83613b7e565b91506136a782613fd4565b602082019050919050565b6080820160008201516136c860008501826132d8565b5060208201516136db6020850182613789565b5060408201516136ee60408501826133b2565b506060820151613701606085018261375c565b50505050565b60808201600082015161371d60008501826132d8565b5060208201516137306020850182613789565b50604082015161374360408501826133b2565b506060820151613756606085018261375c565b50505050565b61376581613c5a565b82525050565b61377481613c69565b82525050565b61378381613c69565b82525050565b61379281613c83565b82525050565b60006137a4828661348d565b91506137b0828561348d565b91506137bc828461353e565b9150819050949350505050565b60006137d48261366c565b9150819050919050565b60006020820190506137f360008301846132e7565b92915050565b600060608201905061380e60008301866132e7565b61381b60208301856132e7565b613828604083018461377a565b949350505050565b600060808201905061384560008301876132e7565b61385260208301866132e7565b61385f604083018561377a565b818103606083015261387181846133d0565b905095945050505050565b6000602082019050818103600083015261389681846132f6565b905092915050565b600060208201905081810360008301526138b88184613354565b905092915050565b60006020820190506138d560008301846133c1565b92915050565b60006020820190506138f06000830184613409565b92915050565b600060208201905061390b6000830184613418565b92915050565b6000602082019050818103600083015261392c818486613427565b90509392505050565b6000602082019050818103600083015261394f8184613454565b905092915050565b6000602082019050818103600083015261397181846134be565b905092915050565b60006020820190508181036000830152613992816135bd565b9050919050565b600060208201905081810360008301526139b2816135e0565b9050919050565b600060208201905081810360008301526139d281613603565b9050919050565b600060208201905081810360008301526139f281613626565b9050919050565b60006020820190508181036000830152613a1281613649565b9050919050565b60006020820190508181036000830152613a328161368f565b9050919050565b6000608082019050613a4e6000830184613707565b92915050565b6000602082019050613a69600083018461377a565b92915050565b6000613a79613a8a565b9050613a858282613d53565b919050565b6000604051905090565b600067ffffffffffffffff821115613aaf57613aae613e5a565b5b613ab882613ea7565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613ba582613c69565b9150613bb083613c69565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613be557613be4613dcd565b5b828201905092915050565b6000613bfb82613c3a565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b6000613ca282613cbb565b9050919050565b6000613cb482613cbb565b9050919050565b6000613cc682613ccd565b9050919050565b6000613cd882613c3a565b9050919050565b82818337600083830152505050565b60005b83811015613d0c578082015181840152602081019050613cf1565b83811115613d1b576000848401525b50505050565b60006002820490506001821680613d3957607f821691505b60208210811415613d4d57613d4c613dfc565b5b50919050565b613d5c82613ea7565b810181811067ffffffffffffffff82111715613d7b57613d7a613e5a565b5b80604052505050565b6000613d8f82613c69565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613dc257613dc1613dcd565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f446f6573206e6f74206f776e20636f72726573706f6e64696e67207368697000600082015250565b7f52656365697665727320616e64204944732061726520646966666572656e742060008201527f6c656e6774680000000000000000000000000000000000000000000000000000602082015250565b7f52657665616c20686173206e6f74207374617274656420796574000000000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61400681613bf0565b811461401157600080fd5b50565b61401d81613c02565b811461402857600080fd5b50565b61403481613c0e565b811461403f57600080fd5b50565b61404b81613c69565b811461405657600080fd5b50565b61406281613c73565b811461406d57600080fd5b5056fea2646970667358221220d95cce31b881201b96b2b13ca6285597c0e3718a4211ce5ff23a8f276b9251b364736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a6f6256e1f77ae1e9e0dd2f580e112e4fd08043200000000000000000000000001c3f4a1ebccbc37cd3d4763b540e880e60302c9000000000000000000000000000000000000000000000000000000000000000b4f4f5a2026206d6174657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034f4f5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061023b5760003560e01c80638462151c1161012e578063b7a9fa60116100ab578063d9de4dc91161006f578063d9de4dc914610839578063e985e9c514610864578063f2fde38b146108a1578063f8d09696146108ca578063fd5b03fa146108f35761023b565b8063b7a9fa601461074f578063b88d4fde1461077a578063bf39a01814610796578063c23dc68f146107bf578063c87b56dd146107fc5761023b565b8063a22cb465116100f2578063a22cb46514610692578063a9852bfb146106bb578063aac5ab1f146106e4578063ad72202b1461070d578063aea1bc7d146107245761023b565b80638462151c146105855780638da5cb5b146105c257806395d89b41146105ed57806397cf84fc1461061857806399a2557a146106555761023b565b806342842e0e116101bc5780635bbb2177116101805780635bbb21771461048c5780636352211e146104c95780637069f85a1461050657806370a0823114610531578063715018a61461056e5761023b565b806342842e0e146103ca5780634299d7a2146103e657806346509bfe1461040f5780634b1c53b41461043857806355f804b3146104635761023b565b80631053a815116102035780631053a8151461032c578063153a1f3e1461034357806318160ddd1461036c57806323b872dd146103975780633ccfd60b146103b35761023b565b806301ffc9a71461024057806303a81a6e1461027d57806306fdde03146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613194565b61091e565b60405161027491906138c0565b60405180910390f35b34801561028957600080fd5b506102926109b0565b60405161029f91906138c0565b60405180910390f35b3480156102b457600080fd5b506102bd6109c3565b6040516102ca9190613935565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f5919061323b565b610a55565b60405161030791906137de565b60405180910390f35b61032a60048036038101906103259190613006565b610ad4565b005b34801561033857600080fd5b50610341610c18565b005b34801561034f57600080fd5b5061036a60048036038101906103659190613099565b610c75565b005b34801561037857600080fd5b50610381610d30565b60405161038e9190613a54565b60405180910390f35b6103b160048036038101906103ac9190612ef0565b610d47565b005b3480156103bf57600080fd5b506103c861106c565b005b6103e460048036038101906103df9190612ef0565b611157565b005b3480156103f257600080fd5b5061040d6004803603810190610408919061323b565b611177565b005b34801561041b57600080fd5b5061043660048036038101906104319190612e56565b611189565b005b34801561044457600080fd5b5061044d6111d5565b60405161045a9190613a54565b60405180910390f35b34801561046f57600080fd5b5061048a600480360381019061048591906131ee565b6111df565b005b34801561049857600080fd5b506104b360048036038101906104ae919061311a565b61127d565b6040516104c0919061387c565b60405180910390f35b3480156104d557600080fd5b506104f060048036038101906104eb919061323b565b611340565b6040516104fd91906137de565b60405180910390f35b34801561051257600080fd5b5061051b611352565b6040516105289190613a54565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190612e56565b611358565b6040516105659190613a54565b60405180910390f35b34801561057a57600080fd5b50610583611411565b005b34801561059157600080fd5b506105ac60048036038101906105a79190612e56565b611425565b6040516105b9919061389e565b60405180910390f35b3480156105ce57600080fd5b506105d761156f565b6040516105e491906137de565b60405180910390f35b3480156105f957600080fd5b50610602611599565b60405161060f9190613935565b60405180910390f35b34801561062457600080fd5b5061063f600480360381019061063a9190612e56565b61162b565b60405161064c9190613a54565b60405180910390f35b34801561066157600080fd5b5061067c60048036038101906106779190613046565b61163d565b604051610689919061389e565b60405180910390f35b34801561069e57600080fd5b506106b960048036038101906106b49190612fc6565b611851565b005b3480156106c757600080fd5b506106e260048036038101906106dd91906131ee565b61195c565b005b3480156106f057600080fd5b5061070b60048036038101906107069190613268565b61197a565b005b34801561071957600080fd5b506107226119ec565b005b34801561073057600080fd5b50610739611a11565b60405161074691906138f6565b60405180910390f35b34801561075b57600080fd5b50610764611a37565b6040516107719190613935565b60405180910390f35b610794600480360381019061078f9190612f43565b611ac9565b005b3480156107a257600080fd5b506107bd60048036038101906107b8919061323b565b611b3c565b005b3480156107cb57600080fd5b506107e660048036038101906107e1919061323b565b611e79565b6040516107f39190613a39565b60405180910390f35b34801561080857600080fd5b50610823600480360381019061081e919061323b565b611ee3565b6040516108309190613935565b60405180910390f35b34801561084557600080fd5b5061084e612008565b60405161085b91906138db565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190612eb0565b61202e565b60405161089891906138c0565b60405180910390f35b3480156108ad57600080fd5b506108c860048036038101906108c39190612e56565b6120c2565b005b3480156108d657600080fd5b506108f160048036038101906108ec919061323b565b612146565b005b3480156108ff57600080fd5b506109086121cb565b60405161091591906137de565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061097957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109a95750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600e60009054906101000a900460ff1681565b6060600280546109d290613d21565b80601f01602080910402602001604051908101604052809291908181526020018280546109fe90613d21565b8015610a4b5780601f10610a2057610100808354040283529160200191610a4b565b820191906000526020600020905b815481529060010190602001808311610a2e57829003601f168201915b5050505050905090565b6000610a60826121f1565b610a96576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610adf82611340565b90508073ffffffffffffffffffffffffffffffffffffffff16610b00612250565b73ffffffffffffffffffffffffffffffffffffffff1614610b6357610b2c81610b27612250565b61202e565b610b62576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c20612258565b6001600a60006101000a81548160ff0219169083151502179055507fc6a6c2b165e62c9d37fc51a18ed76e5be22304bc1d337877c98f31c23e40b0f5600c604051610c6b9190613957565b60405180910390a1565b818190508484905014610cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb4906139d9565b60405180910390fd5b60005b84849050811015610d2957610d1633868684818110610ce257610ce1613e2b565b5b9050602002016020810190610cf79190612e56565b858585818110610d0a57610d09613e2b565b5b90506020020135610d47565b8080610d2190613d84565b915050610cc0565b5050505050565b6000610d3a6122d6565b6001546000540303905090565b6000610d52826122df565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610db9576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dc5846123ad565b91509150610ddb8187610dd6612250565b6123d4565b610e2757610df086610deb612250565b61202e565b610e26576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610e8e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e9b8686866001612418565b8015610ea657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f7485610f5088888761241e565b7c020000000000000000000000000000000000000000000000000000000017612446565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610ffc576000600185019050600060046000838152602001908152602001600020541415610ffa576000548114610ff9578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110648686866001612471565b505050505050565b611074612258565b600047905060003373ffffffffffffffffffffffffffffffffffffffff168260405161109f906137c9565b60006040518083038185875af1925050503d80600081146110dc576040519150601f19603f3d011682016040523d82523d6000602084013e6110e1565b606091505b505090508061111c576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8260405161114b9190613a54565b60405180910390a15050565b61117283838360405180602001604052806000815250611ac9565b505050565b61117f612258565b80600f8190555050565b611191612258565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600b54905090565b6111e7612258565b600a60009054906101000a900460ff161561122e576040517f6ccad41000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181600c919061123f929190612b4a565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8282604051611271929190613911565b60405180910390a15050565b6060600083839050905060008167ffffffffffffffff8111156112a3576112a2613e5a565b5b6040519080825280602002602001820160405280156112dc57816020015b6112c9612bd0565b8152602001906001900390816112c15790505b50905060005b8281146113345761130b8686838181106112ff576112fe613e2b565b5b90506020020135611e79565b82828151811061131e5761131d613e2b565b5b60200260200101819052508060010190506112e2565b50809250505092915050565b600061134b826122df565b9050919050565b600f5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113c0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611419612258565b6114236000612477565b565b6060600080600061143585611358565b905060008167ffffffffffffffff81111561145357611452613e5a565b5b6040519080825280602002602001820160405280156114815781602001602082028036833780820191505090505b50905061148c612bd0565b60006114966122d6565b90505b838614611561576114a98161253d565b91508160400151156114ba57611556565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146114fa57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611555578083878060010198508151811061154857611547613e2b565b5b6020026020010181815250505b5b806001019050611499565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546115a890613d21565b80601f01602080910402602001604051908101604052809291908181526020018280546115d490613d21565b80156116215780601f106115f657610100808354040283529160200191611621565b820191906000526020600020905b81548152906001019060200180831161160457829003601f168201915b5050505050905090565b600061163682612568565b9050919050565b6060818310611678576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806116836125bf565b905061168d6122d6565b85101561169f5761169c6122d6565b94505b808411156116ab578093505b60006116b687611358565b9050848610156116d95760008686039050818110156116d3578091505b506116de565b600090505b60008167ffffffffffffffff8111156116fa576116f9613e5a565b5b6040519080825280602002602001820160405280156117285781602001602082028036833780820191505090505b5090506000821415611740578094505050505061184a565b600061174b88611e79565b90506000816040015161176057816000015190505b60008990505b8881141580156117765750848714155b1561183c576117848161253d565b925082604001511561179557611831565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146117d557826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611830578084888060010199508151811061182357611822613e2b565b5b6020026020010181815250505b5b806001019050611766565b508583528296505050505050505b9392505050565b806007600061185e612250565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661190b612250565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161195091906138c0565b60405180910390a35050565b611964612258565b8181600d9190611975929190612b4a565b505050565b611982612258565b8163ffffffff16600b5481611995610d30565b61199f9190613b9a565b11156119d7576040517f800113cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119e7828463ffffffff166125c8565b505050565b6119f4612258565b6001600e60006101000a81548160ff021916908315150217905550565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600d8054611a4690613d21565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7290613d21565b8015611abf5780601f10611a9457610100808354040283529160200191611abf565b820191906000526020600020905b815481529060010190602001808311611aa257829003601f168201915b5050505050905090565b611ad4848484610d47565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b3657611aff848484846125e6565b611b35576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611b44612746565b6001600b5481611b52610d30565b611b5c9190613b9a565b1115611b94576040517f800113cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e60009054906101000a900460ff16611be3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bda906139f9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b8152600401611c559190613a54565b60206040518083038186803b158015611c6d57600080fd5b505afa158015611c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca59190612e83565b73ffffffffffffffffffffffffffffffffffffffff1614611cfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf2906139b9565b60405180910390fd5b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f546040518463ffffffff1660e01b8152600401611d7e939291906137f9565b602060405180830381600087803b158015611d9857600080fd5b505af1158015611dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd09190613167565b50601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401611e30939291906137f9565b600060405180830381600087803b158015611e4a57600080fd5b505af1158015611e5e573d6000803e3d6000fd5b50505050611e6d3360016125c8565b50611e76612796565b50565b611e81612bd0565b611e89612bd0565b611e916122d6565b831080611ea55750611ea16125bf565b8310155b15611eb35780915050611ede565b611ebc8361253d565b9050806040015115611ed15780915050611ede565b611eda836127a0565b9150505b919050565b6060611eee826121f1565b611f24576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c8054611f3390613d21565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5f90613d21565b8015611fac5780601f10611f8157610100808354040283529160200191611fac565b820191906000526020600020905b815481529060010190602001808311611f8f57829003601f168201915b50505050509050600081511415611fd25760405180602001604052806000815250612000565b80611fdc846127c0565b600d604051602001611ff093929190613798565b6040516020818303038152906040525b915050919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120ca612258565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561213a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213190613979565b60405180910390fd5b61214381612477565b50565b61214e612258565b600b5481111561218a576040517f8617076200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b819055507fc7bbc2b288fc13314546ea4aa51f6bcf71b7ba4740beeb3d32e9acef57b6668a816040516121c09190613a54565b60405180910390a150565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000816121fc6122d6565b1115801561220b575060005482105b8015612249575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b612260612819565b73ffffffffffffffffffffffffffffffffffffffff1661227e61156f565b73ffffffffffffffffffffffffffffffffffffffff16146122d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122cb90613999565b60405180910390fd5b565b60006001905090565b600080829050806122ee6122d6565b11612376576000548110156123755760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612373575b600081141561236957600460008360019003935083815260200190815260200160002054905061233e565b80925050506123a8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612435868684612821565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612545612bd0565b612561600460008481526020019081526020016000205461282a565b9050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008054905090565b6125e28282604051806020016040528060008152506128e0565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261260c612250565b8786866040518563ffffffff1660e01b815260040161262e9493929190613830565b602060405180830381600087803b15801561264857600080fd5b505af192505050801561267957506040513d601f19601f8201168201806040525081019061267691906131c1565b60015b6126f3573d80600081146126a9576040519150601f19603f3d011682016040523d82523d6000602084013e6126ae565b606091505b506000815114156126eb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6002600954141561278c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278390613a19565b60405180910390fd5b6002600981905550565b6001600981905550565b6127a8612bd0565b6127b96127b4836122df565b61282a565b9050919050565b606060a060405101806040526020810391506000825281835b60011561280457600184039350600a81066030018453600a81049050806127ff57612804565b6127d9565b50828103602084039350808452505050919050565b600033905090565b60009392505050565b612832612bd0565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6128ea838361297d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461297857600080549050600083820390505b61292a60008683806001019450866125e6565b612960576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061291757816000541461297557600080fd5b50505b505050565b60008054905060008214156129be576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129cb6000848385612418565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612a4283612a33600086600061241e565b612a3c85612b3a565b17612446565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612ae357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612aa8565b506000821415612b1f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612b356000848385612471565b505050565b60006001821460e11b9050919050565b828054612b5690613d21565b90600052602060002090601f016020900481019282612b785760008555612bbf565b82601f10612b9157803560ff1916838001178555612bbf565b82800160010185558215612bbf579182015b82811115612bbe578235825591602001919060010190612ba3565b5b509050612bcc9190612c1f565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115612c38576000816000905550600101612c20565b5090565b6000612c4f612c4a84613a94565b613a6f565b905082815260208101848484011115612c6b57612c6a613e98565b5b612c76848285613cdf565b509392505050565b600081359050612c8d81613ffd565b92915050565b600081519050612ca281613ffd565b92915050565b60008083601f840112612cbe57612cbd613e8e565b5b8235905067ffffffffffffffff811115612cdb57612cda613e89565b5b602083019150836020820283011115612cf757612cf6613e93565b5b9250929050565b60008083601f840112612d1457612d13613e8e565b5b8235905067ffffffffffffffff811115612d3157612d30613e89565b5b602083019150836020820283011115612d4d57612d4c613e93565b5b9250929050565b600081359050612d6381614014565b92915050565b600081519050612d7881614014565b92915050565b600081359050612d8d8161402b565b92915050565b600081519050612da28161402b565b92915050565b600082601f830112612dbd57612dbc613e8e565b5b8135612dcd848260208601612c3c565b91505092915050565b60008083601f840112612dec57612deb613e8e565b5b8235905067ffffffffffffffff811115612e0957612e08613e89565b5b602083019150836001820283011115612e2557612e24613e93565b5b9250929050565b600081359050612e3b81614042565b92915050565b600081359050612e5081614059565b92915050565b600060208284031215612e6c57612e6b613ea2565b5b6000612e7a84828501612c7e565b91505092915050565b600060208284031215612e9957612e98613ea2565b5b6000612ea784828501612c93565b91505092915050565b60008060408385031215612ec757612ec6613ea2565b5b6000612ed585828601612c7e565b9250506020612ee685828601612c7e565b9150509250929050565b600080600060608486031215612f0957612f08613ea2565b5b6000612f1786828701612c7e565b9350506020612f2886828701612c7e565b9250506040612f3986828701612e2c565b9150509250925092565b60008060008060808587031215612f5d57612f5c613ea2565b5b6000612f6b87828801612c7e565b9450506020612f7c87828801612c7e565b9350506040612f8d87828801612e2c565b925050606085013567ffffffffffffffff811115612fae57612fad613e9d565b5b612fba87828801612da8565b91505092959194509250565b60008060408385031215612fdd57612fdc613ea2565b5b6000612feb85828601612c7e565b9250506020612ffc85828601612d54565b9150509250929050565b6000806040838503121561301d5761301c613ea2565b5b600061302b85828601612c7e565b925050602061303c85828601612e2c565b9150509250929050565b60008060006060848603121561305f5761305e613ea2565b5b600061306d86828701612c7e565b935050602061307e86828701612e2c565b925050604061308f86828701612e2c565b9150509250925092565b600080600080604085870312156130b3576130b2613ea2565b5b600085013567ffffffffffffffff8111156130d1576130d0613e9d565b5b6130dd87828801612ca8565b9450945050602085013567ffffffffffffffff811115613100576130ff613e9d565b5b61310c87828801612cfe565b925092505092959194509250565b6000806020838503121561313157613130613ea2565b5b600083013567ffffffffffffffff81111561314f5761314e613e9d565b5b61315b85828601612cfe565b92509250509250929050565b60006020828403121561317d5761317c613ea2565b5b600061318b84828501612d69565b91505092915050565b6000602082840312156131aa576131a9613ea2565b5b60006131b884828501612d7e565b91505092915050565b6000602082840312156131d7576131d6613ea2565b5b60006131e584828501612d93565b91505092915050565b6000806020838503121561320557613204613ea2565b5b600083013567ffffffffffffffff81111561322357613222613e9d565b5b61322f85828601612dd6565b92509250509250929050565b60006020828403121561325157613250613ea2565b5b600061325f84828501612e2c565b91505092915050565b6000806040838503121561327f5761327e613ea2565b5b600061328d85828601612e41565b925050602061329e85828601612c7e565b9150509250929050565b60006132b483836136b2565b60808301905092915050565b60006132cc838361376b565b60208301905092915050565b6132e181613bf0565b82525050565b6132f081613bf0565b82525050565b600061330182613afa565b61330b8185613b40565b935061331683613ac5565b8060005b8381101561334757815161332e88826132a8565b975061333983613b26565b92505060018101905061331a565b5085935050505092915050565b600061335f82613b05565b6133698185613b51565b935061337483613ad5565b8060005b838110156133a557815161338c88826132c0565b975061339783613b33565b925050600181019050613378565b5085935050505092915050565b6133bb81613c02565b82525050565b6133ca81613c02565b82525050565b60006133db82613b10565b6133e58185613b62565b93506133f5818560208601613cee565b6133fe81613ea7565b840191505092915050565b61341281613c97565b82525050565b61342181613ca9565b82525050565b60006134338385613b7e565b9350613440838584613cdf565b61344983613ea7565b840190509392505050565b600061345f82613b1b565b6134698185613b7e565b9350613479818560208601613cee565b61348281613ea7565b840191505092915050565b600061349882613b1b565b6134a28185613b8f565b93506134b2818560208601613cee565b80840191505092915050565b600081546134cb81613d21565b6134d58186613b7e565b945060018216600081146134f0576001811461350257613535565b60ff1983168652602086019350613535565b61350b85613ae5565b60005b8381101561352d5781548189015260018201915060208101905061350e565b808801955050505b50505092915050565b6000815461354b81613d21565b6135558186613b8f565b945060018216600081146135705760018114613581576135b4565b60ff198316865281860193506135b4565b61358a85613ae5565b60005b838110156135ac5781548189015260018201915060208101905061358d565b838801955050505b50505092915050565b60006135ca602683613b7e565b91506135d582613eb8565b604082019050919050565b60006135ed602083613b7e565b91506135f882613f07565b602082019050919050565b6000613610601f83613b7e565b915061361b82613f30565b602082019050919050565b6000613633602683613b7e565b915061363e82613f59565b604082019050919050565b6000613656601a83613b7e565b915061366182613fa8565b602082019050919050565b6000613679600083613b73565b915061368482613fd1565b600082019050919050565b600061369c601f83613b7e565b91506136a782613fd4565b602082019050919050565b6080820160008201516136c860008501826132d8565b5060208201516136db6020850182613789565b5060408201516136ee60408501826133b2565b506060820151613701606085018261375c565b50505050565b60808201600082015161371d60008501826132d8565b5060208201516137306020850182613789565b50604082015161374360408501826133b2565b506060820151613756606085018261375c565b50505050565b61376581613c5a565b82525050565b61377481613c69565b82525050565b61378381613c69565b82525050565b61379281613c83565b82525050565b60006137a4828661348d565b91506137b0828561348d565b91506137bc828461353e565b9150819050949350505050565b60006137d48261366c565b9150819050919050565b60006020820190506137f360008301846132e7565b92915050565b600060608201905061380e60008301866132e7565b61381b60208301856132e7565b613828604083018461377a565b949350505050565b600060808201905061384560008301876132e7565b61385260208301866132e7565b61385f604083018561377a565b818103606083015261387181846133d0565b905095945050505050565b6000602082019050818103600083015261389681846132f6565b905092915050565b600060208201905081810360008301526138b88184613354565b905092915050565b60006020820190506138d560008301846133c1565b92915050565b60006020820190506138f06000830184613409565b92915050565b600060208201905061390b6000830184613418565b92915050565b6000602082019050818103600083015261392c818486613427565b90509392505050565b6000602082019050818103600083015261394f8184613454565b905092915050565b6000602082019050818103600083015261397181846134be565b905092915050565b60006020820190508181036000830152613992816135bd565b9050919050565b600060208201905081810360008301526139b2816135e0565b9050919050565b600060208201905081810360008301526139d281613603565b9050919050565b600060208201905081810360008301526139f281613626565b9050919050565b60006020820190508181036000830152613a1281613649565b9050919050565b60006020820190508181036000830152613a328161368f565b9050919050565b6000608082019050613a4e6000830184613707565b92915050565b6000602082019050613a69600083018461377a565b92915050565b6000613a79613a8a565b9050613a858282613d53565b919050565b6000604051905090565b600067ffffffffffffffff821115613aaf57613aae613e5a565b5b613ab882613ea7565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613ba582613c69565b9150613bb083613c69565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613be557613be4613dcd565b5b828201905092915050565b6000613bfb82613c3a565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b6000613ca282613cbb565b9050919050565b6000613cb482613cbb565b9050919050565b6000613cc682613ccd565b9050919050565b6000613cd882613c3a565b9050919050565b82818337600083830152505050565b60005b83811015613d0c578082015181840152602081019050613cf1565b83811115613d1b576000848401525b50505050565b60006002820490506001821680613d3957607f821691505b60208210811415613d4d57613d4c613dfc565b5b50919050565b613d5c82613ea7565b810181811067ffffffffffffffff82111715613d7b57613d7a613e5a565b5b80604052505050565b6000613d8f82613c69565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613dc257613dc1613dcd565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f446f6573206e6f74206f776e20636f72726573706f6e64696e67207368697000600082015250565b7f52656365697665727320616e64204944732061726520646966666572656e742060008201527f6c656e6774680000000000000000000000000000000000000000000000000000602082015250565b7f52657665616c20686173206e6f74207374617274656420796574000000000000600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61400681613bf0565b811461401157600080fd5b50565b61401d81613c02565b811461402857600080fd5b50565b61403481613c0e565b811461403f57600080fd5b50565b61404b81613c69565b811461405657600080fd5b50565b61406281613c73565b811461406d57600080fd5b5056fea2646970667358221220d95cce31b881201b96b2b13ca6285597c0e3718a4211ce5ff23a8f276b9251b364736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a6f6256e1f77ae1e9e0dd2f580e112e4fd08043200000000000000000000000001c3f4a1ebccbc37cd3d4763b540e880e60302c9000000000000000000000000000000000000000000000000000000000000000b4f4f5a2026206d6174657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034f4f5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : collectionName (string): OOZ & mates
Arg [1] : collectionSymbol (string): OOZ
Arg [2] : tokenURISuffix (string):
Arg [3] : spaceshipAddr (address): 0xa6F6256E1F77Ae1E9E0dD2f580e112E4Fd080432
Arg [4] : IP3tokenAddr (address): 0x01C3f4a1EbccbC37cD3D4763B540e880E60302c9

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 000000000000000000000000a6f6256e1f77ae1e9e0dd2f580e112e4fd080432
Arg [4] : 00000000000000000000000001c3f4a1ebccbc37cd3d4763b540e880e60302c9
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 4f4f5a2026206d61746573000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4f4f5a0000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000


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.