ETH Price: $2,638.14 (-0.75%)

Token

Void Runners Genesis Fleet (VRGF)
 

Overview

Max Total Supply

2,065 VRGF

Holders

402

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
witlogic.eth
Balance
16 VRGF
0xa227f861cA3260315b0Cf12eeeF04F09Ee88cC15
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:
VoidShip

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 14 : VoidShip.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

/**
              ___ ___         __     __ _______ __     __
              |   |   |.-----.|__|.--|  |     __|  |--.|__|.-----.
              |   |   ||  _  ||  ||  _  |__     |     ||  ||  _  |
              \_____/ |_____||__||_____|_______|__|__||__||   __|
                                                          |__|

                            https://voidrunners.io

                          ,                         ,,
                         @@@           @@          ,@@@
                        ]@@@@         ]@@W         @@@@
                        ]@@@@         @@@@         $@@@
                        ]@@@[        ]@@@@L        $@@@
                        ]@@@[        @@@@@@        $@@@
                        ]@@@@       ]@@@@@@P       @@@@
                        ]@@@@       @@@@@@@@       @@@@-
                        ]@@@@       @@@@@@@@       @@@@-
                        ]@@@P      ]@@@@@@@@       $@@@L
                        ]@@@K      $@@@@@@@@K      $@@@P
                        ]@@@K      @@@@@@@@@@      $@@@K
                     ,g $@@@P ,,g@@@@@@@@@@@@@@g,  $@@@K]g,
                  g@@@@K$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@$@@@@w
                 ]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                 $@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                 ]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@$@@@@@P
                    *B@-@@@@$@@@@@@@@@@@@@@@@@@@@@@Q@@@@]@@P'
                      - @@@@@@@@P RNNNNNNNNNNP *@@@@@@@@ `
                        @@@@@@"                  *%@@@@@
                      g@@@@@                       "%@@@@g
                    g@@@@@P                         'M@@@@@g
                  g@@@@@@-                             %@@@@@g
                g@@@@@@P                                ]@@@@@@g
              g@@@@@@@P                                  ]@@@@@@@g
            g@@@@@N*"-                                     "*N@@@@@g
          ,@@N*"                                                "*N@@g
          "                                                           '
*/

import "@openzeppelin/contracts/utils/Strings.sol";
import "./Void721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";

error ShipNotFound();

/**
  @title VoidShip, a spaceship in the Void Runners Genesis Fleet
  @notice A Void721 NFT with a modular data/rendering contract

  See also: Void721 and DropShop721
*/
contract VoidShip is Void721 {
    using Strings for uint256;

    event DataAddressUpdated(address newAddr);

    // our modular data storage and tokenURI() rendering contract
    // this is an IVoidShipData, but we only require that it conform to IERC721Metadata
    address public dataAddress;

    /// @notice setup our spaceship
    constructor(
        string memory _metadataBaseURI,
        uint256 _cap,
        address _royaltyRecipient,
        address _openseaProxy
    )
        Void721(
            "Void Runners Genesis Fleet",
            "VRGF",
            _metadataBaseURI,
            _cap,
            _royaltyRecipient,
            _openseaProxy
        )
    {}

    /// @notice set the address of our VoidShipData contract
    function setDataAddress(address newAddr) public onlyOwner {
        dataAddress = newAddr;
        emit DataAddressUpdated(newAddr);
    }

    /// @notice standard ERC721 metadata lookup function; delegates to our VoidShipData contract, if set
    function tokenURI(uint256 id) public view override returns (string memory) {
        if (!_exists(id)) {
            revert ShipNotFound();
        }

        if (dataAddress == address(0)) {
            return string(abi.encodePacked(baseURI, id.toString()));
        }

        return IERC721Metadata(dataAddress).tokenURI(id);
    }
}

File 2 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 3 of 14 : Void721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import {IERC2981} from "@openzeppelin/contracts/interfaces/IERC2981.sol";
import {IBeforeTransferHook} from "../interfaces/IBeforeTransferHook.sol";

error NotAnAdmin();
error ExceedsMaxSupply();
error CannotBurn();

// for OpenSea gasless listings
interface OpenSeaProxyRegistry {
    function proxies(address addr) external view returns (address);
}

/**
  @title Void721, a robust ERC721A-based NFT
  @notice Intended to be used in conjunction with DropShop721 as a minting frontend

  Featuring:

  - configurable baseURI
  - token IDs starting at 1 rather than 0
  - administrative mgmnt, for delegating mint permission() to DropShop71.
    also allows us keep owner keys in cold storage post-deploy
  - modular beforeTransferHook, allowing for upgradable transfer locking or other future tokenomic mechanics
  - EIP2981 on-chain royalty payment info
  - OpenSea gasless listings, which can be toggled on and off
  - exposes how long a given token has been owned, for use in insight/clockspeed-style calculations
  - burning available to token owner
*/
contract Void721 is ERC721AQueryable, Ownable {
    // maximum number of tokens that can be minted, set in constructor
    uint256 public immutable maxSupply;

    // timestamp when contract was deployed
    uint256 public immutable startTime;

    // metadata URI to which token IDs are appended for generating `tokenURI`
    // configurable with `setBaseURI`
    string public baseURI;

    // administrative callers set by the owner (e.g. so DropShop can call mint)
    // configurable with `setAdmin()`
    mapping(address => bool) private administrators;

    // our modular beforeTransferHook contract, defaulting off
    // for upgradable transfer-locking and other tokenomic mechanics
    // inspired by @frolic: https://twitter.com/frolic/status/1527698740336656389
    IBeforeTransferHook public beforeTransferHook;

    // ERC2981 royalty payments; configurable with `setRoyaltyInfo`
    address public royaltyRecipient;
    uint256 public royaltyAmount = 500; // 5% by default

    // OpenSea gasless listings
    // configurable with `setOpenSeaProxyActive` and `setOpenSeaProxyAddress`
    address public openSeaProxyRegistryAddress;
    bool public openSeaProxyActive = true;

    modifier onlyAdmin() {
        if (_msgSender() != owner() && !administrators[_msgSender()]) {
            revert NotAnAdmin();
        }
        _;
    }

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _argBaseURI,
        uint256 _cap,
        address _royaltyRecipient,
        address _openSeaProxyRegistryAddress
    ) ERC721A(_name, _symbol) {
        startTime = block.timestamp;
        baseURI = _argBaseURI;
        maxSupply = _cap;
        royaltyRecipient = _royaltyRecipient;
        openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress;
    }

    /// @dev overload ERC721A's start index so we begin at token 1
    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    /// @dev overload ERC721A to return our configurable metadata baseURI
    ///      note that we also have a configurable baseURI inside VoidShipData
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    /// @notice change the base ERC721 token URI
    function setBaseURI(string calldata newURI) external onlyOwner {
        baseURI = newURI;
    }

    /// @notice non-owner administrative mgmnt, primarily for use by our DropShop
    function setAdmin(address _newAdmin, bool _isAdmin) external onlyOwner {
        administrators[_newAdmin] = _isAdmin;
    }

    /// @notice is a given address an administrator of this contract?
    function isAdmin(address addressToCheck) external view returns (bool) {
        return
            addressToCheck == owner() || administrators[addressToCheck] == true;
    }

    /// @notice our primary minting function, restricted to admins (e.g. our DropShop)
    /// @dev we are using _mint() rather than _safeMint(), which checks if recipient can accept an ERC721
    ///      don't mint if you can't receive an ERC-721!
    function mint(address _recipient, uint256 _amount) public onlyAdmin {
        if (_nextTokenId() + _amount > maxSupply) {
            revert ExceedsMaxSupply();
        }
        _mint(_recipient, _amount);
    }

    /// @notice called by ERC721A before any token transfer and delegated to
    ///         our configured beforeTransferHook. this could be used to add
    ///         (or remove) transfer-locking and other tokenomic mechanics
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if (address(beforeTransferHook) != address(0)) {
            beforeTransferHook.beforeTokenTransfer(
                from,
                to,
                startTokenId,
                quantity
            );
        }
    }

    /// @notice let owner set an address for our (optional) IBeforeTransferHook contract
    function setBeforeTransferHook(IBeforeTransferHook _beforeTransferHook)
        external
        onlyOwner
    {
        beforeTransferHook = _beforeTransferHook;
    }

    /// @notice timestamp of when this token was last transferred
    ///         can be used for an insight/clockspeed-style rewards
    ///         shoutout Corruptions* and OKPC
    function getLastTransferTime(uint256 id) public view returns (uint64) {
        return _ownershipOf(id).startTimestamp;
    }

    /// @notice convenience function to calculate seconds since the last transfer
    function getSecondsSinceLastTransfer(uint256 id)
        public
        view
        returns (uint256)
    {
        return block.timestamp - getLastTransferTime(id);
    }

    /// @notice support for ERC-2981 NFT royalty standard
    ///         https://eips.ethereum.org/EIPS/eip-2981
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        returns (address, uint256)
    {
        return (royaltyRecipient, (salePrice * royaltyAmount) / 10000);
    }

    /// @notice allow owner (but not admins) to set the secondary-sale royalty amount
    function setRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyAmount)
        external
        onlyOwner
    {
        royaltyRecipient = _royaltyRecipient;
        royaltyAmount = _royaltyAmount;
    }

    /// @notice enable or disable OpenSea gasless listings
    ///         this is a separate boolean rather than address(0) so we can preserve
    ///         valid values for the proxy, but can still enable and disable
    function setOpenSeaProxyActive(bool _openSeaProxyActive)
        external
        onlyOwner
    {
        openSeaProxyActive = _openSeaProxyActive;
    }

    /// @notice allow owner (but not admins) to set the address of the OpenSea proxy registry
    function setOpenSeaProxyRegistryAddress(address _proxyRegistryAddress)
        external
        onlyOwner
    {
        openSeaProxyRegistryAddress = _proxyRegistryAddress;
    }

    /// @notice overload the standard approval check to always allow the OpenSea proxy, if enabled
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(
            openSeaProxyRegistryAddress
        );
        if (
            openSeaProxyActive &&
            address(openSeaProxyRegistryAddress) != address(0) &&
            address(proxyRegistry.proxies(owner)) == operator
        ) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }

    /// @dev let everyone know that we support ERC2981 (royalty payments)
    function supportsInterface(bytes4 _interfaceId)
        public
        view
        virtual
        override(ERC721A)
        returns (bool)
    {
        return
            (_interfaceId == type(IERC2981).interfaceId) ||
            (super.supportsInterface(_interfaceId));
    }

    /// @notice allow token owner to burn their tokens
    function burn(uint256 id) external {
        if (_msgSender() != ownerOf(id)) {
            revert CannotBurn();
        }
        _burn(id);
    }

    /// @notice check if a given token exists, meaning it has been minted and has not been burned
    function exists(uint256 id) external view returns (bool) {
        return _exists(id);
    }

    /// @notice how many tokens have been minted? use `totalSupply()` to get `totalMinted() - totalBurned()`
    /// @dev exposing some internal ERC721A methods, primarily for use by DropShop
    function totalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    /// @notice how many tokens have been burned?
    function totalBurned() external view returns (uint256) {
        return _totalBurned();
    }

    /// @notice how many tokens have been minted by a given address?
    function numberMinted(address minter) external view returns (uint256) {
        return _numberMinted(minter);
    }

    /// @notice how many tokens have been burned by a given address?
    function numberBurned(address burner) external view returns (uint256) {
        return _numberBurned(burner);
    }

    /// @dev allow owners and admins (DropShop) to set the number of prerelease mints for given user
    /// @dev this utilizes ERC721A's spare bitmask space via getAux/setAux
    function setPrereleasePurchases(address buyer, uint64 amount)
        external
        onlyAdmin
    {
        _setAux(buyer, amount);
    }

    /// @notice how many tokens have been minted as part of our allowlist & friendlist phases?
    function prereleasePurchases(address buyer) external view returns (uint64) {
        return _getAux(buyer);
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 5 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 14 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

/**
 * @title ERC721A Queryable
 * @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`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view 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[] memory tokenIds) external view 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 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 pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view 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 7 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 8 of 14 : IBeforeTransferHook.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

// ERC721A-compatible
interface IBeforeTransferHook {
    function beforeTokenTransfer(
        address from,
        address to,
        uint256 startId,
        uint256 quantity
    ) external;
}

File 9 of 14 : 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 14 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
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`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) 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 pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // 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 tokenId of the next token 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`
    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 => address) private _tokenApprovals;

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

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

    /**
     * @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 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 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 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 returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    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: 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.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view 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 auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * 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 ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // 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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // 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 `_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));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // 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] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try 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))
                }
            }
        }
    }

    /**
     * @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 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 returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 12 of 14 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_metadataBaseURI","type":"string"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"address","name":"_openseaProxy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotBurn","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotAnAdmin","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ShipNotFound","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddr","type":"address"}],"name":"DataAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeTransferHook","outputs":[{"internalType":"contract IBeforeTransferHook","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dataAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct 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":"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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getLastTransferTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getSecondsSinceLastTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressToCheck","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"numberBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"prereleasePurchases","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"},{"internalType":"bool","name":"_isAdmin","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBeforeTransferHook","name":"_beforeTransferHook","type":"address"}],"name":"setBeforeTransferHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setDataAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_openSeaProxyActive","type":"bool"}],"name":"setOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setOpenSeaProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint64","name":"amount","type":"uint64"}],"name":"setPrereleasePurchases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint256","name":"_royaltyAmount","type":"uint256"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526101f4600d55600e805460ff60a01b1916600160a01b1790553480156200002a57600080fd5b5060405162002d9238038062002d928339810160408190526200004d916200026c565b6040518060400160405280601a81526020017f566f69642052756e6e6572732047656e6573697320466c656574000000000000815250604051806040016040528060048152602001632b2923a360e11b8152508585858585858160029080519060200190620000be92919062000193565b508051620000d490600390602084019062000193565b5050600160005550620000e73362000141565b4260a05283516200010090600990602087019062000193565b50608092909252600c80546001600160a01b039283166001600160a01b031991821617909155600e805492909316911617905550620003b795505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a1906200037a565b90600052602060002090601f016020900481019282620001c5576000855562000210565b82601f10620001e057805160ff191683800117855562000210565b8280016001018555821562000210579182015b8281111562000210578251825591602001919060010190620001f3565b506200021e92915062000222565b5090565b5b808211156200021e576000815560010162000223565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200026757600080fd5b919050565b600080600080608085870312156200028357600080fd5b84516001600160401b03808211156200029b57600080fd5b818701915087601f830112620002b057600080fd5b815181811115620002c557620002c562000239565b604051601f8201601f19908116603f01168101908382118183101715620002f057620002f062000239565b81604052828152602093508a848487010111156200030d57600080fd5b600091505b8282101562000331578482018401518183018501529083019062000312565b82821115620003435760008484830101525b80985050505080870151945050506200035f604086016200024f565b91506200036f606086016200024f565b905092959194509250565b600181811c908216806200038f57607f821691505b60208210811415620003b157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516129ae620003e460003960006105cf0152600081816106e90152610ba601526129ae6000f3fe608060405234801561001057600080fd5b50600436106103365760003560e01c80636c0360eb116101b2578063a2309ff8116100f9578063d5abeb01116100a2578063e2e784d51161007c578063e2e784d514610726578063e985e9c514610739578063f254ceb31461074c578063f2fde38b1461075f57600080fd5b8063d5abeb01146106e4578063d89135cd1461070b578063dc33e6811461071357600080fd5b8063b88d4fde116100d3578063b88d4fde1461069e578063c23dc68f146106b1578063c87b56dd146106d157600080fd5b8063a2309ff81461066c578063a335811f14610678578063b7f47d321461068b57600080fd5b80638462151c1161015b57806395d89b411161013557806395d89b411461063e57806399a2557a14610646578063a22cb4651461065957600080fd5b80638462151c146105fa5780638929565f1461061a5780638da5cb5b1461062d57600080fd5b8063715018a61161018c578063715018a6146105c257806378e97925146105ca5780637c6e551d146105f157600080fd5b80636c0360eb146105945780636dcbad591461059c57806370a08231146105af57600080fd5b806324d7806c116102815780634b0bddd21161022a57806355f804b31161020457806355f804b31461053b5780635bbb21771461054e5780636352211e1461056e57806368c65ca01461058157600080fd5b80634b0bddd2146105025780634c00de82146105155780634f558e791461052857600080fd5b806340c10f191161025b57806340c10f19146104c957806342842e0e146104dc57806342966c68146104ef57600080fd5b806324d7806c146104585780632a55205a1461046b578063357c79bc1461049d57600080fd5b806318160ddd116102e3578063203063d3116102bd578063203063d31461041f57806323b872dd146104325780632478d6391461044557600080fd5b806318160ddd146103de5780631b655054146103f85780631fd60fd81461040b57600080fd5b806308abf0261161031457806308abf026146103a3578063095ea7b3146103b857806311b01145146103cb57600080fd5b806301ffc9a71461033b57806306fdde0314610363578063081812fc14610378575b600080fd5b61034e61034936600461214d565b610772565b60405190151581526020015b60405180910390f35b61036b61079d565b60405161035a91906121c2565b61038b6103863660046121d5565b61082f565b6040516001600160a01b03909116815260200161035a565b6103b66103b1366004612203565b610873565b005b6103b66103c6366004612220565b6108e2565b6103b66103d9366004612203565b6109b5565b60015460005403600019015b60405190815260200161035a565b600f5461038b906001600160a01b031681565b600e5461034e90600160a01b900460ff1681565b6103ea61042d3660046121d5565b610a51565b6103b661044036600461224c565b610a70565b6103ea610453366004612203565b610a80565b61034e610466366004612203565b610aae565b61047e61047936600461228d565b610b00565b604080516001600160a01b03909316835260208301919091520161035a565b6104b06104ab366004612203565b610b3a565b60405167ffffffffffffffff909116815260200161035a565b6103b66104d7366004612220565b610b5b565b6103b66104ea36600461224c565b610c06565b6103b66104fd3660046121d5565b610c21565b6103b66105103660046122c4565b610c67565b600c5461038b906001600160a01b031681565b61034e6105363660046121d5565b610cda565b6103b66105493660046122f9565b610ce5565b61056161055c3660046123b2565b610d39565b60405161035a9190612458565b61038b61057c3660046121d5565b610e00565b6103b661058f3660046124c3565b610e0b565b61036b610e96565b6103b66105aa366004612509565b610f24565b6103ea6105bd366004612203565b610fa5565b6103b6610ff4565b6103ea7f000000000000000000000000000000000000000000000000000000000000000081565b6103ea600d5481565b61060d610608366004612203565b611048565b60405161035a9190612524565b6103b6610628366004612203565b61114c565b6008546001600160a01b031661038b565b61036b6111b6565b61060d61065436600461255c565b6111c5565b6103b66106673660046122c4565b611351565b600054600019016103ea565b600b5461038b906001600160a01b031681565b600e5461038b906001600160a01b031681565b6103b66106ac3660046125b9565b6113ec565b6106c46106bf3660046121d5565b611436565b60405161035a9190612668565b61036b6106df3660046121d5565b6114ab565b6103ea7f000000000000000000000000000000000000000000000000000000000000000081565b6103ea611586565b6103ea610721366004612203565b611591565b6103b6610734366004612220565b6115bc565b61034e61074736600461269e565b61162a565b6104b061075a3660046121d5565b61171d565b6103b661076d366004612203565b611732565b60006001600160e01b0319821663152a902d60e11b14806107975750610797826117ff565b92915050565b6060600280546107ac906126cc565b80601f01602080910402602001604051908101604052809291908181526020018280546107d8906126cc565b80156108255780601f106107fa57610100808354040283529160200191610825565b820191906000526020600020905b81548152906001019060200180831161080857829003601f168201915b5050505050905090565b600061083a8261184d565b610857576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b031633146108c05760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064015b60405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006108ed82611882565b9050806001600160a01b0316836001600160a01b031614156109225760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109595761093c813361162a565b610959576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b031633146109fd5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc77b1572376c62a6189d4b9ba465c233af4ffab30bd16b02bf48c5da4d71a8739060200160405180910390a150565b6000610a5c8261171d565b6107979067ffffffffffffffff164261271d565b610a7b8383836118eb565b505050565b6000610797826001600160a01b031660009081526005602052604090205460801c67ffffffffffffffff1690565b6000610ac26008546001600160a01b031690565b6001600160a01b0316826001600160a01b031614806107975750506001600160a01b03166000908152600a602052604090205460ff16151560011490565b600c54600d5460009182916001600160a01b039091169061271090610b259086612734565b610b2f9190612769565b915091509250929050565b6001600160a01b03811660009081526005602052604081205460c01c610797565b6008546001600160a01b03163314801590610b865750336000908152600a602052604090205460ff16155b15610ba4576040516355098f2760e01b815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081610bcf60005490565b610bd9919061277d565b1115610bf85760405163c30436e960e01b815260040160405180910390fd5b610c028282611a9b565b5050565b610a7b838383604051806020016040528060008152506113ec565b610c2a81610e00565b6001600160a01b0316336001600160a01b031614610c5b57604051635788079960e01b815260040160405180910390fd5b610c6481611b86565b50565b6008546001600160a01b03163314610caf5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b60006107978261184d565b6008546001600160a01b03163314610d2d5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b610a7b6009838361209e565b805160609060008167ffffffffffffffff811115610d5957610d5961236b565b604051908082528060200260200182016040528015610da457816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610d775790505b50905060005b828114610df857610dd3858281518110610dc657610dc6612795565b6020026020010151611436565b828281518110610de557610de5612795565b6020908102919091010152600101610daa565b509392505050565b600061079782611882565b6008546001600160a01b03163314801590610e365750336000908152600a602052604090205460ff16155b15610e54576040516355098f2760e01b815260040160405180910390fd5b6001600160a01b0382166000908152600560205260409020805460c083901b77ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050565b60098054610ea3906126cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecf906126cc565b8015610f1c5780601f10610ef157610100808354040283529160200191610f1c565b820191906000526020600020905b815481529060010190602001808311610eff57829003601f168201915b505050505081565b6008546001600160a01b03163314610f6c5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600e8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60006001600160a01b038216610fce576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461103c5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b6110466000611b91565b565b6060600080600061105885610fa5565b905060008167ffffffffffffffff8111156110755761107561236b565b60405190808252806020026020018201604052801561109e578160200160208202803683370190505b50604080516060810182526000808252602082018190529181019190915290915060015b838614611140576110d281611be3565b91508160400151156110e357611138565b81516001600160a01b0316156110f857815194505b876001600160a01b0316856001600160a01b03161415611138578083878060010198508151811061112b5761112b612795565b6020026020010181815250505b6001016110c2565b50909695505050505050565b6008546001600160a01b031633146111945760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546107ac906126cc565b60608183106111e757604051631960ccad60e11b815260040160405180910390fd5b6000806111f360005490565b9050600185101561120357600194505b8084111561120f578093505b600061121a87610fa5565b9050848610156112395785850381811015611233578091505b5061123d565b5060005b60008167ffffffffffffffff8111156112585761125861236b565b604051908082528060200260200182016040528015611281578160200160208202803683370190505b5090508161129457935061134a92505050565b600061129f88611436565b9050600081604001516112b0575080515b885b8881141580156112c25750848714155b1561133e576112d081611be3565b92508260400151156112e157611336565b82516001600160a01b0316156112f657825191505b8a6001600160a01b0316826001600160a01b03161415611336578084888060010199508151811061132957611329612795565b6020026020010181815250505b6001016112b2565b50505092835250909150505b9392505050565b6001600160a01b03821633141561137b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b6113f78484846118eb565b6001600160a01b0383163b156114305761141384848484611c4e565b611430576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061147c57506000548310155b156114875792915050565b61149083611be3565b90508060400151156114a25792915050565b61134a83611d36565b60606114b68261184d565b6114d3576040516303c113ad60e61b815260040160405180910390fd5b600f546001600160a01b03166115155760096114ee83611d9a565b6040516020016114ff9291906127c7565b6040516020818303038152906040529050919050565b600f5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa15801561155e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610797919081019061286e565b60006113e760015490565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c16610797565b6008546001600160a01b031633146116045760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600c80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b600e546000906001600160a01b03811690600160a01b900460ff16801561165b5750600e546001600160a01b031615155b80156116dc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa1580156116ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d191906128dc565b6001600160a01b0316145b156116eb576001915050610797565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b600061172882611d36565b6020015192915050565b6008546001600160a01b0316331461177a5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b6001600160a01b0381166117f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108b7565b610c6481611b91565b60006301ffc9a760e01b6001600160e01b03198316148061183057506380ac58cd60e01b6001600160e01b03198316145b806107975750506001600160e01b031916635b5e139f60e01b1490565b600081600111158015611861575060005482105b8015610797575050600090815260046020526040902054600160e01b161590565b600081806001116118d2576000548110156118d257600081815260046020526040902054600160e01b81166118d0575b8061134a5750600019016000818152600460205260409020546118b2565b505b604051636f96cda160e11b815260040160405180910390fd5b60006118f682611882565b9050836001600160a01b0316816001600160a01b0316146119295760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806119475750611947853361162a565b806119625750336119578461082f565b6001600160a01b0316145b90508061198257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166119a957604051633a954ecd60e21b815260040160405180910390fd5b6119b68585856001611eb0565b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b861781179091558216611a535760018301600081815260046020526040902054611a51576000548114611a515760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6000546001600160a01b038316611ac457604051622e076360e81b815260040160405180910390fd5b81611ae25760405163b562e8dd60e01b815260040160405180910390fd5b611aef6000848385611eb0565b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b3a5750600055505050565b610c64816000611f3c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516060810182526000808252602082018190529181019190915260008281526004602052604090205461079790604080516060810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b90921615159082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c839033908990889088906004016128f9565b6020604051808303816000875af1925050508015611cbe575060408051601f3d908101601f19168201909252611cbb91810190612935565b60015b611d19573d808015611cec576040519150601f19603f3d011682016040523d82523d6000602084013e611cf1565b606091505b508051611d11576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160608101825260008082526020820181905291810191909152610797611d5f83611882565b604080516060810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b90921615159082015290565b606081611dbe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611de85780611dd281612952565b9150611de19050600a83612769565b9150611dc2565b60008167ffffffffffffffff811115611e0357611e0361236b565b6040519080825280601f01601f191660200182016040528015611e2d576020820181803683370190505b5090505b841561171557611e4260018361271d565b9150611e4f600a8661296d565b611e5a90603061277d565b60f81b818381518110611e6f57611e6f612795565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ea9600a86612769565b9450611e31565b600b546001600160a01b03161561143057600b5460405163b676687560e01b81526001600160a01b038681166004830152858116602483015260448201859052606482018490529091169063b676687590608401600060405180830381600087803b158015611f1e57600080fd5b505af1158015611f32573d6000803e3d6000fd5b5050505050505050565b6000611f4783611882565b9050808215611fab576000336001600160a01b0383161480611f6e5750611f6e823361162a565b80611f89575033611f7e8661082f565b6001600160a01b0316145b905080611fa957604051632ce44b5f60e11b815260040160405180910390fd5b505b611fb9816000866001611eb0565b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091529020600360e01b4260a01b8317179055600160e11b821661205857600184016000818152600460205260409020546120565760005481146120565760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b8280546120aa906126cc565b90600052602060002090601f0160209004810192826120cc5760008555612112565b82601f106120e55782800160ff19823516178555612112565b82800160010185558215612112579182015b828111156121125782358255916020019190600101906120f7565b5061211e929150612122565b5090565b5b8082111561211e5760008155600101612123565b6001600160e01b031981168114610c6457600080fd5b60006020828403121561215f57600080fd5b813561134a81612137565b60005b8381101561218557818101518382015260200161216d565b838111156114305750506000910152565b600081518084526121ae81602086016020860161216a565b601f01601f19169290920160200192915050565b60208152600061134a6020830184612196565b6000602082840312156121e757600080fd5b5035919050565b6001600160a01b0381168114610c6457600080fd5b60006020828403121561221557600080fd5b813561134a816121ee565b6000806040838503121561223357600080fd5b823561223e816121ee565b946020939093013593505050565b60008060006060848603121561226157600080fd5b833561226c816121ee565b9250602084013561227c816121ee565b929592945050506040919091013590565b600080604083850312156122a057600080fd5b50508035926020909101359150565b803580151581146122bf57600080fd5b919050565b600080604083850312156122d757600080fd5b82356122e2816121ee565b91506122f0602084016122af565b90509250929050565b6000806020838503121561230c57600080fd5b823567ffffffffffffffff8082111561232457600080fd5b818501915085601f83011261233857600080fd5b81358181111561234757600080fd5b86602082850101111561235957600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156123aa576123aa61236b565b604052919050565b600060208083850312156123c557600080fd5b823567ffffffffffffffff808211156123dd57600080fd5b818501915085601f8301126123f157600080fd5b8135818111156124035761240361236b565b8060051b9150612414848301612381565b818152918301840191848101908884111561242e57600080fd5b938501935b8385101561244c57843582529385019390850190612433565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611140576124b083855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101612474565b600080604083850312156124d657600080fd5b82356124e1816121ee565b9150602083013567ffffffffffffffff811681146124fe57600080fd5b809150509250929050565b60006020828403121561251b57600080fd5b61134a826122af565b6020808252825182820181905260009190848201906040850190845b8181101561114057835183529284019291840191600101612540565b60008060006060848603121561257157600080fd5b833561257c816121ee565b95602085013595506040909401359392505050565b600067ffffffffffffffff8211156125ab576125ab61236b565b50601f01601f191660200190565b600080600080608085870312156125cf57600080fd5b84356125da816121ee565b935060208501356125ea816121ee565b925060408501359150606085013567ffffffffffffffff81111561260d57600080fd5b8501601f8101871361261e57600080fd5b803561263161262c82612591565b612381565b81815288602083850101111561264657600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610797565b600080604083850312156126b157600080fd5b82356126bc816121ee565b915060208301356124fe816121ee565b600181811c908216806126e057607f821691505b6020821081141561270157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561272f5761272f612707565b500390565b600081600019048311821515161561274e5761274e612707565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261277857612778612753565b500490565b6000821982111561279057612790612707565b500190565b634e487b7160e01b600052603260045260246000fd5b600081516127bd81856020860161216a565b9290920192915050565b600080845481600182811c9150808316806127e357607f831692505b602080841082141561280357634e487b7160e01b86526022600452602486fd5b818015612817576001811461282857612855565b60ff19861689528489019650612855565b60008b81526020902060005b8681101561284d5781548b820152908501908301612834565b505084890196505b50505050505061286581856127ab565b95945050505050565b60006020828403121561288057600080fd5b815167ffffffffffffffff81111561289757600080fd5b8201601f810184136128a857600080fd5b80516128b661262c82612591565b8181528560208385010111156128cb57600080fd5b61286582602083016020860161216a565b6000602082840312156128ee57600080fd5b815161134a816121ee565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261292b6080830184612196565b9695505050505050565b60006020828403121561294757600080fd5b815161134a81612137565b600060001982141561296657612966612707565b5060010190565b60008261297c5761297c612753565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c634300080b000a0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000186a00000000000000000000000046272b64b8d3b49b87344d71842bd4cd612cc30c000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f766f696472756e6e6572732e696f2f6170692f73686970732f00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103365760003560e01c80636c0360eb116101b2578063a2309ff8116100f9578063d5abeb01116100a2578063e2e784d51161007c578063e2e784d514610726578063e985e9c514610739578063f254ceb31461074c578063f2fde38b1461075f57600080fd5b8063d5abeb01146106e4578063d89135cd1461070b578063dc33e6811461071357600080fd5b8063b88d4fde116100d3578063b88d4fde1461069e578063c23dc68f146106b1578063c87b56dd146106d157600080fd5b8063a2309ff81461066c578063a335811f14610678578063b7f47d321461068b57600080fd5b80638462151c1161015b57806395d89b411161013557806395d89b411461063e57806399a2557a14610646578063a22cb4651461065957600080fd5b80638462151c146105fa5780638929565f1461061a5780638da5cb5b1461062d57600080fd5b8063715018a61161018c578063715018a6146105c257806378e97925146105ca5780637c6e551d146105f157600080fd5b80636c0360eb146105945780636dcbad591461059c57806370a08231146105af57600080fd5b806324d7806c116102815780634b0bddd21161022a57806355f804b31161020457806355f804b31461053b5780635bbb21771461054e5780636352211e1461056e57806368c65ca01461058157600080fd5b80634b0bddd2146105025780634c00de82146105155780634f558e791461052857600080fd5b806340c10f191161025b57806340c10f19146104c957806342842e0e146104dc57806342966c68146104ef57600080fd5b806324d7806c146104585780632a55205a1461046b578063357c79bc1461049d57600080fd5b806318160ddd116102e3578063203063d3116102bd578063203063d31461041f57806323b872dd146104325780632478d6391461044557600080fd5b806318160ddd146103de5780631b655054146103f85780631fd60fd81461040b57600080fd5b806308abf0261161031457806308abf026146103a3578063095ea7b3146103b857806311b01145146103cb57600080fd5b806301ffc9a71461033b57806306fdde0314610363578063081812fc14610378575b600080fd5b61034e61034936600461214d565b610772565b60405190151581526020015b60405180910390f35b61036b61079d565b60405161035a91906121c2565b61038b6103863660046121d5565b61082f565b6040516001600160a01b03909116815260200161035a565b6103b66103b1366004612203565b610873565b005b6103b66103c6366004612220565b6108e2565b6103b66103d9366004612203565b6109b5565b60015460005403600019015b60405190815260200161035a565b600f5461038b906001600160a01b031681565b600e5461034e90600160a01b900460ff1681565b6103ea61042d3660046121d5565b610a51565b6103b661044036600461224c565b610a70565b6103ea610453366004612203565b610a80565b61034e610466366004612203565b610aae565b61047e61047936600461228d565b610b00565b604080516001600160a01b03909316835260208301919091520161035a565b6104b06104ab366004612203565b610b3a565b60405167ffffffffffffffff909116815260200161035a565b6103b66104d7366004612220565b610b5b565b6103b66104ea36600461224c565b610c06565b6103b66104fd3660046121d5565b610c21565b6103b66105103660046122c4565b610c67565b600c5461038b906001600160a01b031681565b61034e6105363660046121d5565b610cda565b6103b66105493660046122f9565b610ce5565b61056161055c3660046123b2565b610d39565b60405161035a9190612458565b61038b61057c3660046121d5565b610e00565b6103b661058f3660046124c3565b610e0b565b61036b610e96565b6103b66105aa366004612509565b610f24565b6103ea6105bd366004612203565b610fa5565b6103b6610ff4565b6103ea7f0000000000000000000000000000000000000000000000000000000062a6b8a481565b6103ea600d5481565b61060d610608366004612203565b611048565b60405161035a9190612524565b6103b6610628366004612203565b61114c565b6008546001600160a01b031661038b565b61036b6111b6565b61060d61065436600461255c565b6111c5565b6103b66106673660046122c4565b611351565b600054600019016103ea565b600b5461038b906001600160a01b031681565b600e5461038b906001600160a01b031681565b6103b66106ac3660046125b9565b6113ec565b6106c46106bf3660046121d5565b611436565b60405161035a9190612668565b61036b6106df3660046121d5565b6114ab565b6103ea7f000000000000000000000000000000000000000000000000000000000000186a81565b6103ea611586565b6103ea610721366004612203565b611591565b6103b6610734366004612220565b6115bc565b61034e61074736600461269e565b61162a565b6104b061075a3660046121d5565b61171d565b6103b661076d366004612203565b611732565b60006001600160e01b0319821663152a902d60e11b14806107975750610797826117ff565b92915050565b6060600280546107ac906126cc565b80601f01602080910402602001604051908101604052809291908181526020018280546107d8906126cc565b80156108255780601f106107fa57610100808354040283529160200191610825565b820191906000526020600020905b81548152906001019060200180831161080857829003601f168201915b5050505050905090565b600061083a8261184d565b610857576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b031633146108c05760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064015b60405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006108ed82611882565b9050806001600160a01b0316836001600160a01b031614156109225760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109595761093c813361162a565b610959576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b031633146109fd5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc77b1572376c62a6189d4b9ba465c233af4ffab30bd16b02bf48c5da4d71a8739060200160405180910390a150565b6000610a5c8261171d565b6107979067ffffffffffffffff164261271d565b610a7b8383836118eb565b505050565b6000610797826001600160a01b031660009081526005602052604090205460801c67ffffffffffffffff1690565b6000610ac26008546001600160a01b031690565b6001600160a01b0316826001600160a01b031614806107975750506001600160a01b03166000908152600a602052604090205460ff16151560011490565b600c54600d5460009182916001600160a01b039091169061271090610b259086612734565b610b2f9190612769565b915091509250929050565b6001600160a01b03811660009081526005602052604081205460c01c610797565b6008546001600160a01b03163314801590610b865750336000908152600a602052604090205460ff16155b15610ba4576040516355098f2760e01b815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000186a81610bcf60005490565b610bd9919061277d565b1115610bf85760405163c30436e960e01b815260040160405180910390fd5b610c028282611a9b565b5050565b610a7b838383604051806020016040528060008152506113ec565b610c2a81610e00565b6001600160a01b0316336001600160a01b031614610c5b57604051635788079960e01b815260040160405180910390fd5b610c6481611b86565b50565b6008546001600160a01b03163314610caf5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b60006107978261184d565b6008546001600160a01b03163314610d2d5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b610a7b6009838361209e565b805160609060008167ffffffffffffffff811115610d5957610d5961236b565b604051908082528060200260200182016040528015610da457816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610d775790505b50905060005b828114610df857610dd3858281518110610dc657610dc6612795565b6020026020010151611436565b828281518110610de557610de5612795565b6020908102919091010152600101610daa565b509392505050565b600061079782611882565b6008546001600160a01b03163314801590610e365750336000908152600a602052604090205460ff16155b15610e54576040516355098f2760e01b815260040160405180910390fd5b6001600160a01b0382166000908152600560205260409020805460c083901b77ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050565b60098054610ea3906126cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecf906126cc565b8015610f1c5780601f10610ef157610100808354040283529160200191610f1c565b820191906000526020600020905b815481529060010190602001808311610eff57829003601f168201915b505050505081565b6008546001600160a01b03163314610f6c5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600e8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60006001600160a01b038216610fce576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461103c5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b6110466000611b91565b565b6060600080600061105885610fa5565b905060008167ffffffffffffffff8111156110755761107561236b565b60405190808252806020026020018201604052801561109e578160200160208202803683370190505b50604080516060810182526000808252602082018190529181019190915290915060015b838614611140576110d281611be3565b91508160400151156110e357611138565b81516001600160a01b0316156110f857815194505b876001600160a01b0316856001600160a01b03161415611138578083878060010198508151811061112b5761112b612795565b6020026020010181815250505b6001016110c2565b50909695505050505050565b6008546001600160a01b031633146111945760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546107ac906126cc565b60608183106111e757604051631960ccad60e11b815260040160405180910390fd5b6000806111f360005490565b9050600185101561120357600194505b8084111561120f578093505b600061121a87610fa5565b9050848610156112395785850381811015611233578091505b5061123d565b5060005b60008167ffffffffffffffff8111156112585761125861236b565b604051908082528060200260200182016040528015611281578160200160208202803683370190505b5090508161129457935061134a92505050565b600061129f88611436565b9050600081604001516112b0575080515b885b8881141580156112c25750848714155b1561133e576112d081611be3565b92508260400151156112e157611336565b82516001600160a01b0316156112f657825191505b8a6001600160a01b0316826001600160a01b03161415611336578084888060010199508151811061132957611329612795565b6020026020010181815250505b6001016112b2565b50505092835250909150505b9392505050565b6001600160a01b03821633141561137b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b6113f78484846118eb565b6001600160a01b0383163b156114305761141384848484611c4e565b611430576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061147c57506000548310155b156114875792915050565b61149083611be3565b90508060400151156114a25792915050565b61134a83611d36565b60606114b68261184d565b6114d3576040516303c113ad60e61b815260040160405180910390fd5b600f546001600160a01b03166115155760096114ee83611d9a565b6040516020016114ff9291906127c7565b6040516020818303038152906040529050919050565b600f5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa15801561155e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610797919081019061286e565b60006113e760015490565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c16610797565b6008546001600160a01b031633146116045760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b600c80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b600e546000906001600160a01b03811690600160a01b900460ff16801561165b5750600e546001600160a01b031615155b80156116dc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa1580156116ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d191906128dc565b6001600160a01b0316145b156116eb576001915050610797565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b600061172882611d36565b6020015192915050565b6008546001600160a01b0316331461177a5760405162461bcd60e51b8152602060048201819052602482015260008051602061298283398151915260448201526064016108b7565b6001600160a01b0381166117f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108b7565b610c6481611b91565b60006301ffc9a760e01b6001600160e01b03198316148061183057506380ac58cd60e01b6001600160e01b03198316145b806107975750506001600160e01b031916635b5e139f60e01b1490565b600081600111158015611861575060005482105b8015610797575050600090815260046020526040902054600160e01b161590565b600081806001116118d2576000548110156118d257600081815260046020526040902054600160e01b81166118d0575b8061134a5750600019016000818152600460205260409020546118b2565b505b604051636f96cda160e11b815260040160405180910390fd5b60006118f682611882565b9050836001600160a01b0316816001600160a01b0316146119295760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806119475750611947853361162a565b806119625750336119578461082f565b6001600160a01b0316145b90508061198257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166119a957604051633a954ecd60e21b815260040160405180910390fd5b6119b68585856001611eb0565b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b861781179091558216611a535760018301600081815260046020526040902054611a51576000548114611a515760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6000546001600160a01b038316611ac457604051622e076360e81b815260040160405180910390fd5b81611ae25760405163b562e8dd60e01b815260040160405180910390fd5b611aef6000848385611eb0565b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611b3a5750600055505050565b610c64816000611f3c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516060810182526000808252602082018190529181019190915260008281526004602052604090205461079790604080516060810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b90921615159082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c839033908990889088906004016128f9565b6020604051808303816000875af1925050508015611cbe575060408051601f3d908101601f19168201909252611cbb91810190612935565b60015b611d19573d808015611cec576040519150601f19603f3d011682016040523d82523d6000602084013e611cf1565b606091505b508051611d11576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160608101825260008082526020820181905291810191909152610797611d5f83611882565b604080516060810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b90921615159082015290565b606081611dbe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611de85780611dd281612952565b9150611de19050600a83612769565b9150611dc2565b60008167ffffffffffffffff811115611e0357611e0361236b565b6040519080825280601f01601f191660200182016040528015611e2d576020820181803683370190505b5090505b841561171557611e4260018361271d565b9150611e4f600a8661296d565b611e5a90603061277d565b60f81b818381518110611e6f57611e6f612795565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ea9600a86612769565b9450611e31565b600b546001600160a01b03161561143057600b5460405163b676687560e01b81526001600160a01b038681166004830152858116602483015260448201859052606482018490529091169063b676687590608401600060405180830381600087803b158015611f1e57600080fd5b505af1158015611f32573d6000803e3d6000fd5b5050505050505050565b6000611f4783611882565b9050808215611fab576000336001600160a01b0383161480611f6e5750611f6e823361162a565b80611f89575033611f7e8661082f565b6001600160a01b0316145b905080611fa957604051632ce44b5f60e11b815260040160405180910390fd5b505b611fb9816000866001611eb0565b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091529020600360e01b4260a01b8317179055600160e11b821661205857600184016000818152600460205260409020546120565760005481146120565760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b8280546120aa906126cc565b90600052602060002090601f0160209004810192826120cc5760008555612112565b82601f106120e55782800160ff19823516178555612112565b82800160010185558215612112579182015b828111156121125782358255916020019190600101906120f7565b5061211e929150612122565b5090565b5b8082111561211e5760008155600101612123565b6001600160e01b031981168114610c6457600080fd5b60006020828403121561215f57600080fd5b813561134a81612137565b60005b8381101561218557818101518382015260200161216d565b838111156114305750506000910152565b600081518084526121ae81602086016020860161216a565b601f01601f19169290920160200192915050565b60208152600061134a6020830184612196565b6000602082840312156121e757600080fd5b5035919050565b6001600160a01b0381168114610c6457600080fd5b60006020828403121561221557600080fd5b813561134a816121ee565b6000806040838503121561223357600080fd5b823561223e816121ee565b946020939093013593505050565b60008060006060848603121561226157600080fd5b833561226c816121ee565b9250602084013561227c816121ee565b929592945050506040919091013590565b600080604083850312156122a057600080fd5b50508035926020909101359150565b803580151581146122bf57600080fd5b919050565b600080604083850312156122d757600080fd5b82356122e2816121ee565b91506122f0602084016122af565b90509250929050565b6000806020838503121561230c57600080fd5b823567ffffffffffffffff8082111561232457600080fd5b818501915085601f83011261233857600080fd5b81358181111561234757600080fd5b86602082850101111561235957600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156123aa576123aa61236b565b604052919050565b600060208083850312156123c557600080fd5b823567ffffffffffffffff808211156123dd57600080fd5b818501915085601f8301126123f157600080fd5b8135818111156124035761240361236b565b8060051b9150612414848301612381565b818152918301840191848101908884111561242e57600080fd5b938501935b8385101561244c57843582529385019390850190612433565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611140576124b083855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101612474565b600080604083850312156124d657600080fd5b82356124e1816121ee565b9150602083013567ffffffffffffffff811681146124fe57600080fd5b809150509250929050565b60006020828403121561251b57600080fd5b61134a826122af565b6020808252825182820181905260009190848201906040850190845b8181101561114057835183529284019291840191600101612540565b60008060006060848603121561257157600080fd5b833561257c816121ee565b95602085013595506040909401359392505050565b600067ffffffffffffffff8211156125ab576125ab61236b565b50601f01601f191660200190565b600080600080608085870312156125cf57600080fd5b84356125da816121ee565b935060208501356125ea816121ee565b925060408501359150606085013567ffffffffffffffff81111561260d57600080fd5b8501601f8101871361261e57600080fd5b803561263161262c82612591565b612381565b81815288602083850101111561264657600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610797565b600080604083850312156126b157600080fd5b82356126bc816121ee565b915060208301356124fe816121ee565b600181811c908216806126e057607f821691505b6020821081141561270157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561272f5761272f612707565b500390565b600081600019048311821515161561274e5761274e612707565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261277857612778612753565b500490565b6000821982111561279057612790612707565b500190565b634e487b7160e01b600052603260045260246000fd5b600081516127bd81856020860161216a565b9290920192915050565b600080845481600182811c9150808316806127e357607f831692505b602080841082141561280357634e487b7160e01b86526022600452602486fd5b818015612817576001811461282857612855565b60ff19861689528489019650612855565b60008b81526020902060005b8681101561284d5781548b820152908501908301612834565b505084890196505b50505050505061286581856127ab565b95945050505050565b60006020828403121561288057600080fd5b815167ffffffffffffffff81111561289757600080fd5b8201601f810184136128a857600080fd5b80516128b661262c82612591565b8181528560208385010111156128cb57600080fd5b61286582602083016020860161216a565b6000602082840312156128ee57600080fd5b815161134a816121ee565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261292b6080830184612196565b9695505050505050565b60006020828403121561294757600080fd5b815161134a81612137565b600060001982141561296657612966612707565b5060010190565b60008261297c5761297c612753565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c634300080b000a

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000186a00000000000000000000000046272b64b8d3b49b87344d71842bd4cd612cc30c000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f766f696472756e6e6572732e696f2f6170692f73686970732f00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _metadataBaseURI (string): https://voidrunners.io/api/ships/
Arg [1] : _cap (uint256): 6250
Arg [2] : _royaltyRecipient (address): 0x46272b64B8D3b49B87344D71842bD4Cd612cc30c
Arg [3] : _openseaProxy (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000000000000000000000000000000000000000186a
Arg [2] : 00000000000000000000000046272b64b8d3b49b87344d71842bd4cd612cc30c
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [5] : 68747470733a2f2f766f696472756e6e6572732e696f2f6170692f7368697073
Arg [6] : 2f00000000000000000000000000000000000000000000000000000000000000


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.