ETH Price: $3,299.61 (-0.51%)

Token

AdidasBluePass (BLUEPASS)
 

Overview

Max Total Supply

30 BLUEPASS

Holders

30

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BLUEPASS
0x26e729ca643AF2319389BbFE8f25d7768fd24cf4
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Blue Pass is a special reward for special adidas holders. It is a solebound non-transferable token. Head to discord.gg/adidas for more.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AdidasBluePass

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : AdidasBluePass.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

contract AdidasBluePass is ERC721ABurnable, ERC721AQueryable, Ownable {
    string private _name;
    string private _symbol;
    string public contractUri;
    string public baseUri;

    bool public locked;
    bool public uniqueMetadata;

    mapping(address => bool) public authorized;

    constructor(
        string memory __name,
        string memory __symbol,
        string memory _baseUri,
        string memory _contractUri
    ) ERC721A(__name, __symbol) {
        _name = __name;
        _symbol = __symbol;
        baseUri = _baseUri;
        contractUri = _contractUri;
    }

    modifier onlyAuthorized() {
        require(
            authorized[msg.sender] || owner() == msg.sender,
            "Not authorized or owner"
        );
        _;
    }

    function name()
        public
        view
        virtual
        override(ERC721A, IERC721A)
        returns (string memory)
    {
        return _name;
    }

    function symbol()
        public
        view
        virtual
        override(ERC721A, IERC721A)
        returns (string memory)
    {
        return _symbol;
    }

    function setNameAndSymbol(
        string calldata newName,
        string calldata newSymbol
    ) public onlyOwner {
        _name = newName;
        _symbol = newSymbol;
    }

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

    function setBaseUri(string calldata _baseUri) public onlyOwner {
        baseUri = _baseUri;
    }

    function setContractUri(string calldata _contractUri) public onlyOwner {
        contractUri = _contractUri;
    }

    function setUniqueMetadata(bool status) public onlyOwner {
        uniqueMetadata = status;
    }

    function mintPass(
        address[] calldata to,
        uint256[] calldata value
    ) external onlyOwner {
        require(to.length == value.length, "Mismatched lengths");
        unchecked {
            for (uint256 i = 0; i < to.length; i++) {
                _mint(to[i], value[i]);
            }
        }
        locked = true;
    }

    function tokenURI(
        uint256 tokenId
    ) public view override(ERC721A, IERC721A) returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        string memory base = _baseURI();
        if (uniqueMetadata) {
            return string(abi.encodePacked(base, _toString(tokenId), ".json"));
        } else {
            return base;
        }
    }

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

    function setLocked(bool _locked) external {
        locked = _locked;
    }

    function setAuthorized(address addr, bool status) public onlyOwner {
        authorized[addr] = status;
    }

    function redeemPass(uint256[] memory tokenIds) public onlyAuthorized {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _burn(tokenIds[i]);
        }
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if (!(authorized[msg.sender] || owner() == msg.sender)) {
            require(!locked, "This token is non-transferable");
        }
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_contractUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"value","type":"uint256[]"}],"name":"mintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"redeemPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractUri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_locked","type":"bool"}],"name":"setLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"},{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setUniqueMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniqueMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052346200083b5762002d47803803806200001d8162000840565b9283398101906080818303126200083b5780516001600160401b0391908281116200083b57836200005091830162000866565b906020808201518481116200083b57856200006d91840162000866565b9160408101518581116200083b57866200008991830162000866565b9560608201518681116200083b57620000a3920162000866565b908351958587116200040d57600254936001978886811c9616801562000830575b84871014620003ec57601f95868111620007e4575b5080848782116001146200077b576000916200076f575b50600019600383901b1c191690891b176002555b8051958787116200040d5760039687548a81811c9116801562000764575b86821014620003ec5787811162000719575b508085888211600114620006b457600091620006a8575b50600019828a1b1c1916908a1b1787555b600080805560088054336001600160a01b03198216811790925590916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a38051908882116200040d57600954908a82811c921680156200069d575b86831014620003ec57818884931162000646575b508590888311600114620005dd57600092620005d1575b505060001982891b1c191690891b176009555b8051908782116200040d57600a54908982811c92168015620005c6575b85831014620003ec5781878493116200056f575b5084908783116001146200050657600092620004fa575b505060001982881b1c191690881b17600a555b8051908682116200040d57600c54908882811c92168015620004ef575b84831014620003ec57818684931162000498575b5083908683116001146200042f5760009262000423575b505060001982871b1c191690871b17600c555b81519485116200040d57600b548681811c9116801562000402575b82821014620003ec57838111620003a0575b508092851160011462000330575093839491849260009562000324575b50501b92600019911b1c191617600b555b60405161246e9081620008d98239f35b01519350388062000303565b92919084601f198116600b60005285600020956000905b898383106200038557505050106200036a575b50505050811b01600b5562000314565b01519060f884600019921b161c19169055388080806200035a565b85870151895590970196948501948893509081019062000347565b600b600052816000208480880160051c820192848910620003e2575b0160051c019087905b828110620003d5575050620002e6565b60008155018790620003c5565b92508192620003bc565b634e487b7160e01b600052602260045260246000fd5b90607f1690620002d4565b634e487b7160e01b600052604160045260246000fd5b015190503880620002a6565b90899350601f19831691600c600052856000209260005b8782821062000481575050841162000468575b505050811b01600c55620002b9565b015160001983891b60f8161c1916905538808062000459565b8385015186558d9790950194938401930162000446565b909150600c600052836000208680850160051c820192868610620004e5575b918b91869594930160051c01915b828110620004d55750506200028f565b600081558594508b9101620004c5565b92508192620004b7565b91607f16916200027b565b0151905038806200024b565b908a9350601f19831691600a600052866000209260005b888282106200055857505084116200053f575b505050811b01600a556200025e565b0151600019838a1b60f8161c1916905538808062000530565b8385015186558e979095019493840193016200051d565b909150600a600052846000208780850160051c820192878610620005bc575b918c91869594930160051c01915b828110620005ac57505062000234565b600081558594508c91016200059c565b925081926200058e565b91607f169162000220565b015190503880620001f0565b908b9350601f198316916009600052876000209260005b898282106200062f575050841162000616575b505050811b0160095562000203565b0151600019838b1b60f8161c1916905538808062000607565b8385015186558f97909501949384019301620005f4565b9091506009600052856000208880850160051c82019288861062000693575b918d91869594930160051c01915b82811062000683575050620001d9565b600081558594508d910162000673565b9250819262000665565b91607f1691620001c5565b9050830151386200014b565b8b9250601f198216908a600052876000209160005b89828210620007025750508311620006e9575b5050811b0187556200015c565b850151600019838c1b60f8161c191690553880620006dc565b8389015185558f96909401939283019201620006c9565b88600052856000208880840160051c8201928885106200075a575b0160051c01908b905b8281106200074d57505062000134565b60008155018b906200073d565b9250819262000734565b90607f169062000122565b905087015138620000f0565b8a9250601f198216906002600052866000209160005b888c838310620007ce575050508311620007b4575b5050811b0160025562000104565b89015160001960f88460031b161c191690553880620007a6565b84015185558e9690940193928301920162000791565b6002600052846000208780840160051c82019287851062000826575b0160051c01908a905b82811062000819575050620000d9565b60008155018a9062000809565b9250819262000800565b95607f1695620000c4565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200040d57604052565b919080601f840112156200083b5782516001600160401b0381116200040d576020906200089c601f8201601f1916830162000840565b928184528282870101116200083b5760005b818110620008c457508260009394955001015290565b8581018301518482018401528201620008ae56fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461024757806306fdde0314610242578063081812fc1461023d578063095ea7b3146102385780631041a6031461023357806318160ddd1461022e578063211e28b61461022957806323b872dd1461022457806342842e0e1461021f57806342966c681461021a5780635a446215146102155780635bbb2177146102105780636352211e1461020b578063661236e4146102065780636e361c591461020157806370a08231146101fc578063711bf9b2146101f7578063715018a6146101f25780638462151c146101ed5780638da5cb5b146101e857806395d89b41146101e357806399a2557a146101de5780639abc8320146101d9578063a0bcfc7f146101d4578063a22cb465146101cf578063b88d4fde146101ca578063b9181611146101c5578063c0e24d5e146101c0578063c23dc68f146101bb578063c87b56dd146101b6578063ccb4807b146101b1578063cf309012146101ac578063e985e9c5146101a7578063f0d5ee1a146101a25763f2fde38b1461019d57600080fd5b611619565b6115f3565b61158b565b611568565b611477565b611458565b6113f5565b61134e565b61130c565b611281565b6111c6565b6110d5565b611077565b610f43565b610e9c565b610e73565b610db5565b610d1c565b610cc5565b610c96565b610c59565b610b78565b610b49565b610a83565b61089e565b6106ee565b6106ba565b6106a8565b61064e565b61060d565b610585565b610477565b610412565b61032d565b610263565b6001600160e01b031981160361025e57565b600080fd5b3461025e57602036600319011261025e5760206004356102828161024c565b63ffffffff60e01b166301ffc9a760e01b81149081156102c0575b81156102af575b506040519015158152f35b635b5e139f60e01b149050386102a4565b6380ac58cd60e01b8114915061029d565b60005b8381106102e45750506000910152565b81810151838201526020016102d4565b9060209161030d815180928185528580860191016102d1565b601f01601f1916010190565b90602061032a9281815201906102f4565b90565b3461025e5760008060031936011261040f57604051908060095461035081610f7f565b808552916001918083169081156103e5575060011461038a575b6103868561037a81870382610548565b60405191829182610319565b0390f35b9250600983527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b8284106103cd57505050810160200161037a8261038661036a565b805460208587018101919091529093019281016103b2565b8695506103869693506020925061037a94915060ff191682840152151560051b820101929361036a565b80fd5b3461025e57602036600319011261025e5760043561042f81611d51565b15610454576000526006602052602060018060a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b6001600160a01b0381160361025e57565b604036600319011261025e5760043561048f81610466565b6024356001600160a01b03806104a483611ce3565b16908133036104ff575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b600082815260076020908152604080832033845290915290205460ff166104ae576040516367d9dca160e11b8152600490fd5b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761056957604052565b610532565b6001600160401b0381116105695760051b60200190565b3461025e5760208060031936011261025e576004356001600160401b03811161025e573660238201121561025e578060040135906105c28261056e565b916105d06040519384610548565b80835260248484019160051b8301019136831161025e57602401905b8282106105fe576105fc84611ae6565b005b813581529084019084016105ec565b3461025e57600036600319011261025e5760206000546001549003604051908152f35b60043590811515820361025e57565b60243590811515820361025e57565b3461025e57602036600319011261025e57610667610630565b151560ff8019600d5416911617600d55600080f35b606090600319011261025e5760043561069481610466565b906024356106a181610466565b9060443590565b6105fc6106b43661067c565b91611d7a565b6106c33661067c565b6040519160208301938385106001600160401b03861117610569576105fc9460405260008452611fa5565b3461025e57602036600319011261025e5760043561070b81611ce3565b60008281526006602052604090208054916001600160a01b03811691338085149084141715610739565b1590565b610816575b600093610749611f20565b61080d575b506001600160a01b038216600090815260056020526040902080546001600160801b0301905560008481526004602052604090204260a01b8317600360e01b179055600160e11b8116156107c4575b506000805160206124198339815191528280a46105fc6107bf60015460010190565b600155565b600184016107dc816000526004602052604060002090565b54156107e9575b5061079d565b835481146107e357610805906000526004602052604060002090565b5538806107e3565b8390553861074e565b61085a6107356108533361083c8760018060a01b03166000526007602052604060002090565b9060018060a01b0316600052602052604060002090565b5460ff1690565b1561073e57604051632ce44b5f60e11b8152600490fd5b9181601f8401121561025e578235916001600160401b03831161025e576020838186019501011161025e57565b3461025e57604036600319011261025e576001600160401b0360043581811161025e576108cf903690600401610871565b9160243581811161025e576108e8903690600401610871565b9290916108f36116e6565b84116105695761090d84610908600954610f7f565b61173e565b600090601f851160011461094e576105fc949160009183610943575b50508160011b916000199060031b1c191617600955611902565b013590503880610929565b60096000527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af91601f198616815b8181106109bd57509160019391876105fc9894106109a3575b505050811b01600955611902565b0135600019600384901b60f8161c19169055388080610995565b9193602060018192878701358155019501920161097c565b9181601f8401121561025e578235916001600160401b03831161025e576020808501948460051b01011161025e57565b6020908160408183019282815285518094520193019160005b828110610a2c575050505090565b9091929382608082610a77600194895162ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565b01950193929101610a1e565b3461025e5760208060031936011261025e576004356001600160401b03811161025e57610ab49036906004016109d5565b610abd8161056e565b92610acb6040519485610548565b818452601f19610ada8361056e565b0160005b818110610b335750505060005b818103610b0057604051806103868682610a05565b80610b17610b1160019385876119f5565b35612207565b610b218287611c94565b52610b2c8186611c94565b5001610aeb565b8290610b3d6121d2565b82828901015201610ade565b3461025e57602036600319011261025e5760206001600160a01b03610b6f600435611ce3565b16604051908152f35b3461025e57604036600319011261025e576001600160401b0360043581811161025e57610ba99036906004016109d5565b9160243590811161025e57610bc29036906004016109d5565b90610bcb6116e6565b818403610c1f5760005b848110610bee576105fc600160ff19600d541617600d55565b80610c19610c07610c0260019489896119f5565b611a0a565b610c128387876119f5565b3590612107565b01610bd5565b60405162461bcd60e51b81526020600482015260126024820152714d69736d617463686564206c656e6774687360701b6044820152606490fd5b3461025e57602036600319011261025e57610c72610630565b610c7a6116e6565b61ff00600d5491151560081b169061ff00191617600d55600080f35b3461025e57602036600319011261025e576020610cbd600435610cb881610466565b611ca8565b604051908152f35b3461025e57604036600319011261025e576105fc600435610ce581610466565b610ced61063f565b90610cf66116e6565b60018060a01b0316600052600e60205260406000209060ff801983541691151516179055565b3461025e5760008060031936011261040f57610d366116e6565b600880546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b6020908160408183019282815285518094520193019160005b828110610da1575050505090565b835185529381019392810192600101610d93565b3461025e57602036600319011261025e57600435610dd281610466565b600080610dde83611ca8565b91610de8836122b3565b93610df16121d2565b506001600160a01b0390811691835b858503610e1557604051806103868982610d7a565b610e1e81612255565b6040810151610e6a57516001600160a01b0316838116610e61575b506001908484841614610e4d575b01610e00565b80610e5b838801978a611c94565b52610e47565b91506001610e39565b50600190610e47565b3461025e57600036600319011261025e576008546040516001600160a01b039091168152602090f35b3461025e5760008060031936011261040f576040519080600a54610ebf81610f7f565b808552916001918083169081156103e55750600114610ee8576103868561037a81870382610548565b9250600a83527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b828410610f2b57505050810160200161037a8261038661036a565b80546020858701810191909152909301928101610f10565b3461025e57606036600319011261025e57610386610f73600435610f6681610466565b60443590602435906122e5565b60405191829182610d7a565b90600182811c92168015610faf575b6020831014610f9957565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f8e565b60405190600082600c5491610fcd83610f7f565b808352926001908181169081156110555750600114610ff6575b50610ff492500383610548565b565b600c600090815291507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b84831061103a5750610ff4935050810160200138610fe7565b81935090816020925483858a01015201910190918592611021565b905060209250610ff494915060ff191682840152151560051b82010138610fe7565b3461025e57600036600319011261025e57610386611093610fb9565b6040519182916020835260208301906102f4565b602060031982011261025e57600435906001600160401b03821161025e576110d191600401610871565b9091565b3461025e576110e3366110a7565b6110eb6116e6565b6001600160401b0381116105695761110d81611108600c54610f7f565b6117af565b6000601f821160011461114857819260009261113d575b5050600019600383901b1c191660019190911b17600c55005b013590503880611124565b600c600052601f198216927fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c791805b8581106111ae57508360019510611194575b505050811b01600c55005b0135600019600384901b60f8161c19169055388080611189565b90926020600181928686013581550194019101611177565b3461025e57604036600319011261025e576004356111e381610466565b6111eb61063f565b9033600052600760205261122a826112198360406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b6001600160401b03811161056957601f01601f191660200190565b608036600319011261025e5760043561129981610466565b6024356112a581610466565b606435916001600160401b03831161025e573660238401121561025e578260040135916112d183611266565b926112df6040519485610548565b808452366024828701011161025e5760208160009260246105fc9801838801378501015260443591611fa5565b3461025e57602036600319011261025e5760043561132981610466565b60018060a01b0316600052600e602052602060ff604060002054166040519015158152f35b3461025e5760008060031936011261040f576040519080600b5461137181610f7f565b808552916001918083169081156103e5575060011461139a576103868561037a81870382610548565b9250600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b8284106113dd57505050810160200161037a8261038661036a565b805460208587018101919091529093019281016113c2565b3461025e57602036600319011261025e576080611413600435612207565b611456604051809262ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565bf35b3461025e57602036600319011261025e57610386611093600435611a2b565b3461025e57611485366110a7565b61148d6116e6565b6001600160401b038111610569576114af816114aa600b54610f7f565b611820565b6000601f82116001146114ea5781926000926114df575b5050600019600383901b1c191660019190911b17600b55005b0135905038806114c6565b600b600052601f198216927f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db991805b85811061155057508360019510611536575b505050811b01600b55005b0135600019600384901b60f8161c1916905538808061152b565b90926020600181928686013581550194019101611519565b3461025e57600036600319011261025e57602060ff600d54166040519015158152f35b3461025e57604036600319011261025e57602060ff6115e76004356115af81610466565b602435906115bc82610466565b60018060a01b03166000526007845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b3461025e57600036600319011261025e57602060ff600d5460081c166040519015158152f35b3461025e57602036600319011261025e5760043561163681610466565b61163e6116e6565b6001600160a01b0390811690811561169257600854826bffffffffffffffffffffffff60a01b821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6008546001600160a01b031633036116fa57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b601f811161174a575050565b600090600982527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af906020601f850160051c830194106117a5575b601f0160051c01915b82811061179a57505050565b81815560010161178e565b9092508290611785565b601f81116117bb575050565b600090600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c83019410611816575b601f0160051c01915b82811061180b57505050565b8181556001016117ff565b90925082906117f6565b601f811161182c575050565b600090600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c83019410611887575b601f0160051c01915b82811061187c57505050565b818155600101611870565b9092508290611867565b601f811161189d575050565b600090600a82527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8906020601f850160051c830194106118f8575b601f0160051c01915b8281106118ed57505050565b8181556001016118e1565b90925082906118d8565b91906001600160401b0381116105695761192681611921600a54610f7f565b611891565b6000601f821160011461196057819293600092611955575b50508160011b916000199060031b1c191617600a55565b01359050388061193e565b600a600052601f198216937fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a891805b8681106119c757508360019596106119ad575b505050811b01600a55565b0135600019600384901b60f8161c191690553880806119a2565b9092602060018192868601358155019401910161198f565b634e487b7160e01b600052603260045260246000fd5b9190811015611a055760051b0190565b6119df565b3561032a81610466565b90611a27602092828151948592016102d1565b0190565b611a3481611d51565b15611ad457611a41610fb9565b9060ff600d5460081c16600014611ad0576040519060a08201604052608082019060008252905b6000190190600a906030828206018353049081611a68579050611aad92611ac4611ab361032a946080601f199586810192030181526040519687946020860190611a14565b90611a14565b64173539b7b760d91b815260050190565b03908101835282610548565b5090565b604051630a14c4b560e41b8152600490fd5b90600090338252600e60205260ff6040832054168015611c80575b15611c3b57914260a01b90825b8151811015611c3557611b218183611c94565b5184611b2c82611ce3565b600083815260066020526040902080546001600160a01b03831692918491611b52611f20565b611c2d575b50506001600160a01b038216600090815260056020526040902080546001600160801b030190556000848152600460205260409020828817600360e01b179055600160e11b811615611be4575b506000805160206124198339815191528280a460018054810190556000198114611bd057600101611b0e565b634e487b7160e01b84526011600452602484fd5b60018401611bfc816000526004602052604060002090565b5415611c09575b50611ba4565b83548114611c0357611c25906000526004602052604060002090565b553880611c03565b558238611b57565b50505050565b60405162461bcd60e51b815260206004820152601760248201527f4e6f7420617574686f72697a6564206f72206f776e65720000000000000000006044820152606490fd5b506008546001600160a01b03163314611b01565b8051821015611a055760209160051b010190565b6001600160a01b03168015611cd15760005260056020526001600160401b036040600020541690565b6040516323d3ad8160e21b8152600490fd5b60008181548110611d01575b604051636f96cda160e11b8152600490fd5b81526004906020918083526040928383205494600160e01b861615611d2857505050611cef565b93929190935b8515611d3c57505050505090565b60001901808352818552838320549550611d2e565b60005481109081611d60575090565b90506000526004602052600160e01b604060002054161590565b90611d8483611ce3565b6001600160a01b0383811692828216849003611f0f57600086815260066020526040902080549092611dc56001600160a01b03881633908114908414171590565b611ed2575b8216958615611ec057611e2593611e0392611de3611f20565b611eb6575b506001600160a01b0316600090815260056020526040902090565b80546000190190556001600160a01b0316600090815260056020526040902090565b80546001019055600160e11b804260a01b851717611e4d866000526004602052604060002090565b55811615611e6c575b50600080516020612419833981519152600080a4565b60018401611e84816000526004602052604060002090565b5415611e91575b50611e56565b6000548114611e8b57611eae906000526004602052604060002090565b553880611e8b565b6000905538611de8565b604051633a954ecd60e21b8152600490fd5b611ef86107356108533361083c8b60018060a01b03166000526007602052604060002090565b15611dca57604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b33600052600e60205260ff604060002054168015611f91575b15611f4057565b60ff600d5416611f4c57565b60405162461bcd60e51b815260206004820152601e60248201527f5468697320746f6b656e206973206e6f6e2d7472616e7366657261626c6500006044820152606490fd5b506008546001600160a01b03163314611f39565b929190611fb3828286611d7a565b803b611fbf5750505050565b611fc89361205e565b15611fd65738808080611c35565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261025e575161032a8161024c565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261032a929101906102f4565b3d15612059573d9061203f82611266565b9161204d6040519384610548565b82523d6000602084013e565b606090565b92602091612087936000604051809681958294630a85bd0160e11b9a8b85523360048601611ffd565b03926001600160a01b03165af1600091816120d7575b506120c9576120aa61202e565b805190816120c4576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b6120f991925060203d8111612100575b6120f18183610548565b810190611fe8565b903861209d565b503d6120e7565b9060009081549281156121c05761211c611f20565b6001600160a01b0381166000908152600560205260409020805468010000000000000001840201905560008481526004602052604090206001600160a01b03909116916001914260a01b83831460e11b17841790558401938160008051602061241983398151915291808587858180a4015b8581036121b157505050156121a05755565b604051622e076360e81b8152600490fd5b8083918587858180a40161218e565b60405163b562e8dd60e01b8152600490fd5b60405190608082018281106001600160401b038211176105695760405260006060838281528260208201528260408201520152565b61220f6121d2565b506122186121d2565b600054821015612250575061222c81612255565b6040810151612250575061224b61032a916122456121d2565b50611ce3565b612270565b905090565b61225d6121d2565b50600052600460205261032a6040600020545b906122796121d2565b6001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b83161515604082015260e89290921c6060830152565b906122bd8261056e565b6122ca6040519182610548565b82815280926122db601f199161056e565b0190602036910137565b90828110156124065760009182548085116123fe575b5061230581611ca8565b848310156123f7578285038181106123ef575b505b612323816122b3565b9581156123e75761233384612207565b91859460409361234861073586830151151590565b6123d5575b505b87811415806123cb575b156123be5761236781612255565b808501516123b557516001600160a01b03908116806123ac575b509081600192871690881614612398575b0161234f565b806123a6838a01998c611c94565b52612392565b96506001612381565b50600190612392565b5050959450505050815290565b5081871415612359565b516001600160a01b031695503861234d565b945050505050565b905038612318565b508261231a565b9350386122fb565b604051631960ccad60e11b8152600490fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ad882be6e9ae400a7be82de31d6e8dcc14c3e1aca3bf4b12605e20abecfbb95764736f6c63430008130033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000e416469646173426c7565506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008424c5545504153530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d634335354334676a695044626a4b76455663566a5a747347376a766a464a384436716968764e6959666f69452f000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656966746f337478613378687a68336e347067673677666774367436777a326c63646e356c74643572726a3332626e6c353537666575000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461024757806306fdde0314610242578063081812fc1461023d578063095ea7b3146102385780631041a6031461023357806318160ddd1461022e578063211e28b61461022957806323b872dd1461022457806342842e0e1461021f57806342966c681461021a5780635a446215146102155780635bbb2177146102105780636352211e1461020b578063661236e4146102065780636e361c591461020157806370a08231146101fc578063711bf9b2146101f7578063715018a6146101f25780638462151c146101ed5780638da5cb5b146101e857806395d89b41146101e357806399a2557a146101de5780639abc8320146101d9578063a0bcfc7f146101d4578063a22cb465146101cf578063b88d4fde146101ca578063b9181611146101c5578063c0e24d5e146101c0578063c23dc68f146101bb578063c87b56dd146101b6578063ccb4807b146101b1578063cf309012146101ac578063e985e9c5146101a7578063f0d5ee1a146101a25763f2fde38b1461019d57600080fd5b611619565b6115f3565b61158b565b611568565b611477565b611458565b6113f5565b61134e565b61130c565b611281565b6111c6565b6110d5565b611077565b610f43565b610e9c565b610e73565b610db5565b610d1c565b610cc5565b610c96565b610c59565b610b78565b610b49565b610a83565b61089e565b6106ee565b6106ba565b6106a8565b61064e565b61060d565b610585565b610477565b610412565b61032d565b610263565b6001600160e01b031981160361025e57565b600080fd5b3461025e57602036600319011261025e5760206004356102828161024c565b63ffffffff60e01b166301ffc9a760e01b81149081156102c0575b81156102af575b506040519015158152f35b635b5e139f60e01b149050386102a4565b6380ac58cd60e01b8114915061029d565b60005b8381106102e45750506000910152565b81810151838201526020016102d4565b9060209161030d815180928185528580860191016102d1565b601f01601f1916010190565b90602061032a9281815201906102f4565b90565b3461025e5760008060031936011261040f57604051908060095461035081610f7f565b808552916001918083169081156103e5575060011461038a575b6103868561037a81870382610548565b60405191829182610319565b0390f35b9250600983527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b8284106103cd57505050810160200161037a8261038661036a565b805460208587018101919091529093019281016103b2565b8695506103869693506020925061037a94915060ff191682840152151560051b820101929361036a565b80fd5b3461025e57602036600319011261025e5760043561042f81611d51565b15610454576000526006602052602060018060a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b6001600160a01b0381160361025e57565b604036600319011261025e5760043561048f81610466565b6024356001600160a01b03806104a483611ce3565b16908133036104ff575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b600082815260076020908152604080832033845290915290205460ff166104ae576040516367d9dca160e11b8152600490fd5b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761056957604052565b610532565b6001600160401b0381116105695760051b60200190565b3461025e5760208060031936011261025e576004356001600160401b03811161025e573660238201121561025e578060040135906105c28261056e565b916105d06040519384610548565b80835260248484019160051b8301019136831161025e57602401905b8282106105fe576105fc84611ae6565b005b813581529084019084016105ec565b3461025e57600036600319011261025e5760206000546001549003604051908152f35b60043590811515820361025e57565b60243590811515820361025e57565b3461025e57602036600319011261025e57610667610630565b151560ff8019600d5416911617600d55600080f35b606090600319011261025e5760043561069481610466565b906024356106a181610466565b9060443590565b6105fc6106b43661067c565b91611d7a565b6106c33661067c565b6040519160208301938385106001600160401b03861117610569576105fc9460405260008452611fa5565b3461025e57602036600319011261025e5760043561070b81611ce3565b60008281526006602052604090208054916001600160a01b03811691338085149084141715610739565b1590565b610816575b600093610749611f20565b61080d575b506001600160a01b038216600090815260056020526040902080546001600160801b0301905560008481526004602052604090204260a01b8317600360e01b179055600160e11b8116156107c4575b506000805160206124198339815191528280a46105fc6107bf60015460010190565b600155565b600184016107dc816000526004602052604060002090565b54156107e9575b5061079d565b835481146107e357610805906000526004602052604060002090565b5538806107e3565b8390553861074e565b61085a6107356108533361083c8760018060a01b03166000526007602052604060002090565b9060018060a01b0316600052602052604060002090565b5460ff1690565b1561073e57604051632ce44b5f60e11b8152600490fd5b9181601f8401121561025e578235916001600160401b03831161025e576020838186019501011161025e57565b3461025e57604036600319011261025e576001600160401b0360043581811161025e576108cf903690600401610871565b9160243581811161025e576108e8903690600401610871565b9290916108f36116e6565b84116105695761090d84610908600954610f7f565b61173e565b600090601f851160011461094e576105fc949160009183610943575b50508160011b916000199060031b1c191617600955611902565b013590503880610929565b60096000527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af91601f198616815b8181106109bd57509160019391876105fc9894106109a3575b505050811b01600955611902565b0135600019600384901b60f8161c19169055388080610995565b9193602060018192878701358155019501920161097c565b9181601f8401121561025e578235916001600160401b03831161025e576020808501948460051b01011161025e57565b6020908160408183019282815285518094520193019160005b828110610a2c575050505090565b9091929382608082610a77600194895162ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565b01950193929101610a1e565b3461025e5760208060031936011261025e576004356001600160401b03811161025e57610ab49036906004016109d5565b610abd8161056e565b92610acb6040519485610548565b818452601f19610ada8361056e565b0160005b818110610b335750505060005b818103610b0057604051806103868682610a05565b80610b17610b1160019385876119f5565b35612207565b610b218287611c94565b52610b2c8186611c94565b5001610aeb565b8290610b3d6121d2565b82828901015201610ade565b3461025e57602036600319011261025e5760206001600160a01b03610b6f600435611ce3565b16604051908152f35b3461025e57604036600319011261025e576001600160401b0360043581811161025e57610ba99036906004016109d5565b9160243590811161025e57610bc29036906004016109d5565b90610bcb6116e6565b818403610c1f5760005b848110610bee576105fc600160ff19600d541617600d55565b80610c19610c07610c0260019489896119f5565b611a0a565b610c128387876119f5565b3590612107565b01610bd5565b60405162461bcd60e51b81526020600482015260126024820152714d69736d617463686564206c656e6774687360701b6044820152606490fd5b3461025e57602036600319011261025e57610c72610630565b610c7a6116e6565b61ff00600d5491151560081b169061ff00191617600d55600080f35b3461025e57602036600319011261025e576020610cbd600435610cb881610466565b611ca8565b604051908152f35b3461025e57604036600319011261025e576105fc600435610ce581610466565b610ced61063f565b90610cf66116e6565b60018060a01b0316600052600e60205260406000209060ff801983541691151516179055565b3461025e5760008060031936011261040f57610d366116e6565b600880546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b6020908160408183019282815285518094520193019160005b828110610da1575050505090565b835185529381019392810192600101610d93565b3461025e57602036600319011261025e57600435610dd281610466565b600080610dde83611ca8565b91610de8836122b3565b93610df16121d2565b506001600160a01b0390811691835b858503610e1557604051806103868982610d7a565b610e1e81612255565b6040810151610e6a57516001600160a01b0316838116610e61575b506001908484841614610e4d575b01610e00565b80610e5b838801978a611c94565b52610e47565b91506001610e39565b50600190610e47565b3461025e57600036600319011261025e576008546040516001600160a01b039091168152602090f35b3461025e5760008060031936011261040f576040519080600a54610ebf81610f7f565b808552916001918083169081156103e55750600114610ee8576103868561037a81870382610548565b9250600a83527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b828410610f2b57505050810160200161037a8261038661036a565b80546020858701810191909152909301928101610f10565b3461025e57606036600319011261025e57610386610f73600435610f6681610466565b60443590602435906122e5565b60405191829182610d7a565b90600182811c92168015610faf575b6020831014610f9957565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f8e565b60405190600082600c5491610fcd83610f7f565b808352926001908181169081156110555750600114610ff6575b50610ff492500383610548565b565b600c600090815291507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b84831061103a5750610ff4935050810160200138610fe7565b81935090816020925483858a01015201910190918592611021565b905060209250610ff494915060ff191682840152151560051b82010138610fe7565b3461025e57600036600319011261025e57610386611093610fb9565b6040519182916020835260208301906102f4565b602060031982011261025e57600435906001600160401b03821161025e576110d191600401610871565b9091565b3461025e576110e3366110a7565b6110eb6116e6565b6001600160401b0381116105695761110d81611108600c54610f7f565b6117af565b6000601f821160011461114857819260009261113d575b5050600019600383901b1c191660019190911b17600c55005b013590503880611124565b600c600052601f198216927fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c791805b8581106111ae57508360019510611194575b505050811b01600c55005b0135600019600384901b60f8161c19169055388080611189565b90926020600181928686013581550194019101611177565b3461025e57604036600319011261025e576004356111e381610466565b6111eb61063f565b9033600052600760205261122a826112198360406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b6001600160401b03811161056957601f01601f191660200190565b608036600319011261025e5760043561129981610466565b6024356112a581610466565b606435916001600160401b03831161025e573660238401121561025e578260040135916112d183611266565b926112df6040519485610548565b808452366024828701011161025e5760208160009260246105fc9801838801378501015260443591611fa5565b3461025e57602036600319011261025e5760043561132981610466565b60018060a01b0316600052600e602052602060ff604060002054166040519015158152f35b3461025e5760008060031936011261040f576040519080600b5461137181610f7f565b808552916001918083169081156103e5575060011461139a576103868561037a81870382610548565b9250600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b8284106113dd57505050810160200161037a8261038661036a565b805460208587018101919091529093019281016113c2565b3461025e57602036600319011261025e576080611413600435612207565b611456604051809262ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565bf35b3461025e57602036600319011261025e57610386611093600435611a2b565b3461025e57611485366110a7565b61148d6116e6565b6001600160401b038111610569576114af816114aa600b54610f7f565b611820565b6000601f82116001146114ea5781926000926114df575b5050600019600383901b1c191660019190911b17600b55005b0135905038806114c6565b600b600052601f198216927f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db991805b85811061155057508360019510611536575b505050811b01600b55005b0135600019600384901b60f8161c1916905538808061152b565b90926020600181928686013581550194019101611519565b3461025e57600036600319011261025e57602060ff600d54166040519015158152f35b3461025e57604036600319011261025e57602060ff6115e76004356115af81610466565b602435906115bc82610466565b60018060a01b03166000526007845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b3461025e57600036600319011261025e57602060ff600d5460081c166040519015158152f35b3461025e57602036600319011261025e5760043561163681610466565b61163e6116e6565b6001600160a01b0390811690811561169257600854826bffffffffffffffffffffffff60a01b821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6008546001600160a01b031633036116fa57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b601f811161174a575050565b600090600982527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af906020601f850160051c830194106117a5575b601f0160051c01915b82811061179a57505050565b81815560010161178e565b9092508290611785565b601f81116117bb575050565b600090600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c83019410611816575b601f0160051c01915b82811061180b57505050565b8181556001016117ff565b90925082906117f6565b601f811161182c575050565b600090600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c83019410611887575b601f0160051c01915b82811061187c57505050565b818155600101611870565b9092508290611867565b601f811161189d575050565b600090600a82527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8906020601f850160051c830194106118f8575b601f0160051c01915b8281106118ed57505050565b8181556001016118e1565b90925082906118d8565b91906001600160401b0381116105695761192681611921600a54610f7f565b611891565b6000601f821160011461196057819293600092611955575b50508160011b916000199060031b1c191617600a55565b01359050388061193e565b600a600052601f198216937fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a891805b8681106119c757508360019596106119ad575b505050811b01600a55565b0135600019600384901b60f8161c191690553880806119a2565b9092602060018192868601358155019401910161198f565b634e487b7160e01b600052603260045260246000fd5b9190811015611a055760051b0190565b6119df565b3561032a81610466565b90611a27602092828151948592016102d1565b0190565b611a3481611d51565b15611ad457611a41610fb9565b9060ff600d5460081c16600014611ad0576040519060a08201604052608082019060008252905b6000190190600a906030828206018353049081611a68579050611aad92611ac4611ab361032a946080601f199586810192030181526040519687946020860190611a14565b90611a14565b64173539b7b760d91b815260050190565b03908101835282610548565b5090565b604051630a14c4b560e41b8152600490fd5b90600090338252600e60205260ff6040832054168015611c80575b15611c3b57914260a01b90825b8151811015611c3557611b218183611c94565b5184611b2c82611ce3565b600083815260066020526040902080546001600160a01b03831692918491611b52611f20565b611c2d575b50506001600160a01b038216600090815260056020526040902080546001600160801b030190556000848152600460205260409020828817600360e01b179055600160e11b811615611be4575b506000805160206124198339815191528280a460018054810190556000198114611bd057600101611b0e565b634e487b7160e01b84526011600452602484fd5b60018401611bfc816000526004602052604060002090565b5415611c09575b50611ba4565b83548114611c0357611c25906000526004602052604060002090565b553880611c03565b558238611b57565b50505050565b60405162461bcd60e51b815260206004820152601760248201527f4e6f7420617574686f72697a6564206f72206f776e65720000000000000000006044820152606490fd5b506008546001600160a01b03163314611b01565b8051821015611a055760209160051b010190565b6001600160a01b03168015611cd15760005260056020526001600160401b036040600020541690565b6040516323d3ad8160e21b8152600490fd5b60008181548110611d01575b604051636f96cda160e11b8152600490fd5b81526004906020918083526040928383205494600160e01b861615611d2857505050611cef565b93929190935b8515611d3c57505050505090565b60001901808352818552838320549550611d2e565b60005481109081611d60575090565b90506000526004602052600160e01b604060002054161590565b90611d8483611ce3565b6001600160a01b0383811692828216849003611f0f57600086815260066020526040902080549092611dc56001600160a01b03881633908114908414171590565b611ed2575b8216958615611ec057611e2593611e0392611de3611f20565b611eb6575b506001600160a01b0316600090815260056020526040902090565b80546000190190556001600160a01b0316600090815260056020526040902090565b80546001019055600160e11b804260a01b851717611e4d866000526004602052604060002090565b55811615611e6c575b50600080516020612419833981519152600080a4565b60018401611e84816000526004602052604060002090565b5415611e91575b50611e56565b6000548114611e8b57611eae906000526004602052604060002090565b553880611e8b565b6000905538611de8565b604051633a954ecd60e21b8152600490fd5b611ef86107356108533361083c8b60018060a01b03166000526007602052604060002090565b15611dca57604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b33600052600e60205260ff604060002054168015611f91575b15611f4057565b60ff600d5416611f4c57565b60405162461bcd60e51b815260206004820152601e60248201527f5468697320746f6b656e206973206e6f6e2d7472616e7366657261626c6500006044820152606490fd5b506008546001600160a01b03163314611f39565b929190611fb3828286611d7a565b803b611fbf5750505050565b611fc89361205e565b15611fd65738808080611c35565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261025e575161032a8161024c565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261032a929101906102f4565b3d15612059573d9061203f82611266565b9161204d6040519384610548565b82523d6000602084013e565b606090565b92602091612087936000604051809681958294630a85bd0160e11b9a8b85523360048601611ffd565b03926001600160a01b03165af1600091816120d7575b506120c9576120aa61202e565b805190816120c4576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b6120f991925060203d8111612100575b6120f18183610548565b810190611fe8565b903861209d565b503d6120e7565b9060009081549281156121c05761211c611f20565b6001600160a01b0381166000908152600560205260409020805468010000000000000001840201905560008481526004602052604090206001600160a01b03909116916001914260a01b83831460e11b17841790558401938160008051602061241983398151915291808587858180a4015b8581036121b157505050156121a05755565b604051622e076360e81b8152600490fd5b8083918587858180a40161218e565b60405163b562e8dd60e01b8152600490fd5b60405190608082018281106001600160401b038211176105695760405260006060838281528260208201528260408201520152565b61220f6121d2565b506122186121d2565b600054821015612250575061222c81612255565b6040810151612250575061224b61032a916122456121d2565b50611ce3565b612270565b905090565b61225d6121d2565b50600052600460205261032a6040600020545b906122796121d2565b6001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b83161515604082015260e89290921c6060830152565b906122bd8261056e565b6122ca6040519182610548565b82815280926122db601f199161056e565b0190602036910137565b90828110156124065760009182548085116123fe575b5061230581611ca8565b848310156123f7578285038181106123ef575b505b612323816122b3565b9581156123e75761233384612207565b91859460409361234861073586830151151590565b6123d5575b505b87811415806123cb575b156123be5761236781612255565b808501516123b557516001600160a01b03908116806123ac575b509081600192871690881614612398575b0161234f565b806123a6838a01998c611c94565b52612392565b96506001612381565b50600190612392565b5050959450505050815290565b5081871415612359565b516001600160a01b031695503861234d565b945050505050565b905038612318565b508261231a565b9350386122fb565b604051631960ccad60e11b8152600490fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ad882be6e9ae400a7be82de31d6e8dcc14c3e1aca3bf4b12605e20abecfbb95764736f6c63430008130033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000e416469646173426c7565506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008424c5545504153530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d634335354334676a695044626a4b76455663566a5a747347376a766a464a384436716968764e6959666f69452f000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656966746f337478613378687a68336e347067673677666774367436777a326c63646e356c74643572726a3332626e6c353537666575000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __name (string): AdidasBluePass
Arg [1] : __symbol (string): BLUEPASS
Arg [2] : _baseUri (string): ipfs://QmcC55C4gjiPDbjKvEVcVjZtsG7jvjFJ8D6qihvNiYfoiE/
Arg [3] : _contractUri (string): ipfs://bafkreifto3txa3xhzh3n4pgg6wfgt6t6wz2lcdn5ltd5rrj32bnl557feu

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 416469646173426c756550617373000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 424c554550415353000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [9] : 697066733a2f2f516d634335354334676a695044626a4b76455663566a5a7473
Arg [10] : 47376a766a464a384436716968764e6959666f69452f00000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [12] : 697066733a2f2f6261666b72656966746f337478613378687a68336e34706767
Arg [13] : 3677666774367436777a326c63646e356c74643572726a3332626e6c35353766
Arg [14] : 6575000000000000000000000000000000000000000000000000000000000000


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.