ETH Price: $3,331.95 (-1.27%)

Token

CheckPunks (CHECKPUNKS)
 

Overview

Max Total Supply

10,000 CHECKPUNKS

Holders

1,805

Market

Volume (24H)

0.009 ETH

Min Price (24H)

$5.00 @ 0.001500 ETH

Max Price (24H)

$5.00 @ 0.001500 ETH
Filtered by Token Holder
lovemongers.eth
Balance
51 CHECKPUNKS
0x946e47e5df688e5a445287a3d92e8eb20f6778c3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CheckPunks

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-01-16
*/

/**

CheckPunks: A collection of CryptoPunks created using Jack Butcher's Checks. CC0

*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

// File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/529cceeda9f5f8e28812c20042cc57626f784718/src/OperatorFilterer.sol

pragma solidity ^0.8.13;

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

// File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/529cceeda9f5f8e28812c20042cc57626f784718/src/DefaultOperatorFilterer.sol

pragma solidity ^0.8.13;

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

pragma solidity ^0.8.13;

// File: erc721a/contracts/IERC721A.sol

// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/ERC721A.sol

// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @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: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

// File: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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


// MAIN CONTRACT

pragma solidity ^0.8.17;

contract CheckPunks is ERC721A, Ownable, DefaultOperatorFilterer, ReentrancyGuard {

    // SETUP
    uint256 public maxSupply = 10000;
    uint256 public XYSupply = 6667;
    
    enum Phase {
        Inactive,
        XY,
        XX
    }
    Phase public salePhase;

    uint256 public mintCost = 0.002 ether;
    uint256 public walletMax = 40;

    string public baseURI = "ipfs://QmQQx7zwAMt4U4Cix6gQvP61aJCPhhiR49tCj6J3rTC3Hu/";

    mapping(address => uint) addressToMinted;
    mapping(address => bool) freeMint;
    
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    constructor () ERC721A("CheckPunks", "CHECKPUNKS") {
        _safeMint(0xD1295FcBAf56BF1a6DFF3e1DF7e437f987f6feCa, 1);
    }

    ///// FUNCTIONALITY /////

    function mintCheckPunks(uint256 mintAmount) public payable nonReentrant {
        require(salePhase != Phase.Inactive, "Mint for CheckPunks has not started." );
        require(addressToMinted[msg.sender] + mintAmount <= walletMax, "This wallet already minted the maximum allocation of CheckPunks.");

        if (salePhase == Phase.XY) {
            require(totalSupply() + mintAmount <= XYSupply, "No more CheckPunks (XY) are available for mint.");
        }
        else {
            require(totalSupply() + mintAmount <= maxSupply, "No more CheckPunks are available for mint.");
        }

        if(freeMint[msg.sender]) {
            require(msg.value >= mintAmount * mintCost, "You require more funds to mint that many CheckPunks.");
        }
        else {
            require(msg.value >= (mintAmount - 1) * mintCost, "You require more funds to mint that many CheckPunks.");
            freeMint[msg.sender] = true;
        }
        
        addressToMinted[msg.sender] += mintAmount;
        _safeMint(msg.sender, mintAmount);
    }

    function teamCheckPunks(uint256 mintAmount) public onlyOwner {
        require(totalSupply() + mintAmount <= maxSupply, "No more CheckPunks are available.");
        
        _safeMint(msg.sender, mintAmount);
    }

    function airdropCheckPunks(address[] calldata listOfAddresses) public onlyOwner {
        require(totalSupply() + listOfAddresses.length <= maxSupply, "No more CheckPunks are available.");
        
        for (uint i = 0; i < listOfAddresses.length; i++) {
            _safeMint(listOfAddresses[i], 1);
        }
    }

    ///// OWNER /////

    function setPhase(uint256 phase) external onlyOwner {
        salePhase = Phase(phase);
    }

    function setCost(uint256 newCost) external onlyOwner {
        mintCost = newCost;
    }

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

    function setBaseURI(string memory baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

    function withdraw() public onlyOwner {
		payable(msg.sender).transfer(address(this).balance);
	}
    
    ///// OS OPERATOR FILTER /////

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        payable
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XYSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"listOfAddresses","type":"address[]"}],"name":"airdropCheckPunks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mintCheckPunks","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"salePhase","outputs":[{"internalType":"enum CheckPunks.Phase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"phase","type":"uint256"}],"name":"setPhase","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":"mintAmount","type":"uint256"}],"name":"teamCheckPunks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

612710600a55611a0b600b5566071afd498d0000600d556028600e5560e06040526036608081815290620026e360a039600f906200003e9082620005b9565b503480156200004c57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600a815260200169436865636b50756e6b7360b01b8152506040518060400160405280600a815260200169434845434b50554e4b5360b01b8152508160029081620000bb9190620005b9565b506003620000ca8282620005b9565b5050600160005550620000dd3362000252565b6daaeb6d7670e522a718067333cd4e3b15620002225780156200017057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015157600080fd5b505af115801562000166573d6000803e3d6000fd5b5050505062000222565b6001600160a01b03821615620001c15760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000136565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020857600080fd5b505af11580156200021d573d6000803e3d6000fd5b505050505b5050600160098190556200024c9073d1295fcbaf56bf1a6dff3e1df7e437f987f6feca90620002a4565b6200072b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002c6828260405180602001604052806000815250620002ca60201b60201c565b5050565b620002d6838362000341565b6001600160a01b0383163b156200033c576000548281035b6001810190620003049060009087908662000421565b62000322576040516368d2bf6b60e11b815260040160405180910390fd5b818110620002ee5781600054146200033957600080fd5b50505b505050565b6000805490829003620003675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620027198339815191528180a4600183015b818114620003f6578083600060008051602062002719833981519152600080a4600101620003cd565b50816000036200041857604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200045890339089908890889060040162000685565b6020604051808303816000875af192505050801562000496575060408051601f3d908101601f191682019092526200049391810190620006f8565b60015b620004f8573d808015620004c7576040519150601f19603f3d011682016040523d82523d6000602084013e620004cc565b606091505b508051600003620004f0576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200054057607f821691505b6020821081036200056157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033c57600081815260208120601f850160051c81016020861015620005905750805b601f850160051c820191505b81811015620005b1578281556001016200059c565b505050505050565b81516001600160401b03811115620005d557620005d562000515565b620005ed81620005e684546200052b565b8462000567565b602080601f8311600181146200062557600084156200060c5750858301515b600019600386901b1c1916600185901b178555620005b1565b600085815260208120601f198616915b82811015620006565788860151825594840194600190910190840162000635565b5085821015620006755787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006d45785810182015185820160a001528101620006b6565b5050600060a0828501015260a0601f19601f83011684010191505095945050505050565b6000602082840312156200070b57600080fd5b81516001600160e01b0319811681146200072457600080fd5b9392505050565b611fa8806200073b6000396000f3fe6080604052600436106101d85760003560e01c80636352211e11610102578063b88d4fde11610095578063e4f2487a11610064578063e4f2487a146104e6578063e985e9c51461050d578063f2fde38b1461052d578063fe3145241461054d57600080fd5b8063b88d4fde14610487578063bdb4b8481461049a578063c87b56dd146104b0578063d5abeb01146104d057600080fd5b80638da5cb5b116100d15780638da5cb5b1461041e57806395d89b411461043c578063a22cb46514610451578063b87f44791461047157600080fd5b80636352211e146103b45780636c0360eb146103d457806370a08231146103e9578063715018a61461040957600080fd5b80632cc826551161017a57806342a543211161014957806342a543211461033457806344a0d68a146103545780634ebf8ac71461037457806355f804b31461039457600080fd5b80632cc82655146102ca5780633ccfd60b146102ea57806341f43434146102ff57806342842e0e1461032157600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806318160ddd146102815780631d0392fd146102a457806323b872dd146102b757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f83660046118c3565b610563565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b506102276105b5565b6040516102099190611930565b34801561024057600080fd5b5061025461024f366004611943565b610647565b6040516001600160a01b039091168152602001610209565b61027f61027a366004611978565b61068b565b005b34801561028d57600080fd5b50610296610759565b604051908152602001610209565b61027f6102b2366004611943565b610767565b61027f6102c53660046119a2565b610a62565b3480156102d657600080fd5b5061027f6102e5366004611943565b610b3b565b3480156102f657600080fd5b5061027f610b79565b34801561030b57600080fd5b506102546daaeb6d7670e522a718067333cd4e81565b61027f61032f3660046119a2565b610bad565b34801561034057600080fd5b5061027f61034f366004611943565b610c7b565b34801561036057600080fd5b5061027f61036f366004611943565b610cc1565b34801561038057600080fd5b5061027f61038f3660046119de565b610cce565b3480156103a057600080fd5b5061027f6103af366004611adf565b610d58565b3480156103c057600080fd5b506102546103cf366004611943565b610d70565b3480156103e057600080fd5b50610227610d7b565b3480156103f557600080fd5b50610296610404366004611b28565b610e09565b34801561041557600080fd5b5061027f610e58565b34801561042a57600080fd5b506008546001600160a01b0316610254565b34801561044857600080fd5b50610227610e6c565b34801561045d57600080fd5b5061027f61046c366004611b51565b610e7b565b34801561047d57600080fd5b50610296600b5481565b61027f610495366004611b88565b610f3f565b3480156104a657600080fd5b50610296600d5481565b3480156104bc57600080fd5b506102276104cb366004611943565b61101b565b3480156104dc57600080fd5b50610296600a5481565b3480156104f257600080fd5b50600c546105009060ff1681565b6040516102099190611c1a565b34801561051957600080fd5b506101fd610528366004611c42565b61109f565b34801561053957600080fd5b5061027f610548366004611b28565b6110cd565b34801561055957600080fd5b50610296600e5481565b60006301ffc9a760e01b6001600160e01b03198316148061059457506380ac58cd60e01b6001600160e01b03198316145b806105af5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105c490611c75565b80601f01602080910402602001604051908101604052809291908181526020018280546105f090611c75565b801561063d5780601f106106125761010080835404028352916020019161063d565b820191906000526020600020905b81548152906001019060200180831161062057829003601f168201915b5050505050905090565b600061065282611143565b61066f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561074a57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d9190611caf565b61074a57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6107548383611178565b505050565b600154600054036000190190565b61076f611218565b6000600c5460ff16600281111561078857610788611c04565b036107e15760405162461bcd60e51b8152602060048201526024808201527f4d696e7420666f7220436865636b50756e6b7320686173206e6f7420737461726044820152633a32b21760e11b6064820152608401610741565b600e54336000908152601060205260409020546107ff908390611ce2565b1115610875576040805162461bcd60e51b81526020600482015260248101919091527f546869732077616c6c657420616c7265616479206d696e74656420746865206d60448201527f6178696d756d20616c6c6f636174696f6e206f6620436865636b50756e6b732e6064820152608401610741565b6001600c5460ff16600281111561088e5761088e611c04565b0361091457600b548161089f610759565b6108a99190611ce2565b111561090f5760405162461bcd60e51b815260206004820152602f60248201527f4e6f206d6f726520436865636b50756e6b73202858592920617265206176616960448201526e3630b13632903337b91036b4b73a1760891b6064820152608401610741565b61098b565b600a5481610920610759565b61092a9190611ce2565b111561098b5760405162461bcd60e51b815260206004820152602a60248201527f4e6f206d6f726520436865636b50756e6b732061726520617661696c61626c65604482015269103337b91036b4b73a1760b11b6064820152608401610741565b3360009081526011602052604090205460ff16156109d457600d546109b09082611cf5565b3410156109cf5760405162461bcd60e51b815260040161074190611d0c565b610a26565b600d546109e2600183611d60565b6109ec9190611cf5565b341015610a0b5760405162461bcd60e51b815260040161074190611d0c565b336000908152601160205260409020805460ff191660011790555b3360009081526010602052604081208054839290610a45908490611ce2565b90915550610a5590503382611271565b610a5f6001600955565b50565b826daaeb6d7670e522a718067333cd4e3b15610b2a57336001600160a01b03821603610a9857610a9384848461128b565b610b35565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190611caf565b610b2a57604051633b79c77360e21b8152336004820152602401610741565b610b3584848461128b565b50505050565b610b43611424565b806002811115610b5557610b55611c04565b600c805460ff19166001836002811115610b7157610b71611c04565b021790555050565b610b81611424565b60405133904780156108fc02916000818181858888f19350505050158015610a5f573d6000803e3d6000fd5b826daaeb6d7670e522a718067333cd4e3b15610c7057336001600160a01b03821603610bde57610a9384848461147e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c519190611caf565b610c7057604051633b79c77360e21b8152336004820152602401610741565b610b3584848461147e565b610c83611424565b600a5481610c8f610759565b610c999190611ce2565b1115610cb75760405162461bcd60e51b815260040161074190611d73565b610a5f3382611271565b610cc9611424565b600d55565b610cd6611424565b600a5481610ce2610759565b610cec9190611ce2565b1115610d0a5760405162461bcd60e51b815260040161074190611d73565b60005b8181101561075457610d46838383818110610d2a57610d2a611db4565b9050602002016020810190610d3f9190611b28565b6001611271565b80610d5081611dca565b915050610d0d565b610d60611424565b600f610d6c8282611e29565b5050565b60006105af82611499565b600f8054610d8890611c75565b80601f0160208091040260200160405190810160405280929190818152602001828054610db490611c75565b8015610e015780601f10610dd657610100808354040283529160200191610e01565b820191906000526020600020905b815481529060010190602001808311610de457829003601f168201915b505050505081565b60006001600160a01b038216610e32576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e60611424565b610e6a6000611508565b565b6060600380546105c490611c75565b816daaeb6d7670e522a718067333cd4e3b15610f3557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d9190611caf565b610f3557604051633b79c77360e21b81526001600160a01b0382166004820152602401610741565b610754838361155a565b836daaeb6d7670e522a718067333cd4e3b1561100857336001600160a01b03821603610f7657610f71858585856115c6565b611014565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe99190611caf565b61100857604051633b79c77360e21b8152336004820152602401610741565b611014858585856115c6565b5050505050565b606061102682611143565b61104357604051630a14c4b560e41b815260040160405180910390fd5b600061104d61160a565b9050805160000361106d5760405180602001604052806000815250611098565b8061107784611619565b604051602001611088929190611ee9565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6110d5611424565b6001600160a01b03811661113a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610741565b610a5f81611508565b600081600111158015611157575060005482105b80156105af575050600090815260046020526040902054600160e01b161590565b600061118382610d70565b9050336001600160a01b038216146111bc5761119f813361109f565b6111bc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60026009540361126a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610741565b6002600955565b610d6c82826040518060200160405280600081525061165d565b600061129682611499565b9050836001600160a01b0316816001600160a01b0316146112c95760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611316576112f9863361109f565b61131657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661133d57604051633a954ecd60e21b815260040160405180910390fd5b801561134857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113da576001840160008181526004602052604081205490036113d85760005481146113d85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610e6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610741565b61075483838360405180602001604052806000815250610f3f565b600081806001116114ef576000548110156114ef5760008181526004602052604081205490600160e01b821690036114ed575b806000036110985750600019016000818152600460205260409020546114cc565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115d1848484610a62565b6001600160a01b0383163b15610b35576115ed848484846116c3565b610b35576040516368d2bf6b60e11b815260040160405180910390fd5b6060600f80546105c490611c75565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806116335750819003601f19909101908152919050565b61166783836117af565b6001600160a01b0383163b15610754576000548281035b61169160008683806001019450866116c3565b6116ae576040516368d2bf6b60e11b815260040160405180910390fd5b81811061167e57816000541461101457600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116f8903390899088908890600401611f18565b6020604051808303816000875af1925050508015611733575060408051601f3d908101601f1916820190925261173091810190611f55565b60015b611791573d808015611761576040519150601f19603f3d011682016040523d82523d6000602084013e611766565b606091505b508051600003611789576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008054908290036117d45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461188357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161184b565b50816000036118a457604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610a5f57600080fd5b6000602082840312156118d557600080fd5b8135611098816118ad565b60005b838110156118fb5781810151838201526020016118e3565b50506000910152565b6000815180845261191c8160208601602086016118e0565b601f01601f19169290920160200192915050565b6020815260006110986020830184611904565b60006020828403121561195557600080fd5b5035919050565b80356001600160a01b038116811461197357600080fd5b919050565b6000806040838503121561198b57600080fd5b6119948361195c565b946020939093013593505050565b6000806000606084860312156119b757600080fd5b6119c08461195c565b92506119ce6020850161195c565b9150604084013590509250925092565b600080602083850312156119f157600080fd5b823567ffffffffffffffff80821115611a0957600080fd5b818501915085601f830112611a1d57600080fd5b813581811115611a2c57600080fd5b8660208260051b8501011115611a4157600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a8457611a84611a53565b604051601f8501601f19908116603f01168101908282118183101715611aac57611aac611a53565b81604052809350858152868686011115611ac557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611af157600080fd5b813567ffffffffffffffff811115611b0857600080fd5b8201601f81018413611b1957600080fd5b6117a784823560208401611a69565b600060208284031215611b3a57600080fd5b6110988261195c565b8015158114610a5f57600080fd5b60008060408385031215611b6457600080fd5b611b6d8361195c565b91506020830135611b7d81611b43565b809150509250929050565b60008060008060808587031215611b9e57600080fd5b611ba78561195c565b9350611bb56020860161195c565b925060408501359150606085013567ffffffffffffffff811115611bd857600080fd5b8501601f81018713611be957600080fd5b611bf887823560208401611a69565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611c3c57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611c5557600080fd5b611c5e8361195c565b9150611c6c6020840161195c565b90509250929050565b600181811c90821680611c8957607f821691505b602082108103611ca957634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611cc157600080fd5b815161109881611b43565b634e487b7160e01b600052601160045260246000fd5b808201808211156105af576105af611ccc565b80820281158282048414176105af576105af611ccc565b60208082526034908201527f596f752072657175697265206d6f72652066756e647320746f206d696e7420746040820152733430ba1036b0b73c9021b432b1b5a83ab735b99760611b606082015260800190565b818103818111156105af576105af611ccc565b60208082526021908201527f4e6f206d6f726520436865636b50756e6b732061726520617661696c61626c656040820152601760f91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060018201611ddc57611ddc611ccc565b5060010190565b601f82111561075457600081815260208120601f850160051c81016020861015611e0a5750805b601f850160051c820191505b8181101561141c57828155600101611e16565b815167ffffffffffffffff811115611e4357611e43611a53565b611e5781611e518454611c75565b84611de3565b602080601f831160018114611e8c5760008415611e745750858301515b600019600386901b1c1916600185901b17855561141c565b600085815260208120601f198616915b82811015611ebb57888601518255948401946001909101908401611e9c565b5085821015611ed95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351611efb8184602088016118e0565b835190830190611f0f8183602088016118e0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f4b90830184611904565b9695505050505050565b600060208284031215611f6757600080fd5b8151611098816118ad56fea264697066735822122033c4e6f4f0d23548f86da224a9e0dece9023fd29893e23be1440967c699b6d4164736f6c63430008110033697066733a2f2f516d515178377a77414d7434553443697836675176503631614a435068686952343974436a364a337254433348752fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x6080604052600436106101d85760003560e01c80636352211e11610102578063b88d4fde11610095578063e4f2487a11610064578063e4f2487a146104e6578063e985e9c51461050d578063f2fde38b1461052d578063fe3145241461054d57600080fd5b8063b88d4fde14610487578063bdb4b8481461049a578063c87b56dd146104b0578063d5abeb01146104d057600080fd5b80638da5cb5b116100d15780638da5cb5b1461041e57806395d89b411461043c578063a22cb46514610451578063b87f44791461047157600080fd5b80636352211e146103b45780636c0360eb146103d457806370a08231146103e9578063715018a61461040957600080fd5b80632cc826551161017a57806342a543211161014957806342a543211461033457806344a0d68a146103545780634ebf8ac71461037457806355f804b31461039457600080fd5b80632cc82655146102ca5780633ccfd60b146102ea57806341f43434146102ff57806342842e0e1461032157600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806318160ddd146102815780631d0392fd146102a457806323b872dd146102b757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f83660046118c3565b610563565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b506102276105b5565b6040516102099190611930565b34801561024057600080fd5b5061025461024f366004611943565b610647565b6040516001600160a01b039091168152602001610209565b61027f61027a366004611978565b61068b565b005b34801561028d57600080fd5b50610296610759565b604051908152602001610209565b61027f6102b2366004611943565b610767565b61027f6102c53660046119a2565b610a62565b3480156102d657600080fd5b5061027f6102e5366004611943565b610b3b565b3480156102f657600080fd5b5061027f610b79565b34801561030b57600080fd5b506102546daaeb6d7670e522a718067333cd4e81565b61027f61032f3660046119a2565b610bad565b34801561034057600080fd5b5061027f61034f366004611943565b610c7b565b34801561036057600080fd5b5061027f61036f366004611943565b610cc1565b34801561038057600080fd5b5061027f61038f3660046119de565b610cce565b3480156103a057600080fd5b5061027f6103af366004611adf565b610d58565b3480156103c057600080fd5b506102546103cf366004611943565b610d70565b3480156103e057600080fd5b50610227610d7b565b3480156103f557600080fd5b50610296610404366004611b28565b610e09565b34801561041557600080fd5b5061027f610e58565b34801561042a57600080fd5b506008546001600160a01b0316610254565b34801561044857600080fd5b50610227610e6c565b34801561045d57600080fd5b5061027f61046c366004611b51565b610e7b565b34801561047d57600080fd5b50610296600b5481565b61027f610495366004611b88565b610f3f565b3480156104a657600080fd5b50610296600d5481565b3480156104bc57600080fd5b506102276104cb366004611943565b61101b565b3480156104dc57600080fd5b50610296600a5481565b3480156104f257600080fd5b50600c546105009060ff1681565b6040516102099190611c1a565b34801561051957600080fd5b506101fd610528366004611c42565b61109f565b34801561053957600080fd5b5061027f610548366004611b28565b6110cd565b34801561055957600080fd5b50610296600e5481565b60006301ffc9a760e01b6001600160e01b03198316148061059457506380ac58cd60e01b6001600160e01b03198316145b806105af5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105c490611c75565b80601f01602080910402602001604051908101604052809291908181526020018280546105f090611c75565b801561063d5780601f106106125761010080835404028352916020019161063d565b820191906000526020600020905b81548152906001019060200180831161062057829003601f168201915b5050505050905090565b600061065282611143565b61066f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561074a57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d9190611caf565b61074a57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6107548383611178565b505050565b600154600054036000190190565b61076f611218565b6000600c5460ff16600281111561078857610788611c04565b036107e15760405162461bcd60e51b8152602060048201526024808201527f4d696e7420666f7220436865636b50756e6b7320686173206e6f7420737461726044820152633a32b21760e11b6064820152608401610741565b600e54336000908152601060205260409020546107ff908390611ce2565b1115610875576040805162461bcd60e51b81526020600482015260248101919091527f546869732077616c6c657420616c7265616479206d696e74656420746865206d60448201527f6178696d756d20616c6c6f636174696f6e206f6620436865636b50756e6b732e6064820152608401610741565b6001600c5460ff16600281111561088e5761088e611c04565b0361091457600b548161089f610759565b6108a99190611ce2565b111561090f5760405162461bcd60e51b815260206004820152602f60248201527f4e6f206d6f726520436865636b50756e6b73202858592920617265206176616960448201526e3630b13632903337b91036b4b73a1760891b6064820152608401610741565b61098b565b600a5481610920610759565b61092a9190611ce2565b111561098b5760405162461bcd60e51b815260206004820152602a60248201527f4e6f206d6f726520436865636b50756e6b732061726520617661696c61626c65604482015269103337b91036b4b73a1760b11b6064820152608401610741565b3360009081526011602052604090205460ff16156109d457600d546109b09082611cf5565b3410156109cf5760405162461bcd60e51b815260040161074190611d0c565b610a26565b600d546109e2600183611d60565b6109ec9190611cf5565b341015610a0b5760405162461bcd60e51b815260040161074190611d0c565b336000908152601160205260409020805460ff191660011790555b3360009081526010602052604081208054839290610a45908490611ce2565b90915550610a5590503382611271565b610a5f6001600955565b50565b826daaeb6d7670e522a718067333cd4e3b15610b2a57336001600160a01b03821603610a9857610a9384848461128b565b610b35565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ae7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0b9190611caf565b610b2a57604051633b79c77360e21b8152336004820152602401610741565b610b3584848461128b565b50505050565b610b43611424565b806002811115610b5557610b55611c04565b600c805460ff19166001836002811115610b7157610b71611c04565b021790555050565b610b81611424565b60405133904780156108fc02916000818181858888f19350505050158015610a5f573d6000803e3d6000fd5b826daaeb6d7670e522a718067333cd4e3b15610c7057336001600160a01b03821603610bde57610a9384848461147e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c519190611caf565b610c7057604051633b79c77360e21b8152336004820152602401610741565b610b3584848461147e565b610c83611424565b600a5481610c8f610759565b610c999190611ce2565b1115610cb75760405162461bcd60e51b815260040161074190611d73565b610a5f3382611271565b610cc9611424565b600d55565b610cd6611424565b600a5481610ce2610759565b610cec9190611ce2565b1115610d0a5760405162461bcd60e51b815260040161074190611d73565b60005b8181101561075457610d46838383818110610d2a57610d2a611db4565b9050602002016020810190610d3f9190611b28565b6001611271565b80610d5081611dca565b915050610d0d565b610d60611424565b600f610d6c8282611e29565b5050565b60006105af82611499565b600f8054610d8890611c75565b80601f0160208091040260200160405190810160405280929190818152602001828054610db490611c75565b8015610e015780601f10610dd657610100808354040283529160200191610e01565b820191906000526020600020905b815481529060010190602001808311610de457829003601f168201915b505050505081565b60006001600160a01b038216610e32576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e60611424565b610e6a6000611508565b565b6060600380546105c490611c75565b816daaeb6d7670e522a718067333cd4e3b15610f3557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d9190611caf565b610f3557604051633b79c77360e21b81526001600160a01b0382166004820152602401610741565b610754838361155a565b836daaeb6d7670e522a718067333cd4e3b1561100857336001600160a01b03821603610f7657610f71858585856115c6565b611014565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe99190611caf565b61100857604051633b79c77360e21b8152336004820152602401610741565b611014858585856115c6565b5050505050565b606061102682611143565b61104357604051630a14c4b560e41b815260040160405180910390fd5b600061104d61160a565b9050805160000361106d5760405180602001604052806000815250611098565b8061107784611619565b604051602001611088929190611ee9565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6110d5611424565b6001600160a01b03811661113a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610741565b610a5f81611508565b600081600111158015611157575060005482105b80156105af575050600090815260046020526040902054600160e01b161590565b600061118382610d70565b9050336001600160a01b038216146111bc5761119f813361109f565b6111bc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60026009540361126a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610741565b6002600955565b610d6c82826040518060200160405280600081525061165d565b600061129682611499565b9050836001600160a01b0316816001600160a01b0316146112c95760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611316576112f9863361109f565b61131657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661133d57604051633a954ecd60e21b815260040160405180910390fd5b801561134857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113da576001840160008181526004602052604081205490036113d85760005481146113d85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610e6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610741565b61075483838360405180602001604052806000815250610f3f565b600081806001116114ef576000548110156114ef5760008181526004602052604081205490600160e01b821690036114ed575b806000036110985750600019016000818152600460205260409020546114cc565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115d1848484610a62565b6001600160a01b0383163b15610b35576115ed848484846116c3565b610b35576040516368d2bf6b60e11b815260040160405180910390fd5b6060600f80546105c490611c75565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806116335750819003601f19909101908152919050565b61166783836117af565b6001600160a01b0383163b15610754576000548281035b61169160008683806001019450866116c3565b6116ae576040516368d2bf6b60e11b815260040160405180910390fd5b81811061167e57816000541461101457600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116f8903390899088908890600401611f18565b6020604051808303816000875af1925050508015611733575060408051601f3d908101601f1916820190925261173091810190611f55565b60015b611791573d808015611761576040519150601f19603f3d011682016040523d82523d6000602084013e611766565b606091505b508051600003611789576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008054908290036117d45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461188357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161184b565b50816000036118a457604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610a5f57600080fd5b6000602082840312156118d557600080fd5b8135611098816118ad565b60005b838110156118fb5781810151838201526020016118e3565b50506000910152565b6000815180845261191c8160208601602086016118e0565b601f01601f19169290920160200192915050565b6020815260006110986020830184611904565b60006020828403121561195557600080fd5b5035919050565b80356001600160a01b038116811461197357600080fd5b919050565b6000806040838503121561198b57600080fd5b6119948361195c565b946020939093013593505050565b6000806000606084860312156119b757600080fd5b6119c08461195c565b92506119ce6020850161195c565b9150604084013590509250925092565b600080602083850312156119f157600080fd5b823567ffffffffffffffff80821115611a0957600080fd5b818501915085601f830112611a1d57600080fd5b813581811115611a2c57600080fd5b8660208260051b8501011115611a4157600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a8457611a84611a53565b604051601f8501601f19908116603f01168101908282118183101715611aac57611aac611a53565b81604052809350858152868686011115611ac557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611af157600080fd5b813567ffffffffffffffff811115611b0857600080fd5b8201601f81018413611b1957600080fd5b6117a784823560208401611a69565b600060208284031215611b3a57600080fd5b6110988261195c565b8015158114610a5f57600080fd5b60008060408385031215611b6457600080fd5b611b6d8361195c565b91506020830135611b7d81611b43565b809150509250929050565b60008060008060808587031215611b9e57600080fd5b611ba78561195c565b9350611bb56020860161195c565b925060408501359150606085013567ffffffffffffffff811115611bd857600080fd5b8501601f81018713611be957600080fd5b611bf887823560208401611a69565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611c3c57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611c5557600080fd5b611c5e8361195c565b9150611c6c6020840161195c565b90509250929050565b600181811c90821680611c8957607f821691505b602082108103611ca957634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611cc157600080fd5b815161109881611b43565b634e487b7160e01b600052601160045260246000fd5b808201808211156105af576105af611ccc565b80820281158282048414176105af576105af611ccc565b60208082526034908201527f596f752072657175697265206d6f72652066756e647320746f206d696e7420746040820152733430ba1036b0b73c9021b432b1b5a83ab735b99760611b606082015260800190565b818103818111156105af576105af611ccc565b60208082526021908201527f4e6f206d6f726520436865636b50756e6b732061726520617661696c61626c656040820152601760f91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060018201611ddc57611ddc611ccc565b5060010190565b601f82111561075457600081815260208120601f850160051c81016020861015611e0a5750805b601f850160051c820191505b8181101561141c57828155600101611e16565b815167ffffffffffffffff811115611e4357611e43611a53565b611e5781611e518454611c75565b84611de3565b602080601f831160018114611e8c5760008415611e745750858301515b600019600386901b1c1916600185901b17855561141c565b600085815260208120601f198616915b82811015611ebb57888601518255948401946001909101908401611e9c565b5085821015611ed95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351611efb8184602088016118e0565b835190830190611f0f8183602088016118e0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f4b90830184611904565b9695505050505050565b600060208284031215611f6757600080fd5b8151611098816118ad56fea264697066735822122033c4e6f4f0d23548f86da224a9e0dece9023fd29893e23be1440967c699b6d4164736f6c63430008110033

Deployed Bytecode Sourcemap

63891:4031:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24273:639;;;;;;;;;;-1:-1:-1;24273:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;24273:639:0;;;;;;;;25175:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31666:218::-;;;;;;;;;;-1:-1:-1;31666:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;31666:218:0;1533:203:1;67135:165:0;;;;;;:::i;:::-;;:::i;:::-;;20926:323;;;;;;;;;;;;;:::i;:::-;;;2324:25:1;;;2312:2;2297:18;20926:323:0;2178:177:1;64718:1067:0;;;;;;:::i;:::-;;:::i;67308:171::-;;;;;;:::i;:::-;;:::i;66378:95::-;;;;;;;;;;-1:-1:-1;66378:95:0;;;;;:::i;:::-;;:::i;66803:98::-;;;;;;;;;;;;;:::i;3066:143::-;;;;;;;;;;;;3166:42;3066:143;;67487:179;;;;;;:::i;:::-;;:::i;65793:219::-;;;;;;;;;;-1:-1:-1;65793:219:0;;;;;:::i;:::-;;:::i;66481:90::-;;;;;;;;;;-1:-1:-1;66481:90:0;;;;;:::i;:::-;;:::i;66020:325::-;;;;;;;;;;-1:-1:-1;66020:325:0;;;;;:::i;:::-;;:::i;66695:100::-;;;;;;;;;;-1:-1:-1;66695:100:0;;;;;:::i;:::-;;:::i;26568:152::-;;;;;;;;;;-1:-1:-1;26568:152:0;;;;;:::i;:::-;;:::i;64260:80::-;;;;;;;;;;;;;:::i;22110:233::-;;;;;;;;;;-1:-1:-1;22110:233:0;;;;;:::i;:::-;;:::i;63024:103::-;;;;;;;;;;;;;:::i;62376:87::-;;;;;;;;;;-1:-1:-1;62449:6:0;;-1:-1:-1;;;;;62449:6:0;62376:87;;25351:104;;;;;;;;;;;;;:::i;66951:176::-;;;;;;;;;;-1:-1:-1;66951:176:0;;;;;:::i;:::-;;:::i;64035:30::-;;;;;;;;;;;;;;;;67674:245;;;;;;:::i;:::-;;:::i;64178:37::-;;;;;;;;;;;;;;;;25561:318;;;;;;;;;;-1:-1:-1;25561:318:0;;;;;:::i;:::-;;:::i;63996:32::-;;;;;;;;;;;;;;;;64147:22;;;;;;;;;;-1:-1:-1;64147:22:0;;;;;;;;;;;;;;;:::i;32615:164::-;;;;;;;;;;-1:-1:-1;32615:164:0;;;;;:::i;:::-;;:::i;63282:201::-;;;;;;;;;;-1:-1:-1;63282:201:0;;;;;:::i;:::-;;:::i;64222:29::-;;;;;;;;;;;;;;;;24273:639;24358:4;-1:-1:-1;;;;;;;;;24682:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24759:25:0;;;24682:102;:179;;;-1:-1:-1;;;;;;;;;;24836:25:0;;;24682:179;24662:199;24273:639;-1:-1:-1;;24273:639:0:o;25175:100::-;25229:13;25262:5;25255:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25175:100;:::o;31666:218::-;31742:7;31767:16;31775:7;31767;:16::i;:::-;31762:64;;31792:34;;-1:-1:-1;;;31792:34:0;;;;;;;;;;;31762:64;-1:-1:-1;31846:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;31846:30:0;;31666:218::o;67135:165::-;67239:8;3166:42;5060:45;:49;5056:225;;5131:67;;-1:-1:-1;;;5131:67:0;;5182:4;5131:67;;;7420:34:1;-1:-1:-1;;;;;7490:15:1;;7470:18;;;7463:43;3166:42:0;;5131;;7355:18:1;;5131:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5126:144;;5226:28;;-1:-1:-1;;;5226:28:0;;-1:-1:-1;;;;;1697:32:1;;5226:28:0;;;1679:51:1;1652:18;;5226:28:0;;;;;;;;5126:144;67260:32:::1;67274:8;67284:7;67260:13;:32::i;:::-;67135:165:::0;;;:::o;20926:323::-;64534:1;21200:12;20987:7;21184:13;:28;-1:-1:-1;;21184:46:0;;20926:323::o;64718:1067::-;59649:21;:19;:21::i;:::-;64822:14:::1;64809:9;::::0;::::1;;:27;::::0;::::1;;;;;;:::i;:::-;::::0;64801:77:::1;;;::::0;-1:-1:-1;;;64801:77:0;;7969:2:1;64801:77:0::1;::::0;::::1;7951:21:1::0;8008:2;7988:18;;;7981:30;8047:34;8027:18;;;8020:62;-1:-1:-1;;;8098:18:1;;;8091:34;8142:19;;64801:77:0::1;7767:400:1::0;64801:77:0::1;64941:9;::::0;64913:10:::1;64897:27;::::0;;;:15:::1;:27;::::0;;;;;:40:::1;::::0;64927:10;;64897:40:::1;:::i;:::-;:53;;64889:130;;;::::0;;-1:-1:-1;;;64889:130:0;;8636:2:1;64889:130:0::1;::::0;::::1;8618:21:1::0;8655:18;;;8648:30;;;;8714:34;8694:18;;;8687:62;8785:34;8765:18;;;8758:62;8837:19;;64889:130:0::1;8434:428:1::0;64889:130:0::1;65049:8;65036:9;::::0;::::1;;:21;::::0;::::1;;;;;;:::i;:::-;::::0;65032:288:::1;;65112:8;;65098:10;65082:13;:11;:13::i;:::-;:26;;;;:::i;:::-;:38;;65074:98;;;::::0;-1:-1:-1;;;65074:98:0;;9069:2:1;65074:98:0::1;::::0;::::1;9051:21:1::0;9108:2;9088:18;;;9081:30;9147:34;9127:18;;;9120:62;-1:-1:-1;;;9198:18:1;;;9191:45;9253:19;;65074:98:0::1;8867:411:1::0;65074:98:0::1;65032:288;;;65252:9;;65238:10;65222:13;:11;:13::i;:::-;:26;;;;:::i;:::-;:39;;65214:94;;;::::0;-1:-1:-1;;;65214:94:0;;9485:2:1;65214:94:0::1;::::0;::::1;9467:21:1::0;9524:2;9504:18;;;9497:30;9563:34;9543:18;;;9536:62;-1:-1:-1;;;9614:18:1;;;9607:40;9664:19;;65214:94:0::1;9283:406:1::0;65214:94:0::1;65344:10;65335:20;::::0;;;:8:::1;:20;::::0;;;;;::::1;;65332:340;;;65406:8;::::0;65393:21:::1;::::0;:10;:21:::1;:::i;:::-;65380:9;:34;;65372:99;;;;-1:-1:-1::0;;;65372:99:0::1;;;;;;;:::i;:::-;65332:340;;;65553:8;::::0;65535:14:::1;65548:1;65535:10:::0;:14:::1;:::i;:::-;65534:27;;;;:::i;:::-;65521:9;:40;;65513:105;;;;-1:-1:-1::0;;;65513:105:0::1;;;;;;;:::i;:::-;65642:10;65633:20;::::0;;;:8:::1;:20;::::0;;;;:27;;-1:-1:-1;;65633:27:0::1;65656:4;65633:27;::::0;;65332:340:::1;65708:10;65692:27;::::0;;;:15:::1;:27;::::0;;;;:41;;65723:10;;65692:27;:41:::1;::::0;65723:10;;65692:41:::1;:::i;:::-;::::0;;;-1:-1:-1;65744:33:0::1;::::0;-1:-1:-1;65754:10:0::1;65766::::0;65744:9:::1;:33::i;:::-;59693:20:::0;59087:1;60213:7;:22;60030:213;59693:20;64718:1067;:::o;67308:171::-;67417:4;3166:42;4314:45;:49;4310:539;;4603:10;-1:-1:-1;;;;;4595:18:0;;;4591:85;;67434:37:::1;67453:4;67459:2;67463:7;67434:18;:37::i;:::-;4654:7:::0;;4591:85;4695:69;;-1:-1:-1;;;4695:69:0;;4746:4;4695:69;;;7420:34:1;4753:10:0;7470:18:1;;;7463:43;3166:42:0;;4695;;7355:18:1;;4695:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4690:148;;4792:30;;-1:-1:-1;;;4792:30:0;;4811:10;4792:30;;;1679:51:1;1652:18;;4792:30:0;1533:203:1;4690:148:0;67434:37:::1;67453:4;67459:2;67463:7;67434:18;:37::i;:::-;67308:171:::0;;;;:::o;66378:95::-;62262:13;:11;:13::i;:::-;66459:5:::1;66453:12;;;;;;;;:::i;:::-;66441:9;:24:::0;;-1:-1:-1;;66441:24:0::1;::::0;;::::1;::::0;::::1;;;;;;:::i;:::-;;;;;;66378:95:::0;:::o;66803:98::-;62262:13;:11;:13::i;:::-;66845:51:::1;::::0;66853:10:::1;::::0;66874:21:::1;66845:51:::0;::::1;;;::::0;::::1;::::0;;;66874:21;66853:10;66845:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;67487:179:::0;67600:4;3166:42;4314:45;:49;4310:539;;4603:10;-1:-1:-1;;;;;4595:18:0;;;4591:85;;67617:41:::1;67640:4;67646:2;67650:7;67617:22;:41::i;4591:85::-:0;4695:69;;-1:-1:-1;;;4695:69:0;;4746:4;4695:69;;;7420:34:1;4753:10:0;7470:18:1;;;7463:43;3166:42:0;;4695;;7355:18:1;;4695:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4690:148;;4792:30;;-1:-1:-1;;;4792:30:0;;4811:10;4792:30;;;1679:51:1;1652:18;;4792:30:0;1533:203:1;4690:148:0;67617:41:::1;67640:4;67646:2;67650:7;67617:22;:41::i;65793:219::-:0;62262:13;:11;:13::i;:::-;65903:9:::1;;65889:10;65873:13;:11;:13::i;:::-;:26;;;;:::i;:::-;:39;;65865:85;;;;-1:-1:-1::0;;;65865:85:0::1;;;;;;;:::i;:::-;65971:33;65981:10;65993;65971:9;:33::i;66481:90::-:0;62262:13;:11;:13::i;:::-;66545:8:::1;:18:::0;66481:90::o;66020:325::-;62262:13;:11;:13::i;:::-;66161:9:::1;::::0;66135:15;66119:13:::1;:11;:13::i;:::-;:38;;;;:::i;:::-;:51;;66111:97;;;;-1:-1:-1::0;;;66111:97:0::1;;;;;;;:::i;:::-;66234:6;66229:109;66246:26:::0;;::::1;66229:109;;;66294:32;66304:15;;66320:1;66304:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;66324:1;66294:9;:32::i;:::-;66274:3:::0;::::1;::::0;::::1;:::i;:::-;;;;66229:109;;66695:100:::0;62262:13;:11;:13::i;:::-;66769:7:::1;:18;66779:8:::0;66769:7;:18:::1;:::i;:::-;;66695:100:::0;:::o;26568:152::-;26640:7;26683:27;26702:7;26683:18;:27::i;64260:80::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;22110:233::-;22182:7;-1:-1:-1;;;;;22206:19:0;;22202:60;;22234:28;;-1:-1:-1;;;22234:28:0;;;;;;;;;;;22202:60;-1:-1:-1;;;;;;22280:25:0;;;;;:18;:25;;;;;;16269:13;22280:55;;22110:233::o;63024:103::-;62262:13;:11;:13::i;:::-;63089:30:::1;63116:1;63089:18;:30::i;:::-;63024:103::o:0;25351:104::-;25407:13;25440:7;25433:14;;;;;:::i;66951:176::-;67055:8;3166:42;5060:45;:49;5056:225;;5131:67;;-1:-1:-1;;;5131:67:0;;5182:4;5131:67;;;7420:34:1;-1:-1:-1;;;;;7490:15:1;;7470:18;;;7463:43;3166:42:0;;5131;;7355:18:1;;5131:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5126:144;;5226:28;;-1:-1:-1;;;5226:28:0;;-1:-1:-1;;;;;1697:32:1;;5226:28:0;;;1679:51:1;1652:18;;5226:28:0;1533:203:1;5126:144:0;67076:43:::1;67100:8;67110;67076:23;:43::i;67674:245::-:0;67842:4;3166:42;4314:45;:49;4310:539;;4603:10;-1:-1:-1;;;;;4595:18:0;;;4591:85;;67864:47:::1;67887:4;67893:2;67897:7;67906:4;67864:22;:47::i;:::-;4654:7:::0;;4591:85;4695:69;;-1:-1:-1;;;4695:69:0;;4746:4;4695:69;;;7420:34:1;4753:10:0;7470:18:1;;;7463:43;3166:42:0;;4695;;7355:18:1;;4695:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4690:148;;4792:30;;-1:-1:-1;;;4792:30:0;;4811:10;4792:30;;;1679:51:1;1652:18;;4792:30:0;1533:203:1;4690:148:0;67864:47:::1;67887:4;67893:2;67897:7;67906:4;67864:22;:47::i;:::-;67674:245:::0;;;;;:::o;25561:318::-;25634:13;25665:16;25673:7;25665;:16::i;:::-;25660:59;;25690:29;;-1:-1:-1;;;25690:29:0;;;;;;;;;;;25660:59;25732:21;25756:10;:8;:10::i;:::-;25732:34;;25790:7;25784:21;25809:1;25784:26;:87;;;;;;;;;;;;;;;;;25837:7;25846:18;25856:7;25846:9;:18::i;:::-;25820:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25784:87;25777:94;25561:318;-1:-1:-1;;;25561:318:0:o;32615:164::-;-1:-1:-1;;;;;32736:25:0;;;32712:4;32736:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32615:164::o;63282:201::-;62262:13;:11;:13::i;:::-;-1:-1:-1;;;;;63371:22:0;::::1;63363:73;;;::::0;-1:-1:-1;;;63363:73:0;;14002:2:1;63363:73:0::1;::::0;::::1;13984:21:1::0;14041:2;14021:18;;;14014:30;14080:34;14060:18;;;14053:62;-1:-1:-1;;;14131:18:1;;;14124:36;14177:19;;63363:73:0::1;13800:402:1::0;63363:73:0::1;63447:28;63466:8;63447:18;:28::i;33037:282::-:0;33102:4;33158:7;64534:1;33139:26;;:66;;;;;33192:13;;33182:7;:23;33139:66;:153;;;;-1:-1:-1;;33243:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;33243:44:0;:49;;33037:282::o;31099:408::-;31188:13;31204:16;31212:7;31204;:16::i;:::-;31188:32;-1:-1:-1;55432:10:0;-1:-1:-1;;;;;31237:28:0;;;31233:175;;31285:44;31302:5;55432:10;32615:164;:::i;31285:44::-;31280:128;;31357:35;;-1:-1:-1;;;31357:35:0;;;;;;;;;;;31280:128;31420:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;31420:35:0;-1:-1:-1;;;;;31420:35:0;;;;;;;;;31471:28;;31420:24;;31471:28;;;;;;;31177:330;31099:408;;:::o;59729:293::-;59131:1;59863:7;;:19;59855:63;;;;-1:-1:-1;;;59855:63:0;;14409:2:1;59855:63:0;;;14391:21:1;14448:2;14428:18;;;14421:30;14487:33;14467:18;;;14460:61;14538:18;;59855:63:0;14207:355:1;59855:63:0;59131:1;59996:7;:18;59729:293::o;49177:112::-;49254:27;49264:2;49268:8;49254:27;;;;;;;;;;;;:9;:27::i;35305:2825::-;35447:27;35477;35496:7;35477:18;:27::i;:::-;35447:57;;35562:4;-1:-1:-1;;;;;35521:45:0;35537:19;-1:-1:-1;;;;;35521:45:0;;35517:86;;35575:28;;-1:-1:-1;;;35575:28:0;;;;;;;;;;;35517:86;35617:27;34413:24;;;:15;:24;;;;;34641:26;;55432:10;34038:30;;;-1:-1:-1;;;;;33731:28:0;;34016:20;;;34013:56;35803:180;;35896:43;35913:4;55432:10;32615:164;:::i;35896:43::-;35891:92;;35948:35;;-1:-1:-1;;;35948:35:0;;;;;;;;;;;35891:92;-1:-1:-1;;;;;36000:16:0;;35996:52;;36025:23;;-1:-1:-1;;;36025:23:0;;;;;;;;;;;35996:52;36197:15;36194:160;;;36337:1;36316:19;36309:30;36194:160;-1:-1:-1;;;;;36734:24:0;;;;;;;:18;:24;;;;;;36732:26;;-1:-1:-1;;36732:26:0;;;36803:22;;;;;;;;;36801:24;;-1:-1:-1;36801:24:0;;;29957:11;29932:23;29928:41;29915:63;-1:-1:-1;;;29915:63:0;37096:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;37391:47:0;;:52;;37387:627;;37496:1;37486:11;;37464:19;37619:30;;;:17;:30;;;;;;:35;;37615:384;;37757:13;;37742:11;:28;37738:242;;37904:30;;;;:17;:30;;;;;:52;;;37738:242;37445:569;37387:627;38061:7;38057:2;-1:-1:-1;;;;;38042:27:0;38051:4;-1:-1:-1;;;;;38042:27:0;;;;;;;;;;;38080:42;35436:2694;;;35305:2825;;;:::o;62541:132::-;62449:6;;-1:-1:-1;;;;;62449:6:0;55432:10;62605:23;62597:68;;;;-1:-1:-1;;;62597:68:0;;14769:2:1;62597:68:0;;;14751:21:1;;;14788:18;;;14781:30;14847:34;14827:18;;;14820:62;14899:18;;62597:68:0;14567:356:1;38226:193:0;38372:39;38389:4;38395:2;38399:7;38372:39;;;;;;;;;;;;:16;:39::i;27723:1275::-;27790:7;27825;;64534:1;27874:23;27870:1061;;27927:13;;27920:4;:20;27916:1015;;;27965:14;27982:23;;;:17;:23;;;;;;;-1:-1:-1;;;28071:24:0;;:29;;28067:845;;28736:113;28743:6;28753:1;28743:11;28736:113;;-1:-1:-1;;;28814:6:0;28796:25;;;;:17;:25;;;;;;28736:113;;28067:845;27942:989;27916:1015;28959:31;;-1:-1:-1;;;28959:31:0;;;;;;;;;;;63643:191;63736:6;;;-1:-1:-1;;;;;63753:17:0;;;-1:-1:-1;;;;;;63753:17:0;;;;;;;63786:40;;63736:6;;;63753:17;63736:6;;63786:40;;63717:16;;63786:40;63706:128;63643:191;:::o;32224:234::-;55432:10;32319:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;32319:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;32319:60:0;;;;;;;;;;32395:55;;540:41:1;;;32319:49:0;;55432:10;32395:55;;513:18:1;32395:55:0;;;;;;;32224:234;;:::o;39017:407::-;39192:31;39205:4;39211:2;39215:7;39192:12;:31::i;:::-;-1:-1:-1;;;;;39238:14:0;;;:19;39234:183;;39277:56;39308:4;39314:2;39318:7;39327:5;39277:30;:56::i;:::-;39272:145;;39361:40;;-1:-1:-1;;;39361:40:0;;;;;;;;;;;66579:108;66639:13;66672:7;66665:14;;;;;:::i;55552:1745::-;55617:17;56051:4;56044;56038:11;56034:22;56143:1;56137:4;56130:15;56218:4;56215:1;56211:12;56204:19;;;56300:1;56295:3;56288:14;56404:3;56643:5;56625:428;56691:1;56686:3;56682:11;56675:18;;56862:2;56856:4;56852:13;56848:2;56844:22;56839:3;56831:36;56956:2;56946:13;;57013:25;56625:428;57013:25;-1:-1:-1;57083:13:0;;;-1:-1:-1;;57198:14:0;;;57260:19;;;57198:14;55552:1745;-1:-1:-1;55552:1745:0:o;48404:689::-;48535:19;48541:2;48545:8;48535:5;:19::i;:::-;-1:-1:-1;;;;;48596:14:0;;;:19;48592:483;;48636:11;48650:13;48698:14;;;48731:233;48762:62;48801:1;48805:2;48809:7;;;;;;48818:5;48762:30;:62::i;:::-;48757:167;;48860:40;;-1:-1:-1;;;48860:40:0;;;;;;;;;;;48757:167;48959:3;48951:5;:11;48731:233;;49046:3;49029:13;;:20;49025:34;;49051:8;;;41508:716;41692:88;;-1:-1:-1;;;41692:88:0;;41671:4;;-1:-1:-1;;;;;41692:45:0;;;;;:88;;55432:10;;41759:4;;41765:7;;41774:5;;41692:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41692:88:0;;;;;;;;-1:-1:-1;;41692:88:0;;;;;;;;;;;;:::i;:::-;;;41688:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41975:6;:13;41992:1;41975:18;41971:235;;42021:40;;-1:-1:-1;;;42021:40:0;;;;;;;;;;;41971:235;42164:6;42158:13;42149:6;42145:2;42141:15;42134:38;41688:529;-1:-1:-1;;;;;;41851:64:0;-1:-1:-1;;;41851:64:0;;-1:-1:-1;41688:529:0;41508:716;;;;;;:::o;42686:2966::-;42759:20;42782:13;;;42810;;;42806:44;;42832:18;;-1:-1:-1;;;42832:18:0;;;;;;;;;;;42806:44;-1:-1:-1;;;;;43338:22:0;;;;;;:18;:22;;;;16407:2;43338:22;;;:71;;43376:32;43364:45;;43338:71;;;43652:31;;;:17;:31;;;;;-1:-1:-1;30388:15:0;;30362:24;30358:46;29957:11;29932:23;29928:41;29925:52;29915:63;;43652:173;;43887:23;;;;43652:31;;43338:22;;44652:25;43338:22;;44505:335;45166:1;45152:12;45148:20;45106:346;45207:3;45198:7;45195:16;45106:346;;45425:7;45415:8;45412:1;45385:25;45382:1;45379;45374:59;45260:1;45247:15;45106:346;;;45110:77;45485:8;45497:1;45485:13;45481:45;;45507:19;;-1:-1:-1;;;45507:19:0;;;;;;;;;;;45481:45;45543:13;:19;-1:-1:-1;67135:165:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2932:615::-;3018:6;3026;3079:2;3067:9;3058:7;3054:23;3050:32;3047:52;;;3095:1;3092;3085:12;3047:52;3135:9;3122:23;3164:18;3205:2;3197:6;3194:14;3191:34;;;3221:1;3218;3211:12;3191:34;3259:6;3248:9;3244:22;3234:32;;3304:7;3297:4;3293:2;3289:13;3285:27;3275:55;;3326:1;3323;3316:12;3275:55;3366:2;3353:16;3392:2;3384:6;3381:14;3378:34;;;3408:1;3405;3398:12;3378:34;3461:7;3456:2;3446:6;3443:1;3439:14;3435:2;3431:23;3427:32;3424:45;3421:65;;;3482:1;3479;3472:12;3421:65;3513:2;3505:11;;;;;3535:6;;-1:-1:-1;2932:615:1;;-1:-1:-1;;;;2932:615:1:o;3552:127::-;3613:10;3608:3;3604:20;3601:1;3594:31;3644:4;3641:1;3634:15;3668:4;3665:1;3658:15;3684:632;3749:5;3779:18;3820:2;3812:6;3809:14;3806:40;;;3826:18;;:::i;:::-;3901:2;3895:9;3869:2;3955:15;;-1:-1:-1;;3951:24:1;;;3977:2;3947:33;3943:42;3931:55;;;4001:18;;;4021:22;;;3998:46;3995:72;;;4047:18;;:::i;:::-;4087:10;4083:2;4076:22;4116:6;4107:15;;4146:6;4138;4131:22;4186:3;4177:6;4172:3;4168:16;4165:25;4162:45;;;4203:1;4200;4193:12;4162:45;4253:6;4248:3;4241:4;4233:6;4229:17;4216:44;4308:1;4301:4;4292:6;4284;4280:19;4276:30;4269:41;;;;3684:632;;;;;:::o;4321:451::-;4390:6;4443:2;4431:9;4422:7;4418:23;4414:32;4411:52;;;4459:1;4456;4449:12;4411:52;4499:9;4486:23;4532:18;4524:6;4521:30;4518:50;;;4564:1;4561;4554:12;4518:50;4587:22;;4640:4;4632:13;;4628:27;-1:-1:-1;4618:55:1;;4669:1;4666;4659:12;4618:55;4692:74;4758:7;4753:2;4740:16;4735:2;4731;4727:11;4692:74;:::i;4777:186::-;4836:6;4889:2;4877:9;4868:7;4864:23;4860:32;4857:52;;;4905:1;4902;4895:12;4857:52;4928:29;4947:9;4928:29;:::i;4968:118::-;5054:5;5047:13;5040:21;5033:5;5030:32;5020:60;;5076:1;5073;5066:12;5091:315;5156:6;5164;5217:2;5205:9;5196:7;5192:23;5188:32;5185:52;;;5233:1;5230;5223:12;5185:52;5256:29;5275:9;5256:29;:::i;:::-;5246:39;;5335:2;5324:9;5320:18;5307:32;5348:28;5370:5;5348:28;:::i;:::-;5395:5;5385:15;;;5091:315;;;;;:::o;5411:667::-;5506:6;5514;5522;5530;5583:3;5571:9;5562:7;5558:23;5554:33;5551:53;;;5600:1;5597;5590:12;5551:53;5623:29;5642:9;5623:29;:::i;:::-;5613:39;;5671:38;5705:2;5694:9;5690:18;5671:38;:::i;:::-;5661:48;;5756:2;5745:9;5741:18;5728:32;5718:42;;5811:2;5800:9;5796:18;5783:32;5838:18;5830:6;5827:30;5824:50;;;5870:1;5867;5860:12;5824:50;5893:22;;5946:4;5938:13;;5934:27;-1:-1:-1;5924:55:1;;5975:1;5972;5965:12;5924:55;5998:74;6064:7;6059:2;6046:16;6041:2;6037;6033:11;5998:74;:::i;:::-;5988:84;;;5411:667;;;;;;;:::o;6083:127::-;6144:10;6139:3;6135:20;6132:1;6125:31;6175:4;6172:1;6165:15;6199:4;6196:1;6189:15;6215:338;6357:2;6342:18;;6390:1;6379:13;;6369:144;;6435:10;6430:3;6426:20;6423:1;6416:31;6470:4;6467:1;6460:15;6498:4;6495:1;6488:15;6369:144;6522:25;;;6215:338;:::o;6558:260::-;6626:6;6634;6687:2;6675:9;6666:7;6662:23;6658:32;6655:52;;;6703:1;6700;6693:12;6655:52;6726:29;6745:9;6726:29;:::i;:::-;6716:39;;6774:38;6808:2;6797:9;6793:18;6774:38;:::i;:::-;6764:48;;6558:260;;;;;:::o;6823:380::-;6902:1;6898:12;;;;6945;;;6966:61;;7020:4;7012:6;7008:17;6998:27;;6966:61;7073:2;7065:6;7062:14;7042:18;7039:38;7036:161;;7119:10;7114:3;7110:20;7107:1;7100:31;7154:4;7151:1;7144:15;7182:4;7179:1;7172:15;7036:161;;6823:380;;;:::o;7517:245::-;7584:6;7637:2;7625:9;7616:7;7612:23;7608:32;7605:52;;;7653:1;7650;7643:12;7605:52;7685:9;7679:16;7704:28;7726:5;7704:28;:::i;8172:127::-;8233:10;8228:3;8224:20;8221:1;8214:31;8264:4;8261:1;8254:15;8288:4;8285:1;8278:15;8304:125;8369:9;;;8390:10;;;8387:36;;;8403:18;;:::i;9694:168::-;9767:9;;;9798;;9815:15;;;9809:22;;9795:37;9785:71;;9836:18;;:::i;9867:416::-;10069:2;10051:21;;;10108:2;10088:18;;;10081:30;10147:34;10142:2;10127:18;;10120:62;-1:-1:-1;;;10213:2:1;10198:18;;10191:50;10273:3;10258:19;;9867:416::o;10288:128::-;10355:9;;;10376:11;;;10373:37;;;10390:18;;:::i;10421:397::-;10623:2;10605:21;;;10662:2;10642:18;;;10635:30;10701:34;10696:2;10681:18;;10674:62;-1:-1:-1;;;10767:2:1;10752:18;;10745:31;10808:3;10793:19;;10421:397::o;10823:127::-;10884:10;10879:3;10875:20;10872:1;10865:31;10915:4;10912:1;10905:15;10939:4;10936:1;10929:15;10955:135;10994:3;11015:17;;;11012:43;;11035:18;;:::i;:::-;-1:-1:-1;11082:1:1;11071:13;;10955:135::o;11221:545::-;11323:2;11318:3;11315:11;11312:448;;;11359:1;11384:5;11380:2;11373:17;11429:4;11425:2;11415:19;11499:2;11487:10;11483:19;11480:1;11476:27;11470:4;11466:38;11535:4;11523:10;11520:20;11517:47;;;-1:-1:-1;11558:4:1;11517:47;11613:2;11608:3;11604:12;11601:1;11597:20;11591:4;11587:31;11577:41;;11668:82;11686:2;11679:5;11676:13;11668:82;;;11731:17;;;11712:1;11701:13;11668:82;;11942:1352;12068:3;12062:10;12095:18;12087:6;12084:30;12081:56;;;12117:18;;:::i;:::-;12146:97;12236:6;12196:38;12228:4;12222:11;12196:38;:::i;:::-;12190:4;12146:97;:::i;:::-;12298:4;;12362:2;12351:14;;12379:1;12374:663;;;;13081:1;13098:6;13095:89;;;-1:-1:-1;13150:19:1;;;13144:26;13095:89;-1:-1:-1;;11899:1:1;11895:11;;;11891:24;11887:29;11877:40;11923:1;11919:11;;;11874:57;13197:81;;12344:944;;12374:663;11168:1;11161:14;;;11205:4;11192:18;;-1:-1:-1;;12410:20:1;;;12528:236;12542:7;12539:1;12536:14;12528:236;;;12631:19;;;12625:26;12610:42;;12723:27;;;;12691:1;12679:14;;;;12558:19;;12528:236;;;12532:3;12792:6;12783:7;12780:19;12777:201;;;12853:19;;;12847:26;-1:-1:-1;;12936:1:1;12932:14;;;12948:3;12928:24;12924:37;12920:42;12905:58;12890:74;;12777:201;-1:-1:-1;;;;;13024:1:1;13008:14;;;13004:22;12991:36;;-1:-1:-1;11942:1352:1:o;13299:496::-;13478:3;13516:6;13510:13;13532:66;13591:6;13586:3;13579:4;13571:6;13567:17;13532:66;:::i;:::-;13661:13;;13620:16;;;;13683:70;13661:13;13620:16;13730:4;13718:17;;13683:70;:::i;:::-;13769:20;;13299:496;-1:-1:-1;;;;13299:496:1:o;14928:489::-;-1:-1:-1;;;;;15197:15:1;;;15179:34;;15249:15;;15244:2;15229:18;;15222:43;15296:2;15281:18;;15274:34;;;15344:3;15339:2;15324:18;;15317:31;;;15122:4;;15365:46;;15391:19;;15383:6;15365:46;:::i;:::-;15357:54;14928:489;-1:-1:-1;;;;;;14928:489:1:o;15422:249::-;15491:6;15544:2;15532:9;15523:7;15519:23;15515:32;15512:52;;;15560:1;15557;15550:12;15512:52;15592:9;15586:16;15611:30;15635:5;15611:30;:::i

Swarm Source

ipfs://33c4e6f4f0d23548f86da224a9e0dece9023fd29893e23be1440967c699b6d41
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.