ETH Price: $3,568.31 (+8.22%)

Token

Spacelooters (SPL)
 

Overview

Max Total Supply

424 SPL

Holders

72

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
qomrade.eth
Balance
3 SPL
0x0e4885b96aa3834e328d217dd2eec6012bb8d28c
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:
Spacelooters

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 19 : Spacelooters.sol
// SPDX-License-Identifier: UNLICENSED

/*

                                    .....              ..::^^::..
                          .:~!7777??777!~^:   .^~77?????????77!~:.
                       :~7?????77777777?????77????777777777777????!^.
                    .~7??7777777777777777777??77777777777777777777???~.
                  .~??77777777????777777777777777777777???????7777777??~
                 ^??777777???777777??7777777777777777??7~~~~!7???777777?7:
                !?777777??!^.      .~777777777777777?!.       .:!??77777??^
               7?77777??~.           :?77777777777777            .!?77777??^
              :!!7??7?!.             :?77777777777777^:.           :7???7!~~.
      .:~!!!!!~^^:^!?~           :~!7?777777777777777???7~.         .77^::^~!!7!!~^.
    :!777777777777~::         :!???????777777777777????????7:        .:~777777777777!:
   !7777777777777777~       ^7??7!~~~~~7??777777?77!~~~!!7???7:      ^7777777777777777!.
  !777777777777777777!    :7??~^!J5PGPY!^!?777?7~^7J5P5Y7~^!???!    ~7777777777777777777.
 ~77777777777777777777^  ~??!:7G########G^^?7?!:JB########5~^7??7. :77777777777777777777!
 !77777777777777777777! ~??^^G############!:?!.G############Y:!??7 ~777777777777777777777
 !77777777777777777777~.??^:###############:~.5##############G.!??.^777777777777777777777
 ^77777777777777777777.^?! :?P#############5 ~##############P? .7?~.77777777777777777777^
  ~777777777777777777^.7?.^~BJ7YG##########B ?###########GJ7JY:^^??::777777777777777777~
   ^777777777777777!.:7?7.P:&&&J .~?5PGGGP5! .YGBBBBG5?~.^G#&J!J.?7?..!777777777777777^
     ^!7777777777~:  !??!.B:G&&7      7555P#~YG55YY.     .&&&^5Y.?7?.  :~7777777777!^
       ..:^^^^:.     ~?77.G~J#PY:    .5Y?7!~.^!7?YG~     7B&#:#!^?7?.     .:^^^^:.
                     ~?7?^^Y.75GBBBY..::^^^^^^^^^:::.?GGGPY7^~G.777?.
                     :?77?:^7#####G ^~~^^^^^^^^^^~~~^.P#####!?:~?777
                      7777?~~YB###B~.:^^^~~~~~~~^^^:.^B####B?:!?77?~
                      ^?77??~.^B####P?~^:::::::::^~75#####7.^??77?7.
                       !??~^7PB########BBGP555PGGB########B5!^!???:
                        !:!B######G555P###########BGGB#######P!^7^
                         ~#######7.:&&?.?5PBBBG5!?PGG::7B######Y
                          ~B####B.^^!?^ J5J~.7JGY:YJ7:~:^#####5.
                            !G###5::.JP#~.J! 7P! !J?.~~.!###5:
                              ^JG#B?^5GGJ~5J~JP!.#&P.^^JBP!.
                                 :!YPPGGB#####BGP55J?J?~.
                                      .^~77??J??7~^..


    Limited-edition drops exclusive to LILKOOL supporters and collectors.

    Spacelooters brought to you by Special Delivery & Nclyne.
*/

pragma solidity ^0.8.17;

import "erc721a/extensions/ERC721ABurnable.sol";
import "openzeppelin-contracts/token/common/ERC2981.sol";
import "openzeppelin-contracts/access/Ownable.sol";
import "openzeppelin-contracts/security/PullPayment.sol";
import "openzeppelin-contracts/utils/cryptography/SignatureChecker.sol";

contract Spacelooters is ERC721ABurnable, ERC2981, Ownable, PullPayment {
    using SignatureChecker for address;

    // Maximum number of tokens that may be minted.
    uint256 public constant MAXIMUM_TOKENS = 3333;

    // Price of each token to be minted.
    uint256 public constant MINT_PRICE = 0.1 ether;

    // Presale start at Sat Oct 01 2022 19:00:00 GMT-0400 (Eastern Daylight Time).
    uint256 public constant PRESALE_START_TIMESTAMP = 1664676000;

    // Public sale start at Sun Oct 02 2022 19:00:00 GMT-0400 (Eastern Daylight Time).
    // This is 24 hours after the presale.
    uint256 public constant PUBLIC_SALE_START_TIMESTAMP = 1664762400;

    // Sender may only mint up to 10 tokens per transaction.
    uint256 public constant PUBLIC_SALE_MAXIMUM_TOKENS_PER_TRANSACTION = 10;

    // Categories of addresses eligible for presale minting.
    bytes32 public constant KOOL_KID = keccak256("KoolKid");
    bytes32 public constant OG = keccak256("OG");

    // Token allowances for each presale eligible category.
    uint256 public constant KOOL_KIDS_PRESALE_ALLOWANCE = 10;
    uint256 public constant OG_PRESALE_ALLOWANCE = 25;

    // Address of signer for verifying sender address is eligible for presale.
    address private presaleVerifier;

    // Address that should receive payments.
    address private paymentsBeneficiary;

    // Base URI of tokens.
    string private __baseURI;

    // Track how many mints per address during presale.
    mapping(address => uint256) public presaleMintTracker;

    // Is burning tokens enabled?
    bool public burningEnabled;

    /**
     * Presale verifier signer should not be the zero address.
     */
    error PresaleVerifierCannotBeAddressZero();

    /**
     * Payments beneficiary cannot be the zero address.
     */
    error PaymentsBeneficiaryAddressCannotBeAddressZero();

    /**
     * Recipients and token quantities to be be airdropped mismatch in length.
     *  This can only occur during deployment.
     */
    error ConstructorArgsRecipientsAndQuantitiesLengthsDiffer();

    /**
     * The signature for minting could not be verified.
     */
    error SignatureCouldNotBeVerified();

    /**
     * The sender is neither a Kool Kid or OG and may not mint during presale.
     *
     * This error should never be trigged because ineligible addresses should not make it past signature verification.
     */
    error SenderIneligibleForPresale();

    /**
     * Presale has either not yet started or has already ended.
     */
    error PresaleNotActive();

    /**
     * Public sale has not started.
     */
    error PublicSaleNotActive();

    /**
     * Invalid number of tokens requested to be minted.
     * This can be trigged from a sender wanting to mint 0 tokens, more than their allowance,
     * or `MAXIMUM_TOKENS` would be exceeded.
     */
    error BadRequestedMintQuantity();

    /**
     * Incorrect amount of wei (ETH) sent.
     */
    error BadPaymentAmount();

    /**
     * Burning is not enabled.
     */
    error BurningNotEnabled();

    constructor(
        address presaleVerifier_,
        address paymentsBeneficiary_,
        address[] memory recipients,
        uint256[] memory quantities
    ) ERC721A("Spacelooters", "SPL") {
        if (presaleVerifier_ == address(0)) {
            revert PresaleVerifierCannotBeAddressZero();
        }

        if (paymentsBeneficiary_ == address(0)) {
            revert PaymentsBeneficiaryAddressCannotBeAddressZero();
        }

        // Check that lengths of the recipients and quantities arrays are the same.
        if (recipients.length != quantities.length) {
            revert ConstructorArgsRecipientsAndQuantitiesLengthsDiffer();
        }

        // Loop over the airdrop recipients, minting tokens for them and checking too many tokens are not minted.
        uint256 tokensMinted;
        for (uint256 i = 0; i < recipients.length; i++) {
            uint256 quantity = 0;

            // Check that the total number of tokens minted does not exceed `MAXIMUM_TOKENS`.
            if ((quantity = quantities[i]) < 1 || (tokensMinted += quantity) > MAXIMUM_TOKENS) {
                revert BadRequestedMintQuantity();
            }

            _mintERC2309(recipients[i], quantity);
        }

        // Set presale verifier address.
        presaleVerifier = presaleVerifier_;

        // Set payments beneficiary address.
        paymentsBeneficiary = paymentsBeneficiary_;

        // Set royalties for beneficiary to 10% (1000 / 10000).
        _setDefaultRoyalty(paymentsBeneficiary, 1000);

        // Burning is enabled by default.
        burningEnabled = false;

        // Set __baseURI;
        __baseURI = "https://spacelooters.nyc3.digitaloceanspaces.com/metadata/";
    }

    function supportsInterface(bytes4 interfaceId) public view override (ERC721A, IERC721A, ERC2981) returns (bool) {
        return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
    }

    /**
     * @dev Override of {ERC721A-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view override (ERC721A, IERC721A) returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    function changeVerifier(address presaleVerifier_) external onlyOwner {
        if (presaleVerifier_ == address(0)) {
            revert PresaleVerifierCannotBeAddressZero();
        }

        presaleVerifier = presaleVerifier_;
    }

    function changePaymentsBeneficiary(address paymentsBeneficiary_) external onlyOwner {
        if (paymentsBeneficiary_ == address(0)) {
            revert PaymentsBeneficiaryAddressCannotBeAddressZero();
        }

        paymentsBeneficiary = paymentsBeneficiary_;
    }

    function changeBaseURI(string memory baseURI) external onlyOwner {
        __baseURI = baseURI;
    }

    function mint(uint256 quantity) external payable returns (uint256, uint256) {
        // Check that the public sale has begun.
        if (block.timestamp < PUBLIC_SALE_START_TIMESTAMP) {
            revert PublicSaleNotActive();
        }

        // Check that the sender has not requested to mint fewer than 1 token (0)
        // OR a quantity of token greater than may be minted in a single transaction
        // OR a quantity of tokens that would result in `MAXIMUM_TOKENS` being minted
        uint256 startTokenId = _nextTokenId();
        if (
            (quantity < 1) || (quantity > PUBLIC_SALE_MAXIMUM_TOKENS_PER_TRANSACTION)
                || (startTokenId + quantity > MAXIMUM_TOKENS)
        ) {
            revert BadRequestedMintQuantity();
        }

        // Check the correct amount of wei (ETH) was sent.
        if (msg.value != MINT_PRICE * quantity) {
            revert BadPaymentAmount();
        }

        // Transfer payments to escrow for contract owner.
        _asyncTransfer(paymentsBeneficiary, msg.value);

        // Mint `quantity` tokens and send them to the sender.
        _mint(msg.sender, quantity);

        // Return start and end token ids.
        return (startTokenId, startTokenId + quantity - 1);
    }

    function presaleMint(uint256 quantity, bytes32 presaleCategory, bytes memory signature)
        external
        payable
        returns (uint256, uint256)
    {
        // Check that presale has started and has not yet ended.
        if (block.timestamp < PRESALE_START_TIMESTAMP || block.timestamp >= PUBLIC_SALE_START_TIMESTAMP) {
            revert PresaleNotActive();
        }

        // Get allowance of tokens for sender during presale and revert if they are ineligible.
        uint256 allowance = _getPresaleMintAllowance(presaleCategory, signature);

        // Check that the sender has not requested to mint fewer than 1 token (0)
        // OR a quantity of tokens would result in their allowance being exceeded
        // OR a quantity of tokens that would result in `MAXIMUM_TOKENS` being minted
        uint256 startTokenId = _nextTokenId();
        if (
            quantity < 1 || (presaleMintTracker[msg.sender] += quantity) > allowance
                || startTokenId + quantity > MAXIMUM_TOKENS
        ) {
            revert BadRequestedMintQuantity();
        }

        // Check the correct amount of wei (ETH) was sent.
        if (msg.value != MINT_PRICE * quantity) {
            revert BadPaymentAmount();
        }

        // Transfer payments to escrow for contract owner.
        _asyncTransfer(paymentsBeneficiary, msg.value);

        // Mint `quantity` tokens and send them to the sender.
        _mint(msg.sender, quantity);

        // Return start and end token ids.
        return (startTokenId, startTokenId + quantity - 1);
    }

    /**
     * @dev Enable the ability to burn tokens.
     */
    function enableBurning() external onlyOwner {
        burningEnabled = true;
    }

    /**
     * @dev Disable the ability to burn tokens.
     */
    function disableBurning() external onlyOwner {
        burningEnabled = false;
    }

    /**
     * @dev Override of {ERC721A}
     */
    function burn(uint256 tokenId) public override {
        if (!burningEnabled) {
            revert BurningNotEnabled();
        }

        super.burn(tokenId);
    }

    /**
     * @dev Start counting tokens up from 1 as opposed to 0.
     */
    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    /**
     * @dev See {ERC721A-_baseURI}
     */
    function _baseURI() internal view override returns (string memory) {
        return __baseURI;
    }

    /**
     * @dev Get allowance of tokens for sender during presale.
     */
    function _getPresaleMintAllowance(bytes32 presaleCategory, bytes memory signature)
        internal
        view
        returns (uint256)
    {
        // Check if the presale signer says the sender belongs to one of the presale categories, and if not revert.
        if (
            !presaleVerifier.isValidSignatureNow(
                keccak256(
                    abi.encodePacked(
                        "\x19Ethereum Signed Message:\n32",
                        keccak256(abi.encodePacked(address(this), msg.sender, presaleCategory))
                    )
                ),
                signature
            )
        ) {
            revert SignatureCouldNotBeVerified();
        }

        // Check sender presale category and return allowance.
        if (presaleCategory == KOOL_KID) {
            return KOOL_KIDS_PRESALE_ALLOWANCE;
        } else if (presaleCategory == OG) {
            return OG_PRESALE_ALLOWANCE;
        } else {
            // This should not happen because backend will not return a signature for an ineligible address.
            revert SenderIneligibleForPresale();
        }
    }
}

File 2 of 19 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721ABurnable.
 *
 * @dev ERC721A token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 3 of 19 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 5 of 19 : PullPayment.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/PullPayment.sol)

pragma solidity ^0.8.0;

import "../utils/escrow/Escrow.sol";

/**
 * @dev Simple implementation of a
 * https://consensys.github.io/smart-contract-best-practices/development-recommendations/general/external-calls/#favor-pull-over-push-for-external-calls[pull-payment]
 * strategy, where the paying contract doesn't interact directly with the
 * receiver account, which must withdraw its payments itself.
 *
 * Pull-payments are often considered the best practice when it comes to sending
 * Ether, security-wise. It prevents recipients from blocking execution, and
 * eliminates reentrancy concerns.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
 * instead of Solidity's `transfer` function. Payees can query their due
 * payments with {payments}, and retrieve them with {withdrawPayments}.
 */
abstract contract PullPayment {
    Escrow private immutable _escrow;

    constructor() {
        _escrow = new Escrow();
    }

    /**
     * @dev Withdraw accumulated payments, forwarding all gas to the recipient.
     *
     * Note that _any_ account can call this function, not just the `payee`.
     * This means that contracts unaware of the `PullPayment` protocol can still
     * receive funds this way, by having a separate account call
     * {withdrawPayments}.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee Whose payments will be withdrawn.
     *
     * Causes the `escrow` to emit a {Withdrawn} event.
     */
    function withdrawPayments(address payable payee) public virtual {
        _escrow.withdraw(payee);
    }

    /**
     * @dev Returns the payments owed to an address.
     * @param dest The creditor's address.
     */
    function payments(address dest) public view returns (uint256) {
        return _escrow.depositsOf(dest);
    }

    /**
     * @dev Called by the payer to store the sent amount as credit to be pulled.
     * Funds sent in this way are stored in an intermediate {Escrow} contract, so
     * there is no danger of them being spent before withdrawal.
     *
     * @param dest The destination address of the funds.
     * @param amount The amount to transfer.
     *
     * Causes the `escrow` to emit a {Deposited} event.
     */
    function _asyncTransfer(address dest, uint256 amount) internal virtual {
        _escrow.deposit{value: amount}(dest);
    }
}

File 6 of 19 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length == 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 7 of 19 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 8 of 19 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

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

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

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

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

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

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

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

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

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

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

import "../../access/Ownable.sol";
import "../Address.sol";

/**
 * @title Escrow
 * @dev Base escrow contract, holds funds designated for a payee until they
 * withdraw them.
 *
 * Intended usage: This contract (and derived escrow contracts) should be a
 * standalone contract, that only interacts with the contract that instantiated
 * it. That way, it is guaranteed that all Ether will be handled according to
 * the `Escrow` rules, and there is no need to check for payable functions or
 * transfers in the inheritance tree. The contract that uses the escrow as its
 * payment method should be its owner, and provide public methods redirecting
 * to the escrow's deposit and withdraw.
 */
contract Escrow is Ownable {
    using Address for address payable;

    event Deposited(address indexed payee, uint256 weiAmount);
    event Withdrawn(address indexed payee, uint256 weiAmount);

    mapping(address => uint256) private _deposits;

    function depositsOf(address payee) public view returns (uint256) {
        return _deposits[payee];
    }

    /**
     * @dev Stores the sent amount as credit to be withdrawn.
     * @param payee The destination address of the funds.
     *
     * Emits a {Deposited} event.
     */
    function deposit(address payee) public payable virtual onlyOwner {
        uint256 amount = msg.value;
        _deposits[payee] += amount;
        emit Deposited(payee, amount);
    }

    /**
     * @dev Withdraw accumulated balance for a payee, forwarding all gas to the
     * recipient.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee The address whose funds will be withdrawn and transferred to.
     *
     * Emits a {Withdrawn} event.
     */
    function withdraw(address payable payee) public virtual onlyOwner {
        uint256 payment = _deposits[payee];

        _deposits[payee] = 0;

        payee.sendValue(payment);

        emit Withdrawn(payee, payment);
    }
}

File 13 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 14 of 19 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 15 of 19 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 19 : 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 17 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 18 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 19 of 19 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

Settings
{
  "remappings": [
    "ERC721A/=lib/ERC721A/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc721a/=lib/ERC721A/contracts/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"presaleVerifier_","type":"address"},{"internalType":"address","name":"paymentsBeneficiary_","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BadPaymentAmount","type":"error"},{"inputs":[],"name":"BadRequestedMintQuantity","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BurningNotEnabled","type":"error"},{"inputs":[],"name":"ConstructorArgsRecipientsAndQuantitiesLengthsDiffer","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PaymentsBeneficiaryAddressCannotBeAddressZero","type":"error"},{"inputs":[],"name":"PresaleNotActive","type":"error"},{"inputs":[],"name":"PresaleVerifierCannotBeAddressZero","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"SenderIneligibleForPresale","type":"error"},{"inputs":[],"name":"SignatureCouldNotBeVerified","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"KOOL_KID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KOOL_KIDS_PRESALE_ALLOWANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_PRESALE_ALLOWANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_START_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_MAXIMUM_TOKENS_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_START_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burningEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"changeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"paymentsBeneficiary_","type":"address"}],"name":"changePaymentsBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"presaleVerifier_","type":"address"}],"name":"changeVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableBurning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableBurning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"presaleCategory","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"presaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintTracker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162003b8838038062003b888339810160408190526200003491620005d6565b6040518060400160405280600c81526020016b53706163656c6f6f7465727360a01b8152506040518060400160405280600381526020016214d41360ea1b81525081600290816200008691906200075a565b5060036200009582826200075a565b5050600160005550620000a83362000279565b604051620000b690620004c9565b604051809103906000f080158015620000d3573d6000803e3d6000fd5b506001600160a01b039081166080528416620001025760405163d96226c560e01b815260040160405180910390fd5b6001600160a01b0383166200012a5760405163d47d983d60e01b815260040160405180910390fd5b80518251146200014d57604051635728d4d960e01b815260040160405180910390fd5b6000805b8351811015620001fe576000600184838151811062000174576200017462000826565b602002602001015191508110806200019b5750610d0562000196828562000852565b935083115b15620001ba5760405163b3ee3dd360e01b815260040160405180910390fd5b620001e8858381518110620001d357620001d362000826565b602002602001015182620002cb60201b60201c565b5080620001f5816200086e565b91505062000151565b50600b80546001600160a01b038088166001600160a01b031992831617909255600c805492871692909116821790556200023b906103e8620003c4565b600f805460ff191690556040805160608101909152603a80825262003b4e6020830139600d906200026d90826200075a565b5050505050506200088a565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b038316620002f557604051622e076360e81b815260040160405180910390fd5b81600003620003175760405163b562e8dd60e01b815260040160405180910390fd5b6113888211156200033b57604051633db1f9af60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600482528083206001871460e11b4260a01b17851790558051600019868801018152905185927fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d928290030190a40160005550565b505050565b6127106001600160601b0382161115620004385760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620004905760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200042f565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6106db806200347383390190565b80516001600160a01b0381168114620004ef57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005355762000535620004f4565b604052919050565b60006001600160401b03821115620005595762000559620004f4565b5060051b60200190565b600082601f8301126200057557600080fd5b815160206200058e62000588836200053d565b6200050a565b82815260059290921b84018101918181019086841115620005ae57600080fd5b8286015b84811015620005cb5780518352918301918301620005b2565b509695505050505050565b60008060008060808587031215620005ed57600080fd5b620005f885620004d7565b9350602062000609818701620004d7565b60408701519094506001600160401b03808211156200062757600080fd5b818801915088601f8301126200063c57600080fd5b81516200064d62000588826200053d565b81815260059190911b8301840190848101908b8311156200066d57600080fd5b938501935b8285101562000696576200068685620004d7565b8252938501939085019062000672565b60608b01519097509450505080831115620006b057600080fd5b5050620006c08782880162000563565b91505092959194509250565b600181811c90821680620006e157607f821691505b6020821081036200070257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003bf57600081815260208120601f850160051c81016020861015620007315750805b601f850160051c820191505b8181101562000752578281556001016200073d565b505050505050565b81516001600160401b03811115620007765762000776620004f4565b6200078e81620007878454620006cc565b8462000708565b602080601f831160018114620007c65760008415620007ad5750858301515b600019600386901b1c1916600185901b17855562000752565b600085815260208120601f198616915b82811015620007f757888601518255948401946001909101908401620007d6565b5085821015620008165787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156200086857620008686200083c565b92915050565b6000600182016200088357620008836200083c565b5060010190565b608051612bbf620008b460003960008181610e02015281816115d90152611acc0152612bbf6000f3fe6080604052600436106102a05760003560e01c806370a082311161016e578063b88d4fde116100cb578063cf04fb941161007f578063e985e9c511610064578063e985e9c514610759578063efdcfa41146102da578063f2fde38b146107af57600080fd5b8063cf04fb9414610719578063e2982c211461073957600080fd5b8063bf9b7c8d116100b0578063bf9b7c8d146106ca578063c002d23d146106dd578063c87b56dd146106f957600080fd5b8063b88d4fde14610683578063b8f060541461069657600080fd5b806395d89b4111610122578063991d1f2411610107578063991d1f2414610626578063a0712d681461063b578063a22cb4651461066357600080fd5b806395d89b41146105fc57806398603cca1461061157600080fd5b80637581a8e6116101535780637581a8e61461059c578063857c10e7146105b15780638da5cb5b146105d157600080fd5b806370a0823114610567578063715018a61461058757600080fd5b806331b3eb941161021c5780634d754715116101d05780635e89beac116101b55780635e89beac1461051957806362619da1146105315780636352211e1461054757600080fd5b80634d754715146104d257806357abf2a9146104ec57600080fd5b80633cb8ca06116102015780633cb8ca061461048757806342842e0e1461049f57806342966c68146104b257600080fd5b806331b3eb941461044757806339a0c6f91461046757600080fd5b8063095ea7b31161027357806318160ddd1161025857806318160ddd146103ad57806323b872dd146103e85780632a55205a146103fb57600080fd5b8063095ea7b31461036457806317e9884d1461037957600080fd5b806301ffc9a7146102a55780630345d6e5146102da57806306fdde03146102fd578063081812fc1461031f575b600080fd5b3480156102b157600080fd5b506102c56102c0366004612476565b6107cf565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef600a81565b6040519081526020016102d1565b34801561030957600080fd5b506103126107ef565b6040516102d191906124e3565b34801561032b57600080fd5b5061033f61033a3660046124f6565b610881565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d1565b610377610372366004612531565b6108eb565b005b34801561038557600080fd5b506102ef7ff8e4cf2271ec3c91a8e7eec89b6cad96e5bfa4f28bd0ae1d3564206fa8c10c3d81565b3480156103b957600080fd5b50600154600054037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016102ef565b6103776103f636600461255d565b610a00565b34801561040757600080fd5b5061041b61041636600461259e565b610cc4565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683526020830191909152016102d1565b34801561045357600080fd5b506103776104623660046125c0565b610dbd565b34801561047357600080fd5b50610377610482366004612682565b610e61565b34801561049357600080fd5b506102ef636338f0a081565b6103776104ad36600461255d565b610e79565b3480156104be57600080fd5b506103776104cd3660046124f6565b610e99565b3480156104de57600080fd5b50600f546102c59060ff1681565b3480156104f857600080fd5b506102ef6105073660046125c0565b600e6020526000908152604090205481565b34801561052557600080fd5b506102ef63633a422081565b34801561053d57600080fd5b506102ef610d0581565b34801561055357600080fd5b5061033f6105623660046124f6565b610ee1565b34801561057357600080fd5b506102ef6105823660046125c0565b610eec565b34801561059357600080fd5b50610377610f6e565b3480156105a857600080fd5b50610377610f82565b3480156105bd57600080fd5b506103776105cc3660046125c0565b610fb7565b3480156105dd57600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff1661033f565b34801561060857600080fd5b50610312611053565b34801561061d57600080fd5b50610377611062565b34801561063257600080fd5b506102ef601981565b61064e6106493660046124f6565b611094565b604080519283526020830191909152016102d1565b34801561066f57600080fd5b5061037761067e3660046126cb565b6111cb565b610377610691366004612729565b611262565b3480156106a257600080fd5b506102ef7fc3e55c1c97957fae161436bbc4c66f20e2acf52925fa22defe9ed200216701da81565b61064e6106d8366004612795565b6112d2565b3480156106e957600080fd5b506102ef67016345785d8a000081565b34801561070557600080fd5b506103126107143660046124f6565b611458565b34801561072557600080fd5b506103776107343660046125c0565b6114f5565b34801561074557600080fd5b506102ef6107543660046125c0565b611591565b34801561076557600080fd5b506102c56107743660046127e5565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107bb57600080fd5b506103776107ca3660046125c0565b611646565b60006107da826116ff565b806107e957506107e9826117e0565b92915050565b6060600280546107fe90612813565b80601f016020809104026020016040519081016040528092919081815260200182805461082a90612813565b80156108775780601f1061084c57610100808354040283529160200191610877565b820191906000526020600020905b81548152906001019060200180831161085a57829003601f168201915b5050505050905090565b600061088c82611877565b6108c2576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006108f682610ee1565b90503373ffffffffffffffffffffffffffffffffffffffff82161461097f5773ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff1661097f576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610a0b826118c5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a72576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610aab8187335b73ffffffffffffffffffffffffffffffffffffffff9081169116811491141790565b610b195773ffffffffffffffffffffffffffffffffffffffff8616600090815260076020908152604080832033845290915290205460ff16610b19576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516610b66576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610b7157600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000084169003610c6057600184016000818152600460205260408120549003610c5e576000548114610c5e5760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600082815260096020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610d7f57506040805180820190915260085473ffffffffffffffffffffffffffffffffffffffff811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610da3906bffffffffffffffffffffffff1687612895565b610dad91906128ac565b91519350909150505b9250929050565b6040517f51cff8d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b158015610e4657600080fd5b505af1158015610e5a573d6000803e3d6000fd5b5050505050565b610e69611984565b600d610e75828261292d565b5050565b610e9483838360405180602001604052806000815250611262565b505050565b600f5460ff16610ed5576040517f6cb5913900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ede81611a05565b50565b60006107e9826118c5565b600073ffffffffffffffffffffffffffffffffffffffff8216610f3b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b610f76611984565b610f806000611a10565b565b610f8a611984565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b610fbf611984565b73ffffffffffffffffffffffffffffffffffffffff811661100c576040517fd47d983d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060600380546107fe90612813565b61106a611984565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60008063633a42204210156110d5576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005460018410806110e75750600a84115b806110fc5750610d056110fa8583612a29565b115b15611133576040517fb3ee3dd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111458467016345785d8a0000612895565b341461117d576040517fca780a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c546111a09073ffffffffffffffffffffffffffffffffffffffff1634611a87565b6111aa3385611b2e565b8060016111b78683612a29565b6111c19190612a3c565b9250925050915091565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61126d848484610a00565b73ffffffffffffffffffffffffffffffffffffffff83163b156112cc5761129684848484611c6c565b6112cc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600080636338f0a04210806112eb575063633a42204210155b15611322576040517fe113695c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061132e8585611dc8565b9050600061133b60005490565b905060018710806113705750336000908152600e60205260408120805484928a9291611368908490612a29565b925050819055115b806113855750610d056113838883612a29565b115b156113bc576040517fb3ee3dd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ce8767016345785d8a0000612895565b3414611406576040517fca780a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c546114299073ffffffffffffffffffffffffffffffffffffffff1634611a87565b6114333388611b2e565b8060016114408983612a29565b61144a9190612a3c565b935093505050935093915050565b606061146382611877565b611499576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114a3611f5a565b905080516000036114c357604051806020016040528060008152506114ee565b806114cd84611f69565b6040516020016114de929190612a4f565b6040516020818303038152906040525b9392505050565b6114fd611984565b73ffffffffffffffffffffffffffffffffffffffff811661154a576040517fd96226c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6040517fe3a9db1a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa158015611622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e99190612aa6565b61164e611984565b73ffffffffffffffffffffffffffffffffffffffff81166116f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610ede81611a10565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061179257507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806107e95750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806107e957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146107e9565b60008160011115801561188b575060005482105b80156107e95750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b600081806001116119525760005481101561195257600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003611950575b806000036114ee57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600081815260046020526040902054611911565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5473ffffffffffffffffffffffffffffffffffffffff163314610f80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016116ed565b610ede816001611fad565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517ff340fa0100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b158015611b1157600080fd5b505af1158015611b25573d6000803e3d6000fd5b50505050505050565b6000805490829003611b6c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611c2857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611bf0565b5081600003611c63576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290611cc7903390899088908890600401612abf565b6020604051808303816000875af1925050508015611d02575060408051601f3d908101601f19168201909252611cff91810190612b08565b60015b611d79573d808015611d30576040519150601f19603f3d011682016040523d82523d6000602084013e611d35565b606091505b508051600003611d71576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000030606090811b8216602084015233901b16603482015260488101839052600090611e949060680160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051601f198184030181529190528051602090910120600b5473ffffffffffffffffffffffffffffffffffffffff169084612186565b611eca576040517fb820a8d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc3e55c1c97957fae161436bbc4c66f20e2acf52925fa22defe9ed200216701da8303611ef95750600a6107e9565b7ff8e4cf2271ec3c91a8e7eec89b6cad96e5bfa4f28bd0ae1d3564206fa8c10c3d8303611f28575060196107e9565b6040517f244c133800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060600d80546107fe90612813565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480611f835750819003601f19909101908152919050565b6000611fb8836118c5565b905080600080611fd686600090815260066020526040902080549091565b91509150841561205957611feb818433610a89565b6120595773ffffffffffffffffffffffffffffffffffffffff8316600090815260076020908152604080832033845290915290205460ff16612059576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561206457600082555b73ffffffffffffffffffffffffffffffffffffffff8316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c0200000000000000000000000000000000000000000000000000000000851690036121315760018601600081815260046020526040812054900361212f57600054811461212f5760008181526004602052604090208590555b505b604051869060009073ffffffffffffffffffffffffffffffffffffffff8616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b60008060006121958585612335565b909250905060008160048111156121ae576121ae612b25565b1480156121e657508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156121f6576001925050506114ee565b6000808773ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b888860405160240161222b929190612b54565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516122969190612b6d565b600060405180830381855afa9150503d80600081146122d1576040519150601f19603f3d011682016040523d82523d6000602084013e6122d6565b606091505b50915091508180156122e9575080516020145b8015612329575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906123279083016020908101908401612aa6565b145b98975050505050505050565b600080825160410361236b5760208301516040840151606085015160001a61235f87828585612377565b94509450505050610db6565b50600090506002610db6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123ae575060009050600361243f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612402573d6000803e3d6000fd5b5050604051601f19015191505073ffffffffffffffffffffffffffffffffffffffff81166124385760006001925092505061243f565b9150600090505b94509492505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610ede57600080fd5b60006020828403121561248857600080fd5b81356114ee81612448565b60005b838110156124ae578181015183820152602001612496565b50506000910152565b600081518084526124cf816020860160208601612493565b601f01601f19169290920160200192915050565b6020815260006114ee60208301846124b7565b60006020828403121561250857600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610ede57600080fd5b6000806040838503121561254457600080fd5b823561254f8161250f565b946020939093013593505050565b60008060006060848603121561257257600080fd5b833561257d8161250f565b9250602084013561258d8161250f565b929592945050506040919091013590565b600080604083850312156125b157600080fd5b50508035926020909101359150565b6000602082840312156125d257600080fd5b81356114ee8161250f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612627576126276125dd565b604051601f8501601f19908116603f0116810190828211818310171561264f5761264f6125dd565b8160405280935085815286868601111561266857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561269457600080fd5b813567ffffffffffffffff8111156126ab57600080fd5b8201601f810184136126bc57600080fd5b611dc08482356020840161260c565b600080604083850312156126de57600080fd5b82356126e98161250f565b9150602083013580151581146126fe57600080fd5b809150509250929050565b600082601f83011261271a57600080fd5b6114ee8383356020850161260c565b6000806000806080858703121561273f57600080fd5b843561274a8161250f565b9350602085013561275a8161250f565b925060408501359150606085013567ffffffffffffffff81111561277d57600080fd5b61278987828801612709565b91505092959194509250565b6000806000606084860312156127aa57600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156127cf57600080fd5b6127db86828701612709565b9150509250925092565b600080604083850312156127f857600080fd5b82356128038161250f565b915060208301356126fe8161250f565b600181811c9082168061282757607f821691505b602082108103612860577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176107e9576107e9612866565b6000826128e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f821115610e9457600081815260208120601f850160051c8101602086101561290e5750805b601f850160051c820191505b81811015610cbc5782815560010161291a565b815167ffffffffffffffff811115612947576129476125dd565b61295b816129558454612813565b846128e7565b602080601f8311600181146129ae57600084156129785750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610cbc565b600085815260208120601f198616915b828110156129dd578886015182559484019460019091019084016129be565b5085821015612a1957878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156107e9576107e9612866565b818103818111156107e9576107e9612866565b60008351612a61818460208801612493565b835190830190612a75818360208801612493565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215612ab857600080fd5b5051919050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152612afe60808301846124b7565b9695505050505050565b600060208284031215612b1a57600080fd5b81516114ee81612448565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b828152604060208201526000611dc060408301846124b7565b60008251612b7f818460208701612493565b919091019291505056fea2646970667358221220fe42ad9fef8e2950b61837e4961aa4f699b6e86773884983eca00251b465e24064736f6c63430008110033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61065d8061007e6000396000f3fe6080604052600436106100655760003560e01c8063e3a9db1a11610043578063e3a9db1a146100db578063f2fde38b1461012c578063f340fa011461014c57600080fd5b806351cff8d91461006a578063715018a61461008c5780638da5cb5b146100a1575b600080fd5b34801561007657600080fd5b5061008a6100853660046105c3565b61015f565b005b34801561009857600080fd5b5061008a6101f0565b3480156100ad57600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156100e757600080fd5b5061011e6100f63660046105c3565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6040519081526020016100d2565b34801561013857600080fd5b5061008a6101473660046105c3565b610204565b61008a61015a3660046105c3565b6102c0565b61016761034c565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020526040812080549190559061019c90826103cd565b8173ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101e491815260200190565b60405180910390a25050565b6101f861034c565b610202600061052c565b565b61020c61034c565b73ffffffffffffffffffffffffffffffffffffffff81166102b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102bd8161052c565b50565b6102c861034c565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120805434928392916102ff9084906105e7565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101e4565b60005473ffffffffffffffffffffffffffffffffffffffff163314610202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ab565b80471015610437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102ab565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610491576040519150601f19603f3d011682016040523d82523d6000602084013e610496565b606091505b5050905080610527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102ab565b505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff811681146102bd57600080fd5b6000602082840312156105d557600080fd5b81356105e0816105a1565b9392505050565b80820180821115610621577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea26469706673582212200cdba6aea204cf9608fbacbf654e726d5749cf930e8f26f4156e3ec27f3e96b964736f6c6343000811003368747470733a2f2f73706163656c6f6f746572732e6e7963332e6469676974616c6f6365616e7370616365732e636f6d2f6d657461646174612f000000000000000000000000f557f1f017ce3f8ddcfd92577f13c558fddee52600000000000000000000000019ece8107491298ee3e6d82ab3d14cb73a5d83bf00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000003300000000000000000000000019ece8107491298ee3e6d82ab3d14cb73a5d83bf00000000000000000000000077eb13bc7ff446da114ba3687a43e096d085fce1000000000000000000000000848ae001e8378a7409337453c1d8f5b77994557800000000000000000000000075331ebbe0b00b97cab532384f13c9b479f074ec0000000000000000000000001d4b9b250b1bd41daa35d94bf9204ec1b0494ee3000000000000000000000000d77cf07b3b699989bf9ace64de2603e8a19e857200000000000000000000000044340f7dc53bf90363e503350bbedf69e2d7870c000000000000000000000000419beee486a63971332cee7170c2f675d92ac5d3000000000000000000000000be8fe12b9eb1ca2a593e6c070c71c294b6fe9f0000000000000000000000000069cb3b1de24e08f1cfc2994171b6c6930498f750000000000000000000000000bb34d08c67373e54f066e6e7e6c77846ff7d2714000000000000000000000000ab33aa787c8c8ca4d1926a27ec6cf7e5407c578c000000000000000000000000e1d29d0a39962a9a8d2a297ebe82e166f8b8ec18000000000000000000000000b76a622c7fadbe11c415d141fd7b9eb4b1f414b90000000000000000000000000f0eae91990140c560d4156db4f00c854dc8f09e000000000000000000000000bb8fafa8a629c4dce022d95e098ccccee1acd9420000000000000000000000006443db63f122f9db0ffbe7d98ef64eccfa2cf33b000000000000000000000000b34af2448f1789ae942f592e8770da5c0293a15d00000000000000000000000092c3f102e958e6c977bfc342e1223a27c80c5e5d000000000000000000000000855fa69adae71b02b707f3e49d64062aadf54037000000000000000000000000d72508badc98629e324496180322e70ed2e28ee100000000000000000000000090f3146fa0e9e2056bbe383ecd2ff5864eaa78c500000000000000000000000025d8fef4baa3a9cb2f425a30b6cbd8da6bee456d0000000000000000000000002b5faeffc4b8770144c29805de1f87fefa7e3156000000000000000000000000227991298115ecd884237db2dfe292f778b72caa00000000000000000000000076b588e62f9ce0496861711832567f129959eb19000000000000000000000000b6a6456c8bd587d279ab1ab52b1b758894664446000000000000000000000000b733e52dff6d056fad688428d96cfc887b43b5da000000000000000000000000afa605a5513534c284859dda1bd263239343297f000000000000000000000000c6d41bf45df12a03ccbb91240c3e1354175050330000000000000000000000001c2ea5a58d54914e06bee9932f5acd0a622930e80000000000000000000000007261a3b25f410a2e90d12a79bf6a2eea89a419930000000000000000000000009e437b064cfc7801808c5e476abfafa5069ab55b00000000000000000000000089ca82624f453647ed6e9ce5ca5b25ab8f7f0bf60000000000000000000000008e6faf6b3cee5a32d1aa22f2095e4269f11dbd08000000000000000000000000a442ddf27063320789b59a8fdca5b849cd2cdeac0000000000000000000000008a70dffa67da1df3facf5d7fc664dde788d30a520000000000000000000000006f1a21fbb911c988f24d14f799843b64aac246c20000000000000000000000006377fa89e6063bf89c59617229b8c6ee8e148f7e000000000000000000000000f98c3c402f9db363d92e9bb15afabfb9c0290114000000000000000000000000834498ccd17fba1ab6d2cf3669920f8007093dbd0000000000000000000000005da7351a4cb03c33e11f51841bc614d9858128210000000000000000000000005116936f1b52f8545995f2549101ab1a419203090000000000000000000000001b155308afb8472980a22c7e0ad8b37b9a8d9e55000000000000000000000000fda0e067e4cf77794c2ef40410537bc88c8c149f000000000000000000000000a4c2491113e338a0d13d7203922c91ede5512f3a000000000000000000000000497a7dee2f13db161eb2fec060fa783cb041419f00000000000000000000000031e3c03a64d7701bb24e03c033f1480ab03f5f0b0000000000000000000000003a0f884c86e43a0874fde47efd16e4ccee344336000000000000000000000000a43ee0ddac31bf684c2d0a678964402322ad7210000000000000000000000000a71a26e1fc729c2ffa30045cc95c955a476b75d0000000000000000000000000000000000000000000000000000000000000003300000000000000000000000000000000000000000000000000000000000000ae00000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x6080604052600436106102a05760003560e01c806370a082311161016e578063b88d4fde116100cb578063cf04fb941161007f578063e985e9c511610064578063e985e9c514610759578063efdcfa41146102da578063f2fde38b146107af57600080fd5b8063cf04fb9414610719578063e2982c211461073957600080fd5b8063bf9b7c8d116100b0578063bf9b7c8d146106ca578063c002d23d146106dd578063c87b56dd146106f957600080fd5b8063b88d4fde14610683578063b8f060541461069657600080fd5b806395d89b4111610122578063991d1f2411610107578063991d1f2414610626578063a0712d681461063b578063a22cb4651461066357600080fd5b806395d89b41146105fc57806398603cca1461061157600080fd5b80637581a8e6116101535780637581a8e61461059c578063857c10e7146105b15780638da5cb5b146105d157600080fd5b806370a0823114610567578063715018a61461058757600080fd5b806331b3eb941161021c5780634d754715116101d05780635e89beac116101b55780635e89beac1461051957806362619da1146105315780636352211e1461054757600080fd5b80634d754715146104d257806357abf2a9146104ec57600080fd5b80633cb8ca06116102015780633cb8ca061461048757806342842e0e1461049f57806342966c68146104b257600080fd5b806331b3eb941461044757806339a0c6f91461046757600080fd5b8063095ea7b31161027357806318160ddd1161025857806318160ddd146103ad57806323b872dd146103e85780632a55205a146103fb57600080fd5b8063095ea7b31461036457806317e9884d1461037957600080fd5b806301ffc9a7146102a55780630345d6e5146102da57806306fdde03146102fd578063081812fc1461031f575b600080fd5b3480156102b157600080fd5b506102c56102c0366004612476565b6107cf565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef600a81565b6040519081526020016102d1565b34801561030957600080fd5b506103126107ef565b6040516102d191906124e3565b34801561032b57600080fd5b5061033f61033a3660046124f6565b610881565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d1565b610377610372366004612531565b6108eb565b005b34801561038557600080fd5b506102ef7ff8e4cf2271ec3c91a8e7eec89b6cad96e5bfa4f28bd0ae1d3564206fa8c10c3d81565b3480156103b957600080fd5b50600154600054037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016102ef565b6103776103f636600461255d565b610a00565b34801561040757600080fd5b5061041b61041636600461259e565b610cc4565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683526020830191909152016102d1565b34801561045357600080fd5b506103776104623660046125c0565b610dbd565b34801561047357600080fd5b50610377610482366004612682565b610e61565b34801561049357600080fd5b506102ef636338f0a081565b6103776104ad36600461255d565b610e79565b3480156104be57600080fd5b506103776104cd3660046124f6565b610e99565b3480156104de57600080fd5b50600f546102c59060ff1681565b3480156104f857600080fd5b506102ef6105073660046125c0565b600e6020526000908152604090205481565b34801561052557600080fd5b506102ef63633a422081565b34801561053d57600080fd5b506102ef610d0581565b34801561055357600080fd5b5061033f6105623660046124f6565b610ee1565b34801561057357600080fd5b506102ef6105823660046125c0565b610eec565b34801561059357600080fd5b50610377610f6e565b3480156105a857600080fd5b50610377610f82565b3480156105bd57600080fd5b506103776105cc3660046125c0565b610fb7565b3480156105dd57600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff1661033f565b34801561060857600080fd5b50610312611053565b34801561061d57600080fd5b50610377611062565b34801561063257600080fd5b506102ef601981565b61064e6106493660046124f6565b611094565b604080519283526020830191909152016102d1565b34801561066f57600080fd5b5061037761067e3660046126cb565b6111cb565b610377610691366004612729565b611262565b3480156106a257600080fd5b506102ef7fc3e55c1c97957fae161436bbc4c66f20e2acf52925fa22defe9ed200216701da81565b61064e6106d8366004612795565b6112d2565b3480156106e957600080fd5b506102ef67016345785d8a000081565b34801561070557600080fd5b506103126107143660046124f6565b611458565b34801561072557600080fd5b506103776107343660046125c0565b6114f5565b34801561074557600080fd5b506102ef6107543660046125c0565b611591565b34801561076557600080fd5b506102c56107743660046127e5565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107bb57600080fd5b506103776107ca3660046125c0565b611646565b60006107da826116ff565b806107e957506107e9826117e0565b92915050565b6060600280546107fe90612813565b80601f016020809104026020016040519081016040528092919081815260200182805461082a90612813565b80156108775780601f1061084c57610100808354040283529160200191610877565b820191906000526020600020905b81548152906001019060200180831161085a57829003601f168201915b5050505050905090565b600061088c82611877565b6108c2576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006108f682610ee1565b90503373ffffffffffffffffffffffffffffffffffffffff82161461097f5773ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff1661097f576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610a0b826118c5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a72576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610aab8187335b73ffffffffffffffffffffffffffffffffffffffff9081169116811491141790565b610b195773ffffffffffffffffffffffffffffffffffffffff8616600090815260076020908152604080832033845290915290205460ff16610b19576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516610b66576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610b7157600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000084169003610c6057600184016000818152600460205260408120549003610c5e576000548114610c5e5760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600082815260096020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610d7f57506040805180820190915260085473ffffffffffffffffffffffffffffffffffffffff811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610da3906bffffffffffffffffffffffff1687612895565b610dad91906128ac565b91519350909150505b9250929050565b6040517f51cff8d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f0000000000000000000000001c556043a9b8c5bb656cf7eb460f33d76ac1085f16906351cff8d990602401600060405180830381600087803b158015610e4657600080fd5b505af1158015610e5a573d6000803e3d6000fd5b5050505050565b610e69611984565b600d610e75828261292d565b5050565b610e9483838360405180602001604052806000815250611262565b505050565b600f5460ff16610ed5576040517f6cb5913900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ede81611a05565b50565b60006107e9826118c5565b600073ffffffffffffffffffffffffffffffffffffffff8216610f3b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b610f76611984565b610f806000611a10565b565b610f8a611984565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b610fbf611984565b73ffffffffffffffffffffffffffffffffffffffff811661100c576040517fd47d983d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6060600380546107fe90612813565b61106a611984565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60008063633a42204210156110d5576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005460018410806110e75750600a84115b806110fc5750610d056110fa8583612a29565b115b15611133576040517fb3ee3dd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111458467016345785d8a0000612895565b341461117d576040517fca780a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c546111a09073ffffffffffffffffffffffffffffffffffffffff1634611a87565b6111aa3385611b2e565b8060016111b78683612a29565b6111c19190612a3c565b9250925050915091565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61126d848484610a00565b73ffffffffffffffffffffffffffffffffffffffff83163b156112cc5761129684848484611c6c565b6112cc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600080636338f0a04210806112eb575063633a42204210155b15611322576040517fe113695c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061132e8585611dc8565b9050600061133b60005490565b905060018710806113705750336000908152600e60205260408120805484928a9291611368908490612a29565b925050819055115b806113855750610d056113838883612a29565b115b156113bc576040517fb3ee3dd300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ce8767016345785d8a0000612895565b3414611406576040517fca780a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c546114299073ffffffffffffffffffffffffffffffffffffffff1634611a87565b6114333388611b2e565b8060016114408983612a29565b61144a9190612a3c565b935093505050935093915050565b606061146382611877565b611499576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114a3611f5a565b905080516000036114c357604051806020016040528060008152506114ee565b806114cd84611f69565b6040516020016114de929190612a4f565b6040516020818303038152906040525b9392505050565b6114fd611984565b73ffffffffffffffffffffffffffffffffffffffff811661154a576040517fd96226c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6040517fe3a9db1a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301526000917f0000000000000000000000001c556043a9b8c5bb656cf7eb460f33d76ac1085f9091169063e3a9db1a90602401602060405180830381865afa158015611622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e99190612aa6565b61164e611984565b73ffffffffffffffffffffffffffffffffffffffff81166116f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610ede81611a10565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061179257507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806107e95750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806107e957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146107e9565b60008160011115801561188b575060005482105b80156107e95750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b600081806001116119525760005481101561195257600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003611950575b806000036114ee57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600081815260046020526040902054611911565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5473ffffffffffffffffffffffffffffffffffffffff163314610f80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016116ed565b610ede816001611fad565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517ff340fa0100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301527f0000000000000000000000001c556043a9b8c5bb656cf7eb460f33d76ac1085f169063f340fa019083906024016000604051808303818588803b158015611b1157600080fd5b505af1158015611b25573d6000803e3d6000fd5b50505050505050565b6000805490829003611b6c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611c2857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611bf0565b5081600003611c63576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290611cc7903390899088908890600401612abf565b6020604051808303816000875af1925050508015611d02575060408051601f3d908101601f19168201909252611cff91810190612b08565b60015b611d79573d808015611d30576040519150601f19603f3d011682016040523d82523d6000602084013e611d35565b606091505b508051600003611d71576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000030606090811b8216602084015233901b16603482015260488101839052600090611e949060680160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051601f198184030181529190528051602090910120600b5473ffffffffffffffffffffffffffffffffffffffff169084612186565b611eca576040517fb820a8d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fc3e55c1c97957fae161436bbc4c66f20e2acf52925fa22defe9ed200216701da8303611ef95750600a6107e9565b7ff8e4cf2271ec3c91a8e7eec89b6cad96e5bfa4f28bd0ae1d3564206fa8c10c3d8303611f28575060196107e9565b6040517f244c133800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060600d80546107fe90612813565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480611f835750819003601f19909101908152919050565b6000611fb8836118c5565b905080600080611fd686600090815260066020526040902080549091565b91509150841561205957611feb818433610a89565b6120595773ffffffffffffffffffffffffffffffffffffffff8316600090815260076020908152604080832033845290915290205460ff16612059576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561206457600082555b73ffffffffffffffffffffffffffffffffffffffff8316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c0200000000000000000000000000000000000000000000000000000000851690036121315760018601600081815260046020526040812054900361212f57600054811461212f5760008181526004602052604090208590555b505b604051869060009073ffffffffffffffffffffffffffffffffffffffff8616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b60008060006121958585612335565b909250905060008160048111156121ae576121ae612b25565b1480156121e657508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156121f6576001925050506114ee565b6000808773ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b888860405160240161222b929190612b54565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516122969190612b6d565b600060405180830381855afa9150503d80600081146122d1576040519150601f19603f3d011682016040523d82523d6000602084013e6122d6565b606091505b50915091508180156122e9575080516020145b8015612329575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906123279083016020908101908401612aa6565b145b98975050505050505050565b600080825160410361236b5760208301516040840151606085015160001a61235f87828585612377565b94509450505050610db6565b50600090506002610db6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123ae575060009050600361243f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612402573d6000803e3d6000fd5b5050604051601f19015191505073ffffffffffffffffffffffffffffffffffffffff81166124385760006001925092505061243f565b9150600090505b94509492505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610ede57600080fd5b60006020828403121561248857600080fd5b81356114ee81612448565b60005b838110156124ae578181015183820152602001612496565b50506000910152565b600081518084526124cf816020860160208601612493565b601f01601f19169290920160200192915050565b6020815260006114ee60208301846124b7565b60006020828403121561250857600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610ede57600080fd5b6000806040838503121561254457600080fd5b823561254f8161250f565b946020939093013593505050565b60008060006060848603121561257257600080fd5b833561257d8161250f565b9250602084013561258d8161250f565b929592945050506040919091013590565b600080604083850312156125b157600080fd5b50508035926020909101359150565b6000602082840312156125d257600080fd5b81356114ee8161250f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612627576126276125dd565b604051601f8501601f19908116603f0116810190828211818310171561264f5761264f6125dd565b8160405280935085815286868601111561266857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561269457600080fd5b813567ffffffffffffffff8111156126ab57600080fd5b8201601f810184136126bc57600080fd5b611dc08482356020840161260c565b600080604083850312156126de57600080fd5b82356126e98161250f565b9150602083013580151581146126fe57600080fd5b809150509250929050565b600082601f83011261271a57600080fd5b6114ee8383356020850161260c565b6000806000806080858703121561273f57600080fd5b843561274a8161250f565b9350602085013561275a8161250f565b925060408501359150606085013567ffffffffffffffff81111561277d57600080fd5b61278987828801612709565b91505092959194509250565b6000806000606084860312156127aa57600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156127cf57600080fd5b6127db86828701612709565b9150509250925092565b600080604083850312156127f857600080fd5b82356128038161250f565b915060208301356126fe8161250f565b600181811c9082168061282757607f821691505b602082108103612860577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176107e9576107e9612866565b6000826128e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f821115610e9457600081815260208120601f850160051c8101602086101561290e5750805b601f850160051c820191505b81811015610cbc5782815560010161291a565b815167ffffffffffffffff811115612947576129476125dd565b61295b816129558454612813565b846128e7565b602080601f8311600181146129ae57600084156129785750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610cbc565b600085815260208120601f198616915b828110156129dd578886015182559484019460019091019084016129be565b5085821015612a1957878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156107e9576107e9612866565b818103818111156107e9576107e9612866565b60008351612a61818460208801612493565b835190830190612a75818360208801612493565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215612ab857600080fd5b5051919050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152612afe60808301846124b7565b9695505050505050565b600060208284031215612b1a57600080fd5b81516114ee81612448565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b828152604060208201526000611dc060408301846124b7565b60008251612b7f818460208701612493565b919091019291505056fea2646970667358221220fe42ad9fef8e2950b61837e4961aa4f699b6e86773884983eca00251b465e24064736f6c63430008110033

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

000000000000000000000000f557f1f017ce3f8ddcfd92577f13c558fddee52600000000000000000000000019ece8107491298ee3e6d82ab3d14cb73a5d83bf00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000003300000000000000000000000019ece8107491298ee3e6d82ab3d14cb73a5d83bf00000000000000000000000077eb13bc7ff446da114ba3687a43e096d085fce1000000000000000000000000848ae001e8378a7409337453c1d8f5b77994557800000000000000000000000075331ebbe0b00b97cab532384f13c9b479f074ec0000000000000000000000001d4b9b250b1bd41daa35d94bf9204ec1b0494ee3000000000000000000000000d77cf07b3b699989bf9ace64de2603e8a19e857200000000000000000000000044340f7dc53bf90363e503350bbedf69e2d7870c000000000000000000000000419beee486a63971332cee7170c2f675d92ac5d3000000000000000000000000be8fe12b9eb1ca2a593e6c070c71c294b6fe9f0000000000000000000000000069cb3b1de24e08f1cfc2994171b6c6930498f750000000000000000000000000bb34d08c67373e54f066e6e7e6c77846ff7d2714000000000000000000000000ab33aa787c8c8ca4d1926a27ec6cf7e5407c578c000000000000000000000000e1d29d0a39962a9a8d2a297ebe82e166f8b8ec18000000000000000000000000b76a622c7fadbe11c415d141fd7b9eb4b1f414b90000000000000000000000000f0eae91990140c560d4156db4f00c854dc8f09e000000000000000000000000bb8fafa8a629c4dce022d95e098ccccee1acd9420000000000000000000000006443db63f122f9db0ffbe7d98ef64eccfa2cf33b000000000000000000000000b34af2448f1789ae942f592e8770da5c0293a15d00000000000000000000000092c3f102e958e6c977bfc342e1223a27c80c5e5d000000000000000000000000855fa69adae71b02b707f3e49d64062aadf54037000000000000000000000000d72508badc98629e324496180322e70ed2e28ee100000000000000000000000090f3146fa0e9e2056bbe383ecd2ff5864eaa78c500000000000000000000000025d8fef4baa3a9cb2f425a30b6cbd8da6bee456d0000000000000000000000002b5faeffc4b8770144c29805de1f87fefa7e3156000000000000000000000000227991298115ecd884237db2dfe292f778b72caa00000000000000000000000076b588e62f9ce0496861711832567f129959eb19000000000000000000000000b6a6456c8bd587d279ab1ab52b1b758894664446000000000000000000000000b733e52dff6d056fad688428d96cfc887b43b5da000000000000000000000000afa605a5513534c284859dda1bd263239343297f000000000000000000000000c6d41bf45df12a03ccbb91240c3e1354175050330000000000000000000000001c2ea5a58d54914e06bee9932f5acd0a622930e80000000000000000000000007261a3b25f410a2e90d12a79bf6a2eea89a419930000000000000000000000009e437b064cfc7801808c5e476abfafa5069ab55b00000000000000000000000089ca82624f453647ed6e9ce5ca5b25ab8f7f0bf60000000000000000000000008e6faf6b3cee5a32d1aa22f2095e4269f11dbd08000000000000000000000000a442ddf27063320789b59a8fdca5b849cd2cdeac0000000000000000000000008a70dffa67da1df3facf5d7fc664dde788d30a520000000000000000000000006f1a21fbb911c988f24d14f799843b64aac246c20000000000000000000000006377fa89e6063bf89c59617229b8c6ee8e148f7e000000000000000000000000f98c3c402f9db363d92e9bb15afabfb9c0290114000000000000000000000000834498ccd17fba1ab6d2cf3669920f8007093dbd0000000000000000000000005da7351a4cb03c33e11f51841bc614d9858128210000000000000000000000005116936f1b52f8545995f2549101ab1a419203090000000000000000000000001b155308afb8472980a22c7e0ad8b37b9a8d9e55000000000000000000000000fda0e067e4cf77794c2ef40410537bc88c8c149f000000000000000000000000a4c2491113e338a0d13d7203922c91ede5512f3a000000000000000000000000497a7dee2f13db161eb2fec060fa783cb041419f00000000000000000000000031e3c03a64d7701bb24e03c033f1480ab03f5f0b0000000000000000000000003a0f884c86e43a0874fde47efd16e4ccee344336000000000000000000000000a43ee0ddac31bf684c2d0a678964402322ad7210000000000000000000000000a71a26e1fc729c2ffa30045cc95c955a476b75d0000000000000000000000000000000000000000000000000000000000000003300000000000000000000000000000000000000000000000000000000000000ae00000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : presaleVerifier_ (address): 0xF557F1f017Ce3F8DDCFd92577f13C558FDdeE526
Arg [1] : paymentsBeneficiary_ (address): 0x19EcE8107491298EE3e6D82aB3d14cB73a5D83bF
Arg [2] : recipients (address[]): 0x19EcE8107491298EE3e6D82aB3d14cB73a5D83bF,0x77Eb13bc7fF446dA114bA3687a43e096D085fcE1,0x848AE001e8378A7409337453C1D8f5B779945578,0x75331eBbE0B00b97cAb532384F13c9B479F074eC,0x1d4B9b250B1Bd41DAA35d94BF9204Ec1b0494eE3,0xD77cf07B3b699989bf9aCe64DE2603e8A19E8572,0x44340F7dc53bF90363E503350bbEDf69e2D7870c,0x419beee486a63971332cee7170c2F675d92Ac5d3,0xbE8Fe12B9EB1CA2a593e6C070c71c294b6FE9f00,0x69Cb3b1de24e08f1Cfc2994171b6c6930498F750,0xBB34d08c67373e54F066E6e7e6c77846fF7D2714,0xab33AA787C8c8CA4D1926A27Ec6CF7e5407C578c,0xe1D29d0a39962a9a8d2A297ebe82e166F8b8EC18,0xB76a622c7FaDBe11c415D141Fd7B9EB4b1f414B9,0x0F0eAE91990140C560D4156DB4f00c854Dc8F09E,0xBb8FaFA8A629C4dcE022D95E098ccCceE1AcD942,0x6443Db63f122f9dB0fFbe7D98Ef64eCcFA2cf33B,0xb34aF2448F1789Ae942F592E8770DA5c0293A15d,0x92C3f102E958e6C977bFC342e1223a27c80C5E5D,0x855Fa69adAE71b02b707F3E49d64062AaDf54037,0xD72508Badc98629E324496180322e70ed2e28ee1,0x90F3146Fa0e9e2056bBE383eCd2Ff5864eAa78c5,0x25D8feF4Baa3a9CB2f425a30B6CbD8da6bee456d,0x2b5fAEfFC4B8770144C29805DE1F87FeFA7e3156,0x227991298115Ecd884237db2dFe292f778b72cAa,0x76b588e62f9Ce0496861711832567f129959Eb19,0xb6A6456C8bd587D279AB1aB52B1b758894664446,0xb733E52DFF6D056fad688428D96CfC887b43b5DA,0xAFA605a5513534C284859dDa1Bd263239343297f,0xc6d41Bf45Df12A03CCBb91240c3E135417505033,0x1C2EA5a58D54914e06BEe9932F5ACd0a622930E8,0x7261a3b25f410a2E90D12a79BF6A2EEA89A41993,0x9e437B064CFC7801808c5e476ABfafA5069aB55B,0x89CA82624F453647ED6e9Ce5Ca5b25aB8F7f0Bf6,0x8E6FaF6b3Cee5A32D1AA22f2095e4269F11DBd08,0xA442dDf27063320789B59A8fdcA5b849Cd2CDeAC,0x8A70dffa67DA1Df3fACf5D7FC664DDe788d30A52,0x6f1a21FBb911C988F24D14f799843B64aac246C2,0x6377fa89e6063bf89c59617229b8c6ee8E148F7e,0xF98c3c402f9db363d92E9bB15afaBfb9c0290114,0x834498CcD17FbA1Ab6D2cf3669920f8007093dbd,0x5da7351A4Cb03c33e11F51841bc614d985812821,0x5116936f1B52F8545995f2549101Ab1A41920309,0x1b155308AFb8472980a22c7E0aD8b37b9a8D9E55,0xFDa0e067e4CF77794c2Ef40410537Bc88c8C149f,0xa4c2491113E338A0d13d7203922c91EDE5512f3A,0x497A7dEE2f13DB161eb2fEc060Fa783Cb041419F,0x31e3C03A64D7701BB24e03C033f1480Ab03f5f0b,0x3a0f884C86e43A0874Fde47eFD16e4CcEE344336,0xa43eE0DdAC31bF684c2d0A678964402322AD7210,0xA71A26e1FC729C2ffA30045cc95c955A476B75d0
Arg [3] : quantities (uint256[]): 174,69,33,3,1,1,2,1,1,1,1,1,2,2,1,1,1,3,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1

-----Encoded View---------------
108 Constructor Arguments found :
Arg [0] : 000000000000000000000000f557f1f017ce3f8ddcfd92577f13c558fddee526
Arg [1] : 00000000000000000000000019ece8107491298ee3e6d82ab3d14cb73a5d83bf
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000700
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [5] : 00000000000000000000000019ece8107491298ee3e6d82ab3d14cb73a5d83bf
Arg [6] : 00000000000000000000000077eb13bc7ff446da114ba3687a43e096d085fce1
Arg [7] : 000000000000000000000000848ae001e8378a7409337453c1d8f5b779945578
Arg [8] : 00000000000000000000000075331ebbe0b00b97cab532384f13c9b479f074ec
Arg [9] : 0000000000000000000000001d4b9b250b1bd41daa35d94bf9204ec1b0494ee3
Arg [10] : 000000000000000000000000d77cf07b3b699989bf9ace64de2603e8a19e8572
Arg [11] : 00000000000000000000000044340f7dc53bf90363e503350bbedf69e2d7870c
Arg [12] : 000000000000000000000000419beee486a63971332cee7170c2f675d92ac5d3
Arg [13] : 000000000000000000000000be8fe12b9eb1ca2a593e6c070c71c294b6fe9f00
Arg [14] : 00000000000000000000000069cb3b1de24e08f1cfc2994171b6c6930498f750
Arg [15] : 000000000000000000000000bb34d08c67373e54f066e6e7e6c77846ff7d2714
Arg [16] : 000000000000000000000000ab33aa787c8c8ca4d1926a27ec6cf7e5407c578c
Arg [17] : 000000000000000000000000e1d29d0a39962a9a8d2a297ebe82e166f8b8ec18
Arg [18] : 000000000000000000000000b76a622c7fadbe11c415d141fd7b9eb4b1f414b9
Arg [19] : 0000000000000000000000000f0eae91990140c560d4156db4f00c854dc8f09e
Arg [20] : 000000000000000000000000bb8fafa8a629c4dce022d95e098ccccee1acd942
Arg [21] : 0000000000000000000000006443db63f122f9db0ffbe7d98ef64eccfa2cf33b
Arg [22] : 000000000000000000000000b34af2448f1789ae942f592e8770da5c0293a15d
Arg [23] : 00000000000000000000000092c3f102e958e6c977bfc342e1223a27c80c5e5d
Arg [24] : 000000000000000000000000855fa69adae71b02b707f3e49d64062aadf54037
Arg [25] : 000000000000000000000000d72508badc98629e324496180322e70ed2e28ee1
Arg [26] : 00000000000000000000000090f3146fa0e9e2056bbe383ecd2ff5864eaa78c5
Arg [27] : 00000000000000000000000025d8fef4baa3a9cb2f425a30b6cbd8da6bee456d
Arg [28] : 0000000000000000000000002b5faeffc4b8770144c29805de1f87fefa7e3156
Arg [29] : 000000000000000000000000227991298115ecd884237db2dfe292f778b72caa
Arg [30] : 00000000000000000000000076b588e62f9ce0496861711832567f129959eb19
Arg [31] : 000000000000000000000000b6a6456c8bd587d279ab1ab52b1b758894664446
Arg [32] : 000000000000000000000000b733e52dff6d056fad688428d96cfc887b43b5da
Arg [33] : 000000000000000000000000afa605a5513534c284859dda1bd263239343297f
Arg [34] : 000000000000000000000000c6d41bf45df12a03ccbb91240c3e135417505033
Arg [35] : 0000000000000000000000001c2ea5a58d54914e06bee9932f5acd0a622930e8
Arg [36] : 0000000000000000000000007261a3b25f410a2e90d12a79bf6a2eea89a41993
Arg [37] : 0000000000000000000000009e437b064cfc7801808c5e476abfafa5069ab55b
Arg [38] : 00000000000000000000000089ca82624f453647ed6e9ce5ca5b25ab8f7f0bf6
Arg [39] : 0000000000000000000000008e6faf6b3cee5a32d1aa22f2095e4269f11dbd08
Arg [40] : 000000000000000000000000a442ddf27063320789b59a8fdca5b849cd2cdeac
Arg [41] : 0000000000000000000000008a70dffa67da1df3facf5d7fc664dde788d30a52
Arg [42] : 0000000000000000000000006f1a21fbb911c988f24d14f799843b64aac246c2
Arg [43] : 0000000000000000000000006377fa89e6063bf89c59617229b8c6ee8e148f7e
Arg [44] : 000000000000000000000000f98c3c402f9db363d92e9bb15afabfb9c0290114
Arg [45] : 000000000000000000000000834498ccd17fba1ab6d2cf3669920f8007093dbd
Arg [46] : 0000000000000000000000005da7351a4cb03c33e11f51841bc614d985812821
Arg [47] : 0000000000000000000000005116936f1b52f8545995f2549101ab1a41920309
Arg [48] : 0000000000000000000000001b155308afb8472980a22c7e0ad8b37b9a8d9e55
Arg [49] : 000000000000000000000000fda0e067e4cf77794c2ef40410537bc88c8c149f
Arg [50] : 000000000000000000000000a4c2491113e338a0d13d7203922c91ede5512f3a
Arg [51] : 000000000000000000000000497a7dee2f13db161eb2fec060fa783cb041419f
Arg [52] : 00000000000000000000000031e3c03a64d7701bb24e03c033f1480ab03f5f0b
Arg [53] : 0000000000000000000000003a0f884c86e43a0874fde47efd16e4ccee344336
Arg [54] : 000000000000000000000000a43ee0ddac31bf684c2d0a678964402322ad7210
Arg [55] : 000000000000000000000000a71a26e1fc729c2ffa30045cc95c955a476b75d0
Arg [56] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [57] : 00000000000000000000000000000000000000000000000000000000000000ae
Arg [58] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [59] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [60] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [61] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [62] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [63] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [64] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [65] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [66] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [67] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [68] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [69] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [70] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [71] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [72] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [73] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [74] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [75] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [76] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [77] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [78] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [79] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [80] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [81] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [82] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [83] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [84] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [85] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [86] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [87] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [88] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [89] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [90] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [91] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [92] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [93] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [94] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [95] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [96] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [97] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [98] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [99] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [100] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [101] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [102] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [103] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [104] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [105] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [106] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [107] : 0000000000000000000000000000000000000000000000000000000000000001


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.