ETH Price: $3,403.16 (+2.06%)

Token

EverythingsCoo (ETC)
 

Overview

Max Total Supply

10,000 ETC

Holders

1,616

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 ETC
0x4ebef8cafd3344364226c26405dedf31a40bf47e
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

EverythingsCoo is an NFT project. Everything's nuking. But it's gonna be ok. Pigeons are resilient. Everything's coo.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EverythingsCoo

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : EverythingsCoo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";

/*
 *                                           ..
 *                                       ..,d0KOc.
 *                                     .cOKKKdc0N0OOkxdoc;..
 *                                     '0MWKl. 'cc::cloxO0KOdc'.
 *                                    .oXXOd'            .,cd0KOo;.
 *                                   ;OXx'                   .,lkK0o,
 *                                 .cXKc.    .;:c:,.             ;OWNx,
 *                                .oX0,  ..:kXKkxxO0x,         .cOXKOXK:
 *                               .dNO'  .oKXXXx.  .;OKc       .kXKXd.:XK,
 *                              .dNO'   ;XMO,..     ,K0'      lNx... .xWo
 *                             .dNO'    ;XMO.       ;KO'  ..  lNx.    lNk.
 *                            .oNO'     .oKXk,.   .:OKc .oKK0ockXx'.  cNO.
 *                            lX0,        .;x0OxxkO0d'  ,0WMNk,.ck0OkkKWO.
 *                           cXK;            .,::;'.     .;;'     .;:cOWx.
 *                          :XK:                                     .xWo
 *             .          .lXK:                                      '0N:
 *        .,;:d0Oo.      .dXO,                                       :X0'
 *       .kNXNWkkNk.   .:0Xd.                                       .dWx.
 *     .c0WNd:d,,0W0xooON0:                                         '0X:
 *     :XNkoc.. ,0kcodddxkocccoko.                                  lNk.
 *     .lKKxc,. ;0c      .,:c:;x0:. ..                             .ONl
 *       .cx0KKo;xk'           .cdddOKo.                           cNO'
 *          .:KXc'okl'.          .:O0xxxlccldkl.    .             .kNl
 *            lNO' 'lddolc::::ccodxo'  ';:::,:xxl::okx;.   'c:...,xNO'
 *            .dNk'   .';:ccccc:;..            ':cc:,cddooddooddONW0;
 *             .dXO,                                   ....    ,ONk'
 *              .cKXo.                                        ,ONx.
 *                'dK0o.                                    'oKKl.
 *                  'dKKx:.                              .:xKKo.
 *                    .:x0KOdc,..                   .':okKKkc.
 *                       .,lkXWX0o. ,c::::::;. ,ldx0KK0xo;.
 *                          lXXkxl..:c::x0Okd'.,:;lKWd.
 *                         .oW0c;::;.  .dOdl:cc;..cXX:
 *                          .cxO0O0K0OxkXX0OOkO000K0l.
 *                              ....,cll:..    .','.
 */

contract EverythingsCoo is Ownable, Pausable, ERC721A {
    string internal _baseMetadataURI;

    address public withdrawalAddress;

    struct TokenAllocation {
        uint32 collectionSize;
        uint32 mintsPerTransaction;
        uint32 mintsPerWallet;
    }

    TokenAllocation public tokenAllocation;

    struct AuctionConfig {
        uint72 startPrice;
        uint72 floorPrice;
        uint72 priceDelta;
        uint32 expectedStepMintRate;
        uint32 startTime;
        uint32 endTime;
        uint32 stepDurationInSeconds;
    }

    AuctionConfig public auctionConfig;

    struct AuctionState {
        bool isEnabled;
        uint32 step;
        uint32 stepMints;
        uint72 stepPrice;
    }

    AuctionState internal _auctionState;

    constructor() ERC721A("EverythingsCoo", "ETC") {}

    /**
     * -----EVENTS-----
     */

    /**
     * @dev Emit on calls to auctionMint().
     */
    event AuctionMint(
        address indexed to,
        uint256 quantity,
        uint256 price,
        uint256 totalMinted,
        uint256 timestamp,
        uint256 step
    );

    /**
     * @dev Emit on calls to airdropMint().
     */
    event AirdropMint(address indexed to, uint256 quantity, uint256 price, uint256 totalMinted, uint256 timestamp);

    /**
     * @dev Emits on calls to setBaseMetadataURI()
     */
    event BaseMetadataURIChange(string baseMetadataURI, uint256 timestamp);

    /**
     * @dev Emits on calls to setWithdrawalAddress()
     */
    event WithdrawalAddressChange(address withdrawalAddress, uint256 timestamp);

    /**
     * @dev Emits on calls to withdraw()
     */
    event Withdrawal(address indexed withdrawalAddress, uint256 amount, uint256 timestamp);

    /**
     * @dev Emits on calls to setTokenAllocation()
     */
    event TokenAllocationChange(
        uint256 collectionSize,
        uint256 mintsPerTransaction,
        uint256 mintsPerWallet,
        uint256 timestamp
    );

    /**
     * @dev Emits on calls to setAuctionConfig()
     */
    event AuctionConfigChange(
        uint256 startPrice,
        uint256 floorPrice,
        uint256 priceDelta,
        uint256 expectedStepMintRate,
        uint256 startTime,
        uint256 endTime,
        uint256 stepDurationInSeconds,
        uint256 timestamp
    );

    /**
     * @dev Emits on calls to setExpectedStepMintRate()
     */
    event ExpectedStepMintRateChange(uint256 expectedStepMintRate, uint256 timestamp);

    /**
     * -----MODIFIERS-----
     */

    /**
     * @dev Check that a given mint transaction follows guidelines,
     * like not putting us over our total supply or minting too many NFTs in a single transaction,
     * (which is bad for 721A NFTs).
     */
    modifier checkMintLimits(uint256 quantity) {
        require(quantity > 0, "Mint quantity must be > 0");
        require(_totalMinted() + quantity <= tokenAllocation.collectionSize, "Exceeds total supply");
        require(quantity <= tokenAllocation.mintsPerTransaction, "Cannot mint this many in a single transaction");
        _;
    }

    /**
     * -----OWNER FUNCTIONS-----
     */

    /**
     * @dev Wrap the _pause() function from OpenZeppelin/Pausable
     * To allow preventing any mint operations while the project is paused.
     */
    function pause() external onlyOwner {
        _pause();
    }

    /**
     * @dev Allow unpausing the contract.
     */
    function unpause() external onlyOwner {
        _unpause();
    }

    /**
     * @dev Sets `baseMetadataURI` for computing tokenURI().
     */
    function setBaseMetadataURI(string calldata baseMetadataURI) external onlyOwner {
        emit BaseMetadataURIChange(baseMetadataURI, block.timestamp);

        _baseMetadataURI = baseMetadataURI;
    }

    /**
     * @dev Sets `withdrawalAddress` for withdrawal of funds from the contract.
     */
    function setWithdrawalAddress(address withdrawalAddress_) external onlyOwner {
        require(withdrawalAddress_ != address(0), "withdrawalAddress_ cannot be the zero address");

        emit WithdrawalAddressChange(withdrawalAddress_, block.timestamp);

        withdrawalAddress = withdrawalAddress_;
    }

    /**
     * @dev Sends all ETH from the contract to `withdrawalAddress`.
     */
    function withdraw() external onlyOwner {
        require(withdrawalAddress != address(0), "withdrawalAddress cannot be the zero address");

        emit Withdrawal(withdrawalAddress, address(this).balance, block.timestamp);

        (bool success, ) = withdrawalAddress.call{value: address(this).balance}("");
        require(success, "Withdrawal transfer failed");
    }

    /**
     * @dev Sets `tokenAllocation` for mint phases.
     */
    function setTokenAllocation(
        uint32 collectionSize,
        uint32 mintsPerTransaction,
        uint32 mintsPerWallet
    ) external onlyOwner {
        require(collectionSize > 0, "collectionSize must be > 0");
        require(mintsPerTransaction > 0, "mintsPerTransaction must be > 0");
        require(mintsPerTransaction <= collectionSize, "mintsPerTransaction must be <= collectionSize");
        require(mintsPerWallet > 0, "mintsPerWallet must be > 0");
        require(mintsPerWallet <= collectionSize, "mintsPerWallet must be <= collectionSize");

        emit TokenAllocationChange(collectionSize, mintsPerTransaction, mintsPerWallet, block.timestamp);

        tokenAllocation.collectionSize = collectionSize;
        tokenAllocation.mintsPerTransaction = mintsPerTransaction;
        tokenAllocation.mintsPerWallet = mintsPerWallet;
    }

    /**
     * @dev Sets configuration for the auction mint.
     */
    function setAuctionConfig(
        uint72 startPrice,
        uint72 floorPrice,
        uint72 priceDelta,
        uint32 expectedStepMintRate,
        uint32 startTime,
        uint32 endTime,
        uint32 stepDurationInSeconds
    ) external onlyOwner {
        require(startPrice >= floorPrice, "startPrice must be >= floorPrice");
        require(priceDelta > 0, "priceDelta must be > 0");
        require(startTime >= block.timestamp, "startTime must be >= block.timestamp");
        require(endTime > startTime, "endTime must be > startTime");
        // Require stepDurationInSeconds to be at least ~1 block (current average is 14.5s per block)
        require(stepDurationInSeconds >= 30, "stepDurationInSeconds must be >= 30");

        emit AuctionConfigChange(
            startPrice,
            floorPrice,
            priceDelta,
            expectedStepMintRate,
            startTime,
            endTime,
            stepDurationInSeconds,
            block.timestamp
        );

        auctionConfig.startPrice = startPrice;
        auctionConfig.floorPrice = floorPrice;
        auctionConfig.priceDelta = priceDelta;
        auctionConfig.expectedStepMintRate = expectedStepMintRate;

        auctionConfig.startTime = startTime;
        auctionConfig.endTime = endTime;
        auctionConfig.stepDurationInSeconds = stepDurationInSeconds;

        // Set the current price of the auction to the start price,
        // and enable the auction
        _auctionState.isEnabled = true;
        _auctionState.stepPrice = startPrice;
    }

    /**
     * @dev Sets `expectedStepMintRate` for calculating price deltas.
     */
    function setExpectedStepMintRate(uint32 expectedStepMintRate) external onlyOwner {
        emit ExpectedStepMintRateChange(expectedStepMintRate, block.timestamp);

        auctionConfig.expectedStepMintRate = expectedStepMintRate;
    }

    /**
     * @dev Mints tokens to given address at no cost.
     */
    function airdropMint(address to, uint256 quantity) external onlyOwner checkMintLimits(quantity) {
        emit AirdropMint(to, quantity, 0, _totalMinted() + quantity, block.timestamp);

        _mint(to, quantity);
    }

    /**
     * -----INTERNAL FUNCTIONS-----
     */

    /**
     * @dev Base URI for computing tokenURI() (from the 721A contract). If set, the resulting URI for each
     * token will be the concatenation of the `baseMetadataURI` and the token ID. Overridden from the 721A contract.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseMetadataURI;
    }

    /**
     * @dev Returns the current auction price given the current step.
     */
    function _getAuctionPrice(uint256 currStep) internal view returns (uint256) {
        require(currStep >= _auctionState.step, "currStep must be >= auctionState.step");

        // No danger of either currStep or _auctionState.step being manipulated by an attacker,
        // and we need to do a strict equality check here to return the current auction price.
        //
        // slither-disable-next-line incorrect-equality
        if (currStep == _auctionState.step) {
            return _auctionState.stepPrice;
        }

        // passedSteps will always be > 0, because of the require & if statement above
        uint256 passedSteps = currStep - _auctionState.step;
        uint256 price = _auctionState.stepPrice;
        uint256 numMinted = _auctionState.stepMints;
        uint256 floorPrice = auctionConfig.floorPrice;
        uint256 priceDelta = auctionConfig.priceDelta;

        if (numMinted >= auctionConfig.expectedStepMintRate) {
            price += 3 * priceDelta;
        } else {
            // If the `priceChange` would put the price below the floor, return the floor
            price = floorPrice + priceDelta < price ? price - priceDelta : floorPrice;
        }

        // If there were steps where nobody minted anything, then determine price change for nothing minted
        if (passedSteps > 1) {
            uint256 aggregatePriceChange = (passedSteps - 1) * priceDelta;

            // If the `aggregatePriceChange` would put the price below the floor, return the floor
            price = floorPrice + aggregatePriceChange < price ? price - aggregatePriceChange : floorPrice;
        }

        return price;
    }

    /**
     * -----VIEW FUNCTIONS-----
     */

    /**
     * @dev Returns a tuple of the current step and price.
     */
    function getCurrentStepAndPrice() public view returns (uint256, uint256) {
        uint256 currentStep = getCurrentStep();
        uint256 currentPrice = _getAuctionPrice(currentStep);

        return (currentStep, currentPrice);
    }

    /**
     * @dev Returns the current step of the auction based on the elapsed time.
     */
    function getCurrentStep() public view returns (uint256) {
        require(_auctionState.isEnabled && block.timestamp >= auctionConfig.startTime, "Auction has not started");

        uint256 elapsedTime = block.timestamp - auctionConfig.startTime;
        uint256 step = Math.min(
            elapsedTime / auctionConfig.stepDurationInSeconds,
            (auctionConfig.endTime - auctionConfig.startTime) / auctionConfig.stepDurationInSeconds
        );

        return step;
    }

    /**
     * @dev Returns the current auction price.
     */
    function getCurrentAuctionPrice() external view returns (uint256) {
        (, uint256 price) = getCurrentStepAndPrice();

        return price;
    }

    /**
     * -----EXTERNAL FUNCTIONS-----
     */

    /**
     * @dev Mints `quantity` of tokens at the current auction price and transfers them to the sender.
     * If the sender sends more ETH than needed, it refunds them.
     */
    function auctionMint(uint256 quantity) external payable whenNotPaused checkMintLimits(quantity) {
        // We explicitly want to use tx.origin to check if the caller is a contract
        // solhint-disable-next-line avoid-tx-origin
        require(tx.origin == msg.sender, "Caller must be user");
        require(_auctionState.isEnabled && block.timestamp >= auctionConfig.startTime, "Auction has not started");
        require(block.timestamp < auctionConfig.endTime, "Auction has ended");
        require(
            _numberMinted(msg.sender) + quantity <= tokenAllocation.mintsPerWallet,
            "Cannot mint this many from a single wallet"
        );

        (uint256 auctionStep, uint256 auctionPrice) = getCurrentStepAndPrice();
        uint256 cost = auctionPrice * quantity;

        require(msg.value >= cost, "Insufficient payment");

        // Update auction state to the new step and new price
        if (auctionStep > _auctionState.step) {
            _auctionState.stepMints = 0;
            _auctionState.stepPrice = uint72(auctionPrice);
            _auctionState.step = uint32(auctionStep);
        }

        _auctionState.stepMints += uint32(quantity);
        emit AuctionMint(msg.sender, quantity, auctionPrice, _totalMinted() + quantity, block.timestamp, auctionStep);

        // Contracts can't call this function so we don't need _safeMint()
        _mint(msg.sender, quantity);

        if (msg.value > cost) {
            (bool success, ) = msg.sender.call{value: msg.value - cost}("");
            require(success, "Refund transfer failed");
        }
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

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

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 7 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @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 / b + (a % b == 0 ? 0 : 1);
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AirdropMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"floorPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"priceDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expectedStepMintRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stepDurationInSeconds","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AuctionConfigChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"step","type":"uint256"}],"name":"AuctionMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseMetadataURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"BaseMetadataURIChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"expectedStepMintRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ExpectedStepMintRateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"collectionSize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintsPerTransaction","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintsPerWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokenAllocationChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawalAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"withdrawalAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"WithdrawalAddressChange","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionConfig","outputs":[{"internalType":"uint72","name":"startPrice","type":"uint72"},{"internalType":"uint72","name":"floorPrice","type":"uint72"},{"internalType":"uint72","name":"priceDelta","type":"uint72"},{"internalType":"uint32","name":"expectedStepMintRate","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint32","name":"stepDurationInSeconds","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"auctionMint","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStepAndPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint72","name":"startPrice","type":"uint72"},{"internalType":"uint72","name":"floorPrice","type":"uint72"},{"internalType":"uint72","name":"priceDelta","type":"uint72"},{"internalType":"uint32","name":"expectedStepMintRate","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint32","name":"stepDurationInSeconds","type":"uint32"}],"name":"setAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseMetadataURI","type":"string"}],"name":"setBaseMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"expectedStepMintRate","type":"uint32"}],"name":"setExpectedStepMintRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"collectionSize","type":"uint32"},{"internalType":"uint32","name":"mintsPerTransaction","type":"uint32"},{"internalType":"uint32","name":"mintsPerWallet","type":"uint32"}],"name":"setTokenAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawalAddress_","type":"address"}],"name":"setWithdrawalAddress","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":[],"name":"tokenAllocation","outputs":[{"internalType":"uint32","name":"collectionSize","type":"uint32"},{"internalType":"uint32","name":"mintsPerTransaction","type":"uint32"},{"internalType":"uint32","name":"mintsPerWallet","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600e81526020016d45766572797468696e6773436f6f60901b8152506040518060400160405280600381526020016245544360e81b8152506200006f62000069620000b560201b60201c565b620000b9565b6000805460ff60a01b1916905581516200009190600390602085019062000109565b508051620000a790600490602084019062000109565b5050600060015550620001ec565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200011790620001af565b90600052602060002090601f0160209004810192826200013b576000855562000186565b82601f106200015657805160ff191683800117855562000186565b8280016001018555821562000186579182015b828111156200018657825182559160200191906001019062000169565b506200019492915062000198565b5090565b5b8082111562000194576000815560010162000199565b600181811c90821680620001c457607f821691505b60208210811415620001e657634e487b7160e01b600052602260045260246000fd5b50919050565b612bf580620001fc6000396000f3fe6080604052600436106101f95760003560e01c80635c975abb1161010d578063a22cb465116100a0578063bb4061351161006f578063bb406135146105b9578063c87b56dd1461066a578063e985e9c51461068a578063f2bcd022146106d3578063f2fde38b146106f357600080fd5b8063a22cb46514610539578063aba3f8f014610559578063aebddc8a14610579578063b88d4fde1461059957600080fd5b80637e518ec8116100dc5780637e518ec8146104d15780638456cb59146104f15780638da5cb5b1461050657806395d89b411461052457600080fd5b80635c975abb1461045d5780636352211e1461047c57806370a082311461049c578063715018a6146104bc57600080fd5b806322ad06701161019057806342842e0e1161015f57806342842e0e1461039157806348505f8e146103b15780634d3554c3146103db57806351c7115b146103ee57806358525fda1461040357600080fd5b806322ad06701461032757806323b872dd146103475780633ccfd60b146103675780633f4ba83a1461037c57600080fd5b80630e47a365116101cc5780630e47a365146102af57806318160ddd146102cf5780631d3824ea146102f257806321b8092e1461030757600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004612734565b610713565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610765565b60405161022a91906129a2565b34801561026157600080fd5b506102756102703660046127d9565b6107f7565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a836600461270b565b61083b565b005b3480156102bb57600080fd5b506102ad6102ca36600461280b565b61090e565b3480156102db57600080fd5b50600254600154035b60405190815260200161022a565b3480156102fe57600080fd5b506102e4610bb6565b34801561031357600080fd5b506102ad610322366004612575565b610c96565b34801561033357600080fd5b506102ad61034236600461270b565b610d8f565b34801561035357600080fd5b506102ad6103623660046125c1565b610f0c565b34801561037357600080fd5b506102ad610f17565b34801561038857600080fd5b506102ad61109b565b34801561039d57600080fd5b506102ad6103ac3660046125c1565b6110cf565b3480156103bd57600080fd5b506103c66110ea565b6040805192835260208301919091520161022a565b6102ad6103e93660046127d9565b61110f565b3480156103fa57600080fd5b506102e46115f6565b34801561040f57600080fd5b50600b546104369063ffffffff80821691600160201b8104821691600160401b9091041683565b6040805163ffffffff9485168152928416602084015292169181019190915260600161022a565b34801561046957600080fd5b50600054600160a01b900460ff1661021e565b34801561048857600080fd5b506102756104973660046127d9565b611601565b3480156104a857600080fd5b506102e46104b7366004612575565b61160c565b3480156104c857600080fd5b506102ad61165b565b3480156104dd57600080fd5b506102ad6104ec36600461276c565b61168f565b3480156104fd57600080fd5b506102ad611700565b34801561051257600080fd5b506000546001600160a01b0316610275565b34801561053057600080fd5b50610248611732565b34801561054557600080fd5b506102ad6105543660046126d1565b611741565b34801561056557600080fd5b506102ad61057436600461284d565b6117d7565b34801561058557600080fd5b506102ad6105943660046127f1565b611b26565b3480156105a557600080fd5b506102ad6105b43660046125fc565b611bb4565b3480156105c557600080fd5b50600c54600d5461061a916001600160481b0380821692600160481b8304821692600160901b81049092169163ffffffff600160d81b90910481169180821691600160201b8204811691600160401b90041687565b604080516001600160481b0398891681529688166020880152949096169385019390935263ffffffff91821660608501528116608084015290811660a083015290911660c082015260e00161022a565b34801561067657600080fd5b506102486106853660046127d9565b611bfe565b34801561069657600080fd5b5061021e6106a536600461258f565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156106df57600080fd5b50600a54610275906001600160a01b031681565b3480156106ff57600080fd5b506102ad61070e366004612575565b611c82565b60006301ffc9a760e01b6001600160e01b03198316148061074457506380ac58cd60e01b6001600160e01b03198316145b8061075f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461077490612b2c565b80601f01602080910402602001604051908101604052809291908181526020018280546107a090612b2c565b80156107ed5780601f106107c2576101008083540402835291602001916107ed565b820191906000526020600020905b8154815290600101906020018083116107d057829003601f168201915b5050505050905090565b600061080282611d1a565b61081f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061084682611d42565b9050806001600160a01b0316836001600160a01b0316141561087b5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146108b25761089581336106a5565b6108b2576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146109415760405162461bcd60e51b815260040161093890612a02565b60405180910390fd5b60008363ffffffff16116109975760405162461bcd60e51b815260206004820152601a60248201527f636f6c6c656374696f6e53697a65206d757374206265203e20300000000000006044820152606401610938565b60008263ffffffff16116109ed5760405162461bcd60e51b815260206004820152601f60248201527f6d696e74735065725472616e73616374696f6e206d757374206265203e2030006044820152606401610938565b8263ffffffff168263ffffffff161115610a5f5760405162461bcd60e51b815260206004820152602d60248201527f6d696e74735065725472616e73616374696f6e206d757374206265203c3d206360448201526c6f6c6c656374696f6e53697a6560981b6064820152608401610938565b60008163ffffffff1611610ab55760405162461bcd60e51b815260206004820152601a60248201527f6d696e747350657257616c6c6574206d757374206265203e20300000000000006044820152606401610938565b8263ffffffff168163ffffffff161115610b225760405162461bcd60e51b815260206004820152602860248201527f6d696e747350657257616c6c6574206d757374206265203c3d20636f6c6c656360448201526774696f6e53697a6560c01b6064820152608401610938565b6040805163ffffffff8581168252848116602083015283168183015242606082015290517f158d47edd33dad01a1d49d4813d53f22dcf4e7c02acbabec482c9eb630b4c6eb9181900360800190a1600b805463ffffffff94851667ffffffffffffffff1990911617600160201b938516939093029290921763ffffffff60401b1916600160401b9190931602919091179055565b600e5460009060ff168015610bd35750600d5463ffffffff164210155b610c195760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb881a185cc81b9bdd081cdd185c9d1959604a1b6044820152606401610938565b600d54600090610c2f9063ffffffff1642612ac4565b600d54909150600090610c8f90610c5390600160401b900463ffffffff1684612a6e565b600d5463ffffffff600160401b8204811691610c7a9180821691600160201b900416612adb565b610c849190612a82565b63ffffffff16611da3565b9392505050565b6000546001600160a01b03163314610cc05760405162461bcd60e51b815260040161093890612a02565b6001600160a01b038116610d2c5760405162461bcd60e51b815260206004820152602d60248201527f7769746864726177616c416464726573735f2063616e6e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401610938565b604080516001600160a01b03831681524260208201527fb191a6035b74706f8d23486ad2b312600e09ef5790e087dfc00104448182c48c910160405180910390a1600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610db95760405162461bcd60e51b815260040161093890612a02565b8060008111610e065760405162461bcd60e51b815260206004820152601960248201527804d696e74207175616e74697479206d757374206265203e203603c1b6044820152606401610938565b600b5463ffffffff1681610e1960015490565b610e239190612a37565b1115610e685760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f74616c20737570706c7960601b6044820152606401610938565b600b54600160201b900463ffffffff16811115610e975760405162461bcd60e51b8152600401610938906129b5565b826001600160a01b03167f85e6ec0b41a92bf386b9d0a131c38a044e9ce4b91a3395a63dc158a526c9d1f683600085610ecf60015490565b610ed99190612a37565b6040805193845260208401929092529082015242606082015260800160405180910390a2610f078383611db9565b505050565b610f07838383611e97565b6000546001600160a01b03163314610f415760405162461bcd60e51b815260040161093890612a02565b600a546001600160a01b0316610fae5760405162461bcd60e51b815260206004820152602c60248201527f7769746864726177616c416464726573732063616e6e6f74206265207468652060448201526b7a65726f206164647265737360a01b6064820152608401610938565b600a54604080514781524260208201526001600160a01b03909216917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb910160405180910390a2600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611042576040519150601f19603f3d011682016040523d82523d6000602084013e611047565b606091505b50509050806110985760405162461bcd60e51b815260206004820152601a60248201527f5769746864726177616c207472616e73666572206661696c65640000000000006044820152606401610938565b50565b6000546001600160a01b031633146110c55760405162461bcd60e51b815260040161093890612a02565b6110cd612038565b565b610f0783838360405180602001604052806000815250611bb4565b60008060006110f7610bb6565b90506000611104826120d5565b919491935090915050565b600054600160a01b900460ff161561115c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610938565b80600081116111a95760405162461bcd60e51b815260206004820152601960248201527804d696e74207175616e74697479206d757374206265203e203603c1b6044820152606401610938565b600b5463ffffffff16816111bc60015490565b6111c69190612a37565b111561120b5760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f74616c20737570706c7960601b6044820152606401610938565b600b54600160201b900463ffffffff1681111561123a5760405162461bcd60e51b8152600401610938906129b5565b32331461127f5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91036bab9ba103132903ab9b2b960691b6044820152606401610938565b600e5460ff1680156112995750600d5463ffffffff164210155b6112df5760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb881a185cc81b9bdd081cdd185c9d1959604a1b6044820152606401610938565b600d54600160201b900463ffffffff1642106113315760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881a185cc8195b991959607a1b6044820152606401610938565b600b5463ffffffff600160401b9091041682611370336001600160a01b03166000908152600660205260409081902054901c67ffffffffffffffff1690565b61137a9190612a37565b11156113db5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f74206d696e742074686973206d616e792066726f6d20612073696e60448201526919db19481dd85b1b195d60b21b6064820152608401610938565b6000806113e66110ea565b909250905060006113f78583612aa5565b9050803410156114405760405162461bcd60e51b8152602060048201526014602482015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b6044820152606401610938565b600e54610100900463ffffffff1683111561149657600e805471ffffffffffffffffffffffffffffffffff001916600160481b6001600160481b0385160264ffffffff0019161761010063ffffffff8616021790555b600e80548691906005906114ba90849065010000000000900463ffffffff16612a4f565b92506101000a81548163ffffffff021916908363ffffffff160217905550336001600160a01b03167ecf05fa72f53eec27f42b35a0c77879171feac11623c5f220fd127961d7758486848861150e60015490565b6115189190612a37565b604080519384526020840192909252908201524260608201526080810186905260a00160405180910390a261154d3386611db9565b803411156115ef576000336115628334612ac4565b604051600081818185875af1925050503d806000811461159e576040519150601f19603f3d011682016040523d82523d6000602084013e6115a3565b606091505b50509050806115ed5760405162461bcd60e51b81526020600482015260166024820152751499599d5b99081d1c985b9cd9995c8819985a5b195960521b6044820152606401610938565b505b5050505050565b600080610c8f6110ea565b600061075f82611d42565b60006001600160a01b038216611635576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146116855760405162461bcd60e51b815260040161093890612a02565b6110cd6000612268565b6000546001600160a01b031633146116b95760405162461bcd60e51b815260040161093890612a02565b7fbcaff97b56ef55ac508691231fb0049a7ab42d54a1c3eea3a003be255aff795f8282426040516116ec9392919061296a565b60405180910390a1610f0760098383612495565b6000546001600160a01b0316331461172a5760405162461bcd60e51b815260040161093890612a02565b6110cd6122b8565b60606004805461077490612b2c565b6001600160a01b03821633141561176b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146118015760405162461bcd60e51b815260040161093890612a02565b856001600160481b0316876001600160481b031610156118635760405162461bcd60e51b815260206004820181905260248201527f73746172745072696365206d757374206265203e3d20666c6f6f7250726963656044820152606401610938565b6000856001600160481b0316116118b55760405162461bcd60e51b81526020600482015260166024820152750707269636544656c7461206d757374206265203e20360541b6044820152606401610938565b428363ffffffff1610156119175760405162461bcd60e51b8152602060048201526024808201527f737461727454696d65206d757374206265203e3d20626c6f636b2e74696d6573604482015263074616d760e41b6064820152608401610938565b8263ffffffff168263ffffffff16116119725760405162461bcd60e51b815260206004820152601b60248201527f656e6454696d65206d757374206265203e20737461727454696d6500000000006044820152606401610938565b601e8163ffffffff1610156119d55760405162461bcd60e51b815260206004820152602360248201527f737465704475726174696f6e496e5365636f6e6473206d757374206265203e3d60448201526202033360ec1b6064820152608401610938565b604080516001600160481b038981168252888116602083015287168183015263ffffffff8681166060830152858116608083015284811660a0830152831660c08201524260e082015290517f297114ebb579504f21cbe77b4ccb446b7b89df926172bdade43b6295326813c9918190036101000190a1600c80546001600160481b0398891671ffffffffffffffffffffffffffffffffffff199091168117600160481b988a168902176cffffffffffffffffffffffffff60901b1916600160901b979099169690960263ffffffff60d81b191697909717600160d81b63ffffffff9586160217909655600d805492841667ffffffffffffffff1990931692909217600160201b918416919091021763ffffffff60401b1916600160401b959092169490940217909255600e805471ffffffffffffffffff0000000000000000ff191692909102919091176001179055565b6000546001600160a01b03163314611b505760405162461bcd60e51b815260040161093890612a02565b6040805163ffffffff831681524260208201527fc7e6cabf0366ab9b4e070af470e0f423366a364ce6371be9e492d4b247eece09910160405180910390a1600c805463ffffffff909216600160d81b0263ffffffff60d81b19909216919091179055565b611bbf848484611e97565b6001600160a01b0383163b15611bf857611bdb84848484612340565b611bf8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611c0982611d1a565b611c2657604051630a14c4b560e41b815260040160405180910390fd5b6000611c30612437565b9050805160001415611c515760405180602001604052806000815250610c8f565b80611c5b84612446565b604051602001611c6c9291906128fe565b6040516020818303038152906040529392505050565b6000546001600160a01b03163314611cac5760405162461bcd60e51b815260040161093890612a02565b6001600160a01b038116611d115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610938565b61109881612268565b60006001548210801561075f575050600090815260056020526040902054600160e01b161590565b600081600154811015611d8a57600081815260056020526040902054600160e01b8116611d88575b80610c8f575060001901600081815260056020526040902054611d6a565b505b604051636f96cda160e11b815260040160405180910390fd5b6000818310611db25781610c8f565b5090919050565b6001546001600160a01b038316611de257604051622e076360e81b815260040160405180910390fd5b81611e005760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526006602090815260408083208054680100000000000000018702019055838352600590915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611e4b5750600155505050565b6000611ea282611d42565b9050836001600160a01b0316816001600160a01b031614611ed55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611ef35750611ef385336106a5565b80611f0e575033611f03846107f7565b6001600160a01b0316145b905080611f2e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f5557604051633a954ecd60e21b815260040160405180910390fd5b600083815260076020908152604080832080546001600160a01b03191690556001600160a01b038881168452600683528184208054600019019055871683528083208054600101905585835260059091529020600160e11b4260a01b861781179091558216611ff25760018301600081815260056020526040902054611ff0576001548114611ff05760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115ef565b600054600160a01b900460ff166120885760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610938565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600e54600090610100900463ffffffff168210156121435760405162461bcd60e51b815260206004820152602560248201527f6375727253746570206d757374206265203e3d2061756374696f6e537461746560448201526402e737465760dc1b6064820152608401610938565b600e54610100900463ffffffff16821415612170575050600e54600160481b90046001600160481b031690565b600e5460009061218b90610100900463ffffffff1684612ac4565b600e54600c549192506001600160481b03600160481b80830482169363ffffffff65010000000000909404841693918104831692600160901b82041691600160d81b9091041683106121f3576121e2816003612aa5565b6121ec9085612a37565b9350612216565b836121fe8284612a37565b106122095781612213565b6122138185612ac4565b93505b600185111561225d5760008161222d600188612ac4565b6122379190612aa5565b9050846122448285612a37565b1061224f5782612259565b6122598186612ac4565b9450505b509195945050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16156123055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610938565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b83390565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061237590339089908890889060040161292d565b602060405180830381600087803b15801561238f57600080fd5b505af19250505080156123bf575060408051601f3d908101601f191682019092526123bc91810190612750565b60015b61241a573d8080156123ed576040519150601f19603f3d011682016040523d82523d6000602084013e6123f2565b606091505b508051612412576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606009805461077490612b2c565b604080516080810191829052607f0190826030600a8206018353600a90045b801561248357600183039250600a81066030018353600a9004612465565b50819003601f19909101908152919050565b8280546124a190612b2c565b90600052602060002090601f0160209004810192826124c35760008555612509565b82601f106124dc5782800160ff19823516178555612509565b82800160010185558215612509579182015b828111156125095782358255916020019190600101906124ee565b50612515929150612519565b5090565b5b80821115612515576000815560010161251a565b80356001600160a01b038116811461254557600080fd5b919050565b803563ffffffff8116811461254557600080fd5b80356001600160481b038116811461254557600080fd5b600060208284031215612586578081fd5b610c8f8261252e565b600080604083850312156125a1578081fd5b6125aa8361252e565b91506125b86020840161252e565b90509250929050565b6000806000606084860312156125d5578081fd5b6125de8461252e565b92506125ec6020850161252e565b9150604084013590509250925092565b60008060008060808587031215612611578081fd5b61261a8561252e565b93506126286020860161252e565b925060408501359150606085013567ffffffffffffffff8082111561264b578283fd5b818701915087601f83011261265e578283fd5b81358181111561267057612670612b93565b604051601f8201601f19908116603f0116810190838211818310171561269857612698612b93565b816040528281528a60208487010111156126b0578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156126e3578182fd5b6126ec8361252e565b915060208301358015158114612700578182fd5b809150509250929050565b6000806040838503121561271d578182fd5b6127268361252e565b946020939093013593505050565b600060208284031215612745578081fd5b8135610c8f81612ba9565b600060208284031215612761578081fd5b8151610c8f81612ba9565b6000806020838503121561277e578182fd5b823567ffffffffffffffff80821115612795578384fd5b818501915085601f8301126127a8578384fd5b8135818111156127b6578485fd5b8660208285010111156127c7578485fd5b60209290920196919550909350505050565b6000602082840312156127ea578081fd5b5035919050565b600060208284031215612802578081fd5b610c8f8261254a565b60008060006060848603121561281f578283fd5b6128288461254a565b92506128366020850161254a565b91506128446040850161254a565b90509250925092565b600080600080600080600060e0888a031215612867578283fd5b6128708861255e565b965061287e6020890161255e565b955061288c6040890161255e565b945061289a6060890161254a565b93506128a86080890161254a565b92506128b660a0890161254a565b91506128c460c0890161254a565b905092959891949750929550565b600081518084526128ea816020860160208601612b00565b601f01601f19169290920160200192915050565b60008351612910818460208801612b00565b835190830190612924818360208801612b00565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612960908301846128d2565b9695505050505050565b6040815282604082015282846060830137600080606085840101526060601f19601f8601168301019050826020830152949350505050565b602081526000610c8f60208301846128d2565b6020808252602d908201527f43616e6e6f74206d696e742074686973206d616e7920696e20612073696e676c60408201526c32903a3930b739b0b1ba34b7b760991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115612a4a57612a4a612b67565b500190565b600063ffffffff80831681851680830382111561292457612924612b67565b600082612a7d57612a7d612b7d565b500490565b600063ffffffff80841680612a9957612a99612b7d565b92169190910492915050565b6000816000190483118215151615612abf57612abf612b67565b500290565b600082821015612ad657612ad6612b67565b500390565b600063ffffffff83811690831681811015612af857612af8612b67565b039392505050565b60005b83811015612b1b578181015183820152602001612b03565b83811115611bf85750506000910152565b600181811c90821680612b4057607f821691505b60208210811415612b6157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461109857600080fdfea2646970667358221220c428fe3510cd2aeedf9a64117e9f8e257f4484cc4a80fbde727a3510238d3ea464736f6c63430008040033

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80635c975abb1161010d578063a22cb465116100a0578063bb4061351161006f578063bb406135146105b9578063c87b56dd1461066a578063e985e9c51461068a578063f2bcd022146106d3578063f2fde38b146106f357600080fd5b8063a22cb46514610539578063aba3f8f014610559578063aebddc8a14610579578063b88d4fde1461059957600080fd5b80637e518ec8116100dc5780637e518ec8146104d15780638456cb59146104f15780638da5cb5b1461050657806395d89b411461052457600080fd5b80635c975abb1461045d5780636352211e1461047c57806370a082311461049c578063715018a6146104bc57600080fd5b806322ad06701161019057806342842e0e1161015f57806342842e0e1461039157806348505f8e146103b15780634d3554c3146103db57806351c7115b146103ee57806358525fda1461040357600080fd5b806322ad06701461032757806323b872dd146103475780633ccfd60b146103675780633f4ba83a1461037c57600080fd5b80630e47a365116101cc5780630e47a365146102af57806318160ddd146102cf5780631d3824ea146102f257806321b8092e1461030757600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e610219366004612734565b610713565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610765565b60405161022a91906129a2565b34801561026157600080fd5b506102756102703660046127d9565b6107f7565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a836600461270b565b61083b565b005b3480156102bb57600080fd5b506102ad6102ca36600461280b565b61090e565b3480156102db57600080fd5b50600254600154035b60405190815260200161022a565b3480156102fe57600080fd5b506102e4610bb6565b34801561031357600080fd5b506102ad610322366004612575565b610c96565b34801561033357600080fd5b506102ad61034236600461270b565b610d8f565b34801561035357600080fd5b506102ad6103623660046125c1565b610f0c565b34801561037357600080fd5b506102ad610f17565b34801561038857600080fd5b506102ad61109b565b34801561039d57600080fd5b506102ad6103ac3660046125c1565b6110cf565b3480156103bd57600080fd5b506103c66110ea565b6040805192835260208301919091520161022a565b6102ad6103e93660046127d9565b61110f565b3480156103fa57600080fd5b506102e46115f6565b34801561040f57600080fd5b50600b546104369063ffffffff80821691600160201b8104821691600160401b9091041683565b6040805163ffffffff9485168152928416602084015292169181019190915260600161022a565b34801561046957600080fd5b50600054600160a01b900460ff1661021e565b34801561048857600080fd5b506102756104973660046127d9565b611601565b3480156104a857600080fd5b506102e46104b7366004612575565b61160c565b3480156104c857600080fd5b506102ad61165b565b3480156104dd57600080fd5b506102ad6104ec36600461276c565b61168f565b3480156104fd57600080fd5b506102ad611700565b34801561051257600080fd5b506000546001600160a01b0316610275565b34801561053057600080fd5b50610248611732565b34801561054557600080fd5b506102ad6105543660046126d1565b611741565b34801561056557600080fd5b506102ad61057436600461284d565b6117d7565b34801561058557600080fd5b506102ad6105943660046127f1565b611b26565b3480156105a557600080fd5b506102ad6105b43660046125fc565b611bb4565b3480156105c557600080fd5b50600c54600d5461061a916001600160481b0380821692600160481b8304821692600160901b81049092169163ffffffff600160d81b90910481169180821691600160201b8204811691600160401b90041687565b604080516001600160481b0398891681529688166020880152949096169385019390935263ffffffff91821660608501528116608084015290811660a083015290911660c082015260e00161022a565b34801561067657600080fd5b506102486106853660046127d9565b611bfe565b34801561069657600080fd5b5061021e6106a536600461258f565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156106df57600080fd5b50600a54610275906001600160a01b031681565b3480156106ff57600080fd5b506102ad61070e366004612575565b611c82565b60006301ffc9a760e01b6001600160e01b03198316148061074457506380ac58cd60e01b6001600160e01b03198316145b8061075f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461077490612b2c565b80601f01602080910402602001604051908101604052809291908181526020018280546107a090612b2c565b80156107ed5780601f106107c2576101008083540402835291602001916107ed565b820191906000526020600020905b8154815290600101906020018083116107d057829003601f168201915b5050505050905090565b600061080282611d1a565b61081f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061084682611d42565b9050806001600160a01b0316836001600160a01b0316141561087b5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146108b25761089581336106a5565b6108b2576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146109415760405162461bcd60e51b815260040161093890612a02565b60405180910390fd5b60008363ffffffff16116109975760405162461bcd60e51b815260206004820152601a60248201527f636f6c6c656374696f6e53697a65206d757374206265203e20300000000000006044820152606401610938565b60008263ffffffff16116109ed5760405162461bcd60e51b815260206004820152601f60248201527f6d696e74735065725472616e73616374696f6e206d757374206265203e2030006044820152606401610938565b8263ffffffff168263ffffffff161115610a5f5760405162461bcd60e51b815260206004820152602d60248201527f6d696e74735065725472616e73616374696f6e206d757374206265203c3d206360448201526c6f6c6c656374696f6e53697a6560981b6064820152608401610938565b60008163ffffffff1611610ab55760405162461bcd60e51b815260206004820152601a60248201527f6d696e747350657257616c6c6574206d757374206265203e20300000000000006044820152606401610938565b8263ffffffff168163ffffffff161115610b225760405162461bcd60e51b815260206004820152602860248201527f6d696e747350657257616c6c6574206d757374206265203c3d20636f6c6c656360448201526774696f6e53697a6560c01b6064820152608401610938565b6040805163ffffffff8581168252848116602083015283168183015242606082015290517f158d47edd33dad01a1d49d4813d53f22dcf4e7c02acbabec482c9eb630b4c6eb9181900360800190a1600b805463ffffffff94851667ffffffffffffffff1990911617600160201b938516939093029290921763ffffffff60401b1916600160401b9190931602919091179055565b600e5460009060ff168015610bd35750600d5463ffffffff164210155b610c195760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb881a185cc81b9bdd081cdd185c9d1959604a1b6044820152606401610938565b600d54600090610c2f9063ffffffff1642612ac4565b600d54909150600090610c8f90610c5390600160401b900463ffffffff1684612a6e565b600d5463ffffffff600160401b8204811691610c7a9180821691600160201b900416612adb565b610c849190612a82565b63ffffffff16611da3565b9392505050565b6000546001600160a01b03163314610cc05760405162461bcd60e51b815260040161093890612a02565b6001600160a01b038116610d2c5760405162461bcd60e51b815260206004820152602d60248201527f7769746864726177616c416464726573735f2063616e6e6f742062652074686560448201526c207a65726f206164647265737360981b6064820152608401610938565b604080516001600160a01b03831681524260208201527fb191a6035b74706f8d23486ad2b312600e09ef5790e087dfc00104448182c48c910160405180910390a1600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610db95760405162461bcd60e51b815260040161093890612a02565b8060008111610e065760405162461bcd60e51b815260206004820152601960248201527804d696e74207175616e74697479206d757374206265203e203603c1b6044820152606401610938565b600b5463ffffffff1681610e1960015490565b610e239190612a37565b1115610e685760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f74616c20737570706c7960601b6044820152606401610938565b600b54600160201b900463ffffffff16811115610e975760405162461bcd60e51b8152600401610938906129b5565b826001600160a01b03167f85e6ec0b41a92bf386b9d0a131c38a044e9ce4b91a3395a63dc158a526c9d1f683600085610ecf60015490565b610ed99190612a37565b6040805193845260208401929092529082015242606082015260800160405180910390a2610f078383611db9565b505050565b610f07838383611e97565b6000546001600160a01b03163314610f415760405162461bcd60e51b815260040161093890612a02565b600a546001600160a01b0316610fae5760405162461bcd60e51b815260206004820152602c60248201527f7769746864726177616c416464726573732063616e6e6f74206265207468652060448201526b7a65726f206164647265737360a01b6064820152608401610938565b600a54604080514781524260208201526001600160a01b03909216917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb910160405180910390a2600a546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611042576040519150601f19603f3d011682016040523d82523d6000602084013e611047565b606091505b50509050806110985760405162461bcd60e51b815260206004820152601a60248201527f5769746864726177616c207472616e73666572206661696c65640000000000006044820152606401610938565b50565b6000546001600160a01b031633146110c55760405162461bcd60e51b815260040161093890612a02565b6110cd612038565b565b610f0783838360405180602001604052806000815250611bb4565b60008060006110f7610bb6565b90506000611104826120d5565b919491935090915050565b600054600160a01b900460ff161561115c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610938565b80600081116111a95760405162461bcd60e51b815260206004820152601960248201527804d696e74207175616e74697479206d757374206265203e203603c1b6044820152606401610938565b600b5463ffffffff16816111bc60015490565b6111c69190612a37565b111561120b5760405162461bcd60e51b81526020600482015260146024820152734578636565647320746f74616c20737570706c7960601b6044820152606401610938565b600b54600160201b900463ffffffff1681111561123a5760405162461bcd60e51b8152600401610938906129b5565b32331461127f5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91036bab9ba103132903ab9b2b960691b6044820152606401610938565b600e5460ff1680156112995750600d5463ffffffff164210155b6112df5760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb881a185cc81b9bdd081cdd185c9d1959604a1b6044820152606401610938565b600d54600160201b900463ffffffff1642106113315760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881a185cc8195b991959607a1b6044820152606401610938565b600b5463ffffffff600160401b9091041682611370336001600160a01b03166000908152600660205260409081902054901c67ffffffffffffffff1690565b61137a9190612a37565b11156113db5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f74206d696e742074686973206d616e792066726f6d20612073696e60448201526919db19481dd85b1b195d60b21b6064820152608401610938565b6000806113e66110ea565b909250905060006113f78583612aa5565b9050803410156114405760405162461bcd60e51b8152602060048201526014602482015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b6044820152606401610938565b600e54610100900463ffffffff1683111561149657600e805471ffffffffffffffffffffffffffffffffff001916600160481b6001600160481b0385160264ffffffff0019161761010063ffffffff8616021790555b600e80548691906005906114ba90849065010000000000900463ffffffff16612a4f565b92506101000a81548163ffffffff021916908363ffffffff160217905550336001600160a01b03167ecf05fa72f53eec27f42b35a0c77879171feac11623c5f220fd127961d7758486848861150e60015490565b6115189190612a37565b604080519384526020840192909252908201524260608201526080810186905260a00160405180910390a261154d3386611db9565b803411156115ef576000336115628334612ac4565b604051600081818185875af1925050503d806000811461159e576040519150601f19603f3d011682016040523d82523d6000602084013e6115a3565b606091505b50509050806115ed5760405162461bcd60e51b81526020600482015260166024820152751499599d5b99081d1c985b9cd9995c8819985a5b195960521b6044820152606401610938565b505b5050505050565b600080610c8f6110ea565b600061075f82611d42565b60006001600160a01b038216611635576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b031633146116855760405162461bcd60e51b815260040161093890612a02565b6110cd6000612268565b6000546001600160a01b031633146116b95760405162461bcd60e51b815260040161093890612a02565b7fbcaff97b56ef55ac508691231fb0049a7ab42d54a1c3eea3a003be255aff795f8282426040516116ec9392919061296a565b60405180910390a1610f0760098383612495565b6000546001600160a01b0316331461172a5760405162461bcd60e51b815260040161093890612a02565b6110cd6122b8565b60606004805461077490612b2c565b6001600160a01b03821633141561176b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146118015760405162461bcd60e51b815260040161093890612a02565b856001600160481b0316876001600160481b031610156118635760405162461bcd60e51b815260206004820181905260248201527f73746172745072696365206d757374206265203e3d20666c6f6f7250726963656044820152606401610938565b6000856001600160481b0316116118b55760405162461bcd60e51b81526020600482015260166024820152750707269636544656c7461206d757374206265203e20360541b6044820152606401610938565b428363ffffffff1610156119175760405162461bcd60e51b8152602060048201526024808201527f737461727454696d65206d757374206265203e3d20626c6f636b2e74696d6573604482015263074616d760e41b6064820152608401610938565b8263ffffffff168263ffffffff16116119725760405162461bcd60e51b815260206004820152601b60248201527f656e6454696d65206d757374206265203e20737461727454696d6500000000006044820152606401610938565b601e8163ffffffff1610156119d55760405162461bcd60e51b815260206004820152602360248201527f737465704475726174696f6e496e5365636f6e6473206d757374206265203e3d60448201526202033360ec1b6064820152608401610938565b604080516001600160481b038981168252888116602083015287168183015263ffffffff8681166060830152858116608083015284811660a0830152831660c08201524260e082015290517f297114ebb579504f21cbe77b4ccb446b7b89df926172bdade43b6295326813c9918190036101000190a1600c80546001600160481b0398891671ffffffffffffffffffffffffffffffffffff199091168117600160481b988a168902176cffffffffffffffffffffffffff60901b1916600160901b979099169690960263ffffffff60d81b191697909717600160d81b63ffffffff9586160217909655600d805492841667ffffffffffffffff1990931692909217600160201b918416919091021763ffffffff60401b1916600160401b959092169490940217909255600e805471ffffffffffffffffff0000000000000000ff191692909102919091176001179055565b6000546001600160a01b03163314611b505760405162461bcd60e51b815260040161093890612a02565b6040805163ffffffff831681524260208201527fc7e6cabf0366ab9b4e070af470e0f423366a364ce6371be9e492d4b247eece09910160405180910390a1600c805463ffffffff909216600160d81b0263ffffffff60d81b19909216919091179055565b611bbf848484611e97565b6001600160a01b0383163b15611bf857611bdb84848484612340565b611bf8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611c0982611d1a565b611c2657604051630a14c4b560e41b815260040160405180910390fd5b6000611c30612437565b9050805160001415611c515760405180602001604052806000815250610c8f565b80611c5b84612446565b604051602001611c6c9291906128fe565b6040516020818303038152906040529392505050565b6000546001600160a01b03163314611cac5760405162461bcd60e51b815260040161093890612a02565b6001600160a01b038116611d115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610938565b61109881612268565b60006001548210801561075f575050600090815260056020526040902054600160e01b161590565b600081600154811015611d8a57600081815260056020526040902054600160e01b8116611d88575b80610c8f575060001901600081815260056020526040902054611d6a565b505b604051636f96cda160e11b815260040160405180910390fd5b6000818310611db25781610c8f565b5090919050565b6001546001600160a01b038316611de257604051622e076360e81b815260040160405180910390fd5b81611e005760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526006602090815260408083208054680100000000000000018702019055838352600590915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611e4b5750600155505050565b6000611ea282611d42565b9050836001600160a01b0316816001600160a01b031614611ed55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611ef35750611ef385336106a5565b80611f0e575033611f03846107f7565b6001600160a01b0316145b905080611f2e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f5557604051633a954ecd60e21b815260040160405180910390fd5b600083815260076020908152604080832080546001600160a01b03191690556001600160a01b038881168452600683528184208054600019019055871683528083208054600101905585835260059091529020600160e11b4260a01b861781179091558216611ff25760018301600081815260056020526040902054611ff0576001548114611ff05760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115ef565b600054600160a01b900460ff166120885760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610938565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600e54600090610100900463ffffffff168210156121435760405162461bcd60e51b815260206004820152602560248201527f6375727253746570206d757374206265203e3d2061756374696f6e537461746560448201526402e737465760dc1b6064820152608401610938565b600e54610100900463ffffffff16821415612170575050600e54600160481b90046001600160481b031690565b600e5460009061218b90610100900463ffffffff1684612ac4565b600e54600c549192506001600160481b03600160481b80830482169363ffffffff65010000000000909404841693918104831692600160901b82041691600160d81b9091041683106121f3576121e2816003612aa5565b6121ec9085612a37565b9350612216565b836121fe8284612a37565b106122095781612213565b6122138185612ac4565b93505b600185111561225d5760008161222d600188612ac4565b6122379190612aa5565b9050846122448285612a37565b1061224f5782612259565b6122598186612ac4565b9450505b509195945050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff16156123055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610938565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b83390565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061237590339089908890889060040161292d565b602060405180830381600087803b15801561238f57600080fd5b505af19250505080156123bf575060408051601f3d908101601f191682019092526123bc91810190612750565b60015b61241a573d8080156123ed576040519150601f19603f3d011682016040523d82523d6000602084013e6123f2565b606091505b508051612412576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606009805461077490612b2c565b604080516080810191829052607f0190826030600a8206018353600a90045b801561248357600183039250600a81066030018353600a9004612465565b50819003601f19909101908152919050565b8280546124a190612b2c565b90600052602060002090601f0160209004810192826124c35760008555612509565b82601f106124dc5782800160ff19823516178555612509565b82800160010185558215612509579182015b828111156125095782358255916020019190600101906124ee565b50612515929150612519565b5090565b5b80821115612515576000815560010161251a565b80356001600160a01b038116811461254557600080fd5b919050565b803563ffffffff8116811461254557600080fd5b80356001600160481b038116811461254557600080fd5b600060208284031215612586578081fd5b610c8f8261252e565b600080604083850312156125a1578081fd5b6125aa8361252e565b91506125b86020840161252e565b90509250929050565b6000806000606084860312156125d5578081fd5b6125de8461252e565b92506125ec6020850161252e565b9150604084013590509250925092565b60008060008060808587031215612611578081fd5b61261a8561252e565b93506126286020860161252e565b925060408501359150606085013567ffffffffffffffff8082111561264b578283fd5b818701915087601f83011261265e578283fd5b81358181111561267057612670612b93565b604051601f8201601f19908116603f0116810190838211818310171561269857612698612b93565b816040528281528a60208487010111156126b0578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156126e3578182fd5b6126ec8361252e565b915060208301358015158114612700578182fd5b809150509250929050565b6000806040838503121561271d578182fd5b6127268361252e565b946020939093013593505050565b600060208284031215612745578081fd5b8135610c8f81612ba9565b600060208284031215612761578081fd5b8151610c8f81612ba9565b6000806020838503121561277e578182fd5b823567ffffffffffffffff80821115612795578384fd5b818501915085601f8301126127a8578384fd5b8135818111156127b6578485fd5b8660208285010111156127c7578485fd5b60209290920196919550909350505050565b6000602082840312156127ea578081fd5b5035919050565b600060208284031215612802578081fd5b610c8f8261254a565b60008060006060848603121561281f578283fd5b6128288461254a565b92506128366020850161254a565b91506128446040850161254a565b90509250925092565b600080600080600080600060e0888a031215612867578283fd5b6128708861255e565b965061287e6020890161255e565b955061288c6040890161255e565b945061289a6060890161254a565b93506128a86080890161254a565b92506128b660a0890161254a565b91506128c460c0890161254a565b905092959891949750929550565b600081518084526128ea816020860160208601612b00565b601f01601f19169290920160200192915050565b60008351612910818460208801612b00565b835190830190612924818360208801612b00565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612960908301846128d2565b9695505050505050565b6040815282604082015282846060830137600080606085840101526060601f19601f8601168301019050826020830152949350505050565b602081526000610c8f60208301846128d2565b6020808252602d908201527f43616e6e6f74206d696e742074686973206d616e7920696e20612073696e676c60408201526c32903a3930b739b0b1ba34b7b760991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115612a4a57612a4a612b67565b500190565b600063ffffffff80831681851680830382111561292457612924612b67565b600082612a7d57612a7d612b7d565b500490565b600063ffffffff80841680612a9957612a99612b7d565b92169190910492915050565b6000816000190483118215151615612abf57612abf612b67565b500290565b600082821015612ad657612ad6612b67565b500390565b600063ffffffff83811690831681811015612af857612af8612b67565b039392505050565b60005b83811015612b1b578181015183820152602001612b03565b83811115611bf85750506000910152565b600181811c90821680612b4057607f821691505b60208210811415612b6157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461109857600080fdfea2646970667358221220c428fe3510cd2aeedf9a64117e9f8e257f4484cc4a80fbde727a3510238d3ea464736f6c63430008040033

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.