Contract 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x97a186a2ced1993e338bd549b790778bb7a56e6c44bdbba18a5df72bad167157Pause249078762022-09-16 15:46:00558 days 23 hrs ago0xbbf9dbeff9381650f99c6d780e4241291f990626 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00001425 0.1
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecfQuest248481092022-09-16 7:14:34559 days 8 hrs ago0x93c460a6d3fd2be77cf07a92e67614792a45a9c5 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00004028 0.1
0xd9745bc6d650e904bdaffbc54f542d3f4fd90931e55ad7aad1130dc3887ec4b1Quest248388642022-09-16 4:59:01559 days 10 hrs ago0x96f6f8bee5a8250c49922167b034f15b9595b7c1 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00002885 0.1
0x616e89252d930f476b258138400de0558a9c5d9c08caf3ba650517d57286d397Quest248370652022-09-16 4:26:50559 days 10 hrs ago0x4c775fcde221a18c82499ca73058e3055373ffb6 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.0000531 0.1
0x155a952da9eb735af8304e485554fd2b81bfbf28830bf4b93b4642ba20077763Quest248369412022-09-16 4:24:26559 days 10 hrs ago0x64e1dd2405066335c38c38806e8e793c4ff932b2 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003293 0.1
0xc1d63619a3b309943f67ee0289bf5e26334feb0b15a3d03997dd616b6c4362ffQuest248366352022-09-16 4:17:42559 days 11 hrs ago0x2b5321c1afddfb6680aafff4df96a209e18dea1c IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00067022 0.1
0xdf0c318c030e59d66ca82a95fc485cb6e3494a4dd985481d4eacfce8e73c28a3Quest248358382022-09-16 4:05:12559 days 11 hrs ago0x57ff793903f3a85e08a5e261abaf942857f29605 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003179 0.1
0xa2165b5290fbbb3317c29bdee8e0999c8c078a7fb2b5e5ed2e0f908d5985d6e4Quest248357972022-09-16 4:04:39559 days 11 hrs ago0x3a6bfe2b87b4b7d8ec76142d0ada23fce10b74b0 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00004246 0.1
0x3d7a84461da9f0fb92dbd27d668fcbb23ca3286a9fa637474656ca8a24b19746Quest248352272022-09-16 3:57:16559 days 11 hrs ago0x37c7ccbcec11b355ec8e4f84bd7a0e30785ca7d4 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00002575 0.1
0x4b754e4f44f2ed08599e7b94025234b0d339b984f069ade3d2e396909954d1bbQuest248351472022-09-16 3:55:40559 days 11 hrs ago0xb32842f73c26ad9837f2e4bc7871e0d8e6db80f5 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.000043340.1
0x9c7e16b7512c7eeaf8bf6918134344414f8d8bcb7c4a9ffde08a10f887e7a8e8Quest248348912022-09-16 3:51:24559 days 11 hrs ago0x2c5650f9ebe5e584a525e425125fd02a64c88285 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003037 0.1
0xf2844fc1ee6f1a6948624cba1f500e66a187ccbbe24dd3f46a9d69a8b1532d1aQuest248347762022-09-16 3:49:33559 days 11 hrs ago0x2552e53e6749ad306fc44767550f812ea0465ea6 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00008163 0.1
0xac2d2a3c798f5060195d6ba53c85893e0a749d070aa66d8c067eceb7fbeee9f1Quest248342892022-09-16 3:43:06559 days 11 hrs ago0xc66fb0f838430b7f4d1def40e3bbe85990cf50ba IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00004486 0.1
0x42a5e005061d61270fc950fb3624234947ce37d91ad6e633cb3ea37102073753Quest248334502022-09-16 3:32:04559 days 11 hrs ago0x77b8a95d51d953ea3554871e67ca1f544a2ac2a5 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00004609 0.1
0xc00554f07d5fce4d9d623d43ad266fbfeb29f5ad34dcf6e15afccce629218be2Quest248323562022-09-16 3:16:08559 days 12 hrs ago0x1b88a333a687f1608fdc71711b9dacebd75d23dd IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003096 0.1
0x7d59841170ed1c5e10ff91c9ad5c0b4f73efad2294cc012624f7f6b645e9a7d5Quest248318302022-09-16 3:07:41559 days 12 hrs ago0xbb12a77dc80563b9db9b98c4f0d4da367dde489b IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.000030560.1
0xf0aa1c0a9b654dfd78de13359e6f0690a3e8144a2d996d8b0bc5dedf865c0841Quest248310252022-09-16 2:57:03559 days 12 hrs ago0x4327a9667a4e25f7e0b3482f3321bb286182f992 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.0001062 0.1
0x91ffbf12a39427be35e2e590344ca7e2c396ad762ae24966cbd9f058c0193124Quest248305932022-09-16 2:52:06559 days 12 hrs ago0x8ff55b93a1ed400e8bc44dc0026459209700a704 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00046663 0.1
0x0ee64e7eea39879ce83f1919bcad6536ebf3fbf9d80219a39b7c716f79d8fb20Quest248297792022-09-16 2:43:06559 days 12 hrs ago0x2ed7cc0236ba832d7dfb190e9bced27de1a034f2 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00004533 0.1
0x4fee0b2be5efe42e7427655849461ace6eebccf75e860363bf4bfeb0c30c1a3fQuest248292792022-09-16 2:38:39559 days 12 hrs ago0xf2f8269c5259d6ad6cd2b6b9c33a63363836eeb2 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00012279 0.1
0xf9d23d972b045659cfb7d33111d5456d09a1883641590b1debde2d00f6e6b51cQuest248278592022-09-16 2:19:48559 days 13 hrs ago0x7f43ee901368cbfae8aa0be043c127321588f22f IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003247 0.1
0x4f36f07a00705c1895feef96a96a35b83d7007e43e78d80ef1ddbdb50960b50cQuest248270272022-09-16 2:10:49559 days 13 hrs ago0xab401237f12b23fa9222bf2de75d248dfd1d46a7 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003123 0.1
0xa19d4033b1cf02df21eb85fc5ccdc60ebe7c69b6cc9f2a517dc6c668e413b44aQuest248268902022-09-16 2:09:02559 days 13 hrs ago0x7dce9d1cfb18a0db23e7e3037f1e56a3070517e2 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00002699 0.1
0x9273543b0f4313dcfc3616b95ac4000eb218d122ce37e841639756f0752e3c77Quest248267162022-09-16 2:06:38559 days 13 hrs ago0x7dce9d1cfb18a0db23e7e3037f1e56a3070517e2 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00003034 0.1
0x8ca867868fb565ca3b4566838649681193c0bcce07f3c082ac354be5d317343fQuest248266142022-09-16 2:05:09559 days 13 hrs ago0x7dce9d1cfb18a0db23e7e3037f1e56a3070517e2 IN  0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad3120 ETH0.00002841 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x97a186a2ced1993e338bd549b790778bb7a56e6c44bdbba18a5df72bad167157249078762022-09-16 15:46:00558 days 23 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x4e572433a3bfa336b6396d13afc9f69b582528610 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Realm: PARTICLE Token0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Realm: ANIMA Token0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x67c524edcc761268f3c78717553e2c8f73b764830 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x67c524edcc761268f3c78717553e2c8f73b764830 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xa34fa270ad441b9f28221d99a8ca0660c687770e0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Adventurers Of The Void: AoV Token0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x9a9bbffe07ea36295a26b54379596b6d25234dc30 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Realm: PARTICLE Token0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Realm: ANIMA Token0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x67c524edcc761268f3c78717553e2c8f73b764830 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x67c524edcc761268f3c78717553e2c8f73b764830 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xa34fa270ad441b9f28221d99a8ca0660c687770e0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Adventurers Of The Void: AoV Token0 ETH
0xbbf08fa0be144d03342606a4b8956460753488be5775f07f2bf0abfd610feecf248481092022-09-16 7:14:34559 days 8 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0x9a9bbffe07ea36295a26b54379596b6d25234dc30 ETH
0xd9745bc6d650e904bdaffbc54f542d3f4fd90931e55ad7aad1130dc3887ec4b1248388642022-09-16 4:59:01559 days 10 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Realm: PARTICLE Token0 ETH
0xd9745bc6d650e904bdaffbc54f542d3f4fd90931e55ad7aad1130dc3887ec4b1248388642022-09-16 4:59:01559 days 10 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 Realm: ANIMA Token0 ETH
0xd9745bc6d650e904bdaffbc54f542d3f4fd90931e55ad7aad1130dc3887ec4b1248388642022-09-16 4:59:01559 days 10 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
0xd9745bc6d650e904bdaffbc54f542d3f4fd90931e55ad7aad1130dc3887ec4b1248388642022-09-16 4:59:01559 days 10 hrs ago 0x21cdcdfc40edb16bbad4f34aec2ca92c6e2ad312 0xc9797a6be31f052cdfbdcc7264005c1eea0f69b90 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QuestManager

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2022-08-31
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

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

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
   * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
   */
  event ConsecutiveTransfer(
    uint256 indexed fromTokenId,
    uint256 toTokenId,
    address indexed from,
    address indexed to
  );
}

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

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

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

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

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

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

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

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

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

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

  // The 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 tokenId of the next token to be minted.
  uint256 private _currentIndex;

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

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  // Mapping from token ID to ownership details
  // An empty struct value does not necessarily mean the token is unowned.
  // See `_packedOwnershipOf` implementation for details.
  //
  // Bits Layout:
  // - [0..159]   `addr`
  // - [160..223] `startTimestamp`
  // - [224]      `burned`
  // - [225]      `nextInitialized`
  // - [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 => address) private _tokenApprovals;

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

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

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

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

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

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

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

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

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

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

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

  /**
   * Returns the 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 {
    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;
  }

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

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

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

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

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

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

  /**
   * @dev 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 See {IERC721-ownerOf}.
   */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return address(uint160(_packedOwnershipOf(tokenId)));
  }

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

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

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

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

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

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

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

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

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

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

    return _tokenApprovals[tokenId];
  }

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

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

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

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

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

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

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

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

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

    return startTokenId;
  }

  /**
   * @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 returns (uint256) {
    uint256 startTokenId = _currentIndex;
    if (to == address(0)) revert MintToZeroAddress();
    if (quantity == 0) revert MintZeroQuantity();

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

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

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

      uint256 tokenId = startTokenId;
      uint256 end = startTokenId + quantity;
      do {
        emit Transfer(address(0), to, tokenId++);
      } while (tokenId < end);

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

    return startTokenId;
  }

  /**
   * @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 {
    uint256 startTokenId = _currentIndex;
    if (to == address(0)) revert MintToZeroAddress();
    if (quantity == 0) revert MintZeroQuantity();
    if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT)
      revert MintERC2309QuantityExceedsLimit();

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

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

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

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

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

  /**
   * @dev Returns the storage slot and value for the approved address of `tokenId`.
   */
  function _getApprovedAddress(uint256 tokenId)
    private
    view
    returns (uint256 approvedAddressSlot, address approvedAddress)
  {
    mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
    // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
    assembly {
      // Compute the slot.
      mstore(0x00, tokenId)
      mstore(0x20, tokenApprovalsPtr.slot)
      approvedAddressSlot := keccak256(0x00, 0x40)
      // Load the slot's value from storage.
      approvedAddress := sload(approvedAddressSlot)
    }
  }

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

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

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

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

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

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

    _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

  /**
   * @dev Equivalent to `_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
    ) = _getApprovedAddress(tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

interface IQuest {
  function go(
    address _addr,
    uint256 _adventurerId,
    uint256 _questId
  )
    external
    view
    returns (
      uint256,
      uint256,
      uint256,
      uint256,
      uint256
    );
}

interface IQuestTimer {
  function set(
    address _addr,
    uint256 _adventurerId,
    uint256 _questCount,
    uint256 _hours
  ) external;

  function canQuest(address _addr, uint256 _adventurerId)
    external
    view
    returns (bool);
}

interface IAnima is IERC20 {
  function mintFor(address _for, uint256 _amount) external;
}

interface IParticle is IERC20 {
  function mintFor(address _for, uint256 _amount) external;
}

interface IAdventurerData {
  function initData(
    address[] calldata _addresses,
    uint256[] calldata _ids,
    bytes32[][] calldata _proofs,
    uint256[] calldata _professions,
    uint256[][] calldata _points
  ) external;

  function baseProperties(
    address _addr,
    uint256 _id,
    uint256 _start,
    uint256 _end
  ) external view returns (uint256[] memory);

  function aovProperties(
    address _addr,
    uint256 _id,
    uint256 _start,
    uint256 _end
  ) external view returns (uint256[] memory);

  function extensionProperties(
    address _addr,
    uint256 _id,
    uint256 _start,
    uint256 _end
  ) external view returns (uint256[] memory);

  function createFor(
    address _addr,
    uint256 _id,
    uint256[] calldata _points
  ) external;

  function createFor(
    address _addr,
    uint256 _id,
    uint256 _archetype
  ) external;

  function addToBase(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function updateBase(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function removeFromBase(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function addToAov(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function updateAov(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function removeFromAov(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function addToExtension(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function updateExtension(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function removeFromExtension(
    address _addr,
    uint256 _id,
    uint256 _prop,
    uint256 _val
  ) external;

  function base(
    address _addr,
    uint256 _id,
    uint256 _prop
  ) external view returns (uint256);

  function aov(
    address _addr,
    uint256 _id,
    uint256 _prop
  ) external view returns (uint256);

  function extension(
    address _addr,
    uint256 _id,
    uint256 _prop
  ) external view returns (uint256);
}

interface IAdventurerGateway {
  function checkAddress(address _addr, bytes32[] calldata _proof) external view;
}

interface IManager {
  function isAdmin(address _addr) external view returns (bool);

  function isManager(address _addr, uint256 _type) external view returns (bool);

  function addManager(address _addr, uint256 _type) external;

  function removeManager(address _addr, uint256 _type) external;

  function addAdmin(address _addr) external;

  function removeAdmin(address _addr) external;
}

abstract contract ManagerModifier {
  //=======================================
  // Immutables
  //=======================================
  IManager public immutable MANAGER;

  //=======================================
  // Constructor
  //=======================================
  constructor(address _manager) {
    MANAGER = IManager(_manager);
  }

  //=======================================
  // Modifiers
  //=======================================
  modifier onlyAdmin() {
    require(MANAGER.isAdmin(msg.sender), "Manager: Not an Admin");
    _;
  }

  modifier onlyManager() {
    require(MANAGER.isManager(msg.sender, 0), "Manager: Not manager");
    _;
  }

  modifier onlyMinter() {
    require(MANAGER.isManager(msg.sender, 1), "Manager: Not minter");
    _;
  }

  modifier onlyTokenMinter() {
    require(MANAGER.isManager(msg.sender, 2), "Manager: Not token minter");
    _;
  }

  modifier onlyBinder() {
    require(MANAGER.isManager(msg.sender, 3), "Manager: Not binder");
    _;
  }
}

contract QuestManager is ReentrancyGuard, Pausable, ManagerModifier {
  using SafeERC20 for IAnima;
  using SafeERC20 for IParticle;

  //=======================================
  // Immutables
  //=======================================
  IQuestTimer public immutable QUEST_TIMER;
  IParticle public immutable PARTICLE;
  IAnima public immutable ANIMA;
  IAdventurerData public immutable ADVENTURER_DATA;
  IAdventurerGateway public immutable GATEWAY;
  address public immutable VAULT;

  //=======================================
  // Interfaces
  //=======================================
  IQuest public quests;

  //=======================================
  // Uints
  //=======================================
  uint256 public questMax;
  uint256 public cooldown;

  //=======================================
  // Events
  //=======================================
  event Quested(
    uint256 questId,
    uint256 particleCost,
    address addr,
    uint256 adventurerId,
    uint256 xp,
    uint256 traitId,
    uint256 traitAmount,
    uint256 totalAnima
  );

  //=======================================
  // Constructor
  //=======================================
  constructor(
    address _manager,
    address _timer,
    address _particle,
    address _anima,
    address _data,
    address _vault,
    address _questsAddress,
    address _gateway,
    uint256 _questMax,
    uint256 _cooldown
  ) ManagerModifier(_manager) {
    QUEST_TIMER = IQuestTimer(_timer);
    PARTICLE = IParticle(_particle);
    ANIMA = IAnima(_anima);
    ADVENTURER_DATA = IAdventurerData(_data);
    VAULT = _vault;
    GATEWAY = IAdventurerGateway(_gateway);

    quests = IQuest(_questsAddress);

    questMax = _questMax;
    cooldown = _cooldown;
  }

  //=======================================
  // External
  //=======================================
  function quest(
    address[] calldata _addrs,
    uint256[] calldata _adventurerIds,
    bytes32[][] calldata _proofs,
    uint256[][] calldata _questIds
  ) external nonReentrant whenNotPaused {
    for (uint256 j = 0; j < _adventurerIds.length; j++) {
      address addr = _addrs[j];
      uint256 adventurerId = _adventurerIds[j];
      uint256[] memory questIds = _questIds[j];

      uint256 questCount = questIds.length;

      // Check quest is present
      require(questCount > 0, "QuestManager: No quests provided");

      // Check quest count
      require(questCount <= questMax, "QuestManager: Quest count is above max");

      // Verify address
      GATEWAY.checkAddress(addr, _proofs[j]);

      // Check sender owns adventurer
      require(
        ERC721A(addr).ownerOf(adventurerId) == msg.sender,
        "QuestManager: You do not own Adventurer"
      );

      // Set quest tracker
      QUEST_TIMER.set(addr, adventurerId, questCount, cooldown);

      // Go on quests
      uint256 cost = _quests(addr, adventurerId, questIds);

      // Transfer Particle to vault
      PARTICLE.safeTransferFrom(msg.sender, VAULT, cost);
    }
  }

  //=======================================
  // Admin
  //=======================================
  function pause() external onlyAdmin {
    _pause();
  }

  function unpause() external onlyAdmin {
    _unpause();
  }

  function updateQuestMax(uint256 _questMax) external onlyAdmin {
    questMax = _questMax;
  }

  function updateCooldown(uint256 _cooldown) external onlyAdmin {
    cooldown = _cooldown;
  }

  //=======================================
  // Internal
  //=======================================
  function _quests(
    address _addr,
    uint256 _adventurerId,
    uint256[] memory _questIds
  ) internal returns (uint256) {
    uint256 totalXp;
    uint256 totalAnima;
    uint256 totalCost;

    for (uint256 j = 0; j < _questIds.length; j++) {
      uint256 questId = _questIds[j];

      (uint256 xp, uint256 anima, uint256 cost) = _quest(
        _addr,
        _adventurerId,
        questId
      );

      totalXp += xp;
      totalAnima += anima;
      totalCost += cost;
    }

    // Add XP
    ADVENTURER_DATA.addToBase(_addr, _adventurerId, 0, totalXp);

    // Mint Anima
    ANIMA.mintFor(msg.sender, totalAnima);

    return totalCost;
  }

  function _quest(
    address _addr,
    uint256 _adventurerId,
    uint256 _questId
  )
    internal
    returns (
      uint256,
      uint256,
      uint256
    )
  {
    // Go on quest
    (
      uint256 cost,
      uint256 xp,
      uint256 traitId,
      uint256 traitAmount,
      uint256 anima
    ) = quests.go(_addr, _adventurerId, _questId);

    // Add to trait
    ADVENTURER_DATA.addToBase(_addr, _adventurerId, traitId, traitAmount);

    emit Quested(
      _questId,
      cost,
      _addr,
      _adventurerId,
      xp,
      traitId,
      traitAmount,
      anima
    );

    return (xp, anima, cost);
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_manager","type":"address"},{"internalType":"address","name":"_timer","type":"address"},{"internalType":"address","name":"_particle","type":"address"},{"internalType":"address","name":"_anima","type":"address"},{"internalType":"address","name":"_data","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_questsAddress","type":"address"},{"internalType":"address","name":"_gateway","type":"address"},{"internalType":"uint256","name":"_questMax","type":"uint256"},{"internalType":"uint256","name":"_cooldown","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"questId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"particleCost","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"adventurerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"traitId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"traitAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAnima","type":"uint256"}],"name":"Quested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADVENTURER_DATA","outputs":[{"internalType":"contract IAdventurerData","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ANIMA","outputs":[{"internalType":"contract IAnima","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GATEWAY","outputs":[{"internalType":"contract IAdventurerGateway","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER","outputs":[{"internalType":"contract IManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PARTICLE","outputs":[{"internalType":"contract IParticle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUEST_TIMER","outputs":[{"internalType":"contract IQuestTimer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"},{"internalType":"uint256[]","name":"_adventurerIds","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_proofs","type":"bytes32[][]"},{"internalType":"uint256[][]","name":"_questIds","type":"uint256[][]"}],"name":"quest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"questMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quests","outputs":[{"internalType":"contract IQuest","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cooldown","type":"uint256"}],"name":"updateCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_questMax","type":"uint256"}],"name":"updateQuestMax","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101606040523480156200001257600080fd5b506040516200177f3803806200177f8339810160408190526200003591620000d3565b6001600081905580546001600160601b031960609c8d1b81166080529a8c1b8b1660a052988b1b8a1660c052968a1b891660e05294891b881661010090815293891b881661014052971b909516610120526001600160a01b03949094169093026001600160a81b03199092169190911790556002919091556003556200018f565b80516001600160a01b0381168114620000ce57600080fd5b919050565b6000806000806000806000806000806101408b8d031215620000f3578586fd5b620000fe8b620000b6565b99506200010e60208c01620000b6565b98506200011e60408c01620000b6565b97506200012e60608c01620000b6565b96506200013e60808c01620000b6565b95506200014e60a08c01620000b6565b94506200015e60c08c01620000b6565b93506200016e60e08c01620000b6565b92506101008b015191506101208b015190509295989b9194979a5092959850565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6101405160601c6115336200024c600039600081816101a601526109f801526000818161017501526107a60152600081816102aa01528181610bc00152610e120152600081816102380152610c4801526000818161027001526109d501526000818161010a015261094e01526000818161014e015281816102e1015281816103a70152818161045f015261051701526115336000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063752ad5ca11610097578063a2296f4111610066578063a2296f4114610262578063c1a71c081461026b578063de68ca0a14610292578063fcac0892146102a557600080fd5b8063752ad5ca14610204578063787a08a61461021c57806381673853146102335780638456cb591461025a57600080fd5b8063411557d1116100d3578063411557d1146101a15780634e07f0fe146101c857806355119df9146101db5780635c975abb146101ee57600080fd5b80630ac9caf8146101055780631b2df85014610149578063338c5371146101705780633f4ba83a14610197575b600080fd5b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b61019f6102cc565b005b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b61019f6101d63660046112cc565b610392565b61019f6101e93660046112cc565b61044a565b60015460ff166040519015158152602001610140565b60015461012c9061010090046001600160a01b031681565b61022560035481565b604051908152602001610140565b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b61019f610502565b61022560025481565b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b61019f6102a03660046111ed565b6105bd565b61012c7f000000000000000000000000000000000000000000000000000000000000000081565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b15801561032b57600080fd5b505afa15801561033f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036391906112ac565b6103885760405162461bcd60e51b815260040161037f906113e3565b60405180910390fd5b610390610a45565b565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b1580156103f157600080fd5b505afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042991906112ac565b6104455760405162461bcd60e51b815260040161037f906113e3565b600255565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b1580156104a957600080fd5b505afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e191906112ac565b6104fd5760405162461bcd60e51b815260040161037f906113e3565b600355565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b15801561056157600080fd5b505afa158015610575573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059991906112ac565b6105b55760405162461bcd60e51b815260040161037f906113e3565b610390610a97565b600260005414156106105760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037f565b600260005561061d610ad2565b60005b85811015610a3557600089898381811061064a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061065f91906111b5565b9050600088888481811061068357634e487b7160e01b600052603260045260246000fd5b90506020020135905060008585858181106106ae57634e487b7160e01b600052603260045260246000fd5b90506020028101906106c0919061145a565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505082519293505050806107435760405162461bcd60e51b815260206004820181905260248201527f51756573744d616e616765723a204e6f207175657374732070726f7669646564604482015260640161037f565b6002548111156107a45760405162461bcd60e51b815260206004820152602660248201527f51756573744d616e616765723a20517565737420636f756e742069732061626f6044820152650ecca40dac2f60d31b606482015260840161037f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663417c5302858b8b898181106107f457634e487b7160e01b600052603260045260246000fd5b90506020028101906108069190611412565b6040518463ffffffff1660e01b81526004016108249392919061133f565b60006040518083038186803b15801561083c57600080fd5b505afa158015610850573d6000803e3d6000fd5b50506040516331a9108f60e11b8152600481018690523392506001600160a01b0387169150636352211e9060240160206040518083038186803b15801561089657600080fd5b505afa1580156108aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ce91906111d1565b6001600160a01b0316146109345760405162461bcd60e51b815260206004820152602760248201527f51756573744d616e616765723a20596f7520646f206e6f74206f776e2041647660448201526632b73a3ab932b960c91b606482015260840161037f565b60035460405163f735ec7760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163f735ec77916109879188918891879160040161138a565b600060405180830381600087803b1580156109a157600080fd5b505af11580156109b5573d6000803e3d6000fd5b5050505060006109c6858585610b18565b9050610a1d6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f000000000000000000000000000000000000000000000000000000000000000084610cbb565b50505050508080610a2d906114b4565b915050610620565b5050600160005550505050505050565b610a4d610d1b565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a9f610ad2565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610a7a565b60015460ff16156103905760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161037f565b60008060008060005b8551811015610ba8576000868281518110610b4c57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000806000610b668c8c86610d64565b91945092509050610b778389611470565b9750610b838288611470565b9650610b8f8187611470565b9550505050508080610ba0906114b4565b915050610b21565b5060405163128afb9f60e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639457dcf890610bfc908a908a90600090899060040161138a565b600060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b505060405163da1919b360e01b8152336004820152602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316925063da1919b39150604401600060405180830381600087803b158015610c9657600080fd5b505af1158015610caa573d6000803e3d6000fd5b5092955050505050505b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610d15908590610f13565b50505050565b60015460ff166103905760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161037f565b60015460405163664063e960e01b81526001600160a01b038581166004830152602482018590526044820184905260009283928392839283928392839283926101009091049091169063664063e99060640160a06040518083038186803b158015610dce57600080fd5b505afa158015610de2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0691906112e4565b945094509450945094507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639457dcf88c8c86866040518563ffffffff1660e01b8152600401610e62949392919061138a565b600060405180830381600087803b158015610e7c57600080fd5b505af1158015610e90573d6000803e3d6000fd5b5050604080518c8152602081018990526001600160a01b038f1681830152606081018e90526080810188905260a0810187905260c0810186905260e0810185905290517fddcbae414cf8328752978de4a422a6001ebd6dddf1286622c99e74aff96326db935090819003610100019150a1929a9299509297509095505050505050565b6000610f68826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610fea9092919063ffffffff16565b805190915015610fe55780806020019051810190610f8691906112ac565b610fe55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161037f565b505050565b6060610ff98484600085611001565b949350505050565b6060824710156110625760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161037f565b6001600160a01b0385163b6110b95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161037f565b600080866001600160a01b031685876040516110d59190611323565b60006040518083038185875af1925050503d8060008114611112576040519150601f19603f3d011682016040523d82523d6000602084013e611117565b606091505b5091509150611127828286611132565b979650505050505050565b60608315611141575081610cb4565b8251156111515782518084602001fd5b8160405162461bcd60e51b815260040161037f91906113b0565b60008083601f84011261117c578182fd5b50813567ffffffffffffffff811115611193578182fd5b6020830191508360208260051b85010111156111ae57600080fd5b9250929050565b6000602082840312156111c6578081fd5b8135610cb4816114e5565b6000602082840312156111e2578081fd5b8151610cb4816114e5565b6000806000806000806000806080898b031215611208578384fd5b883567ffffffffffffffff8082111561121f578586fd5b61122b8c838d0161116b565b909a50985060208b0135915080821115611243578586fd5b61124f8c838d0161116b565b909850965060408b0135915080821115611267578586fd5b6112738c838d0161116b565b909650945060608b013591508082111561128b578384fd5b506112988b828c0161116b565b999c989b5096995094979396929594505050565b6000602082840312156112bd578081fd5b81518015158114610cb4578182fd5b6000602082840312156112dd578081fd5b5035919050565b600080600080600060a086880312156112fb578081fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60008251611335818460208701611488565b9190910192915050565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b0383111561136e578081fd5b8260051b80856060850137919091016060019081529392505050565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b60208152600082518060208401526113cf816040850160208701611488565b601f01601f19169190910160400192915050565b60208082526015908201527426b0b730b3b2b91d102737ba1030b71020b236b4b760591b604082015260600190565b6000808335601e19843603018112611428578283fd5b83018035915067ffffffffffffffff821115611442578283fd5b6020019150600581901b36038213156111ae57600080fd5b6000808335601e19843603018112611428578182fd5b60008219821115611483576114836114cf565b500190565b60005b838110156114a357818101518382015260200161148b565b83811115610d155750506000910152565b60006000198214156114c8576114c86114cf565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146114fa57600080fd5b5056fea2646970667358221220ebc80a3eb21e41564000ab7fede929c2abd39bf079cda4c1440066e8becd38c764736f6c634300080400330000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861000000000000000000000000a34fa270ad441b9f28221d99a8ca0660c687770e00000000000000000000000061462ff437b630e0c2f1f4711f5b276c47af2e63000000000000000000000000ccd05a0fcfc1380e9da27862adb2198e58e0d66f000000000000000000000000c9797a6be31f052cdfbdcc7264005c1eea0f69b9000000000000000000000000106d0fd9321d63627cf813c30622ee251c773b7b00000000000000000000000067c524edcc761268f3c78717553e2c8f73b764830000000000000000000000009a9bbffe07ea36295a26b54379596b6d25234dc300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000018

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063752ad5ca11610097578063a2296f4111610066578063a2296f4114610262578063c1a71c081461026b578063de68ca0a14610292578063fcac0892146102a557600080fd5b8063752ad5ca14610204578063787a08a61461021c57806381673853146102335780638456cb591461025a57600080fd5b8063411557d1116100d3578063411557d1146101a15780634e07f0fe146101c857806355119df9146101db5780635c975abb146101ee57600080fd5b80630ac9caf8146101055780631b2df85014610149578063338c5371146101705780633f4ba83a14610197575b600080fd5b61012c7f000000000000000000000000a34fa270ad441b9f28221d99a8ca0660c687770e81565b6040516001600160a01b0390911681526020015b60405180910390f35b61012c7f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b5825286181565b61012c7f0000000000000000000000009a9bbffe07ea36295a26b54379596b6d25234dc381565b61019f6102cc565b005b61012c7f000000000000000000000000106d0fd9321d63627cf813c30622ee251c773b7b81565b61019f6101d63660046112cc565b610392565b61019f6101e93660046112cc565b61044a565b60015460ff166040519015158152602001610140565b60015461012c9061010090046001600160a01b031681565b61022560035481565b604051908152602001610140565b61012c7f000000000000000000000000ccd05a0fcfc1380e9da27862adb2198e58e0d66f81565b61019f610502565b61022560025481565b61012c7f00000000000000000000000061462ff437b630e0c2f1f4711f5b276c47af2e6381565b61019f6102a03660046111ed565b6105bd565b61012c7f000000000000000000000000c9797a6be31f052cdfbdcc7264005c1eea0f69b981565b604051630935e01b60e21b81523360048201527f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b582528616001600160a01b0316906324d7806c9060240160206040518083038186803b15801561032b57600080fd5b505afa15801561033f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036391906112ac565b6103885760405162461bcd60e51b815260040161037f906113e3565b60405180910390fd5b610390610a45565b565b604051630935e01b60e21b81523360048201527f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b582528616001600160a01b0316906324d7806c9060240160206040518083038186803b1580156103f157600080fd5b505afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042991906112ac565b6104455760405162461bcd60e51b815260040161037f906113e3565b600255565b604051630935e01b60e21b81523360048201527f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b582528616001600160a01b0316906324d7806c9060240160206040518083038186803b1580156104a957600080fd5b505afa1580156104bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e191906112ac565b6104fd5760405162461bcd60e51b815260040161037f906113e3565b600355565b604051630935e01b60e21b81523360048201527f0000000000000000000000004e572433a3bfa336b6396d13afc9f69b582528616001600160a01b0316906324d7806c9060240160206040518083038186803b15801561056157600080fd5b505afa158015610575573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059991906112ac565b6105b55760405162461bcd60e51b815260040161037f906113e3565b610390610a97565b600260005414156106105760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037f565b600260005561061d610ad2565b60005b85811015610a3557600089898381811061064a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061065f91906111b5565b9050600088888481811061068357634e487b7160e01b600052603260045260246000fd5b90506020020135905060008585858181106106ae57634e487b7160e01b600052603260045260246000fd5b90506020028101906106c0919061145a565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505082519293505050806107435760405162461bcd60e51b815260206004820181905260248201527f51756573744d616e616765723a204e6f207175657374732070726f7669646564604482015260640161037f565b6002548111156107a45760405162461bcd60e51b815260206004820152602660248201527f51756573744d616e616765723a20517565737420636f756e742069732061626f6044820152650ecca40dac2f60d31b606482015260840161037f565b7f0000000000000000000000009a9bbffe07ea36295a26b54379596b6d25234dc36001600160a01b031663417c5302858b8b898181106107f457634e487b7160e01b600052603260045260246000fd5b90506020028101906108069190611412565b6040518463ffffffff1660e01b81526004016108249392919061133f565b60006040518083038186803b15801561083c57600080fd5b505afa158015610850573d6000803e3d6000fd5b50506040516331a9108f60e11b8152600481018690523392506001600160a01b0387169150636352211e9060240160206040518083038186803b15801561089657600080fd5b505afa1580156108aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ce91906111d1565b6001600160a01b0316146109345760405162461bcd60e51b815260206004820152602760248201527f51756573744d616e616765723a20596f7520646f206e6f74206f776e2041647660448201526632b73a3ab932b960c91b606482015260840161037f565b60035460405163f735ec7760e01b81526001600160a01b037f000000000000000000000000a34fa270ad441b9f28221d99a8ca0660c687770e169163f735ec77916109879188918891879160040161138a565b600060405180830381600087803b1580156109a157600080fd5b505af11580156109b5573d6000803e3d6000fd5b5050505060006109c6858585610b18565b9050610a1d6001600160a01b037f00000000000000000000000061462ff437b630e0c2f1f4711f5b276c47af2e6316337f000000000000000000000000106d0fd9321d63627cf813c30622ee251c773b7b84610cbb565b50505050508080610a2d906114b4565b915050610620565b5050600160005550505050505050565b610a4d610d1b565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a9f610ad2565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610a7a565b60015460ff16156103905760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161037f565b60008060008060005b8551811015610ba8576000868281518110610b4c57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000806000610b668c8c86610d64565b91945092509050610b778389611470565b9750610b838288611470565b9650610b8f8187611470565b9550505050508080610ba0906114b4565b915050610b21565b5060405163128afb9f60e31b81526001600160a01b037f000000000000000000000000c9797a6be31f052cdfbdcc7264005c1eea0f69b91690639457dcf890610bfc908a908a90600090899060040161138a565b600060405180830381600087803b158015610c1657600080fd5b505af1158015610c2a573d6000803e3d6000fd5b505060405163da1919b360e01b8152336004820152602481018590527f000000000000000000000000ccd05a0fcfc1380e9da27862adb2198e58e0d66f6001600160a01b0316925063da1919b39150604401600060405180830381600087803b158015610c9657600080fd5b505af1158015610caa573d6000803e3d6000fd5b5092955050505050505b9392505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610d15908590610f13565b50505050565b60015460ff166103905760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161037f565b60015460405163664063e960e01b81526001600160a01b038581166004830152602482018590526044820184905260009283928392839283928392839283926101009091049091169063664063e99060640160a06040518083038186803b158015610dce57600080fd5b505afa158015610de2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0691906112e4565b945094509450945094507f000000000000000000000000c9797a6be31f052cdfbdcc7264005c1eea0f69b96001600160a01b0316639457dcf88c8c86866040518563ffffffff1660e01b8152600401610e62949392919061138a565b600060405180830381600087803b158015610e7c57600080fd5b505af1158015610e90573d6000803e3d6000fd5b5050604080518c8152602081018990526001600160a01b038f1681830152606081018e90526080810188905260a0810187905260c0810186905260e0810185905290517fddcbae414cf8328752978de4a422a6001ebd6dddf1286622c99e74aff96326db935090819003610100019150a1929a9299509297509095505050505050565b6000610f68826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610fea9092919063ffffffff16565b805190915015610fe55780806020019051810190610f8691906112ac565b610fe55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161037f565b505050565b6060610ff98484600085611001565b949350505050565b6060824710156110625760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161037f565b6001600160a01b0385163b6110b95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161037f565b600080866001600160a01b031685876040516110d59190611323565b60006040518083038185875af1925050503d8060008114611112576040519150601f19603f3d011682016040523d82523d6000602084013e611117565b606091505b5091509150611127828286611132565b979650505050505050565b60608315611141575081610cb4565b8251156111515782518084602001fd5b8160405162461bcd60e51b815260040161037f91906113b0565b60008083601f84011261117c578182fd5b50813567ffffffffffffffff811115611193578182fd5b6020830191508360208260051b85010111156111ae57600080fd5b9250929050565b6000602082840312156111c6578081fd5b8135610cb4816114e5565b6000602082840312156111e2578081fd5b8151610cb4816114e5565b6000806000806000806000806080898b031215611208578384fd5b883567ffffffffffffffff8082111561121f578586fd5b61122b8c838d0161116b565b909a50985060208b0135915080821115611243578586fd5b61124f8c838d0161116b565b909850965060408b0135915080821115611267578586fd5b6112738c838d0161116b565b909650945060608b013591508082111561128b578384fd5b506112988b828c0161116b565b999c989b5096995094979396929594505050565b6000602082840312156112bd578081fd5b81518015158114610cb4578182fd5b6000602082840312156112dd578081fd5b5035919050565b600080600080600060a086880312156112fb578081fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60008251611335818460208701611488565b9190910192915050565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b0383111561136e578081fd5b8260051b80856060850137919091016060019081529392505050565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b60208152600082518060208401526113cf816040850160208701611488565b601f01601f19169190910160400192915050565b60208082526015908201527426b0b730b3b2b91d102737ba1030b71020b236b4b760591b604082015260600190565b6000808335601e19843603018112611428578283fd5b83018035915067ffffffffffffffff821115611442578283fd5b6020019150600581901b36038213156111ae57600080fd5b6000808335601e19843603018112611428578182fd5b60008219821115611483576114836114cf565b500190565b60005b838110156114a357818101518382015260200161148b565b83811115610d155750506000910152565b60006000198214156114c8576114c86114cf565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146114fa57600080fd5b5056fea2646970667358221220ebc80a3eb21e41564000ab7fede929c2abd39bf079cda4c1440066e8becd38c764736f6c63430008040033

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

0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861000000000000000000000000a34fa270ad441b9f28221d99a8ca0660c687770e00000000000000000000000061462ff437b630e0c2f1f4711f5b276c47af2e63000000000000000000000000ccd05a0fcfc1380e9da27862adb2198e58e0d66f000000000000000000000000c9797a6be31f052cdfbdcc7264005c1eea0f69b9000000000000000000000000106d0fd9321d63627cf813c30622ee251c773b7b00000000000000000000000067c524edcc761268f3c78717553e2c8f73b764830000000000000000000000009a9bbffe07ea36295a26b54379596b6d25234dc300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000018

-----Decoded View---------------
Arg [0] : _manager (address): 0x4E572433A3Bfa336b6396D13AfC9F69b58252861
Arg [1] : _timer (address): 0xa34fA270Ad441B9F28221d99a8cA0660C687770E
Arg [2] : _particle (address): 0x61462FF437b630e0C2f1F4711f5B276c47Af2e63
Arg [3] : _anima (address): 0xcCd05A0fcfc1380e9Da27862Adb2198E58e0D66f
Arg [4] : _data (address): 0xc9797A6Be31F052cdfbDCc7264005c1EEA0F69B9
Arg [5] : _vault (address): 0x106D0FD9321d63627Cf813c30622eE251C773B7B
Arg [6] : _questsAddress (address): 0x67c524EDcC761268F3c78717553E2c8F73b76483
Arg [7] : _gateway (address): 0x9A9BbFfE07Ea36295A26b54379596B6D25234dc3
Arg [8] : _questMax (uint256): 3
Arg [9] : _cooldown (uint256): 24

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861
Arg [1] : 000000000000000000000000a34fa270ad441b9f28221d99a8ca0660c687770e
Arg [2] : 00000000000000000000000061462ff437b630e0c2f1f4711f5b276c47af2e63
Arg [3] : 000000000000000000000000ccd05a0fcfc1380e9da27862adb2198e58e0d66f
Arg [4] : 000000000000000000000000c9797a6be31f052cdfbdcc7264005c1eea0f69b9
Arg [5] : 000000000000000000000000106d0fd9321d63627cf813c30622ee251c773b7b
Arg [6] : 00000000000000000000000067c524edcc761268f3c78717553e2c8f73b76483
Arg [7] : 0000000000000000000000009a9bbffe07ea36295a26b54379596b6d25234dc3
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000018


Deployed ByteCode Sourcemap

70316:5027:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70563:40;;;;;;;;-1:-1:-1;;;;;3840:32:1;;;3822:51;;3810:2;3795:18;70563:40:0;;;;;;;;69410:33;;;;;70735:43;;;;;73609:61;;;:::i;:::-;;70783:30;;;;;73676:95;;;;;;:::i;:::-;;:::i;73777:::-;;;;;;:::i;:::-;;:::i;23037:86::-;23108:7;;;;23037:86;;6507:14:1;;6500:22;6482:41;;6470:2;6455:18;23037:86:0;6437:92:1;70927:20:0;;;;;;;;-1:-1:-1;;;;;70927:20:0;;;71084:23;;;;;;;;;12416:25:1;;;12404:2;12389:18;71084:23:0;12371:76:1;70648:29:0;;;;;73546:57;;;:::i;71056:23::-;;;;;;70608:35;;;;;72241:1197;;;;;;:::i;:::-;;:::i;70682:48::-;;;;;73609:61;69777:27;;-1:-1:-1;;;69777:27:0;;69793:10;69777:27;;;3822:51:1;69777:7:0;-1:-1:-1;;;;;69777:15:0;;;;3795:18:1;;69777:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69769:61;;;;-1:-1:-1;;;69769:61:0;;;;;;;:::i;:::-;;;;;;;;;73654:10:::1;:8;:10::i;:::-;73609:61::o:0;73676:95::-;69777:27;;-1:-1:-1;;;69777:27:0;;69793:10;69777:27;;;3822:51:1;69777:7:0;-1:-1:-1;;;;;69777:15:0;;;;3795:18:1;;69777:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69769:61;;;;-1:-1:-1;;;69769:61:0;;;;;;;:::i;:::-;73745:8:::1;:20:::0;73676:95::o;73777:::-;69777:27;;-1:-1:-1;;;69777:27:0;;69793:10;69777:27;;;3822:51:1;69777:7:0;-1:-1:-1;;;;;69777:15:0;;;;3795:18:1;;69777:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69769:61;;;;-1:-1:-1;;;69769:61:0;;;;;;;:::i;:::-;73846:8:::1;:20:::0;73777:95::o;73546:57::-;69777:27;;-1:-1:-1;;;69777:27:0;;69793:10;69777:27;;;3822:51:1;69777:7:0;-1:-1:-1;;;;;69777:15:0;;;;3795:18:1;;69777:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69769:61;;;;-1:-1:-1;;;69769:61:0;;;;;;;:::i;:::-;73589:8:::1;:6;:8::i;72241:1197::-:0;1780:1;2378:7;;:19;;2370:63;;;;-1:-1:-1;;;2370:63:0;;11762:2:1;2370:63:0;;;11744:21:1;11801:2;11781:18;;;11774:30;11840:33;11820:18;;;11813:61;11891:18;;2370:63:0;11734:181:1;2370:63:0;1780:1;2511:7;:18;22642:19:::1;:17;:19::i;:::-;72453:9:::2;72448:985;72468:25:::0;;::::2;72448:985;;;72509:12;72524:6;;72531:1;72524:9;;;;;-1:-1:-1::0;;;72524:9:0::2;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72509:24;;72542:20;72565:14;;72580:1;72565:17;;;;;-1:-1:-1::0;;;72565:17:0::2;;;;;;;;;;;;;;;72542:40;;72591:25;72619:9;;72629:1;72619:12;;;;;-1:-1:-1::0;;;72619:12:0::2;;;;;;;;;;;;;;;;;;;;:::i;:::-;72591:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;;72663:15:0;;72591:40;;-1:-1:-1;;;72730:14:0;72722:59:::2;;;::::0;-1:-1:-1;;;72722:59:0;;8716:2:1;72722:59:0::2;::::0;::::2;8698:21:1::0;;;8735:18;;;8728:30;8794:34;8774:18;;;8767:62;8846:18;;72722:59:0::2;8688:182:1::0;72722:59:0::2;72842:8;;72828:10;:22;;72820:73;;;::::0;-1:-1:-1;;;72820:73:0;;9834:2:1;72820:73:0::2;::::0;::::2;9816:21:1::0;9873:2;9853:18;;;9846:30;9912:34;9892:18;;;9885:62;-1:-1:-1;;;9963:18:1;;;9956:36;10009:19;;72820:73:0::2;9806:228:1::0;72820:73:0::2;72929:7;-1:-1:-1::0;;;;;72929:20:0::2;;72950:4;72956:7;;72964:1;72956:10;;;;;-1:-1:-1::0;;;72956:10:0::2;;;;;;;;;;;;;;;;;;;;:::i;:::-;72929:38;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;73035:35:0::2;::::0;-1:-1:-1;;;73035:35:0;;::::2;::::0;::::2;12416:25:1::0;;;73074:10:0::2;::::0;-1:-1:-1;;;;;;73035:21:0;::::2;::::0;-1:-1:-1;73035:21:0::2;::::0;12389:18:1;;73035:35:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;73035:49:0::2;;73017:128;;;::::0;-1:-1:-1;;;73017:128:0;;9426:2:1;73017:128:0::2;::::0;::::2;9408:21:1::0;9465:2;9445:18;;;9438:30;9504:34;9484:18;;;9477:62;-1:-1:-1;;;9555:18:1;;;9548:37;9602:19;;73017:128:0::2;9398:229:1::0;73017:128:0::2;73232:8;::::0;73184:57:::2;::::0;-1:-1:-1;;;73184:57:0;;-1:-1:-1;;;;;73184:11:0::2;:15;::::0;::::2;::::0;:57:::2;::::0;73200:4;;73206:12;;73220:10;;73184:57:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;73275:12;73290:37;73298:4;73304:12;73318:8;73290:7;:37::i;:::-;73275:52:::0;-1:-1:-1;73375:50:0::2;-1:-1:-1::0;;;;;73375:8:0::2;:25;73401:10;73413:5;73275:52:::0;73375:25:::2;:50::i;:::-;72448:985;;;;;72495:3;;;;;:::i;:::-;;;;72448:985;;;-1:-1:-1::0;;1736:1:0;2690:7;:22;-1:-1:-1;;;;;;;72241:1197:0:o;23892:120::-;22901:16;:14;:16::i;:::-;23951:7:::1;:15:::0;;-1:-1:-1;;23951:15:0::1;::::0;;23982:22:::1;21394:10:::0;23991:12:::1;23982:22;::::0;-1:-1:-1;;;;;3840:32:1;;;3822:51;;3810:2;3795:18;23982:22:0::1;;;;;;;23892:120::o:0;23633:118::-;22642:19;:17;:19::i;:::-;23703:4:::1;23693:14:::0;;-1:-1:-1;;23693:14:0::1;::::0;::::1;::::0;;23723:20:::1;21394:10:::0;23730:12:::1;21314:98:::0;23196:108;23108:7;;;;23266:9;23258:38;;;;-1:-1:-1;;;23258:38:0;;10648:2:1;23258:38:0;;;10630:21:1;10687:2;10667:18;;;10660:30;-1:-1:-1;;;10706:18:1;;;10699:46;10762:18;;23258:38:0;10620:166:1;73983:688:0;74104:7;74120:15;74142:18;74167:17;74198:9;74193:300;74217:9;:16;74213:1;:20;74193:300;;;74249:15;74267:9;74277:1;74267:12;;;;;;-1:-1:-1;;;74267:12:0;;;;;;;;;;;;;;;74249:30;;74291:10;74303:13;74318:12;74334:73;74351:5;74367:13;74391:7;74334:6;:73::i;:::-;74290:117;;-1:-1:-1;74290:117:0;-1:-1:-1;74290:117:0;-1:-1:-1;74418:13:0;74290:117;74418:13;;:::i;:::-;;-1:-1:-1;74440:19:0;74454:5;74440:19;;:::i;:::-;;-1:-1:-1;74468:17:0;74481:4;74468:17;;:::i;:::-;;;74193:300;;;;74235:3;;;;;:::i;:::-;;;;74193:300;;;-1:-1:-1;74516:59:0;;-1:-1:-1;;;74516:59:0;;-1:-1:-1;;;;;74516:15:0;:25;;;;:59;;74542:5;;74549:13;;74564:1;;74567:7;;74516:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;74603:37:0;;-1:-1:-1;;;74603:37:0;;74617:10;74603:37;;;5035:51:1;5102:18;;;5095:34;;;74603:5:0;-1:-1:-1;;;;;74603:13:0;;-1:-1:-1;74603:13:0;;-1:-1:-1;5008:18:1;;74603:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74656:9:0;;-1:-1:-1;;;;;;73983:688:0;;;;;;:::o;17072:248::-;17243:68;;;-1:-1:-1;;;;;4142:15:1;;;17243:68:0;;;4124:34:1;4194:15;;4174:18;;;4167:43;4226:18;;;;4219:34;;;17243:68:0;;;;;;;;;;4059:18:1;;;;17243:68:0;;;;;;;;-1:-1:-1;;;;;17243:68:0;-1:-1:-1;;;17243:68:0;;;17216:96;;17236:5;;17216:19;:96::i;:::-;17072:248;;;;:::o;23381:108::-;23108:7;;;;23440:41;;;;-1:-1:-1;;;23440:41:0;;9077:2:1;23440:41:0;;;9059:21:1;9116:2;9096:18;;;9089:30;-1:-1:-1;;;9135:18:1;;;9128:50;9195:18;;23440:41:0;9049:170:1;74677:663:0;75006:6;;:41;;-1:-1:-1;;;75006:41:0;;-1:-1:-1;;;;;5790:32:1;;;75006:41:0;;;5772:51:1;5839:18;;;5832:34;;;5882:18;;;5875:34;;;-1:-1:-1;;;;;;;;;;;;;;;;75006:6:0;;;;;;;;:9;;5745:18:1;;75006:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;74882:165;;;;;;;;;;75077:15;-1:-1:-1;;;;;75077:25:0;;75103:5;75110:13;75125:7;75134:11;75077:69;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75160:141:0;;;12795:25:1;;;12851:2;12836:18;;12829:34;;;-1:-1:-1;;;;;12899:32:1;;12879:18;;;12872:60;12963:2;12948:18;;12941:34;;;13006:3;12991:19;;12984:35;;;12919:3;13035:19;;13028:35;;;13094:3;13079:19;;13072:35;;;13138:3;13123:19;;13116:35;;;75160:141:0;;;;-1:-1:-1;75160:141:0;;;;12782:3:1;75160:141:0;;-1:-1:-1;75160:141:0;75318:2;;;;-1:-1:-1;75329:4:0;;-1:-1:-1;74677:663:0;;-1:-1:-1;;;;;;74677:663:0:o;19920:716::-;20344:23;20370:69;20398:4;20370:69;;;;;;;;;;;;;;;;;20378:5;-1:-1:-1;;;;;20370:27:0;;;:69;;;;;:::i;:::-;20454:17;;20344:95;;-1:-1:-1;20454:21:0;20450:179;;20551:10;20540:30;;;;;;;;;;;;:::i;:::-;20532:85;;;;-1:-1:-1;;;20532:85:0;;11351:2:1;20532:85:0;;;11333:21:1;11390:2;11370:18;;;11363:30;11429:34;11409:18;;;11402:62;-1:-1:-1;;;11480:18:1;;;11473:40;11530:19;;20532:85:0;11323:232:1;20532:85:0;19920:716;;;:::o;11752:229::-;11889:12;11921:52;11943:6;11951:4;11957:1;11960:12;11921:21;:52::i;:::-;11914:59;11752:229;-1:-1:-1;;;;11752:229:0:o;12872:510::-;13042:12;13100:5;13075:21;:30;;13067:81;;;;-1:-1:-1;;;13067:81:0;;10241:2:1;13067:81:0;;;10223:21:1;10280:2;10260:18;;;10253:30;10319:34;10299:18;;;10292:62;-1:-1:-1;;;10370:18:1;;;10363:36;10416:19;;13067:81:0;10213:228:1;13067:81:0;-1:-1:-1;;;;;9302:19:0;;;13159:60;;;;-1:-1:-1;;;13159:60:0;;10993:2:1;13159:60:0;;;10975:21:1;11032:2;11012:18;;;11005:30;11071:31;11051:18;;;11044:59;11120:18;;13159:60:0;10965:179:1;13159:60:0;13233:12;13247:23;13274:6;-1:-1:-1;;;;;13274:11:0;13293:5;13300:4;13274:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13232:73;;;;13323:51;13340:7;13349:10;13361:12;13323:16;:51::i;:::-;13316:58;12872:510;-1:-1:-1;;;;;;;12872:510:0:o;15558:762::-;15708:12;15737:7;15733:580;;;-1:-1:-1;15768:10:0;15761:17;;15733:580;15882:17;;:21;15878:424;;16130:10;16124:17;16191:15;16178:10;16174:2;16170:19;16163:44;16078:148;16273:12;16266:20;;-1:-1:-1;;;16266:20:0;;;;;;;;:::i;14:395:1:-;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:2;;166:8;156;149:26;108:2;-1:-1:-1;196:20:1;;239:18;228:30;;225:2;;;278:8;268;261:26;225:2;322:4;314:6;310:17;298:29;;382:3;375:4;365:6;362:1;358:14;350:6;346:27;342:38;339:47;336:2;;;399:1;396;389:12;336:2;98:311;;;;;:::o;414:257::-;473:6;526:2;514:9;505:7;501:23;497:32;494:2;;;547:6;539;532:22;494:2;591:9;578:23;610:31;635:5;610:31;:::i;676:261::-;746:6;799:2;787:9;778:7;774:23;770:32;767:2;;;820:6;812;805:22;767:2;857:9;851:16;876:31;901:5;876:31;:::i;942:1508::-;1190:6;1198;1206;1214;1222;1230;1238;1246;1299:3;1287:9;1278:7;1274:23;1270:33;1267:2;;;1321:6;1313;1306:22;1267:2;1366:9;1353:23;1395:18;1436:2;1428:6;1425:14;1422:2;;;1457:6;1449;1442:22;1422:2;1501:70;1563:7;1554:6;1543:9;1539:22;1501:70;:::i;:::-;1590:8;;-1:-1:-1;1475:96:1;-1:-1:-1;1678:2:1;1663:18;;1650:32;;-1:-1:-1;1694:16:1;;;1691:2;;;1728:6;1720;1713:22;1691:2;1772:72;1836:7;1825:8;1814:9;1810:24;1772:72;:::i;:::-;1863:8;;-1:-1:-1;1746:98:1;-1:-1:-1;1951:2:1;1936:18;;1923:32;;-1:-1:-1;1967:16:1;;;1964:2;;;2001:6;1993;1986:22;1964:2;2045:72;2109:7;2098:8;2087:9;2083:24;2045:72;:::i;:::-;2136:8;;-1:-1:-1;2019:98:1;-1:-1:-1;2224:2:1;2209:18;;2196:32;;-1:-1:-1;2240:16:1;;;2237:2;;;2274:6;2266;2259:22;2237:2;;2318:72;2382:7;2371:8;2360:9;2356:24;2318:72;:::i;:::-;1257:1193;;;;-1:-1:-1;1257:1193:1;;-1:-1:-1;1257:1193:1;;;;;;2409:8;-1:-1:-1;;;1257:1193:1:o;2455:297::-;2522:6;2575:2;2563:9;2554:7;2550:23;2546:32;2543:2;;;2596:6;2588;2581:22;2543:2;2633:9;2627:16;2686:5;2679:13;2672:21;2665:5;2662:32;2652:2;;2713:6;2705;2698:22;2757:190;2816:6;2869:2;2857:9;2848:7;2844:23;2840:32;2837:2;;;2890:6;2882;2875:22;2837:2;-1:-1:-1;2918:23:1;;2827:120;-1:-1:-1;2827:120:1:o;2952:440::-;3058:6;3066;3074;3082;3090;3143:3;3131:9;3122:7;3118:23;3114:33;3111:2;;;3165:6;3157;3150:22;3111:2;-1:-1:-1;;3193:16:1;;3249:2;3234:18;;3228:25;3293:2;3278:18;;3272:25;3337:2;3322:18;;3316:25;3381:3;3366:19;;;3360:26;3193:16;;3228:25;;-1:-1:-1;3272:25:1;3316;-1:-1:-1;3360:26:1;;-1:-1:-1;3101:291:1;-1:-1:-1;3101:291:1:o;3397:274::-;3526:3;3564:6;3558:13;3580:53;3626:6;3621:3;3614:4;3606:6;3602:17;3580:53;:::i;:::-;3649:16;;;;;3534:137;-1:-1:-1;;3534:137:1:o;4264:592::-;-1:-1:-1;;;;;4481:32:1;;4463:51;;4550:2;4545;4530:18;;4523:30;;;4569:18;;4562:34;;;-1:-1:-1;;;;;;4608:31:1;;4605:2;;;4655:4;4649;4642:18;4605:2;4692:6;4689:1;4685:14;4749:6;4741;4736:2;4725:9;4721:18;4708:48;4779:22;;;;4803:2;4775:31;4815:16;;;4775:31;4453:403;-1:-1:-1;;;4453:403:1:o;5140:425::-;-1:-1:-1;;;;;5397:32:1;;;;5379:51;;5461:2;5446:18;;5439:34;;;;5504:2;5489:18;;5482:34;5547:2;5532:18;;5525:34;5366:3;5351:19;;5333:232::o;8126:383::-;8275:2;8264:9;8257:21;8238:4;8307:6;8301:13;8350:6;8345:2;8334:9;8330:18;8323:34;8366:66;8425:6;8420:2;8409:9;8405:18;8400:2;8392:6;8388:15;8366:66;:::i;:::-;8493:2;8472:15;-1:-1:-1;;8468:29:1;8453:45;;;;8500:2;8449:54;;8247:262;-1:-1:-1;;8247:262:1:o;11920:345::-;12122:2;12104:21;;;12161:2;12141:18;;;12134:30;-1:-1:-1;;;12195:2:1;12180:18;;12173:51;12256:2;12241:18;;12094:171::o;13162:557::-;13255:4;13261:6;13321:11;13308:25;13415:2;13411:7;13400:8;13384:14;13380:29;13376:43;13356:18;13352:68;13342:2;;13437:4;13431;13424:18;13342:2;13467:33;;13519:20;;;-1:-1:-1;13562:18:1;13551:30;;13548:2;;;13597:4;13591;13584:18;13548:2;13633:4;13621:17;;-1:-1:-1;13684:1:1;13680:14;;;13664;13660:35;13650:46;;13647:2;;;13709:1;13706;13699:12;13724:561;13817:4;13823:6;13883:11;13870:25;13977:2;13973:7;13962:8;13946:14;13942:29;13938:43;13918:18;13914:68;13904:2;;14001:6;13993;13986:22;14290:128;14330:3;14361:1;14357:6;14354:1;14351:13;14348:2;;;14367:18;;:::i;:::-;-1:-1:-1;14403:9:1;;14338:80::o;14423:258::-;14495:1;14505:113;14519:6;14516:1;14513:13;14505:113;;;14595:11;;;14589:18;14576:11;;;14569:39;14541:2;14534:10;14505:113;;;14636:6;14633:1;14630:13;14627:2;;;-1:-1:-1;;14671:1:1;14653:16;;14646:27;14476:205::o;14686:135::-;14725:3;-1:-1:-1;;14746:17:1;;14743:2;;;14766:18;;:::i;:::-;-1:-1:-1;14813:1:1;14802:13;;14733:88::o;14826:127::-;14887:10;14882:3;14878:20;14875:1;14868:31;14918:4;14915:1;14908:15;14942:4;14939:1;14932:15;14958:131;-1:-1:-1;;;;;15033:31:1;;15023:42;;15013:2;;15079:1;15076;15069:12;15013:2;15003:86;:::o

Metadata Hash

ebc80a3eb21e41564000ab7fede929c2abd39bf079cda4c1440066e8becd38c7
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.