ETH Price: $3,434.87 (+2.49%)
Gas: 4 Gwei

Contract

0x6B3e0889Ffe2C4E471800D630d648d01a57Bf847
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...195951782024-04-06 7:25:23100 days ago1712388323IN
0x6B3e0889...1a57Bf847
0 ETH0.000336813.79512989
Set Approval For...189100462024-01-01 3:53:47197 days ago1704081227IN
0x6B3e0889...1a57Bf847
0 ETH0.000446849.63303331
Set Approval For...189053532023-12-31 12:06:35197 days ago1704024395IN
0x6B3e0889...1a57Bf847
0 ETH0.0007391515.93452661
Set Approval For...189041072023-12-31 7:54:47197 days ago1704009287IN
0x6B3e0889...1a57Bf847
0 ETH0.000591812.75793984
Set Approval For...189017472023-12-30 23:57:59198 days ago1703980679IN
0x6B3e0889...1a57Bf847
0 ETH0.0006037313.01511006
Safe Transfer Fr...186072452023-11-19 17:08:23239 days ago1700413703IN
0x6B3e0889...1a57Bf847
0 ETH0.0015421323.93324206
Set Approval For...185579182023-11-12 19:28:35246 days ago1699817315IN
0x6B3e0889...1a57Bf847
0 ETH0.0014448631.20460371
Set Approval For...185579152023-11-12 19:27:59246 days ago1699817279IN
0x6B3e0889...1a57Bf847
0 ETH0.0013681329.4939337
Safe Transfer Fr...185570342023-11-12 16:30:35246 days ago1699806635IN
0x6B3e0889...1a57Bf847
0 ETH0.0019351330.03243063
Safe Transfer Fr...185560732023-11-12 13:17:11246 days ago1699795031IN
0x6B3e0889...1a57Bf847
0 ETH0.0027984543.43061116
Set Approval For...184061752023-10-22 13:36:11267 days ago1697981771IN
0x6B3e0889...1a57Bf847
0 ETH0.000366997.92589439
Set Approval For...179740092023-08-23 1:03:35328 days ago1692752615IN
0x6B3e0889...1a57Bf847
0 ETH0.0007503416.20502252
Set Approval For...178967452023-08-12 5:37:59339 days ago1691818679IN
0x6B3e0889...1a57Bf847
0 ETH0.0006191713.37233205
Set Approval For...178688482023-08-08 7:55:47342 days ago1691481347IN
0x6B3e0889...1a57Bf847
0 ETH0.0008715218.82230447
Set Approval For...178632542023-08-07 13:08:23343 days ago1691413703IN
0x6B3e0889...1a57Bf847
0 ETH0.0012618427.25184244
Set Approval For...176181902023-07-04 4:29:11378 days ago1688444951IN
0x6B3e0889...1a57Bf847
0 ETH0.0006712414.48937538
Approve175159932023-06-19 19:54:35392 days ago1687204475IN
0x6B3e0889...1a57Bf847
0 ETH0.0013298526.30202813
Approve175159572023-06-19 19:47:23392 days ago1687204043IN
0x6B3e0889...1a57Bf847
0 ETH0.0016914533.45380939
Set Approval For...174879852023-06-15 21:36:11396 days ago1686864971IN
0x6B3e0889...1a57Bf847
0 ETH0.000760116.41580318
Set Approval For...174841792023-06-15 8:44:35396 days ago1686818675IN
0x6B3e0889...1a57Bf847
0 ETH0.0009463420.42741919
Safe Transfer Fr...174669502023-06-12 22:31:59399 days ago1686609119IN
0x6B3e0889...1a57Bf847
0 ETH0.0012043915.70835073
Set Approval For...174566382023-06-11 11:40:35400 days ago1686483635IN
0x6B3e0889...1a57Bf847
0 ETH0.0007458616.10834022
Sign174362122023-06-08 14:35:35403 days ago1686234935IN
0x6B3e0889...1a57Bf847
0 ETH0.0014048827.33234182
Sign174290972023-06-07 14:30:35404 days ago1686148235IN
0x6B3e0889...1a57Bf847
0 ETH0.0018236535.47976644
Sign174281772023-06-07 11:23:47404 days ago1686137027IN
0x6B3e0889...1a57Bf847
0 ETH0.0011090721.57728039
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ArtistInAPostTruthWorld

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 14 : ArtistInAPostTruthWorld.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "../interfaces/IAutographNFT.sol";
import "../libraries/OnChainMetadata.sol";

contract ArtistInAPostTruthWorld is ERC721A, ERC2981, IAutographNFT {

    string private constant _signedImage = "ipfs://QmbsTuezHG6e6uj19xHZL6CqKQJWhoxLFmavYoEuFXB5JZ";
    string private constant _unsignedImage = "ipfs://QmcRzuifx3usrBxNYpUVAopNHZ9ZMUQpKNBWJnunhTjEDB";

    uint256 private _maxSupply = 1000;
    uint256 private _mintStart = 1685700000; // June 2nd 10AM UTC
    uint256 private _mintEnd = 1685959200; // June 5th 10AM UTC
    string private _unsignedWebapp = "https://ipfs.idea.tf/ipfs/QmUw5rjZh7YJRdWnbU5wqhyEj1u2oGXLxTTkqo4VEBDBW7/";
    address public owner;

    address private _apiWallet = 0x2c5B98F69c80dE0FFd445cDAcD689dcDa0B4bFE7;
    mapping(uint256 => uint256) private _signedTimestamp;

    constructor() ERC721A("Artist in a Post-Truth World", "APTW") {
        owner = msg.sender;

        _mint(0xB5905DbE33bb3193ED25dBE86C9436981E7cF54c, 1);
        _setDefaultRoyalty(0x9b3DC230BC76c2af3DFfEf82Ea3b344bf41df465, 500);
    }

    modifier onlyContractOwner() {
        if (msg.sender != owner) {
            revert NotContractOwner();
        }
        _;
    }

    modifier onlyAPI() {
        if (msg.sender != _apiWallet) {
            revert InvalidSigner();
        }
        _;
    }

    function numberMinted(address minter) external view returns(uint256) {
        return _numberMinted(minter);
    }

    function freeMint() external {
        if (block.timestamp < _mintStart || block.timestamp > _mintEnd) {
            revert MintClosed();
        }
        if (_numberMinted(msg.sender) > 0) {
            revert AlreadyMinted();
        }
        if (_nextTokenId() > _maxSupply) {
            revert SoldOut();
        }
        _mint(msg.sender, 1);
    }

    function setSigner(address signer) external onlyContractOwner {
        _apiWallet = signer;
    }

    function setWebApp(string calldata uri) external onlyContractOwner {
        _unsignedWebapp = uri;
    }

    function setMintDates(uint256 start, uint256 end) external onlyContractOwner {
        if (end < start) {
            revert InconsistentDates();
        }
        _mintStart = start;
        _mintEnd = end;
    }

    function sign(uint256 _tokenId) external onlyAPI {
        if (!_exists(_tokenId)) {
            revert NonExistentToken();
        }
        if (_signedTimestamp[_tokenId] > 0) {
            revert AlreadySigned();
        }
        _signedTimestamp[_tokenId] = block.timestamp;
        emit MetadataUpdate(_tokenId);
    }

    function mintDates() external view returns (uint256, uint256) {
        return (_mintStart, _mintEnd);
    }

    function tokenURI(uint256 _tokenId)
    public
    view
    override
    returns (string memory) {
        if (!_exists(_tokenId)) {
            revert NonExistentToken();
        }
        if (_signedTimestamp[_tokenId] == 0) {
            return OnChainMetadata.unsignedTokenURI(
                _tokenId,
                _unsignedImage,
                _unsignedWebapp
            );
        }
        return OnChainMetadata.signedTokenURI(
            _tokenId,
            _signedTimestamp[_tokenId],
            _signedImage
        );
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) {
        return interfaceId == 0x01ffc9a7 ||
            interfaceId == 0x80ac58cd ||
            interfaceId == 0x5b5e139f ||
            interfaceId == 0x780e9d63 ||
            interfaceId == 0x2a55205a;
    }
}

File 2 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 14 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 8 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

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

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

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

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

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 14 : IAutographNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

interface IAutographNFT {
    error InvalidSigner();
    error NotContractOwner();
    error AlreadyMinted();
    error MintClosed();
    error AlreadySigned();
    error NonExistentToken();
    error SoldOut();
    error InconsistentDates();

    event MetadataUpdate(uint256 _tokenId);
}

File 12 of 14 : DateUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

uint256 constant SECONDS_PER_DAY = 24 * 60 * 60;
uint256 constant SECONDS_PER_HOUR = 60 * 60;
uint256 constant SECONDS_PER_MINUTE = 60;
int256 constant OFFSET19700101 = 2440588;

library DateUtils {
    function _daysToDate(uint256 _days) internal pure returns (uint256 year, uint256 month, uint256 day) {
        unchecked {
            int256 __days = int(_days);

            int256 L = __days + 68569 + OFFSET19700101;
            int256 N = 4 * L / 146097;
            L = L - (146097 * N + 3) / 4;
            int256 _year = 4000 * (L + 1) / 1461001;
            L = L - 1461 * _year / 4 + 31;
            int256 _month = 80 * L / 2447;
            int256 _day = L - 2447 * _month / 80;
            L = _month / 11;
            _month = _month + 2 - 12 * L;
            _year = 100 * (N - 49) + _year + L;

            year = uint256(_year);
            month = uint256(_month);
            day = uint256(_day);
        }
    }

    function toDateTime(uint256 timestamp)
    internal
    pure
    returns (uint256 year, uint256 month, uint256 day, uint256 hour, uint256 minute, uint256 second)
    {
        unchecked {
            (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY);
            uint256 secs = timestamp % SECONDS_PER_DAY;
            hour = secs / SECONDS_PER_HOUR;
            secs = secs % SECONDS_PER_HOUR;
            minute = secs / SECONDS_PER_MINUTE;
            second = secs % SECONDS_PER_MINUTE;
        }
    }
}

File 13 of 14 : OnChainMetadata.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Strings.sol";
import "./DateUtils.sol";
import "./UriEncode.sol";

string constant description = "Carlos Marcial's artwork marries the real and hyperreal, alluding to Jean Baudrillard's theories of simulacrum and hyperreality. Using AI, he conducts a dialogue with a digital version of Jean-Michel Basquiat, presenting an imitation with no original.\\n\\nThis artwork, modeled on an 80s photograph, crafts a non-existent moment, intertwining reality and representation. Marcial highlights his solitary role in creating this illusion, merging AI and human creativity in a post-truth era that redefines art.\\n\\nConcisely, this piece urges us to reassess our perceptions and acknowledge the role of AI in reimagining art.\\n\\nTechnology: this collection is composed of True Phygital NFTs powered by Causality, a middleware for phygital connections. The NFTs can be autographed in real life, only by the artist, using a physical item he carries on his person. For more information, see: https://causality.xyz/";

library OnChainMetadata {
    using Strings for uint256;
    using DateUtils for uint256;
    using UriEncode for string;

    function paddedString(string memory s) internal pure returns(string memory) {
        if (bytes(s).length == 1) {
            return string(abi.encodePacked("0", s));
        }
        return s;
    }

    function monthName(uint256 month) internal pure returns(string memory) {
        string[12] memory MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
        unchecked {
            return MONTHS[month - 1];
        }
    }

    function dateOrdinal(uint256 day) internal pure returns(string memory) {
        if (day == 1 || day == 21 || day == 31) {
            return string(
                abi.encodePacked(
                    day.toString(),
                    "st"
                )
            );
        }
        if (day == 2 || day == 22) {
            return string(
                abi.encodePacked(
                    day.toString(),
                    "nd"
                )
            );
        }
        if (day == 3 || day == 23) {
            return string(
                abi.encodePacked(
                    day.toString(),
                    "rd"
                )
            );
        }
        return string(
            abi.encodePacked(
                day.toString(),
                "th"
            )
        );
    }

    function formattedDate(uint256 year, uint256 month, uint256 day) internal pure returns (string memory) {
        return string(abi.encodePacked(monthName(month), " ", dateOrdinal(day), " ", year.toString()));
    }

    function formattedTime(uint256 hour, uint256 minute, uint256 second) internal pure returns (string memory) {
        return string(abi.encodePacked(paddedString(hour.toString()), ":", paddedString(minute.toString()), ":", paddedString(second.toString())));
    }

    function unsignedTokenURI(uint256 tokenId, string memory image, string memory webapp) internal pure returns (string memory) {
        return string(
            abi.encodePacked(
                'data:application/json,{"name":"Artist in a Post-Truth World  #',
                tokenId.toString(),
                '","description":"',
                description,
                '","image":"',
                image,
                '","animation_url":"',
                webapp,
                '?id=',
                tokenId.toString(),
                '","attributes":[{"trait_type":"Signed","value": "No"}]}'
            )
        ).uriEncode();
    }

    function signedTokenURI(uint256 tokenId, uint256 timestamp, string memory image) internal pure returns (string memory) {
        (uint256 year, uint256 month, uint256 day, uint256 hour, uint256 minute, uint256 second) = timestamp.toDateTime();
        return string(
            abi.encodePacked(
                'data:application/json,{"name":"Artist in a Post-Truth World #',
                tokenId.toString(),
                ' (Signed)","description":"',
                description,
                '","image":"',
                image,
                '","attributes":[{"trait_type":"Signed","value": "Yes"},{"trait_type":"Autograph Date","value":"',
                formattedDate(year, month, day),
                '"},{"trait_type":"Autograph Time","value":"',
                formattedTime(hour, minute, second),
                '"},{"trait_type":"Autograph","display_type":"date","value":',
                timestamp.toString(),
                '}]}'
            )
        ).uriEncode();
    }

}

File 14 of 14 : UriEncode.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

library UriEncode {
    string internal constant _TABLE = "0123456789abcdef";

    function uriEncode(
        string memory uri
    ) internal pure returns (string memory) {
        bytes memory bytesUri = bytes(uri);

        string memory table = _TABLE;

        bytes memory result = new bytes(3 * bytesUri.length);

        /// @solidity memory-safe-assembly
        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)
            let resultSize := 0

            for {
                let dataPtr := bytesUri
                let endPtr := add(bytesUri, mload(bytesUri))
            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 1)
                let char := and(mload(dataPtr), 255)

                let isInvalidUriChar := or(
                    or(
                        lt(char, 33), // lower than "!"
                        gt(char, 122) // higher than "z"
                    ),
                    or(
                        or(
                            eq(char, 37), // "%"
                            or(
                                eq(char, 60), // "<"
                                eq(char, 62) // ">"
                            )
                        ),
                        or(
                            and(gt(char, 90), lt(char, 95)), // "[\]^"
                            eq(char, 96) // "`"
                        )
                    )
                )
                if eq(char, 35) { isInvalidUriChar := 1 }

                switch isInvalidUriChar
                case 0 {
                    mstore8(resultPtr, char)
                    resultPtr := add(resultPtr, 1)
                    resultSize := add(resultSize, 1)
                }
                case 1 {
                    mstore8(resultPtr, 37)
                    resultPtr := add(resultPtr, 1)
                    mstore8(resultPtr, mload(add(tablePtr, shr(4, char))))
                    resultPtr := add(resultPtr, 1)
                    mstore8(resultPtr, mload(add(tablePtr, and(char, 15))))
                    resultPtr := add(resultPtr, 1)
                    resultSize := add(resultSize, 3)
                }
            }

            mstore(result, resultSize)
        }

        return string(result);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"AlreadySigned","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InconsistentDates","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"MintClosed","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotContractOwner","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SoldOut","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":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintDates","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"setMintDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setWebApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"sign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"}]

6103e8600a55636479bda0600b5563647db220600c55610100604052604960808181529062002a2f60a039600d90620000399082620003d1565b50600f80546001600160a01b031916732c5b98f69c80de0ffd445cdacd689dcda0b4bfe71790553480156200006d57600080fd5b506040518060400160405280601c81526020017f41727469737420696e206120506f73742d547275746820576f726c6400000000815250604051806040016040528060048152602001634150545760e01b8152508160029081620000d29190620003d1565b506003620000e18282620003d1565b50600080555050600e80546001600160a01b031916331790556200011b73b5905dbe33bb3193ed25dbe86c9436981e7cf54c600162000143565b6200013d739b3dc230bc76c2af3dffef82ea3b344bf41df4656101f462000228565b6200049d565b6000805490829003620001695760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602062002a0f8339815191528180a4600183015b818114620001f8578083600060008051602062002a0f833981519152600080a4600101620001cf565b50816000036200021a57604051622e076360e81b815260040160405180910390fd5b60005550505050565b505050565b6127106001600160601b03821611156200029c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002f45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000293565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200035857607f821691505b6020821081036200037957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022357600081815260208120601f850160051c81016020861015620003a85750805b601f850160051c820191505b81811015620003c957828155600101620003b4565b505050505050565b81516001600160401b03811115620003ed57620003ed6200032d565b6200040581620003fe845462000343565b846200037f565b602080601f8311600181146200043d5760008415620004245750858301515b600019600386901b1c1916600185901b178555620003c9565b600085815260208120601f198616915b828110156200046e578886015182559484019460019091019084016200044d565b50858210156200048d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61256280620004ad6000396000f3fe6080604052600436106101105760003560e01c806301ffc9a71461011557806306fdde031461014a578063081812fc1461016c578063095ea7b3146101a457806318160ddd146101b957806323b872dd146101dc5780632a55205a146101ef5780632fb1b25f1461022e57806342842e0e1461024e5780635b70ea9f146102615780636352211e146102765780636c19e7831461029657806370a08231146102b65780637d741c82146102d65780638da5cb5b146102f657806395d89b4114610316578063a22cb4651461032b578063b3f4bf6b1461034b578063b88d4fde1461036b578063c87b56dd1461037e578063dc33e6811461039e578063e985e9c5146103be578063fa6ad335146103de575b600080fd5b34801561012157600080fd5b50610135610130366004611714565b610406565b60405190151581526020015b60405180910390f35b34801561015657600080fd5b5061015f61048e565b6040516101419190611781565b34801561017857600080fd5b5061018c610187366004611794565b610520565b6040516001600160a01b039091168152602001610141565b6101b76101b23660046117c9565b610564565b005b3480156101c557600080fd5b50600154600054035b604051908152602001610141565b6101b76101ea3660046117f3565b610604565b3480156101fb57600080fd5b5061020f61020a36600461182f565b61078b565b604080516001600160a01b039093168352602083019190915201610141565b34801561023a57600080fd5b506101b7610249366004611794565b610837565b6101b761025c3660046117f3565b610903565b34801561026d57600080fd5b506101b7610923565b34801561028257600080fd5b5061018c610291366004611794565b6109ae565b3480156102a257600080fd5b506101b76102b1366004611851565b6109b9565b3480156102c257600080fd5b506101ce6102d1366004611851565b610a06565b3480156102e257600080fd5b506101b76102f136600461182f565b610a54565b34801561030257600080fd5b50600e5461018c906001600160a01b031681565b34801561032257600080fd5b5061015f610aab565b34801561033757600080fd5b506101b761034636600461186c565b610aba565b34801561035757600080fd5b506101b76103663660046118a8565b610b26565b6101b761037936600461192f565b610b5e565b34801561038a57600080fd5b5061015f610399366004611794565b610ba8565b3480156103aa57600080fd5b506101ce6103b9366004611851565b610cc8565b3480156103ca57600080fd5b506101356103d9366004611a0a565b610cd3565b3480156103ea57600080fd5b50600b54600c5460408051928352602083019190915201610141565b60006301ffc9a760e01b6001600160e01b03198316148061043757506380ac58cd60e01b6001600160e01b03198316145b806104525750635b5e139f60e01b6001600160e01b03198316145b8061046d575063780e9d6360e01b6001600160e01b03198316145b80610488575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461049d90611a3d565b80601f01602080910402602001604051908101604052809291908181526020018280546104c990611a3d565b80156105165780601f106104eb57610100808354040283529160200191610516565b820191906000526020600020905b8154815290600101906020018083116104f957829003601f168201915b5050505050905090565b600061052b82610d01565b610548576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061056f826109ae565b9050336001600160a01b038216146105a85761058b8133610cd3565b6105a8576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061060f82610d28565b9050836001600160a01b0316816001600160a01b0316146106425760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761068f576106728633610cd3565b61068f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166106b657604051633a954ecd60e21b815260040160405180910390fd5b80156106c157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716815220805460010190556106fe85600160e11b610d96565b600085815260046020526040812091909155600160e11b84169003610753576001840160008181526004602052604081205490036107515760005481146107515760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206124b883398151915260405160405180910390a45b505050505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108005750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061081f906001600160601b031687611a77565b6108299190611ab2565b915196919550909350505050565b600f546001600160a01b0316331461086257604051632057875960e21b815260040160405180910390fd5b61086b81610d01565b61088857604051634a1850bf60e11b815260040160405180910390fd5b600081815260106020526040902054156108b55760405163585eb56560e11b815260040160405180910390fd5b60008181526010602052604090819020429055517ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7906108f89083815260200190565b60405180910390a150565b61091e83838360405180602001604052806000815250610b5e565b505050565b600b544210806109345750600c5442115b156109525760405163589ed34b60e01b815260040160405180910390fd5b600061095d33610dab565b111561097c57604051631bbdf5c560e31b815260040160405180910390fd5b600a5460005411156109a1576040516352df9fe560e01b815260040160405180910390fd5b6109ac336001610dd3565b565b600061048882610d28565b600e546001600160a01b031633146109e45760405163bfcafd3760e01b815260040160405180910390fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610a2f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600e546001600160a01b03163314610a7f5760405163bfcafd3760e01b815260040160405180910390fd5b81811015610aa0576040516345480e4d60e11b815260040160405180910390fd5b600b91909155600c55565b60606003805461049d90611a3d565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160a01b03163314610b515760405163bfcafd3760e01b815260040160405180910390fd5b600d61091e828483611b1a565b610b69848484610604565b6001600160a01b0383163b15610ba257610b8584848484610ebb565b610ba2576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610bb382610d01565b610bd057604051634a1850bf60e11b815260040160405180910390fd5b6000828152601060205260408120549003610c9257610488826040518060600160405280603581526020016124d860359139600d8054610c0f90611a3d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3b90611a3d565b8015610c885780601f10610c5d57610100808354040283529160200191610c88565b820191906000526020600020905b815481529060010190602001808311610c6b57829003601f168201915b5050505050610fa6565b6104888260106000858152602001908152602001600020546040518060600160405280603581526020016124636035913961100b565b600061048882610dab565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6000805482108015610488575050600090815260046020526040902054600160e01b161590565b600081600054811015610d7d5760008181526004602052604081205490600160e01b82169003610d7b575b80600003610d74575060001901600081815260046020526040902054610d53565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b4260a01b176001600160a01b03919091161790565b6001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b6000805490829003610df85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055610e2f836001841460e11b610d96565b6000828152600460205260408120919091556001600160a01b0384169083830190839083906000805160206124b88339815191528180a4600183015b818114610e9157808360006000805160206124b8833981519152600080a4600101610e6b565b5081600003610eb257604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ef0903390899088908890600401611bda565b6020604051808303816000875af1925050508015610f2b575060408051601f3d908101601f19168201909252610f2891810190611c17565b60015b610f89573d808015610f59576040519150601f19603f3d011682016040523d82523d6000602084013e610f5e565b606091505b508051600003610f81576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060611003610fb485611096565b604051806103c0016040528061038881526020016120db61038891398585610fdb89611096565b604051602001610fef959493929190611c50565b604051602081830303815290604052611128565b949350505050565b606060008060008060008061101f8961126c565b9550955095509550955095506110886110378b611096565b604051806103c0016040528061038881526020016120db61038891398a61105f8a8a8a6112ac565b61106a8888886112f3565b6110738f611096565b604051602001610fef96959493929190611d92565b9a9950505050505050505050565b606060006110a383611330565b60010190506000816001600160401b038111156110c2576110c2611919565b6040519080825280601f01601f1916602001820160405280156110ec576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846110f657509392505050565b60408051808201909152601081526f181899199a1a9b1b9c1cb0b131b232b360811b602082015281516060918391600090611164906003611a77565b6001600160401b0381111561117b5761117b611919565b6040519080825280601f01601f1916602001820160405280156111a5576020820181803683370190505b5090506001820160208201600085865187015b8082101561125d5760018201915060ff82511660608114605f8210605a83111617603e8214603c831417602583141717607a8211602183101717602382036111fe575060015b808015611212576001811461122657611255565b828753600187019650600186019550611255565b602587536001870196508260041c8801518753600187019650600f831688015187536001870196506003860195505b5050506111b8565b50508352509095945050505050565b60008080808080611281620151808804611406565b91999098919750610e10620151809092068281049750603c9290068281049650919091069350915050565b60606112b7836114a2565b6112c083611618565b6112c986611096565b6040516020016112db93929190611f77565b60405160208183030381529060405290509392505050565b606061130661130185611096565b6116db565b61131261130185611096565b61131e61130185611096565b6040516020016112db93929190611fd1565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061136f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310611399576904ee2d6d415b85acef8160201b830492506020015b662386f26fc1000083106113b757662386f26fc10000830492506010015b6305f5e10083106113cf576305f5e100830492506008015b61271083106113e357612710830492506004015b606483106113f5576064830492506002015b600a83106104885760010192915050565b60008080836226496581018262023ab1600483020590506004600362023ab18302010590910390600062164b09610fa0600185010205905060046105b58202058303601f019250600061098f846050028161146357611463611a9c565b0590506000605061098f83020585039050600b820560301994909401606402929092018301996002600c90940290910392909201975095509350505050565b604080516101c08101825260036101808201818152622530b760e91b6101a0840152825282518084018452818152622332b160e91b60208281019190915280840191909152835180850185528281526226b0b960e91b8183015283850152835180850185528281526220b83960e91b8183015260608481019190915284518086018652838152624d617960e81b8184015260808501528451808601865283815262253ab760e91b8184015260a08501528451808601865283815262129d5b60ea1b8184015260c0850152845180860186528381526241756760e81b8184015260e0850152845180860186528381526205365760ec1b81840152610100850152845180860186528381526213d8dd60ea1b8184015261012085015284518086018652838152622737bb60e91b8184015261014085015284518086019095529184526244656360e81b90840152610160820192909252806000198401600c811061160c5761160c612003565b60200201519392505050565b606081600114806116295750816015145b80611634575081601f145b156116685761164282611096565b6040516020016116529190612019565b6040516020818303038152906040529050919050565b81600214806116775750816016145b156116955761168582611096565b604051602001611652919061203f565b81600314806116a45750816017145b156116c2576116b282611096565b6040516020016116529190612065565b6116cb82611096565b604051602001611652919061208b565b606081516001036116f7578160405160200161165291906120b1565b5090565b6001600160e01b03198116811461171157600080fd5b50565b60006020828403121561172657600080fd5b8135610d74816116fb565b60005b8381101561174c578181015183820152602001611734565b50506000910152565b6000815180845261176d816020860160208601611731565b601f01601f19169290920160200192915050565b602081526000610d746020830184611755565b6000602082840312156117a657600080fd5b5035919050565b80356001600160a01b03811681146117c457600080fd5b919050565b600080604083850312156117dc57600080fd5b6117e5836117ad565b946020939093013593505050565b60008060006060848603121561180857600080fd5b611811846117ad565b925061181f602085016117ad565b9150604084013590509250925092565b6000806040838503121561184257600080fd5b50508035926020909101359150565b60006020828403121561186357600080fd5b610d74826117ad565b6000806040838503121561187f57600080fd5b611888836117ad565b91506020830135801515811461189d57600080fd5b809150509250929050565b600080602083850312156118bb57600080fd5b82356001600160401b03808211156118d257600080fd5b818501915085601f8301126118e657600080fd5b8135818111156118f557600080fd5b86602082850101111561190757600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561194557600080fd5b61194e856117ad565b935061195c602086016117ad565b92506040850135915060608501356001600160401b038082111561197f57600080fd5b818701915087601f83011261199357600080fd5b8135818111156119a5576119a5611919565b604051601f8201601f19908116603f011681019083821181831017156119cd576119cd611919565b816040528281528a60208487010111156119e657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611a1d57600080fd5b611a26836117ad565b9150611a34602084016117ad565b90509250929050565b600181811c90821680611a5157607f821691505b602082108103611a7157634e487b7160e01b600052602260045260246000fd5b50919050565b808202811582820484141761048857634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082611acf57634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561091e57600081815260208120601f850160051c81016020861015611afb5750805b601f850160051c820191505b8181101561078357828155600101611b07565b6001600160401b03831115611b3157611b31611919565b611b4583611b3f8354611a3d565b83611ad4565b6000601f841160018114611b795760008515611b615750838201355b600019600387901b1c1916600186901b178355611bd3565b600083815260209020601f19861690835b82811015611baa5786850135825560209485019460019092019101611b8a565b5086821015611bc75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611c0d90830184611755565b9695505050505050565b600060208284031215611c2957600080fd5b8151610d74816116fb565b60008151611c46818560208601611731565b9290920192915050565b60008051602061249883398151915281527f727469737420696e206120506f73742d547275746820576f726c642020230000602082015260008651611c9c81603e850160208b01611731565b701116113232b9b1b934b83a34b7b7111d1160791b603e918401918201528651611ccd81604f840160208b01611731565b6a11161134b6b0b3b2911d1160a91b604f92909101918201528551611cf981605a840160208a01611731565b7211161130b734b6b0ba34b7b72fbab936111d1160691b605a92909101918201528451611d2d81606d840160208901611731565b633f69643d60e01b606d9290910191820152611d86611d4f6071830186611c34565b60008051602061250d83398151915281527669676e6564222c2276616c7565223a20224e6f227d5d7d60481b602082015260370190565b98975050505050505050565b60008051602061249883398151915281527f727469737420696e206120506f73742d547275746820576f726c642023000000602082015260008751611dde81603d850160208c01611731565b79101429b4b3b732b2149116113232b9b1b934b83a34b7b7111d1160311b603d918401918201528751611e18816057840160208c01611731565b6a11161134b6b0b3b2911d1160a91b605792909101918201528651611e44816062840160208b01611731565b60008051602061250d833981519152606292909101918201527f69676e6564222c2276616c7565223a2022596573227d2c7b2274726169745f7460828201527f797065223a224175746f67726170682044617465222c2276616c7565223a220060a2820152611f6a611f5b611f55611f08611f02611ec560c187018c611c34565b7f227d2c7b2274726169745f74797065223a224175746f67726170682054696d6581526a1116113b30b63ab2911d1160a91b6020820152602b0190565b89611c34565b7f227d2c7b2274726169745f74797065223a224175746f6772617068222c22646981527a39b83630bcafba3cb832911d113230ba329116113b30b63ab2911d60291b6020820152603b0190565b86611c34565b627d5d7d60e81b815260030190565b9998505050505050505050565b60008451611f89818460208901611731565b8083019050600160fd1b8082528551611fa9816001850160208a01611731565b60019201918201528351611fc4816002840160208801611731565b0160020195945050505050565b60008451611fe3818460208901611731565b8083019050601d60f91b8082528551611fa9816001850160208a01611731565b634e487b7160e01b600052603260045260246000fd5b6000825161202b818460208701611731565b611cdd60f21b920191825250600201919050565b60008251612051818460208701611731565b611b9960f21b920191825250600201919050565b60008251612077818460208701611731565b611c9960f21b920191825250600201919050565b6000825161209d818460208701611731565b610e8d60f31b920191825250600201919050565b600360fc1b8152600082516120cd816001850160208701611731565b919091016001019291505056fe4361726c6f73204d61726369616c277320617274776f726b206d61727269657320746865207265616c20616e642068797065727265616c2c20616c6c7564696e6720746f204a65616e204261756472696c6c6172642773207468656f72696573206f662073696d756c616372756d20616e642068797065727265616c6974792e205573696e672041492c20686520636f6e64756374732061206469616c6f67756520776974682061206469676974616c2076657273696f6e206f66204a65616e2d4d696368656c2042617371756961742c2070726573656e74696e6720616e20696d69746174696f6e2077697468206e6f206f726967696e616c2e5c6e5c6e5468697320617274776f726b2c206d6f64656c6564206f6e20616e203830732070686f746f67726170682c206372616674732061206e6f6e2d6578697374656e74206d6f6d656e742c20696e7465727477696e696e67207265616c69747920616e6420726570726573656e746174696f6e2e204d61726369616c20686967686c69676874732068697320736f6c697461727920726f6c6520696e206372656174696e67207468697320696c6c7573696f6e2c206d657267696e6720414920616e642068756d616e206372656174697669747920696e206120706f73742d7472757468206572612074686174207265646566696e6573206172742e5c6e5c6e436f6e636973656c792c207468697320706965636520757267657320757320746f207265617373657373206f75722070657263657074696f6e7320616e642061636b6e6f776c656467652074686520726f6c65206f6620414920696e207265696d6167696e696e67206172742e5c6e5c6e546563686e6f6c6f67793a207468697320636f6c6c656374696f6e20697320636f6d706f736564206f66205472756520506879676974616c204e46547320706f77657265642062792043617573616c6974792c2061206d6964646c657761726520666f7220706879676974616c20636f6e6e656374696f6e732e20546865204e4654732063616e206265206175746f6772617068656420696e207265616c206c6966652c206f6e6c7920627920746865206172746973742c207573696e67206120706879736963616c206974656d2068652063617272696573206f6e2068697320706572736f6e2e20466f72206d6f726520696e666f726d6174696f6e2c207365653a2068747470733a2f2f63617573616c6974792e78797a2f697066733a2f2f516d62735475657a4847366536756a313978485a4c3643714b514a57686f784c466d6176596f4575465842354a5a646174613a6170706c69636174696f6e2f6a736f6e2c7b226e616d65223a2241ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f516d63527a756966783375737242784e59705556416f704e485a395a4d5551704b4e42574a6e756e68546a454442222c2261747472696275746573223a5b7b2274726169745f74797065223a2253a26469706673582212208a9d516e3ff5fd17a7d459b03a573204853a43cdfb7669c72326d14f426e473764736f6c63430008130033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef68747470733a2f2f697066732e696465612e74662f697066732f516d557735726a5a6837594a5264576e62553577716879456a3175326f47584c7854546b716f34564542444257372f

Deployed Bytecode

0x6080604052600436106101105760003560e01c806301ffc9a71461011557806306fdde031461014a578063081812fc1461016c578063095ea7b3146101a457806318160ddd146101b957806323b872dd146101dc5780632a55205a146101ef5780632fb1b25f1461022e57806342842e0e1461024e5780635b70ea9f146102615780636352211e146102765780636c19e7831461029657806370a08231146102b65780637d741c82146102d65780638da5cb5b146102f657806395d89b4114610316578063a22cb4651461032b578063b3f4bf6b1461034b578063b88d4fde1461036b578063c87b56dd1461037e578063dc33e6811461039e578063e985e9c5146103be578063fa6ad335146103de575b600080fd5b34801561012157600080fd5b50610135610130366004611714565b610406565b60405190151581526020015b60405180910390f35b34801561015657600080fd5b5061015f61048e565b6040516101419190611781565b34801561017857600080fd5b5061018c610187366004611794565b610520565b6040516001600160a01b039091168152602001610141565b6101b76101b23660046117c9565b610564565b005b3480156101c557600080fd5b50600154600054035b604051908152602001610141565b6101b76101ea3660046117f3565b610604565b3480156101fb57600080fd5b5061020f61020a36600461182f565b61078b565b604080516001600160a01b039093168352602083019190915201610141565b34801561023a57600080fd5b506101b7610249366004611794565b610837565b6101b761025c3660046117f3565b610903565b34801561026d57600080fd5b506101b7610923565b34801561028257600080fd5b5061018c610291366004611794565b6109ae565b3480156102a257600080fd5b506101b76102b1366004611851565b6109b9565b3480156102c257600080fd5b506101ce6102d1366004611851565b610a06565b3480156102e257600080fd5b506101b76102f136600461182f565b610a54565b34801561030257600080fd5b50600e5461018c906001600160a01b031681565b34801561032257600080fd5b5061015f610aab565b34801561033757600080fd5b506101b761034636600461186c565b610aba565b34801561035757600080fd5b506101b76103663660046118a8565b610b26565b6101b761037936600461192f565b610b5e565b34801561038a57600080fd5b5061015f610399366004611794565b610ba8565b3480156103aa57600080fd5b506101ce6103b9366004611851565b610cc8565b3480156103ca57600080fd5b506101356103d9366004611a0a565b610cd3565b3480156103ea57600080fd5b50600b54600c5460408051928352602083019190915201610141565b60006301ffc9a760e01b6001600160e01b03198316148061043757506380ac58cd60e01b6001600160e01b03198316145b806104525750635b5e139f60e01b6001600160e01b03198316145b8061046d575063780e9d6360e01b6001600160e01b03198316145b80610488575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461049d90611a3d565b80601f01602080910402602001604051908101604052809291908181526020018280546104c990611a3d565b80156105165780601f106104eb57610100808354040283529160200191610516565b820191906000526020600020905b8154815290600101906020018083116104f957829003601f168201915b5050505050905090565b600061052b82610d01565b610548576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061056f826109ae565b9050336001600160a01b038216146105a85761058b8133610cd3565b6105a8576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061060f82610d28565b9050836001600160a01b0316816001600160a01b0316146106425760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761068f576106728633610cd3565b61068f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166106b657604051633a954ecd60e21b815260040160405180910390fd5b80156106c157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716815220805460010190556106fe85600160e11b610d96565b600085815260046020526040812091909155600160e11b84169003610753576001840160008181526004602052604081205490036107515760005481146107515760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206124b883398151915260405160405180910390a45b505050505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108005750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061081f906001600160601b031687611a77565b6108299190611ab2565b915196919550909350505050565b600f546001600160a01b0316331461086257604051632057875960e21b815260040160405180910390fd5b61086b81610d01565b61088857604051634a1850bf60e11b815260040160405180910390fd5b600081815260106020526040902054156108b55760405163585eb56560e11b815260040160405180910390fd5b60008181526010602052604090819020429055517ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7906108f89083815260200190565b60405180910390a150565b61091e83838360405180602001604052806000815250610b5e565b505050565b600b544210806109345750600c5442115b156109525760405163589ed34b60e01b815260040160405180910390fd5b600061095d33610dab565b111561097c57604051631bbdf5c560e31b815260040160405180910390fd5b600a5460005411156109a1576040516352df9fe560e01b815260040160405180910390fd5b6109ac336001610dd3565b565b600061048882610d28565b600e546001600160a01b031633146109e45760405163bfcafd3760e01b815260040160405180910390fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216610a2f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600e546001600160a01b03163314610a7f5760405163bfcafd3760e01b815260040160405180910390fd5b81811015610aa0576040516345480e4d60e11b815260040160405180910390fd5b600b91909155600c55565b60606003805461049d90611a3d565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160a01b03163314610b515760405163bfcafd3760e01b815260040160405180910390fd5b600d61091e828483611b1a565b610b69848484610604565b6001600160a01b0383163b15610ba257610b8584848484610ebb565b610ba2576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610bb382610d01565b610bd057604051634a1850bf60e11b815260040160405180910390fd5b6000828152601060205260408120549003610c9257610488826040518060600160405280603581526020016124d860359139600d8054610c0f90611a3d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3b90611a3d565b8015610c885780601f10610c5d57610100808354040283529160200191610c88565b820191906000526020600020905b815481529060010190602001808311610c6b57829003601f168201915b5050505050610fa6565b6104888260106000858152602001908152602001600020546040518060600160405280603581526020016124636035913961100b565b600061048882610dab565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6000805482108015610488575050600090815260046020526040902054600160e01b161590565b600081600054811015610d7d5760008181526004602052604081205490600160e01b82169003610d7b575b80600003610d74575060001901600081815260046020526040902054610d53565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b4260a01b176001600160a01b03919091161790565b6001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b6000805490829003610df85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055610e2f836001841460e11b610d96565b6000828152600460205260408120919091556001600160a01b0384169083830190839083906000805160206124b88339815191528180a4600183015b818114610e9157808360006000805160206124b8833981519152600080a4600101610e6b565b5081600003610eb257604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ef0903390899088908890600401611bda565b6020604051808303816000875af1925050508015610f2b575060408051601f3d908101601f19168201909252610f2891810190611c17565b60015b610f89573d808015610f59576040519150601f19603f3d011682016040523d82523d6000602084013e610f5e565b606091505b508051600003610f81576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060611003610fb485611096565b604051806103c0016040528061038881526020016120db61038891398585610fdb89611096565b604051602001610fef959493929190611c50565b604051602081830303815290604052611128565b949350505050565b606060008060008060008061101f8961126c565b9550955095509550955095506110886110378b611096565b604051806103c0016040528061038881526020016120db61038891398a61105f8a8a8a6112ac565b61106a8888886112f3565b6110738f611096565b604051602001610fef96959493929190611d92565b9a9950505050505050505050565b606060006110a383611330565b60010190506000816001600160401b038111156110c2576110c2611919565b6040519080825280601f01601f1916602001820160405280156110ec576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846110f657509392505050565b60408051808201909152601081526f181899199a1a9b1b9c1cb0b131b232b360811b602082015281516060918391600090611164906003611a77565b6001600160401b0381111561117b5761117b611919565b6040519080825280601f01601f1916602001820160405280156111a5576020820181803683370190505b5090506001820160208201600085865187015b8082101561125d5760018201915060ff82511660608114605f8210605a83111617603e8214603c831417602583141717607a8211602183101717602382036111fe575060015b808015611212576001811461122657611255565b828753600187019650600186019550611255565b602587536001870196508260041c8801518753600187019650600f831688015187536001870196506003860195505b5050506111b8565b50508352509095945050505050565b60008080808080611281620151808804611406565b91999098919750610e10620151809092068281049750603c9290068281049650919091069350915050565b60606112b7836114a2565b6112c083611618565b6112c986611096565b6040516020016112db93929190611f77565b60405160208183030381529060405290509392505050565b606061130661130185611096565b6116db565b61131261130185611096565b61131e61130185611096565b6040516020016112db93929190611fd1565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061136f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310611399576904ee2d6d415b85acef8160201b830492506020015b662386f26fc1000083106113b757662386f26fc10000830492506010015b6305f5e10083106113cf576305f5e100830492506008015b61271083106113e357612710830492506004015b606483106113f5576064830492506002015b600a83106104885760010192915050565b60008080836226496581018262023ab1600483020590506004600362023ab18302010590910390600062164b09610fa0600185010205905060046105b58202058303601f019250600061098f846050028161146357611463611a9c565b0590506000605061098f83020585039050600b820560301994909401606402929092018301996002600c90940290910392909201975095509350505050565b604080516101c08101825260036101808201818152622530b760e91b6101a0840152825282518084018452818152622332b160e91b60208281019190915280840191909152835180850185528281526226b0b960e91b8183015283850152835180850185528281526220b83960e91b8183015260608481019190915284518086018652838152624d617960e81b8184015260808501528451808601865283815262253ab760e91b8184015260a08501528451808601865283815262129d5b60ea1b8184015260c0850152845180860186528381526241756760e81b8184015260e0850152845180860186528381526205365760ec1b81840152610100850152845180860186528381526213d8dd60ea1b8184015261012085015284518086018652838152622737bb60e91b8184015261014085015284518086019095529184526244656360e81b90840152610160820192909252806000198401600c811061160c5761160c612003565b60200201519392505050565b606081600114806116295750816015145b80611634575081601f145b156116685761164282611096565b6040516020016116529190612019565b6040516020818303038152906040529050919050565b81600214806116775750816016145b156116955761168582611096565b604051602001611652919061203f565b81600314806116a45750816017145b156116c2576116b282611096565b6040516020016116529190612065565b6116cb82611096565b604051602001611652919061208b565b606081516001036116f7578160405160200161165291906120b1565b5090565b6001600160e01b03198116811461171157600080fd5b50565b60006020828403121561172657600080fd5b8135610d74816116fb565b60005b8381101561174c578181015183820152602001611734565b50506000910152565b6000815180845261176d816020860160208601611731565b601f01601f19169290920160200192915050565b602081526000610d746020830184611755565b6000602082840312156117a657600080fd5b5035919050565b80356001600160a01b03811681146117c457600080fd5b919050565b600080604083850312156117dc57600080fd5b6117e5836117ad565b946020939093013593505050565b60008060006060848603121561180857600080fd5b611811846117ad565b925061181f602085016117ad565b9150604084013590509250925092565b6000806040838503121561184257600080fd5b50508035926020909101359150565b60006020828403121561186357600080fd5b610d74826117ad565b6000806040838503121561187f57600080fd5b611888836117ad565b91506020830135801515811461189d57600080fd5b809150509250929050565b600080602083850312156118bb57600080fd5b82356001600160401b03808211156118d257600080fd5b818501915085601f8301126118e657600080fd5b8135818111156118f557600080fd5b86602082850101111561190757600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561194557600080fd5b61194e856117ad565b935061195c602086016117ad565b92506040850135915060608501356001600160401b038082111561197f57600080fd5b818701915087601f83011261199357600080fd5b8135818111156119a5576119a5611919565b604051601f8201601f19908116603f011681019083821181831017156119cd576119cd611919565b816040528281528a60208487010111156119e657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611a1d57600080fd5b611a26836117ad565b9150611a34602084016117ad565b90509250929050565b600181811c90821680611a5157607f821691505b602082108103611a7157634e487b7160e01b600052602260045260246000fd5b50919050565b808202811582820484141761048857634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082611acf57634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561091e57600081815260208120601f850160051c81016020861015611afb5750805b601f850160051c820191505b8181101561078357828155600101611b07565b6001600160401b03831115611b3157611b31611919565b611b4583611b3f8354611a3d565b83611ad4565b6000601f841160018114611b795760008515611b615750838201355b600019600387901b1c1916600186901b178355611bd3565b600083815260209020601f19861690835b82811015611baa5786850135825560209485019460019092019101611b8a565b5086821015611bc75760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611c0d90830184611755565b9695505050505050565b600060208284031215611c2957600080fd5b8151610d74816116fb565b60008151611c46818560208601611731565b9290920192915050565b60008051602061249883398151915281527f727469737420696e206120506f73742d547275746820576f726c642020230000602082015260008651611c9c81603e850160208b01611731565b701116113232b9b1b934b83a34b7b7111d1160791b603e918401918201528651611ccd81604f840160208b01611731565b6a11161134b6b0b3b2911d1160a91b604f92909101918201528551611cf981605a840160208a01611731565b7211161130b734b6b0ba34b7b72fbab936111d1160691b605a92909101918201528451611d2d81606d840160208901611731565b633f69643d60e01b606d9290910191820152611d86611d4f6071830186611c34565b60008051602061250d83398151915281527669676e6564222c2276616c7565223a20224e6f227d5d7d60481b602082015260370190565b98975050505050505050565b60008051602061249883398151915281527f727469737420696e206120506f73742d547275746820576f726c642023000000602082015260008751611dde81603d850160208c01611731565b79101429b4b3b732b2149116113232b9b1b934b83a34b7b7111d1160311b603d918401918201528751611e18816057840160208c01611731565b6a11161134b6b0b3b2911d1160a91b605792909101918201528651611e44816062840160208b01611731565b60008051602061250d833981519152606292909101918201527f69676e6564222c2276616c7565223a2022596573227d2c7b2274726169745f7460828201527f797065223a224175746f67726170682044617465222c2276616c7565223a220060a2820152611f6a611f5b611f55611f08611f02611ec560c187018c611c34565b7f227d2c7b2274726169745f74797065223a224175746f67726170682054696d6581526a1116113b30b63ab2911d1160a91b6020820152602b0190565b89611c34565b7f227d2c7b2274726169745f74797065223a224175746f6772617068222c22646981527a39b83630bcafba3cb832911d113230ba329116113b30b63ab2911d60291b6020820152603b0190565b86611c34565b627d5d7d60e81b815260030190565b9998505050505050505050565b60008451611f89818460208901611731565b8083019050600160fd1b8082528551611fa9816001850160208a01611731565b60019201918201528351611fc4816002840160208801611731565b0160020195945050505050565b60008451611fe3818460208901611731565b8083019050601d60f91b8082528551611fa9816001850160208a01611731565b634e487b7160e01b600052603260045260246000fd5b6000825161202b818460208701611731565b611cdd60f21b920191825250600201919050565b60008251612051818460208701611731565b611b9960f21b920191825250600201919050565b60008251612077818460208701611731565b611c9960f21b920191825250600201919050565b6000825161209d818460208701611731565b610e8d60f31b920191825250600201919050565b600360fc1b8152600082516120cd816001850160208701611731565b919091016001019291505056fe4361726c6f73204d61726369616c277320617274776f726b206d61727269657320746865207265616c20616e642068797065727265616c2c20616c6c7564696e6720746f204a65616e204261756472696c6c6172642773207468656f72696573206f662073696d756c616372756d20616e642068797065727265616c6974792e205573696e672041492c20686520636f6e64756374732061206469616c6f67756520776974682061206469676974616c2076657273696f6e206f66204a65616e2d4d696368656c2042617371756961742c2070726573656e74696e6720616e20696d69746174696f6e2077697468206e6f206f726967696e616c2e5c6e5c6e5468697320617274776f726b2c206d6f64656c6564206f6e20616e203830732070686f746f67726170682c206372616674732061206e6f6e2d6578697374656e74206d6f6d656e742c20696e7465727477696e696e67207265616c69747920616e6420726570726573656e746174696f6e2e204d61726369616c20686967686c69676874732068697320736f6c697461727920726f6c6520696e206372656174696e67207468697320696c6c7573696f6e2c206d657267696e6720414920616e642068756d616e206372656174697669747920696e206120706f73742d7472757468206572612074686174207265646566696e6573206172742e5c6e5c6e436f6e636973656c792c207468697320706965636520757267657320757320746f207265617373657373206f75722070657263657074696f6e7320616e642061636b6e6f776c656467652074686520726f6c65206f6620414920696e207265696d6167696e696e67206172742e5c6e5c6e546563686e6f6c6f67793a207468697320636f6c6c656374696f6e20697320636f6d706f736564206f66205472756520506879676974616c204e46547320706f77657265642062792043617573616c6974792c2061206d6964646c657761726520666f7220706879676974616c20636f6e6e656374696f6e732e20546865204e4654732063616e206265206175746f6772617068656420696e207265616c206c6966652c206f6e6c7920627920746865206172746973742c207573696e67206120706879736963616c206974656d2068652063617272696573206f6e2068697320706572736f6e2e20466f72206d6f726520696e666f726d6174696f6e2c207365653a2068747470733a2f2f63617573616c6974792e78797a2f697066733a2f2f516d62735475657a4847366536756a313978485a4c3643714b514a57686f784c466d6176596f4575465842354a5a646174613a6170706c69636174696f6e2f6a736f6e2c7b226e616d65223a2241ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f516d63527a756966783375737242784e59705556416f704e485a395a4d5551704b4e42574a6e756e68546a454442222c2261747472696275746573223a5b7b2274726169745f74797065223a2253a26469706673582212208a9d516e3ff5fd17a7d459b03a573204853a43cdfb7669c72326d14f426e473764736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.