ETH Price: $3,700.70 (+4.38%)

Token

ERC-20: Downpour (Downpour)
 

Overview

Max Total Supply

888 Downpour

Holders

424

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
web3messi.eth
Balance
2 Downpour
0x3c42528d268b409872bdc3cea1c315cb7206c10e
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DownpourByDDV

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-03-28
*/

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol


// 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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol


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

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector);
        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.selector);

        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 Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @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 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // 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, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @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. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

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

        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 result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

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

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (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.selector);

        _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;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // 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.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _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.selector);
            }
    }

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

        _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:
            // - `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)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            do {
                assembly {
                    // 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`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _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.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _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.selector);
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) _revert(bytes4(0));
            }
        }
    }

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

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

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

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

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

    // =============================================================
    //                        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.selector);
        }

        _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.selector);
        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)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

// File: contracts/Downpour.sol


pragma solidity ^0.8.17;




contract DownpourByDDV is ERC721A, Ownable {
    using Strings for uint256;
    uint256 public maxSupply = 888;
    uint256 public maxFreeAmount = 888;
    uint256 public maxFreePerWallet = 1;
    uint256 public price = 0.0025 ether;
    uint256 public maxPerTx = 50;
    uint256 public maxPerWallet = 50;
    bool public mintEnabled = false;
    string public baseURI;

 constructor(
    string memory _name,
    string memory _symbol,
    string memory _initBaseURI
  ) ERC721A(_name,_symbol) {
        setBaseURI(_initBaseURI);
     
    }
  function  CommunityMint(uint256 _amountPerAddress, address[] calldata addresses) external onlyOwner {
     uint256 totalSupply = uint256(totalSupply());
     uint totalAmount =   _amountPerAddress * addresses.length;
    require(totalSupply + totalAmount <= maxSupply, "Exceeds max supply.");
     for (uint256 i = 0; i < addresses.length; i++) {
            _safeMint(addresses[i], _amountPerAddress);
        }

     delete _amountPerAddress;
     delete totalSupply;
  }

    function  publicMint(uint256 quantity) external payable  {
        require(mintEnabled, "Minting is not live yet.");
        require(totalSupply() + quantity < maxSupply + 1, "No more");
        uint256 cost = price;
        uint256 _maxPerWallet = maxPerWallet;
        

        if (
            totalSupply() < maxFreeAmount &&
            _numberMinted(msg.sender) == 0 &&
            quantity <= maxFreePerWallet
        ) {
            cost = 0;
            _maxPerWallet = maxFreePerWallet;
        }

        require(
            _numberMinted(msg.sender) + quantity <= _maxPerWallet,
            "Max per wallet"
        );

        uint256 needPayCount = quantity;
        if (_numberMinted(msg.sender) == 0) {
            needPayCount = quantity;
        }
        require(
            msg.value >= needPayCount * cost,
            "Please send the exact amount."
        );
        _safeMint(msg.sender, quantity);
    }

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

    function tokenURI(
        uint256 tokenId
    ) public view virtual override returns (string memory) {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function flipSale() external onlyOwner {
        mintEnabled = !mintEnabled;
    }

    function setBaseURI(string memory uri) public onlyOwner {
        baseURI = uri;
    }

    function setPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    function setMaxFreeAmount(uint256 _amount) external onlyOwner {
        maxFreeAmount = _amount;
    }

    function setMaxFreePerWallet(uint256 _amount) external onlyOwner {
        maxFreePerWallet = _amount;
    }

    function withdraw() external onlyOwner {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success, "Transfer failed.");
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amountPerAddress","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"CommunityMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","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":"maxFreeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreePerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526103786009819055600a556001600b556608e1bc9bf04000600c556032600d819055600e55600f805460ff191690553480156200004057600080fd5b5060405162001f4b38038062001f4b83398101604081905262000063916200023c565b828260026200007383826200035c565b5060036200008282826200035c565b505060008055506200009433620000a8565b6200009f81620000fa565b50505062000428565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200010462000116565b60106200011282826200035c565b5050565b6008546001600160a01b03163314620001755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019f57600080fd5b81516001600160401b0380821115620001bc57620001bc62000177565b604051601f8301601f19908116603f01168101908282118183101715620001e757620001e762000177565b816040528381526020925086838588010111156200020457600080fd5b600091505b8382101562000228578582018301518183018401529082019062000209565b600093810190920192909252949350505050565b6000806000606084860312156200025257600080fd5b83516001600160401b03808211156200026a57600080fd5b62000278878388016200018d565b945060208601519150808211156200028f57600080fd5b6200029d878388016200018d565b93506040860151915080821115620002b457600080fd5b50620002c3868287016200018d565b9150509250925092565b600181811c90821680620002e257607f821691505b6020821081036200030357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035757600081815260208120601f850160051c81016020861015620003325750805b601f850160051c820191505b8181101562000353578281556001016200033e565b5050505b505050565b81516001600160401b0381111562000378576200037862000177565b6200039081620003898454620002cd565b8462000309565b602080601f831160018114620003c85760008415620003af5750858301515b600019600386901b1c1916600185901b17855562000353565b600085815260208120601f198616915b82811015620003f957888601518255948401946001909101908401620003d8565b5085821015620004185787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611b1380620004386000396000f3fe6080604052600436106101ee5760003560e01c806370a082311161010d578063a7027357116100a0578063d5abeb011161006f578063d5abeb0114610509578063e985e9c51461051f578063f2fde38b1461053f578063f892c6e21461055f578063f968adbe1461057557600080fd5b8063a7027357146104a6578063b88d4fde146104bc578063c87b56dd146104cf578063d1239730146104ef57600080fd5b806391b7f5ed116100dc57806391b7f5ed1461043b57806395d89b411461045b578063a035b1fe14610470578063a22cb4651461048657600080fd5b806370a08231146103d3578063715018a6146103f35780637ba5e621146104085780638da5cb5b1461041d57600080fd5b80633ccfd60b1161018557806355f804b31161015457806355f804b31461035e5780636352211e1461037e5780636c0360eb1461039e5780636d7c4a4b146103b357600080fd5b80633ccfd60b1461030057806342842e0e14610315578063453c231014610328578063522ea7a01461033e57600080fd5b80630c23bb3f116101c15780630c23bb3f1461029757806318160ddd146102b757806323b872dd146102da5780632db11544146102ed57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046114af565b61058b565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d6105dd565b60405161021f9190611523565b34801561025657600080fd5b5061026a610265366004611536565b61066f565b6040516001600160a01b03909116815260200161021f565b610295610290366004611566565b6106aa565b005b3480156102a357600080fd5b506102956102b2366004611536565b6106ba565b3480156102c357600080fd5b50600154600054035b60405190815260200161021f565b6102956102e8366004611590565b6106c7565b6102956102fb366004611536565b61082c565b34801561030c57600080fd5b506102956109f0565b610295610323366004611590565b610a86565b34801561033457600080fd5b506102cc600e5481565b34801561034a57600080fd5b506102956103593660046115cc565b610aa6565b34801561036a57600080fd5b506102956103793660046116d7565b610b74565b34801561038a57600080fd5b5061026a610399366004611536565b610b88565b3480156103aa57600080fd5b5061023d610b93565b3480156103bf57600080fd5b506102956103ce366004611536565b610c21565b3480156103df57600080fd5b506102cc6103ee366004611720565b610c2e565b3480156103ff57600080fd5b50610295610c74565b34801561041457600080fd5b50610295610c88565b34801561042957600080fd5b506008546001600160a01b031661026a565b34801561044757600080fd5b50610295610456366004611536565b610ca4565b34801561046757600080fd5b5061023d610cb1565b34801561047c57600080fd5b506102cc600c5481565b34801561049257600080fd5b506102956104a136600461173b565b610cc0565b3480156104b257600080fd5b506102cc600b5481565b6102956104ca366004611777565b610d2c565b3480156104db57600080fd5b5061023d6104ea366004611536565b610d67565b3480156104fb57600080fd5b50600f546102139060ff1681565b34801561051557600080fd5b506102cc60095481565b34801561052b57600080fd5b5061021361053a3660046117f3565b610e08565b34801561054b57600080fd5b5061029561055a366004611720565b610e36565b34801561056b57600080fd5b506102cc600a5481565b34801561058157600080fd5b506102cc600d5481565b60006301ffc9a760e01b6001600160e01b0319831614806105bc57506380ac58cd60e01b6001600160e01b03198316145b806105d75750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105ec90611826565b80601f016020809104026020016040519081016040528092919081815260200182805461061890611826565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b600061067a82610eac565b61068e5761068e6333d1c03960e21b610ef1565b506000908152600660205260409020546001600160a01b031690565b6106b682826001610efb565b5050565b6106c2610f9e565b600a55565b60006106d282610ff8565b6001600160a01b0394851694909150811684146106f8576106f862a1148160e81b610ef1565b60008281526006602052604090208054338082146001600160a01b0388169091141761073c576107288633610e08565b61073c5761073c632ce44b5f60e11b610ef1565b801561074757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036107d9576001840160008181526004602052604081205490036107d75760005481146107d75760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361082357610823633a954ecd60e21b610ef1565b50505050505050565b600f5460ff166108835760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e000000000000000060448201526064015b60405180910390fd5b600954610891906001611876565b8161089f6001546000540390565b6108a99190611876565b106108e05760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b604482015260640161087a565b600c54600e54600a546001546000540310801561090357506109013361108e565b155b80156109115750600b548311155b1561091f575050600b546000905b808361092a3361108e565b6109349190611876565b11156109735760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b604482015260640161087a565b8261097d3361108e565b6000036109875750825b6109918382611889565b3410156109e05760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e000000604482015260640161087a565b6109ea33856110b7565b50505050565b6109f8610f9e565b604051600090339047908381818185875af1925050503d8060008114610a3a576040519150601f19603f3d011682016040523d82523d6000602084013e610a3f565b606091505b5050905080610a835760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161087a565b50565b610aa183838360405180602001604052806000815250610d2c565b505050565b610aae610f9e565b6000610abd6001546000540390565b90506000610acb8386611889565b600954909150610adb8284611876565b1115610b1f5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b604482015260640161087a565b60005b83811015610b6c57610b5a858583818110610b3f57610b3f6118a0565b9050602002016020810190610b549190611720565b876110b7565b80610b64816118b6565b915050610b22565b505050505050565b610b7c610f9e565b60106106b68282611915565b60006105d782610ff8565b60108054610ba090611826565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcc90611826565b8015610c195780601f10610bee57610100808354040283529160200191610c19565b820191906000526020600020905b815481529060010190602001808311610bfc57829003601f168201915b505050505081565b610c29610f9e565b600b55565b60006001600160a01b038216610c4e57610c4e6323d3ad8160e21b610ef1565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610c7c610f9e565b610c8660006110d1565b565b610c90610f9e565b600f805460ff19811660ff90911615179055565b610cac610f9e565b600c55565b6060600380546105ec90611826565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d378484846106c7565b6001600160a01b0383163b156109ea57610d5384848484611123565b6109ea576109ea6368d2bf6b60e11b610ef1565b6060610d7282610eac565b610dd65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161087a565b6010610de183611206565b604051602001610df29291906119d5565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610e3e610f9e565b6001600160a01b038116610ea35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087a565b610a83816110d1565b60008054821015610eec5760005b5060008281526004602052604081205490819003610ee257610edb83611a6c565b9250610eba565b600160e01b161590505b919050565b8060005260046000fd5b6000610f0683610b88565b9050818015610f1e5750336001600160a01b03821614155b15610f4157610f2d8133610e08565b610f4157610f416367d9dca160e11b610ef1565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610c865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087a565b6000818152600460205260408120549081900361106b57600054821061102857611028636f96cda160e11b610ef1565b5b5060001901600081815260046020526040902054801561102957600160e01b811660000361105657919050565b611066636f96cda160e11b610ef1565b611029565b600160e01b811660000361107e57919050565b610eec636f96cda160e11b610ef1565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6106b6828260405180602001604052806000815250611299565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611158903390899088908890600401611a83565b6020604051808303816000875af1925050508015611193575060408051601f3d908101601f1916820190925261119091810190611ac0565b60015b6111e8573d8080156111c1576040519150601f19603f3d011682016040523d82523d6000602084013e6111c6565b606091505b5080516000036111e0576111e06368d2bf6b60e11b610ef1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600061121383611302565b600101905060008167ffffffffffffffff8111156112335761123361164b565b6040519080825280601f01601f19166020018201604052801561125d576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461126757509392505050565b6112a383836113da565b6001600160a01b0383163b15610aa1576000548281035b6112cd6000868380600101945086611123565b6112e1576112e16368d2bf6b60e11b610ef1565b8181106112ba5781600054146112fb576112fb6000610ef1565b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113415772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061136d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061138b57662386f26fc10000830492506010015b6305f5e10083106113a3576305f5e100830492506008015b61271083106113b757612710830492506004015b606483106113c9576064830492506002015b600a83106105d75760010192915050565b60008054908290036113f6576113f663b562e8dd60e01b610ef1565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361145457611454622e076360e81b610ef1565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611459575060005550505050565b6001600160e01b031981168114610a8357600080fd5b6000602082840312156114c157600080fd5b81356114cc81611499565b9392505050565b60005b838110156114ee5781810151838201526020016114d6565b50506000910152565b6000815180845261150f8160208601602086016114d3565b601f01601f19169290920160200192915050565b6020815260006114cc60208301846114f7565b60006020828403121561154857600080fd5b5035919050565b80356001600160a01b0381168114610eec57600080fd5b6000806040838503121561157957600080fd5b6115828361154f565b946020939093013593505050565b6000806000606084860312156115a557600080fd5b6115ae8461154f565b92506115bc6020850161154f565b9150604084013590509250925092565b6000806000604084860312156115e157600080fd5b83359250602084013567ffffffffffffffff8082111561160057600080fd5b818601915086601f83011261161457600080fd5b81358181111561162357600080fd5b8760208260051b850101111561163857600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561167c5761167c61164b565b604051601f8501601f19908116603f011681019082821181831017156116a4576116a461164b565b816040528093508581528686860111156116bd57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116e957600080fd5b813567ffffffffffffffff81111561170057600080fd5b8201601f8101841361171157600080fd5b6111fe84823560208401611661565b60006020828403121561173257600080fd5b6114cc8261154f565b6000806040838503121561174e57600080fd5b6117578361154f565b91506020830135801515811461176c57600080fd5b809150509250929050565b6000806000806080858703121561178d57600080fd5b6117968561154f565b93506117a46020860161154f565b925060408501359150606085013567ffffffffffffffff8111156117c757600080fd5b8501601f810187136117d857600080fd5b6117e787823560208401611661565b91505092959194509250565b6000806040838503121561180657600080fd5b61180f8361154f565b915061181d6020840161154f565b90509250929050565b600181811c9082168061183a57607f821691505b60208210810361185a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105d7576105d7611860565b80820281158282048414176105d7576105d7611860565b634e487b7160e01b600052603260045260246000fd5b6000600182016118c8576118c8611860565b5060010190565b601f821115610aa157600081815260208120601f850160051c810160208610156118f65750805b601f850160051c820191505b81811015610b6c57828155600101611902565b815167ffffffffffffffff81111561192f5761192f61164b565b6119438161193d8454611826565b846118cf565b602080601f83116001811461197857600084156119605750858301515b600019600386901b1c1916600185901b178555610b6c565b600085815260208120601f198616915b828110156119a757888601518255948401946001909101908401611988565b50858210156119c55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546119e381611826565b600182811680156119fb5760018114611a1057611a3f565b60ff1984168752821515830287019450611a3f565b8860005260208060002060005b85811015611a365781548a820152908401908201611a1d565b50505082870194505b505050508351611a538183602088016114d3565b64173539b7b760d91b9101908152600501949350505050565b600081611a7b57611a7b611860565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ab6908301846114f7565b9695505050505050565b600060208284031215611ad257600080fd5b81516114cc8161149956fea2646970667358221220d261ac656ddbef983340d67106d47b18348072057a213929fc2c773a4acab0c364736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000008446f776e706f75720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008446f776e706f75720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656963633262373477646867656d7034766235646b716c707a37726a687937697572796b696e75716c656b7778686d333276717a70752f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c806370a082311161010d578063a7027357116100a0578063d5abeb011161006f578063d5abeb0114610509578063e985e9c51461051f578063f2fde38b1461053f578063f892c6e21461055f578063f968adbe1461057557600080fd5b8063a7027357146104a6578063b88d4fde146104bc578063c87b56dd146104cf578063d1239730146104ef57600080fd5b806391b7f5ed116100dc57806391b7f5ed1461043b57806395d89b411461045b578063a035b1fe14610470578063a22cb4651461048657600080fd5b806370a08231146103d3578063715018a6146103f35780637ba5e621146104085780638da5cb5b1461041d57600080fd5b80633ccfd60b1161018557806355f804b31161015457806355f804b31461035e5780636352211e1461037e5780636c0360eb1461039e5780636d7c4a4b146103b357600080fd5b80633ccfd60b1461030057806342842e0e14610315578063453c231014610328578063522ea7a01461033e57600080fd5b80630c23bb3f116101c15780630c23bb3f1461029757806318160ddd146102b757806323b872dd146102da5780632db11544146102ed57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046114af565b61058b565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d6105dd565b60405161021f9190611523565b34801561025657600080fd5b5061026a610265366004611536565b61066f565b6040516001600160a01b03909116815260200161021f565b610295610290366004611566565b6106aa565b005b3480156102a357600080fd5b506102956102b2366004611536565b6106ba565b3480156102c357600080fd5b50600154600054035b60405190815260200161021f565b6102956102e8366004611590565b6106c7565b6102956102fb366004611536565b61082c565b34801561030c57600080fd5b506102956109f0565b610295610323366004611590565b610a86565b34801561033457600080fd5b506102cc600e5481565b34801561034a57600080fd5b506102956103593660046115cc565b610aa6565b34801561036a57600080fd5b506102956103793660046116d7565b610b74565b34801561038a57600080fd5b5061026a610399366004611536565b610b88565b3480156103aa57600080fd5b5061023d610b93565b3480156103bf57600080fd5b506102956103ce366004611536565b610c21565b3480156103df57600080fd5b506102cc6103ee366004611720565b610c2e565b3480156103ff57600080fd5b50610295610c74565b34801561041457600080fd5b50610295610c88565b34801561042957600080fd5b506008546001600160a01b031661026a565b34801561044757600080fd5b50610295610456366004611536565b610ca4565b34801561046757600080fd5b5061023d610cb1565b34801561047c57600080fd5b506102cc600c5481565b34801561049257600080fd5b506102956104a136600461173b565b610cc0565b3480156104b257600080fd5b506102cc600b5481565b6102956104ca366004611777565b610d2c565b3480156104db57600080fd5b5061023d6104ea366004611536565b610d67565b3480156104fb57600080fd5b50600f546102139060ff1681565b34801561051557600080fd5b506102cc60095481565b34801561052b57600080fd5b5061021361053a3660046117f3565b610e08565b34801561054b57600080fd5b5061029561055a366004611720565b610e36565b34801561056b57600080fd5b506102cc600a5481565b34801561058157600080fd5b506102cc600d5481565b60006301ffc9a760e01b6001600160e01b0319831614806105bc57506380ac58cd60e01b6001600160e01b03198316145b806105d75750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105ec90611826565b80601f016020809104026020016040519081016040528092919081815260200182805461061890611826565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b600061067a82610eac565b61068e5761068e6333d1c03960e21b610ef1565b506000908152600660205260409020546001600160a01b031690565b6106b682826001610efb565b5050565b6106c2610f9e565b600a55565b60006106d282610ff8565b6001600160a01b0394851694909150811684146106f8576106f862a1148160e81b610ef1565b60008281526006602052604090208054338082146001600160a01b0388169091141761073c576107288633610e08565b61073c5761073c632ce44b5f60e11b610ef1565b801561074757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036107d9576001840160008181526004602052604081205490036107d75760005481146107d75760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361082357610823633a954ecd60e21b610ef1565b50505050505050565b600f5460ff166108835760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e000000000000000060448201526064015b60405180910390fd5b600954610891906001611876565b8161089f6001546000540390565b6108a99190611876565b106108e05760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b604482015260640161087a565b600c54600e54600a546001546000540310801561090357506109013361108e565b155b80156109115750600b548311155b1561091f575050600b546000905b808361092a3361108e565b6109349190611876565b11156109735760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b604482015260640161087a565b8261097d3361108e565b6000036109875750825b6109918382611889565b3410156109e05760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e000000604482015260640161087a565b6109ea33856110b7565b50505050565b6109f8610f9e565b604051600090339047908381818185875af1925050503d8060008114610a3a576040519150601f19603f3d011682016040523d82523d6000602084013e610a3f565b606091505b5050905080610a835760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161087a565b50565b610aa183838360405180602001604052806000815250610d2c565b505050565b610aae610f9e565b6000610abd6001546000540390565b90506000610acb8386611889565b600954909150610adb8284611876565b1115610b1f5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b604482015260640161087a565b60005b83811015610b6c57610b5a858583818110610b3f57610b3f6118a0565b9050602002016020810190610b549190611720565b876110b7565b80610b64816118b6565b915050610b22565b505050505050565b610b7c610f9e565b60106106b68282611915565b60006105d782610ff8565b60108054610ba090611826565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcc90611826565b8015610c195780601f10610bee57610100808354040283529160200191610c19565b820191906000526020600020905b815481529060010190602001808311610bfc57829003601f168201915b505050505081565b610c29610f9e565b600b55565b60006001600160a01b038216610c4e57610c4e6323d3ad8160e21b610ef1565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610c7c610f9e565b610c8660006110d1565b565b610c90610f9e565b600f805460ff19811660ff90911615179055565b610cac610f9e565b600c55565b6060600380546105ec90611826565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d378484846106c7565b6001600160a01b0383163b156109ea57610d5384848484611123565b6109ea576109ea6368d2bf6b60e11b610ef1565b6060610d7282610eac565b610dd65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161087a565b6010610de183611206565b604051602001610df29291906119d5565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610e3e610f9e565b6001600160a01b038116610ea35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087a565b610a83816110d1565b60008054821015610eec5760005b5060008281526004602052604081205490819003610ee257610edb83611a6c565b9250610eba565b600160e01b161590505b919050565b8060005260046000fd5b6000610f0683610b88565b9050818015610f1e5750336001600160a01b03821614155b15610f4157610f2d8133610e08565b610f4157610f416367d9dca160e11b610ef1565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610c865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087a565b6000818152600460205260408120549081900361106b57600054821061102857611028636f96cda160e11b610ef1565b5b5060001901600081815260046020526040902054801561102957600160e01b811660000361105657919050565b611066636f96cda160e11b610ef1565b611029565b600160e01b811660000361107e57919050565b610eec636f96cda160e11b610ef1565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6106b6828260405180602001604052806000815250611299565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611158903390899088908890600401611a83565b6020604051808303816000875af1925050508015611193575060408051601f3d908101601f1916820190925261119091810190611ac0565b60015b6111e8573d8080156111c1576040519150601f19603f3d011682016040523d82523d6000602084013e6111c6565b606091505b5080516000036111e0576111e06368d2bf6b60e11b610ef1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600061121383611302565b600101905060008167ffffffffffffffff8111156112335761123361164b565b6040519080825280601f01601f19166020018201604052801561125d576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461126757509392505050565b6112a383836113da565b6001600160a01b0383163b15610aa1576000548281035b6112cd6000868380600101945086611123565b6112e1576112e16368d2bf6b60e11b610ef1565b8181106112ba5781600054146112fb576112fb6000610ef1565b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113415772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061136d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061138b57662386f26fc10000830492506010015b6305f5e10083106113a3576305f5e100830492506008015b61271083106113b757612710830492506004015b606483106113c9576064830492506002015b600a83106105d75760010192915050565b60008054908290036113f6576113f663b562e8dd60e01b610ef1565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361145457611454622e076360e81b610ef1565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611459575060005550505050565b6001600160e01b031981168114610a8357600080fd5b6000602082840312156114c157600080fd5b81356114cc81611499565b9392505050565b60005b838110156114ee5781810151838201526020016114d6565b50506000910152565b6000815180845261150f8160208601602086016114d3565b601f01601f19169290920160200192915050565b6020815260006114cc60208301846114f7565b60006020828403121561154857600080fd5b5035919050565b80356001600160a01b0381168114610eec57600080fd5b6000806040838503121561157957600080fd5b6115828361154f565b946020939093013593505050565b6000806000606084860312156115a557600080fd5b6115ae8461154f565b92506115bc6020850161154f565b9150604084013590509250925092565b6000806000604084860312156115e157600080fd5b83359250602084013567ffffffffffffffff8082111561160057600080fd5b818601915086601f83011261161457600080fd5b81358181111561162357600080fd5b8760208260051b850101111561163857600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561167c5761167c61164b565b604051601f8501601f19908116603f011681019082821181831017156116a4576116a461164b565b816040528093508581528686860111156116bd57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116e957600080fd5b813567ffffffffffffffff81111561170057600080fd5b8201601f8101841361171157600080fd5b6111fe84823560208401611661565b60006020828403121561173257600080fd5b6114cc8261154f565b6000806040838503121561174e57600080fd5b6117578361154f565b91506020830135801515811461176c57600080fd5b809150509250929050565b6000806000806080858703121561178d57600080fd5b6117968561154f565b93506117a46020860161154f565b925060408501359150606085013567ffffffffffffffff8111156117c757600080fd5b8501601f810187136117d857600080fd5b6117e787823560208401611661565b91505092959194509250565b6000806040838503121561180657600080fd5b61180f8361154f565b915061181d6020840161154f565b90509250929050565b600181811c9082168061183a57607f821691505b60208210810361185a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105d7576105d7611860565b80820281158282048414176105d7576105d7611860565b634e487b7160e01b600052603260045260246000fd5b6000600182016118c8576118c8611860565b5060010190565b601f821115610aa157600081815260208120601f850160051c810160208610156118f65750805b601f850160051c820191505b81811015610b6c57828155600101611902565b815167ffffffffffffffff81111561192f5761192f61164b565b6119438161193d8454611826565b846118cf565b602080601f83116001811461197857600084156119605750858301515b600019600386901b1c1916600185901b178555610b6c565b600085815260208120601f198616915b828110156119a757888601518255948401946001909101908401611988565b50858210156119c55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546119e381611826565b600182811680156119fb5760018114611a1057611a3f565b60ff1984168752821515830287019450611a3f565b8860005260208060002060005b85811015611a365781548a820152908401908201611a1d565b50505082870194505b505050508351611a538183602088016114d3565b64173539b7b760d91b9101908152600501949350505050565b600081611a7b57611a7b611860565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ab6908301846114f7565b9695505050505050565b600060208284031215611ad257600080fd5b81516114cc8161149956fea2646970667358221220d261ac656ddbef983340d67106d47b18348072057a213929fc2c773a4acab0c364736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000008446f776e706f75720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008446f776e706f75720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656963633262373477646867656d7034766235646b716c707a37726a687937697572796b696e75716c656b7778686d333276717a70752f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Downpour
Arg [1] : _symbol (string): Downpour
Arg [2] : _initBaseURI (string): ipfs://bafybeicc2b74wdhgemp4vb5dkqlpz7rjhy7iurykinuqlekwxhm32vqzpu/

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 446f776e706f7572000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 446f776e706f7572000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f6261667962656963633262373477646867656d703476623564
Arg [9] : 6b716c707a37726a687937697572796b696e75716c656b7778686d333276717a
Arg [10] : 70752f0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

72721:3192:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37384:639;;;;;;;;;;-1:-1:-1;37384:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;37384:639:0;;;;;;;;38286:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;45320:227::-;;;;;;;;;;-1:-1:-1;45320:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;45320:227:0;1533:203:1;45037:124:0;;;;;;:::i;:::-;;:::i;:::-;;75474:104;;;;;;;;;;-1:-1:-1;75474:104:0;;;;;:::i;:::-;;:::i;34028:323::-;;;;;;;;;;-1:-1:-1;34302:12:0;;34089:7;34286:13;:28;34028:323;;;2324:25:1;;;2312:2;2297:18;34028:323:0;2178:177:1;49054:3523:0;;;;;;:::i;:::-;;:::i;73776:962::-;;;;;;:::i;:::-;;:::i;75704:206::-;;;;;;;;;;;;;:::i;52673:193::-;;;;;;:::i;:::-;;:::i;73000:32::-;;;;;;;;;;;;;;;;73285:483;;;;;;;;;;-1:-1:-1;73285:483:0;;;;;:::i;:::-;;:::i;75278:88::-;;;;;;;;;;-1:-1:-1;75278:88:0;;;;;:::i;:::-;;:::i;39688:152::-;;;;;;;;;;-1:-1:-1;39688:152:0;;;;;:::i;:::-;;:::i;73077:21::-;;;;;;;;;;;;;:::i;75586:110::-;;;;;;;;;;-1:-1:-1;75586:110:0;;;;;:::i;:::-;;:::i;35212:242::-;;;;;;;;;;-1:-1:-1;35212:242:0;;;;;:::i;:::-;;:::i;18074:103::-;;;;;;;;;;;;;:::i;75186:84::-;;;;;;;;;;;;;:::i;17433:87::-;;;;;;;;;;-1:-1:-1;17506:6:0;;-1:-1:-1;;;;;17506:6:0;17433:87;;75374:92;;;;;;;;;;-1:-1:-1;75374:92:0;;;;;:::i;:::-;;:::i;38462:104::-;;;;;;;;;;;;;:::i;72923:35::-;;;;;;;;;;;;;;;;45887:234;;;;;;;;;;-1:-1:-1;45887:234:0;;;;;:::i;:::-;;:::i;72881:35::-;;;;;;;;;;;;;;;;53464:416;;;;;;:::i;:::-;;:::i;74862:316::-;;;;;;;;;;-1:-1:-1;74862:316:0;;;;;:::i;:::-;;:::i;73039:31::-;;;;;;;;;;-1:-1:-1;73039:31:0;;;;;;;;72803:30;;;;;;;;;;;;;;;;46278:164;;;;;;;;;;-1:-1:-1;46278:164:0;;;;;:::i;:::-;;:::i;18332:201::-;;;;;;;;;;-1:-1:-1;18332:201:0;;;;;:::i;:::-;;:::i;72840:34::-;;;;;;;;;;;;;;;;72965:28;;;;;;;;;;;;;;;;37384:639;37469:4;-1:-1:-1;;;;;;;;;37793:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37870:25:0;;;37793:102;:179;;;-1:-1:-1;;;;;;;;;;37947:25:0;;;37793:179;37773:199;37384:639;-1:-1:-1;;37384:639:0:o;38286:100::-;38340:13;38373:5;38366:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38286:100;:::o;45320:227::-;45396:7;45421:16;45429:7;45421;:16::i;:::-;45416:73;;45439:50;-1:-1:-1;;;45439:7:0;:50::i;:::-;-1:-1:-1;45509:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;45509:30:0;;45320:227::o;45037:124::-;45126:27;45135:2;45139:7;45148:4;45126:8;:27::i;:::-;45037:124;;:::o;75474:104::-;17319:13;:11;:13::i;:::-;75547::::1;:23:::0;75474:104::o;49054:3523::-;49196:27;49226;49245:7;49226:18;:27::i;:::-;-1:-1:-1;;;;;49381:22:0;;;;49196:57;;-1:-1:-1;49441:45:0;;;;49437:95;;49488:44;-1:-1:-1;;;49488:7:0;:44::i;:::-;49546:27;48162:24;;;:15;:24;;;;;48390:26;;70546:10;47787:30;;;-1:-1:-1;;;;;47480:28:0;;47765:20;;;47762:56;49732:189;;49825:43;49842:4;70546:10;46278:164;:::i;49825:43::-;49820:101;;49870:51;-1:-1:-1;;;49870:7:0;:51::i;:::-;50070:15;50067:160;;;50210:1;50189:19;50182:30;50067:160;-1:-1:-1;;;;;50607:24:0;;;;;;;:18;:24;;;;;;50605:26;;-1:-1:-1;;50605:26:0;;;50676:22;;;;;;;;;50674:24;;-1:-1:-1;50674:24:0;;;44139:11;44114:23;44110:41;44097:63;-1:-1:-1;;;44097:63:0;50969:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;51264:47:0;;:52;;51260:627;;51369:1;51359:11;;51337:19;51492:30;;;:17;:30;;;;;;:35;;51488:384;;51630:13;;51615:11;:28;51611:242;;51777:30;;;;:17;:30;;;;;:52;;;51611:242;51318:569;51260:627;-1:-1:-1;;;;;52019:20:0;;52399:7;52019:20;52329:4;52271:25;52000:16;;52136:299;52460:8;52472:1;52460:13;52456:58;;52475:39;-1:-1:-1;;;52475:7:0;:39::i;:::-;49185:3392;;;;49054:3523;;;:::o;73776:962::-;73852:11;;;;73844:48;;;;-1:-1:-1;;;73844:48:0;;6673:2:1;73844:48:0;;;6655:21:1;6712:2;6692:18;;;6685:30;6751:26;6731:18;;;6724:54;6795:18;;73844:48:0;;;;;;;;;73938:9;;:13;;73950:1;73938:13;:::i;:::-;73927:8;73911:13;34302:12;;34089:7;34286:13;:28;;34028:323;73911:13;:24;;;;:::i;:::-;:40;73903:60;;;;-1:-1:-1;;;73903:60:0;;7288:2:1;73903:60:0;;;7270:21:1;7327:1;7307:18;;;7300:29;-1:-1:-1;;;7345:18:1;;;7338:37;7392:18;;73903:60:0;7086:330:1;73903:60:0;73989:5;;74029:12;;74098:13;;34302:12;;34089:7;34286:13;:28;74082:29;:76;;;;;74128:25;74142:10;74128:13;:25::i;:::-;:30;74082:76;:121;;;;;74187:16;;74175:8;:28;;74082:121;74064:233;;;-1:-1:-1;;74269:16:0;;74237:1;;74064:233;74371:13;74359:8;74331:25;74345:10;74331:13;:25::i;:::-;:36;;;;:::i;:::-;:53;;74309:117;;;;-1:-1:-1;;;74309:117:0;;7623:2:1;74309:117:0;;;7605:21:1;7662:2;7642:18;;;7635:30;-1:-1:-1;;;7681:18:1;;;7674:44;7735:18;;74309:117:0;7421:338:1;74309:117:0;74462:8;74485:25;74499:10;74485:13;:25::i;:::-;74514:1;74485:30;74481:86;;-1:-1:-1;74547:8:0;74481:86;74612:19;74627:4;74612:12;:19;:::i;:::-;74599:9;:32;;74577:111;;;;-1:-1:-1;;;74577:111:0;;8139:2:1;74577:111:0;;;8121:21:1;8178:2;8158:18;;;8151:30;8217:31;8197:18;;;8190:59;8266:18;;74577:111:0;7937:353:1;74577:111:0;74699:31;74709:10;74721:8;74699:9;:31::i;:::-;73833:905;;;73776:962;:::o;75704:206::-;17319:13;:11;:13::i;:::-;75773:82:::1;::::0;75755:12:::1;::::0;75781:10:::1;::::0;75819:21:::1;::::0;75755:12;75773:82;75755:12;75773:82;75819:21;75781:10;75773:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75754:101;;;75874:7;75866:36;;;::::0;-1:-1:-1;;;75866:36:0;;8707:2:1;75866:36:0::1;::::0;::::1;8689:21:1::0;8746:2;8726:18;;;8719:30;-1:-1:-1;;;8765:18:1;;;8758:46;8821:18;;75866:36:0::1;8505:340:1::0;75866:36:0::1;75743:167;75704:206::o:0;52673:193::-;52819:39;52836:4;52842:2;52846:7;52819:39;;;;;;;;;;;;:16;:39::i;:::-;52673:193;;;:::o;73285:483::-;17319:13;:11;:13::i;:::-;73393:19:::1;73423:13;34302:12:::0;;34089:7;34286:13;:28;;34028:323;73423:13:::1;73393:44:::0;-1:-1:-1;73445:16:0::1;73466:36;73486:9:::0;73466:17;:36:::1;:::i;:::-;73546:9;::::0;73445:57;;-1:-1:-1;73517:25:0::1;73445:57:::0;73517:11;:25:::1;:::i;:::-;:38;;73509:70;;;::::0;-1:-1:-1;;;73509:70:0;;9052:2:1;73509:70:0::1;::::0;::::1;9034:21:1::0;9091:2;9071:18;;;9064:30;-1:-1:-1;;;9110:18:1;;;9103:49;9169:18;;73509:70:0::1;8850:343:1::0;73509:70:0::1;73592:9;73587:116;73607:20:::0;;::::1;73587:116;;;73649:42;73659:9;;73669:1;73659:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;73673:17;73649:9;:42::i;:::-;73629:3:::0;::::1;::::0;::::1;:::i;:::-;;;;73587:116;;;-1:-1:-1::0;;;;;;73285:483:0:o;75278:88::-;17319:13;:11;:13::i;:::-;75345:7:::1;:13;75355:3:::0;75345:7;:13:::1;:::i;39688:152::-:0;39760:7;39803:27;39822:7;39803:18;:27::i;73077:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;75586:110::-;17319:13;:11;:13::i;:::-;75662:16:::1;:26:::0;75586:110::o;35212:242::-;35284:7;-1:-1:-1;;;;;35308:19:0;;35304:69;;35329:44;-1:-1:-1;;;35329:7:0;:44::i;:::-;-1:-1:-1;;;;;;35391:25:0;;;;;:18;:25;;;;;;29371:13;35391:55;;35212:242::o;18074:103::-;17319:13;:11;:13::i;:::-;18139:30:::1;18166:1;18139:18;:30::i;:::-;18074:103::o:0;75186:84::-;17319:13;:11;:13::i;:::-;75251:11:::1;::::0;;-1:-1:-1;;75236:26:0;::::1;75251:11;::::0;;::::1;75250:12;75236:26;::::0;;75186:84::o;75374:92::-;17319:13;:11;:13::i;:::-;75441:5:::1;:17:::0;75374:92::o;38462:104::-;38518:13;38551:7;38544:14;;;;;:::i;45887:234::-;70546:10;45982:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45982:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45982:60:0;;;;;;;;;;46058:55;;540:41:1;;;45982:49:0;;70546:10;46058:55;;513:18:1;46058:55:0;;;;;;;45887:234;;:::o;53464:416::-;53639:31;53652:4;53658:2;53662:7;53639:12;:31::i;:::-;-1:-1:-1;;;;;53685:14:0;;;:19;53681:192;;53724:56;53755:4;53761:2;53765:7;53774:5;53724:30;:56::i;:::-;53719:154;;53801:56;-1:-1:-1;;;53801:7:0;:56::i;74862:316::-;74951:13;74999:16;75007:7;74999;:16::i;:::-;74977:113;;;;-1:-1:-1;;;74977:113:0;;11876:2:1;74977:113:0;;;11858:21:1;11915:2;11895:18;;;11888:30;11954:34;11934:18;;;11927:62;-1:-1:-1;;;12005:18:1;;;11998:45;12060:19;;74977:113:0;11674:411:1;74977:113:0;75132:7;75141:18;:7;:16;:18::i;:::-;75115:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;75101:69;;74862:316;;;:::o;46278:164::-;-1:-1:-1;;;;;46399:25:0;;;46375:4;46399:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;46278:164::o;18332:201::-;17319:13;:11;:13::i;:::-;-1:-1:-1;;;;;18421:22:0;::::1;18413:73;;;::::0;-1:-1:-1;;;18413:73:0;;13484:2:1;18413:73:0::1;::::0;::::1;13466:21:1::0;13523:2;13503:18;;;13496:30;13562:34;13542:18;;;13535:62;-1:-1:-1;;;13613:18:1;;;13606:36;13659:19;;18413:73:0::1;13282:402:1::0;18413:73:0::1;18497:28;18516:8;18497:18;:28::i;46700:368::-:0;46765:11;46850:13;;46840:7;:23;46836:214;;;46884:14;46917:60;-1:-1:-1;46934:26:0;;;;:17;:26;;;;;;;46924:42;;;46917:60;;46968:9;;;:::i;:::-;;;46917:60;;;-1:-1:-1;;;47005:24:0;:29;;-1:-1:-1;46836:214:0;46700:368;;;:::o;72478:165::-;72579:13;72573:4;72566:27;72620:4;72614;72607:18;63911:474;64040:13;64056:16;64064:7;64056;:16::i;:::-;64040:32;;64089:13;:45;;;;-1:-1:-1;70546:10:0;-1:-1:-1;;;;;64106:28:0;;;;64089:45;64085:201;;;64154:44;64171:5;70546:10;46278:164;:::i;64154:44::-;64149:137;;64219:51;-1:-1:-1;;;64219:7:0;:51::i;:::-;64298:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;64298:35:0;-1:-1:-1;;;;;64298:35:0;;;;;;;;;64349:28;;64298:24;;64349:28;;;;;;;64029:356;63911:474;;;:::o;17598:132::-;17506:6;;-1:-1:-1;;;;;17506:6:0;70546:10;17662:23;17654:68;;;;-1:-1:-1;;;17654:68:0;;14032:2:1;17654:68:0;;;14014:21:1;;;14051:18;;;14044:30;14110:34;14090:18;;;14083:62;14162:18;;17654:68:0;13830:356:1;41168:2012:0;41318:26;;;;:17;:26;;;;;;;41444:11;;;41440:1292;;41491:13;;41480:7;:24;41476:77;;41506:47;-1:-1:-1;;;41506:7:0;:47::i;:::-;42110:607;-1:-1:-1;;;42206:9:0;42188:28;;;;:17;:28;;;;;;42262:25;;42110:607;42262:25;-1:-1:-1;;;42314:6:0;:24;42342:1;42314:29;42310:48;;41168:2012;;;:::o;42310:48::-;42650:47;-1:-1:-1;;;42650:7:0;:47::i;:::-;42110:607;;41440:1292;-1:-1:-1;;;43059:6:0;:24;43087:1;43059:29;43055:48;;41168:2012;;;:::o;43055:48::-;43125:47;-1:-1:-1;;;43125:7:0;:47::i;35536:178::-;-1:-1:-1;;;;;35625:25:0;35597:7;35625:25;;;:18;:25;;29509:2;35625:25;;;;;:50;;29371:13;35624:82;;35536:178::o;62993:112::-;63070:27;63080:2;63084:8;63070:27;;;;;;;;;;;;:9;:27::i;18693:191::-;18786:6;;;-1:-1:-1;;;;;18803:17:0;;;-1:-1:-1;;;;;;18803:17:0;;;;;;;18836:40;;18786:6;;;18803:17;18786:6;;18836:40;;18767:16;;18836:40;18756:128;18693:191;:::o;55964:691::-;56148:88;;-1:-1:-1;;;56148:88:0;;56127:4;;-1:-1:-1;;;;;56148:45:0;;;;;:88;;70546:10;;56215:4;;56221:7;;56230:5;;56148:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56148:88:0;;;;;;;;-1:-1:-1;;56148:88:0;;;;;;;;;;;;:::i;:::-;;;56144:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56431:6;:13;56448:1;56431:18;56427:115;;56470:56;-1:-1:-1;;;56470:7:0;:56::i;:::-;56614:6;56608:13;56599:6;56595:2;56591:15;56584:38;56144:504;-1:-1:-1;;;;;;56307:64:0;-1:-1:-1;;;56307:64:0;;-1:-1:-1;56144:504:0;55964:691;;;;;;:::o;13305:716::-;13361:13;13412:14;13429:17;13440:5;13429:10;:17::i;:::-;13449:1;13429:21;13412:38;;13465:20;13499:6;13488:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13488:18:0;-1:-1:-1;13465:41:0;-1:-1:-1;13630:28:0;;;13646:2;13630:28;13687:288;-1:-1:-1;;13719:5:0;-1:-1:-1;;;13856:2:0;13845:14;;13840:30;13719:5;13827:44;13917:2;13908:11;;;-1:-1:-1;13938:21:0;13687:288;13938:21;-1:-1:-1;13996:6:0;13305:716;-1:-1:-1;;;13305:716:0:o;62201:708::-;62332:19;62338:2;62342:8;62332:5;:19::i;:::-;-1:-1:-1;;;;;62393:14:0;;;:19;62389:502;;62433:11;62447:13;62495:14;;;62528:242;62559:62;62598:1;62602:2;62606:7;;;;;;62615:5;62559:30;:62::i;:::-;62554:176;;62650:56;-1:-1:-1;;;62650:7:0;:56::i;:::-;62765:3;62757:5;:11;62528:242;;62852:3;62835:13;;:20;62831:44;;62857:18;62872:1;62857:7;:18::i;:::-;62414:477;;62201:708;;;:::o;10171:922::-;10224:7;;-1:-1:-1;;;10302:15:0;;10298:102;;-1:-1:-1;;;10338:15:0;;;-1:-1:-1;10382:2:0;10372:12;10298:102;10427:6;10418:5;:15;10414:102;;10463:6;10454:15;;;-1:-1:-1;10498:2:0;10488:12;10414:102;10543:6;10534:5;:15;10530:102;;10579:6;10570:15;;;-1:-1:-1;10614:2:0;10604:12;10530:102;10659:5;10650;:14;10646:99;;10694:5;10685:14;;;-1:-1:-1;10728:1:0;10718:11;10646:99;10772:5;10763;:14;10759:99;;10807:5;10798:14;;;-1:-1:-1;10841:1:0;10831:11;10759:99;10885:5;10876;:14;10872:99;;10920:5;10911:14;;;-1:-1:-1;10954:1:0;10944:11;10872:99;10998:5;10989;:14;10985:66;;11034:1;11024:11;11079:6;10171:922;-1:-1:-1;;10171:922:0:o;57117:2305::-;57190:20;57213:13;;;57241;;;57237:53;;57256:34;-1:-1:-1;;;57256:7:0;:34::i;:::-;57803:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;43965:28:0;;44139:11;44114:23;44110:41;44583:1;44570:15;;44544:24;44540:46;44107:52;44097:63;;57803:173;;;58194:22;;;:18;:22;;;;;:71;;58232:32;58220:45;;58194:71;;;43965:28;58455:13;;;58451:54;;58470:35;-1:-1:-1;;;58470:7:0;:35::i;:::-;58536:23;;;:12;58621:676;59040:7;58996:8;58951:1;58885:25;58822:1;58757;58726:358;59292:3;59279:9;;;;;;:16;58621:676;;-1:-1:-1;59313:13:0;:19;-1:-1:-1;52673:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1919:254;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:683::-;2788:6;2796;2804;2857:2;2845:9;2836:7;2832:23;2828:32;2825:52;;;2873:1;2870;2863:12;2825:52;2909:9;2896:23;2886:33;;2970:2;2959:9;2955:18;2942:32;2993:18;3034:2;3026:6;3023:14;3020:34;;;3050:1;3047;3040:12;3020:34;3088:6;3077:9;3073:22;3063:32;;3133:7;3126:4;3122:2;3118:13;3114:27;3104:55;;3155:1;3152;3145:12;3104:55;3195:2;3182:16;3221:2;3213:6;3210:14;3207:34;;;3237:1;3234;3227:12;3207:34;3290:7;3285:2;3275:6;3272:1;3268:14;3264:2;3260:23;3256:32;3253:45;3250:65;;;3311:1;3308;3301:12;3250:65;3342:2;3338;3334:11;3324:21;;3364:6;3354:16;;;;;2693:683;;;;;:::o;3381:127::-;3442:10;3437:3;3433:20;3430:1;3423:31;3473:4;3470:1;3463:15;3497:4;3494:1;3487:15;3513:632;3578:5;3608:18;3649:2;3641:6;3638:14;3635:40;;;3655:18;;:::i;:::-;3730:2;3724:9;3698:2;3784:15;;-1:-1:-1;;3780:24:1;;;3806:2;3776:33;3772:42;3760:55;;;3830:18;;;3850:22;;;3827:46;3824:72;;;3876:18;;:::i;:::-;3916:10;3912:2;3905:22;3945:6;3936:15;;3975:6;3967;3960:22;4015:3;4006:6;4001:3;3997:16;3994:25;3991:45;;;4032:1;4029;4022:12;3991:45;4082:6;4077:3;4070:4;4062:6;4058:17;4045:44;4137:1;4130:4;4121:6;4113;4109:19;4105:30;4098:41;;;;3513:632;;;;;:::o;4150:451::-;4219:6;4272:2;4260:9;4251:7;4247:23;4243:32;4240:52;;;4288:1;4285;4278:12;4240:52;4328:9;4315:23;4361:18;4353:6;4350:30;4347:50;;;4393:1;4390;4383:12;4347:50;4416:22;;4469:4;4461:13;;4457:27;-1:-1:-1;4447:55:1;;4498:1;4495;4488:12;4447:55;4521:74;4587:7;4582:2;4569:16;4564:2;4560;4556:11;4521:74;:::i;4606:186::-;4665:6;4718:2;4706:9;4697:7;4693:23;4689:32;4686:52;;;4734:1;4731;4724:12;4686:52;4757:29;4776:9;4757:29;:::i;4797:347::-;4862:6;4870;4923:2;4911:9;4902:7;4898:23;4894:32;4891:52;;;4939:1;4936;4929:12;4891:52;4962:29;4981:9;4962:29;:::i;:::-;4952:39;;5041:2;5030:9;5026:18;5013:32;5088:5;5081:13;5074:21;5067:5;5064:32;5054:60;;5110:1;5107;5100:12;5054:60;5133:5;5123:15;;;4797:347;;;;;:::o;5149:667::-;5244:6;5252;5260;5268;5321:3;5309:9;5300:7;5296:23;5292:33;5289:53;;;5338:1;5335;5328:12;5289:53;5361:29;5380:9;5361:29;:::i;:::-;5351:39;;5409:38;5443:2;5432:9;5428:18;5409:38;:::i;:::-;5399:48;;5494:2;5483:9;5479:18;5466:32;5456:42;;5549:2;5538:9;5534:18;5521:32;5576:18;5568:6;5565:30;5562:50;;;5608:1;5605;5598:12;5562:50;5631:22;;5684:4;5676:13;;5672:27;-1:-1:-1;5662:55:1;;5713:1;5710;5703:12;5662:55;5736:74;5802:7;5797:2;5784:16;5779:2;5775;5771:11;5736:74;:::i;:::-;5726:84;;;5149:667;;;;;;;:::o;5821:260::-;5889:6;5897;5950:2;5938:9;5929:7;5925:23;5921:32;5918:52;;;5966:1;5963;5956:12;5918:52;5989:29;6008:9;5989:29;:::i;:::-;5979:39;;6037:38;6071:2;6060:9;6056:18;6037:38;:::i;:::-;6027:48;;5821:260;;;;;:::o;6086:380::-;6165:1;6161:12;;;;6208;;;6229:61;;6283:4;6275:6;6271:17;6261:27;;6229:61;6336:2;6328:6;6325:14;6305:18;6302:38;6299:161;;6382:10;6377:3;6373:20;6370:1;6363:31;6417:4;6414:1;6407:15;6445:4;6442:1;6435:15;6299:161;;6086:380;;;:::o;6824:127::-;6885:10;6880:3;6876:20;6873:1;6866:31;6916:4;6913:1;6906:15;6940:4;6937:1;6930:15;6956:125;7021:9;;;7042:10;;;7039:36;;;7055:18;;:::i;7764:168::-;7837:9;;;7868;;7885:15;;;7879:22;;7865:37;7855:71;;7906:18;;:::i;9198:127::-;9259:10;9254:3;9250:20;9247:1;9240:31;9290:4;9287:1;9280:15;9314:4;9311:1;9304:15;9330:135;9369:3;9390:17;;;9387:43;;9410:18;;:::i;:::-;-1:-1:-1;9457:1:1;9446:13;;9330:135::o;9596:545::-;9698:2;9693:3;9690:11;9687:448;;;9734:1;9759:5;9755:2;9748:17;9804:4;9800:2;9790:19;9874:2;9862:10;9858:19;9855:1;9851:27;9845:4;9841:38;9910:4;9898:10;9895:20;9892:47;;;-1:-1:-1;9933:4:1;9892:47;9988:2;9983:3;9979:12;9976:1;9972:20;9966:4;9962:31;9952:41;;10043:82;10061:2;10054:5;10051:13;10043:82;;;10106:17;;;10087:1;10076:13;10043:82;;10317:1352;10443:3;10437:10;10470:18;10462:6;10459:30;10456:56;;;10492:18;;:::i;:::-;10521:97;10611:6;10571:38;10603:4;10597:11;10571:38;:::i;:::-;10565:4;10521:97;:::i;:::-;10673:4;;10737:2;10726:14;;10754:1;10749:663;;;;11456:1;11473:6;11470:89;;;-1:-1:-1;11525:19:1;;;11519:26;11470:89;-1:-1:-1;;10274:1:1;10270:11;;;10266:24;10262:29;10252:40;10298:1;10294:11;;;10249:57;11572:81;;10719:944;;10749:663;9543:1;9536:14;;;9580:4;9567:18;;-1:-1:-1;;10785:20:1;;;10903:236;10917:7;10914:1;10911:14;10903:236;;;11006:19;;;11000:26;10985:42;;11098:27;;;;11066:1;11054:14;;;;10933:19;;10903:236;;;10907:3;11167:6;11158:7;11155:19;11152:201;;;11228:19;;;11222:26;-1:-1:-1;;11311:1:1;11307:14;;;11323:3;11303:24;11299:37;11295:42;11280:58;11265:74;;11152:201;-1:-1:-1;;;;;11399:1:1;11383:14;;;11379:22;11366:36;;-1:-1:-1;10317:1352:1:o;12090:1187::-;12367:3;12396:1;12429:6;12423:13;12459:36;12485:9;12459:36;:::i;:::-;12514:1;12531:18;;;12558:133;;;;12705:1;12700:356;;;;12524:532;;12558:133;-1:-1:-1;;12591:24:1;;12579:37;;12664:14;;12657:22;12645:35;;12636:45;;;-1:-1:-1;12558:133:1;;12700:356;12731:6;12728:1;12721:17;12761:4;12806:2;12803:1;12793:16;12831:1;12845:165;12859:6;12856:1;12853:13;12845:165;;;12937:14;;12924:11;;;12917:35;12980:16;;;;12874:10;;12845:165;;;12849:3;;;13039:6;13034:3;13030:16;13023:23;;12524:532;;;;;13087:6;13081:13;13103:68;13162:8;13157:3;13150:4;13142:6;13138:17;13103:68;:::i;:::-;-1:-1:-1;;;13193:18:1;;13220:22;;;13269:1;13258:13;;12090:1187;-1:-1:-1;;;;12090:1187:1:o;13689:136::-;13728:3;13756:5;13746:39;;13765:18;;:::i;:::-;-1:-1:-1;;;13801:18:1;;13689:136::o;14191:489::-;-1:-1:-1;;;;;14460:15:1;;;14442:34;;14512:15;;14507:2;14492:18;;14485:43;14559:2;14544:18;;14537:34;;;14607:3;14602:2;14587:18;;14580:31;;;14385:4;;14628:46;;14654:19;;14646:6;14628:46;:::i;:::-;14620:54;14191:489;-1:-1:-1;;;;;;14191:489:1:o;14685:249::-;14754:6;14807:2;14795:9;14786:7;14782:23;14778:32;14775:52;;;14823:1;14820;14813:12;14775:52;14855:9;14849:16;14874:30;14898:5;14874:30;:::i

Swarm Source

ipfs://d261ac656ddbef983340d67106d47b18348072057a213929fc2c773a4acab0c3
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.