ETH Price: $3,307.23 (+1.08%)
Gas: 2 Gwei

Contract

0x3069e45BB6A638BB2b5944c2b2Fa257156258354
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim2183275032023-10-11 13:28:47292 days ago1697030927IN
0x3069e45B...156258354
0 ETH0.000966317.27715193
Claim3183046662023-10-08 8:46:59295 days ago1696754819IN
0x3069e45B...156258354
0 ETH0.000705755.84646619
Claim2181992832023-09-23 15:02:35310 days ago1695481355IN
0x3069e45B...156258354
0 ETH0.000866578.80876513
Claim3181959242023-09-23 3:45:47310 days ago1695440747IN
0x3069e45B...156258354
0 ETH0.000941317.8215065
Claim1181738672023-09-20 1:35:47313 days ago1695173747IN
0x3069e45B...156258354
0 ETH0.00094539.8241987
Claim0181637402023-09-18 15:34:11315 days ago1695051251IN
0x3069e45B...156258354
0 ETH0.0033070638.1199897
Claim2181555522023-09-17 11:47:11316 days ago1694951231IN
0x3069e45B...156258354
0 ETH0.000861638.75747554
Claim3181555352023-09-17 11:43:35316 days ago1694951015IN
0x3069e45B...156258354
0 ETH0.001059198.78884708
Claim3181555172023-09-17 11:39:47316 days ago1694950787IN
0x3069e45B...156258354
0 ETH0.001005688.35857138
Claim3181555052023-09-17 11:37:23316 days ago1694950643IN
0x3069e45B...156258354
0 ETH0.000937337.79048146
Claim3181554992023-09-17 11:36:11316 days ago1694950571IN
0x3069e45B...156258354
0 ETH0.000979658.14218897
Claim3181554872023-09-17 11:33:47316 days ago1694950427IN
0x3069e45B...156258354
0 ETH0.000952497.91647014
Claim3181554792023-09-17 11:32:11316 days ago1694950331IN
0x3069e45B...156258354
0 ETH0.000948557.88375988
Claim3181554612023-09-17 11:28:35316 days ago1694950115IN
0x3069e45B...156258354
0 ETH0.000993598.25805019
Claim3181554532023-09-17 11:26:59316 days ago1694950019IN
0x3069e45B...156258354
0 ETH0.001049118.70515715
Claim3181554402023-09-17 11:24:23316 days ago1694949863IN
0x3069e45B...156258354
0 ETH0.000931777.73156894
Claim3181554392023-09-17 11:24:11316 days ago1694949851IN
0x3069e45B...156258354
0 ETH0.00099618.26535271
Claim3181554192023-09-17 11:19:59316 days ago1694949599IN
0x3069e45B...156258354
0 ETH0.000955357.92724234
Claim3181553772023-09-17 11:10:47316 days ago1694949047IN
0x3069e45B...156258354
0 ETH0.000988088.19880743
Claim3181553422023-09-17 11:03:47316 days ago1694948627IN
0x3069e45B...156258354
0 ETH0.001044548.6824144
Claim3181551542023-09-17 10:25:35316 days ago1694946335IN
0x3069e45B...156258354
0 ETH0.001033688.57716334
Claim3181522052023-09-17 0:21:35316 days ago1694910095IN
0x3069e45B...156258354
0 ETH0.004212720
Claim3181516112023-09-16 22:20:47316 days ago1694902847IN
0x3069e45B...156258354
0 ETH0.0021566110.25002147
Claim3181507572023-09-16 19:26:11317 days ago1694892371IN
0x3069e45B...156258354
0 ETH0.0017606814.60954007
Claim3181489972023-09-16 13:27:59317 days ago1694870879IN
0x3069e45B...156258354
0 ETH0.0014928710.86378516
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardsPool

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : RewardsPool.sol
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "erc721a/contracts/extensions/IERC721AQueryable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";


contract RewardsPool is Ownable, ReentrancyGuard {
    address public token;

    address public nftFoxGarden;

    address public nftLittlemami;

    address public nft313Rabbit;

    bool public access;

    uint256 public round;

    using SafeERC20 for IERC20;

    using Strings for uint256;

    mapping(uint256 => uint256) public rewards;

    mapping(address => mapping(uint256 => uint256)) public tokenIdClaimed;

    modifier checkAccess() {
        require(access, "Can't access");
        _;
    }

    modifier checkNFT(address _nft, uint256[] calldata _tokenIds) {
        {
            string memory name = IERC721AQueryable(_nft).name();
            require(
                _tokenIds.length > 0,
                string(abi.encodePacked("You don't have enough ", name))
            );
            for (uint256 i = 0; i < _tokenIds.length; i++) {
                require(
                    IERC721AQueryable(_nft).ownerOf(_tokenIds[i]) ==
                        _msgSender(),
                    string(
                        abi.encodePacked(
                            "You must be ",
                            name,
                            " tokenId ",
                            _tokenIds[i].toString(),
                            " owner"
                        )
                    )
                );
                require(
                    tokenIdClaimed[_nft][_tokenIds[i]] < round,
                    string(
                        abi.encodePacked(
                            "The ",
                            name,
                            " tokenId ",
                            _tokenIds[i].toString(),
                            " you hold has been claimed in this round"
                        )
                    )
                );
                tokenIdClaimed[_nft][_tokenIds[i]] = round;
            }
        }

        _;
    }

    constructor() {
  
        //dai
        token = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
        nftFoxGarden = 0x91db548c2770aa04d45e55F5eC3d03Cd094fa1C3;
        nftLittlemami = 0xd6591bBb8A4867cEa5ec732f9c30379C4A8bE730;
        nft313Rabbit = 0xa38450B7503F33c803b43539485df45377758E17;
        rewards[0] = 40;
        rewards[1] = 48;
        rewards[2] = 64;
        rewards[3] = 80;
    }

    function setRewards(uint256[] calldata _rewards) external onlyOwner {
        for (uint256 i = 0; i < 4; i++) {
            rewards[i] = _rewards[i];
        }
    }

    function setAddress(
        address _token,
        address _nftFoxGarden,
        address _nftLittlemami,
        address _nft313Rabbit
    ) external onlyOwner {
        token = _token;
        nftFoxGarden = _nftFoxGarden;
        nftLittlemami = _nftLittlemami;
        nft313Rabbit = _nft313Rabbit;
    }

    function startRound() external onlyOwner {
        round++;
        access = true;
    }

    function stopRound() external onlyOwner {
        access = false;
    }

    function claim0(
        uint256[] calldata _foxTokenIds
    ) external checkAccess checkNFT(nftFoxGarden, _foxTokenIds) nonReentrant {
        IERC20(token).safeTransfer(
            _msgSender(),
            _foxTokenIds.length *
                rewards[0] *
                10 ** IERC20Metadata(token).decimals()
        );
    }

    function claim1(
        uint256[] calldata _foxTokenIds,
        uint256[] calldata _rabbitTokenIds
    )
        external
        checkAccess
        checkNFT(nftFoxGarden, _foxTokenIds)
        checkNFT(nft313Rabbit, _rabbitTokenIds)
        nonReentrant
    {
        require(
            _foxTokenIds.length == _rabbitTokenIds.length,
            "TokenIds length must be equal"
        );
        IERC20(token).safeTransfer(
            _msgSender(),
            _foxTokenIds.length *
                rewards[1] *
                10 ** IERC20Metadata(token).decimals()
        );
    }

    function claim2(
        uint256[] calldata _foxTokenIds,
        uint256[] calldata _mamiTokenIds
    )
        external
        checkAccess
        checkNFT(nftFoxGarden, _foxTokenIds)
        checkNFT(nftLittlemami, _mamiTokenIds)
        nonReentrant
    {
        require(
            _foxTokenIds.length == _mamiTokenIds.length,
            "TokenIds length must be equal"
        );
        IERC20(token).safeTransfer(
            _msgSender(),
            _foxTokenIds.length *
                rewards[2] *
                10 ** IERC20Metadata(token).decimals()
        );
    }

    function claim3(
        uint256[] calldata _foxTokenIds,
        uint256[] calldata _rabbitTokenIds,
        uint256[] calldata _mamiTokenIds
    )
        external
        checkAccess
        checkNFT(nftFoxGarden, _foxTokenIds)
        checkNFT(nft313Rabbit, _rabbitTokenIds)
        checkNFT(nftLittlemami, _mamiTokenIds)
        nonReentrant
    {
        require(
            _foxTokenIds.length == _rabbitTokenIds.length &&
                _mamiTokenIds.length == _rabbitTokenIds.length,
            "TokenIds length must be equal"
        );
        IERC20(token).safeTransfer(
            _msgSender(),
            _mamiTokenIds.length *
                rewards[3] *
                10 ** IERC20Metadata(token).decimals()
        );
    }

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

    function withdrawERC20(address _erc20, address _to) external onlyOwner {
        IERC20(_erc20).safeTransfer(
            _to,
            IERC20(_erc20).balanceOf(address(this))
        );
    }

    function withdrawERC721(
        address _erc721,
        address _to,
        uint256[] calldata _tokenIds
    ) external onlyOwner {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            IERC721A(_erc721).transferFrom(address(this), _to, _tokenIds[i]);
        }
    }

    function withdrawERC1155(
        address _erc1155,
        address _to,
        uint256[] calldata _ids,
        uint256[] calldata _amounts,
        bytes calldata _data
    ) external onlyOwner {
        IERC1155(_erc1155).safeBatchTransferFrom(
            address(this),
            _to,
            _ids,
            _amounts,
            _data
        );
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 4 of 21 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 5 of 21 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 6 of 21 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

File 7 of 21 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 8 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

File 9 of 21 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

File 10 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // 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;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @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) {
        _requireMinted(tokenId);

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

    /**
     * @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, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), 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-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 11 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 12 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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);
}

File 13 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.1;

/**
 * @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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 18 of 21 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"access","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_foxTokenIds","type":"uint256[]"}],"name":"claim0","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_foxTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_rabbitTokenIds","type":"uint256[]"}],"name":"claim1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_foxTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_mamiTokenIds","type":"uint256[]"}],"name":"claim2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_foxTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_rabbitTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_mamiTokenIds","type":"uint256[]"}],"name":"claim3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nft313Rabbit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftFoxGarden","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftLittlemami","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"round","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_nftFoxGarden","type":"address"},{"internalType":"address","name":"_nftLittlemami","type":"address"},{"internalType":"address","name":"_nft313Rabbit","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_rewards","type":"uint256[]"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_erc1155","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_erc20","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_erc721","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a33610140565b60018055600280546001600160a01b0319908116736b175474e89094c44da98b954eedeac495271d0f179091556003805482167391db548c2770aa04d45e55f5ec3d03cd094fa1c317815560048054831673d6591bbb8a4867cea5ec732f9c30379c4a8be7301790556005805490921673a38450b7503f33c803b43539485df45377758e1717909155600760205260287f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df5560307fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b8285560407fb7c774451310d1be4108bc180d1b52823cb0ee0274a6c0081bcaf94f115fb96d5560005260507f3be6fd20d5acfde5b873b48692cd31f4d3c7e8ee8a813af4696af8859e5ca6c655610190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6130f680620001a06000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806371907f17116100c3578063a927f6671161007c578063a927f667146102be578063d7e68aae146102d1578063f2fde38b146102e4578063f301af42146102f7578063fc0c546a14610317578063fe5074811461032a57600080fd5b806371907f171461023d578063811c93bb14610261578063849a5aef146102745780638da5cb5b146102875780639456fbcc146102985780639608088c146102ab57600080fd5b806352275d121161011557806352275d12146101d457806355b895eb146101ff57806355e3f0861461020757806364fdf39e1461020f578063690d832014610222578063715018a61461023557600080fd5b80630b715796146101525780630cc7114a1461016757806313d886601461017a578063146ca5311461018d578063467ae29e146101a9575b600080fd5b610165610160366004612ac6565b61033d565b005b610165610175366004612a24565b610d13565b610165610188366004612a24565b6110ea565b61019660065481565b6040519081526020015b60405180910390f35b6101966101b73660046129f8565b600860209081526000928352604080842090915290825290205481565b6003546101e7906001600160a01b031681565b6040516001600160a01b0390911681526020016101a0565b610165611143565b61016561115a565b6005546101e7906001600160a01b031681565b6101656102303660046127d1565b61118c565b61016561122e565b60055461025190600160a01b900460ff1681565b60405190151581526020016101a0565b6004546101e7906001600160a01b031681565b610165610282366004612a66565b611242565b6000546001600160a01b03166101e7565b6101656102a6366004612812565b61190a565b6101656102b936600461284b565b6119a0565b6101656102cc36600461290c565b6119f8565b6101656102df366004612a66565b611a76565b6101656102f23660046127d1565b612129565b610196610305366004612c24565b60076020526000908152604090205481565b6002546101e7906001600160a01b031681565b6101656103383660046128a7565b6121a2565b600554600160a01b900460ff1661036f5760405162461bcd60e51b815260040161036690612eeb565b60405180910390fd5b600360009054906101000a90046001600160a01b031686866000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156103c257600080fd5b505afa1580156103d6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103fe9190810190612b82565b60405190915082151590610416908390602001612ccb565b604051602081830303815290604052906104435760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561064557336001600160a01b038616636352211e8686858181106104715761047161307f565b905060200201356040518263ffffffff1660e01b815260040161049691815260200190565b60206040518083038186803b1580156104ae57600080fd5b505afa1580156104c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e691906127f5565b6001600160a01b031614826105128686858181106105065761050661307f565b9050602002013561225a565b604051602001610523929190612d98565b604051602081830303815290604052906105505760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061057f5761057f61307f565b9050602002013581526020019081526020016000205410826105ac8686858181106105065761050661307f565b6040516020016105bd929190612d09565b604051602081830303815290604052906105ea5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106106195761061961307f565b90506020020135815260200190815260200160002081905550808061063d9061304e565b915050610447565b5050600560009054906101000a90046001600160a01b031687876000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561069a57600080fd5b505afa1580156106ae573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d69190810190612b82565b604051909150821515906106ee908390602001612ccb565b6040516020818303038152906040529061071b5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561091157336001600160a01b038616636352211e8686858181106107495761074961307f565b905060200201356040518263ffffffff1660e01b815260040161076e91815260200190565b60206040518083038186803b15801561078657600080fd5b505afa15801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be91906127f5565b6001600160a01b031614826107de8686858181106105065761050661307f565b6040516020016107ef929190612d98565b6040516020818303038152906040529061081c5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061084b5761084b61307f565b9050602002013581526020019081526020016000205410826108788686858181106105065761050661307f565b604051602001610889929190612d09565b604051602081830303815290604052906108b65760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106108e5576108e561307f565b9050602002013581526020019081526020016000208190555080806109099061304e565b91505061071f565b5050600460009054906101000a90046001600160a01b031688886000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561096657600080fd5b505afa15801561097a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109a29190810190612b82565b604051909150821515906109ba908390602001612ccb565b604051602081830303815290604052906109e75760405162461bcd60e51b81526004016103669190612e81565b5060005b82811015610bdd57336001600160a01b038616636352211e868685818110610a1557610a1561307f565b905060200201356040518263ffffffff1660e01b8152600401610a3a91815260200190565b60206040518083038186803b158015610a5257600080fd5b505afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a91906127f5565b6001600160a01b03161482610aaa8686858181106105065761050661307f565b604051602001610abb929190612d98565b60405160208183030381529060405290610ae85760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610b1757610b1761307f565b905060200201358152602001908152602001600020541082610b448686858181106105065761050661307f565b604051602001610b55929190612d09565b60405160208183030381529060405290610b825760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610bb157610bb161307f565b905060200201358152602001908152602001600020819055508080610bd59061304e565b9150506109eb565b5050610be76122f7565b8d8c148015610bf55750898c145b610c115760405162461bcd60e51b815260040161036690612eb4565b610cf933600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610c6357600080fd5b505afa158015610c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9b9190612c56565b610ca690600a612f54565b600360005260076020527f3be6fd20d5acfde5b873b48692cd31f4d3c7e8ee8a813af4696af8859e5ca6c654610cdc908e612fff565b610ce69190612fff565b6002546001600160a01b03169190612351565b610d0260018055565b505050505050505050505050505050565b600554600160a01b900460ff16610d3c5760405162461bcd60e51b815260040161036690612eeb565b600360009054906101000a90046001600160a01b031682826000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610d8f57600080fd5b505afa158015610da3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dcb9190810190612b82565b60405190915082151590610de3908390602001612ccb565b60405160208183030381529060405290610e105760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561100657336001600160a01b038616636352211e868685818110610e3e57610e3e61307f565b905060200201356040518263ffffffff1660e01b8152600401610e6391815260200190565b60206040518083038186803b158015610e7b57600080fd5b505afa158015610e8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb391906127f5565b6001600160a01b03161482610ed38686858181106105065761050661307f565b604051602001610ee4929190612d98565b60405160208183030381529060405290610f115760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610f4057610f4061307f565b905060200201358152602001908152602001600020541082610f6d8686858181106105065761050661307f565b604051602001610f7e929190612d09565b60405160208183030381529060405290610fab5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610fda57610fda61307f565b905060200201358152602001908152602001600020819055508080610ffe9061304e565b915050610e14565b50506110106122f7565b6110da33600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561106257600080fd5b505afa158015611076573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109a9190612c56565b6110a590600a612f54565b6000805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df54610cdc9088612fff565b6110e360018055565b5050505050565b6110f26123a3565b60005b600481101561113e578282828181106111105761111061307f565b60008481526007602090815260409091209102929092013590915550806111368161304e565b9150506110f5565b505050565b61114b6123a3565b6005805460ff60a01b19169055565b6111626123a3565b600680549060006111728361304e565b90915550506005805460ff60a01b1916600160a01b179055565b6111946123a3565b6000816001600160a01b03164760405160006040518083038185875af1925050503d80600081146111e1576040519150601f19603f3d011682016040523d82523d6000602084013e6111e6565b606091505b505090508061122a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610366565b5050565b6112366123a3565b61124060006123fd565b565b600554600160a01b900460ff1661126b5760405162461bcd60e51b815260040161036690612eeb565b600360009054906101000a90046001600160a01b031684846000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156112be57600080fd5b505afa1580156112d2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112fa9190810190612b82565b60405190915082151590611312908390602001612ccb565b6040516020818303038152906040529061133f5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561153557336001600160a01b038616636352211e86868581811061136d5761136d61307f565b905060200201356040518263ffffffff1660e01b815260040161139291815260200190565b60206040518083038186803b1580156113aa57600080fd5b505afa1580156113be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e291906127f5565b6001600160a01b031614826114028686858181106105065761050661307f565b604051602001611413929190612d98565b604051602081830303815290604052906114405760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061146f5761146f61307f565b90506020020135815260200190815260200160002054108261149c8686858181106105065761050661307f565b6040516020016114ad929190612d09565b604051602081830303815290604052906114da5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106115095761150961307f565b90506020020135815260200190815260200160002081905550808061152d9061304e565b915050611343565b5050600560009054906101000a90046001600160a01b031685856000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561158a57600080fd5b505afa15801561159e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115c69190810190612b82565b604051909150821515906115de908390602001612ccb565b6040516020818303038152906040529061160b5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561180157336001600160a01b038616636352211e8686858181106116395761163961307f565b905060200201356040518263ffffffff1660e01b815260040161165e91815260200190565b60206040518083038186803b15801561167657600080fd5b505afa15801561168a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ae91906127f5565b6001600160a01b031614826116ce8686858181106105065761050661307f565b6040516020016116df929190612d98565b6040516020818303038152906040529061170c5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061173b5761173b61307f565b9050602002013581526020019081526020016000205410826117688686858181106105065761050661307f565b604051602001611779929190612d09565b604051602081830303815290604052906117a65760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106117d5576117d561307f565b9050602002013581526020019081526020016000208190555080806117f99061304e565b91505061160f565b505061180b6122f7565b88871461182a5760405162461bcd60e51b815260040161036690612eb4565b6118f533600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561187c57600080fd5b505afa158015611890573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b49190612c56565b6118bf90600a612f54565b600160005260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82854610cdc908d612fff565b6118fe60018055565b50505050505050505050565b6119126123a3565b6040516370a0823160e01b815230600482015261122a9082906001600160a01b038516906370a082319060240160206040518083038186803b15801561195757600080fd5b505afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f9190612c3d565b6001600160a01b0385169190612351565b6119a86123a3565b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600480549285169284169290921790915560058054919093169116179055565b611a006123a3565b604051631759616b60e11b81526001600160a01b03891690632eb2c2d690611a3a9030908b908b908b908b908b908b908b90600401612e07565b600060405180830381600087803b158015611a5457600080fd5b505af1158015611a68573d6000803e3d6000fd5b505050505050505050505050565b600554600160a01b900460ff16611a9f5760405162461bcd60e51b815260040161036690612eeb565b600360009054906101000a90046001600160a01b031684846000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611af257600080fd5b505afa158015611b06573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b2e9190810190612b82565b60405190915082151590611b46908390602001612ccb565b60405160208183030381529060405290611b735760405162461bcd60e51b81526004016103669190612e81565b5060005b82811015611d6957336001600160a01b038616636352211e868685818110611ba157611ba161307f565b905060200201356040518263ffffffff1660e01b8152600401611bc691815260200190565b60206040518083038186803b158015611bde57600080fd5b505afa158015611bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1691906127f5565b6001600160a01b03161482611c368686858181106105065761050661307f565b604051602001611c47929190612d98565b60405160208183030381529060405290611c745760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110611ca357611ca361307f565b905060200201358152602001908152602001600020541082611cd08686858181106105065761050661307f565b604051602001611ce1929190612d09565b60405160208183030381529060405290611d0e5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110611d3d57611d3d61307f565b905060200201358152602001908152602001600020819055508080611d619061304e565b915050611b77565b5050600460009054906101000a90046001600160a01b031685856000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611dbe57600080fd5b505afa158015611dd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611dfa9190810190612b82565b60405190915082151590611e12908390602001612ccb565b60405160208183030381529060405290611e3f5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561203557336001600160a01b038616636352211e868685818110611e6d57611e6d61307f565b905060200201356040518263ffffffff1660e01b8152600401611e9291815260200190565b60206040518083038186803b158015611eaa57600080fd5b505afa158015611ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee291906127f5565b6001600160a01b03161482611f028686858181106105065761050661307f565b604051602001611f13929190612d98565b60405160208183030381529060405290611f405760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110611f6f57611f6f61307f565b905060200201358152602001908152602001600020541082611f9c8686858181106105065761050661307f565b604051602001611fad929190612d09565b60405160208183030381529060405290611fda5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106120095761200961307f565b90506020020135815260200190815260200160002081905550808061202d9061304e565b915050611e43565b505061203f6122f7565b88871461205e5760405162461bcd60e51b815260040161036690612eb4565b6118f533600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156120b057600080fd5b505afa1580156120c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e89190612c56565b6120f390600a612f54565b600260005260076020527fb7c774451310d1be4108bc180d1b52823cb0ee0274a6c0081bcaf94f115fb96d54610cdc908d612fff565b6121316123a3565b6001600160a01b0381166121965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610366565b61219f816123fd565b50565b6121aa6123a3565b60005b818110156110e357846001600160a01b03166323b872dd30868686868181106121d8576121d861307f565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561222f57600080fd5b505af1158015612243573d6000803e3d6000fd5b5050505080806122529061304e565b9150506121ad565b606060006122678361244d565b600101905060008167ffffffffffffffff81111561228757612287613095565b6040519080825280601f01601f1916602001820160405280156122b1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846122ea576122ef565b6122bb565b509392505050565b6002600154141561234a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610366565b6002600155565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261113e908490612526565b6000546001600160a01b031633146112405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610366565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061248c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106124b8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106124d657662386f26fc10000830492506010015b6305f5e10083106124ee576305f5e100830492506008015b612710831061250257612710830492506004015b60648310612514576064830492506002015b600a8310612520576001015b92915050565b600061257b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125f89092919063ffffffff16565b80519091501561113e57808060200190518101906125999190612b60565b61113e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610366565b6060612607848460008561260f565b949350505050565b6060824710156126705760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610366565b600080866001600160a01b0316858760405161268c9190612caf565b60006040518083038185875af1925050503d80600081146126c9576040519150601f19603f3d011682016040523d82523d6000602084013e6126ce565b606091505b50915091506126df878383876126ea565b979650505050505050565b6060831561275657825161274f576001600160a01b0385163b61274f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610366565b5081612607565b612607838381511561276b5781518083602001fd5b8060405162461bcd60e51b81526004016103669190612e81565b60008083601f84011261279757600080fd5b50813567ffffffffffffffff8111156127af57600080fd5b6020830191508360208260051b85010111156127ca57600080fd5b9250929050565b6000602082840312156127e357600080fd5b81356127ee816130ab565b9392505050565b60006020828403121561280757600080fd5b81516127ee816130ab565b6000806040838503121561282557600080fd5b8235612830816130ab565b91506020830135612840816130ab565b809150509250929050565b6000806000806080858703121561286157600080fd5b843561286c816130ab565b9350602085013561287c816130ab565b9250604085013561288c816130ab565b9150606085013561289c816130ab565b939692955090935050565b600080600080606085870312156128bd57600080fd5b84356128c8816130ab565b935060208501356128d8816130ab565b9250604085013567ffffffffffffffff8111156128f457600080fd5b61290087828801612785565b95989497509550505050565b60008060008060008060008060a0898b03121561292857600080fd5b8835612933816130ab565b97506020890135612943816130ab565b9650604089013567ffffffffffffffff8082111561296057600080fd5b61296c8c838d01612785565b909850965060608b013591508082111561298557600080fd5b6129918c838d01612785565b909650945060808b01359150808211156129aa57600080fd5b818b0191508b601f8301126129be57600080fd5b8135818111156129cd57600080fd5b8c60208285010111156129df57600080fd5b6020830194508093505050509295985092959890939650565b60008060408385031215612a0b57600080fd5b8235612a16816130ab565b946020939093013593505050565b60008060208385031215612a3757600080fd5b823567ffffffffffffffff811115612a4e57600080fd5b612a5a85828601612785565b90969095509350505050565b60008060008060408587031215612a7c57600080fd5b843567ffffffffffffffff80821115612a9457600080fd5b612aa088838901612785565b90965094506020870135915080821115612ab957600080fd5b5061290087828801612785565b60008060008060008060608789031215612adf57600080fd5b863567ffffffffffffffff80821115612af757600080fd5b612b038a838b01612785565b90985096506020890135915080821115612b1c57600080fd5b612b288a838b01612785565b90965094506040890135915080821115612b4157600080fd5b50612b4e89828a01612785565b979a9699509497509295939492505050565b600060208284031215612b7257600080fd5b815180151581146127ee57600080fd5b600060208284031215612b9457600080fd5b815167ffffffffffffffff80821115612bac57600080fd5b818401915084601f830112612bc057600080fd5b815181811115612bd257612bd2613095565b604051601f8201601f19908116603f01168101908382118183101715612bfa57612bfa613095565b81604052828152876020848701011115612c1357600080fd5b6126df83602083016020880161301e565b600060208284031215612c3657600080fd5b5035919050565b600060208284031215612c4f57600080fd5b5051919050565b600060208284031215612c6857600080fd5b815160ff811681146127ee57600080fd5b81835260006001600160fb1b03831115612c9257600080fd5b8260051b8083602087013760009401602001938452509192915050565b60008251612cc181846020870161301e565b9190910192915050565b7502cb7ba903237b713ba103430bb329032b737bab3b4160551b815260008251612cfc81601685016020870161301e565b9190910160160192915050565b6302a3432960e51b815260008351612d2881600485016020880161301e565b680103a37b5b2b724b2160bd1b6004918401918201528351612d5181600d84016020880161301e565b7f20796f7520686f6c6420686173206265656e20636c61696d656420696e207468600d9290910191820152671a5cc81c9bdd5b9960c21b602d820152603501949350505050565b6b02cb7ba9036bab9ba103132960a51b815260008351612dbf81600c85016020880161301e565b680103a37b5b2b724b2160bd1b600c918401918201528351612de881601584016020880161301e565b651037bbb732b960d11b60159290910191820152601b01949350505050565b6001600160a01b0389811682528816602082015260a060408201819052600090612e34908301888a612c79565b8281036060840152612e47818789612c79565b90508281036080840152838152838560208301376000602085830101526020601f19601f8601168201019150509998505050505050505050565b6020815260008251806020840152612ea081604085016020870161301e565b601f01601f19169190910160400192915050565b6020808252601d908201527f546f6b656e496473206c656e677468206d75737420626520657175616c000000604082015260600190565b6020808252600c908201526b43616e27742061636365737360a01b604082015260600190565b600181815b80851115612f4c578160001904821115612f3257612f32613069565b80851615612f3f57918102915b93841c9390800290612f16565b509250929050565b60006127ee60ff841683600082612f6d57506001612520565b81612f7a57506000612520565b8160018114612f905760028114612f9a57612fb6565b6001915050612520565b60ff841115612fab57612fab613069565b50506001821b612520565b5060208310610133831016604e8410600b8410161715612fd9575081810a612520565b612fe38383612f11565b8060001904821115612ff757612ff7613069565b029392505050565b600081600019048311821515161561301957613019613069565b500290565b60005b83811015613039578181015183820152602001613021565b83811115613048576000848401525b50505050565b600060001982141561306257613062613069565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461219f57600080fdfea26469706673582212207b032b8572393e9dfe65a7359a9cfe7702f131b6ec926b3c0e4074394566463a64736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806371907f17116100c3578063a927f6671161007c578063a927f667146102be578063d7e68aae146102d1578063f2fde38b146102e4578063f301af42146102f7578063fc0c546a14610317578063fe5074811461032a57600080fd5b806371907f171461023d578063811c93bb14610261578063849a5aef146102745780638da5cb5b146102875780639456fbcc146102985780639608088c146102ab57600080fd5b806352275d121161011557806352275d12146101d457806355b895eb146101ff57806355e3f0861461020757806364fdf39e1461020f578063690d832014610222578063715018a61461023557600080fd5b80630b715796146101525780630cc7114a1461016757806313d886601461017a578063146ca5311461018d578063467ae29e146101a9575b600080fd5b610165610160366004612ac6565b61033d565b005b610165610175366004612a24565b610d13565b610165610188366004612a24565b6110ea565b61019660065481565b6040519081526020015b60405180910390f35b6101966101b73660046129f8565b600860209081526000928352604080842090915290825290205481565b6003546101e7906001600160a01b031681565b6040516001600160a01b0390911681526020016101a0565b610165611143565b61016561115a565b6005546101e7906001600160a01b031681565b6101656102303660046127d1565b61118c565b61016561122e565b60055461025190600160a01b900460ff1681565b60405190151581526020016101a0565b6004546101e7906001600160a01b031681565b610165610282366004612a66565b611242565b6000546001600160a01b03166101e7565b6101656102a6366004612812565b61190a565b6101656102b936600461284b565b6119a0565b6101656102cc36600461290c565b6119f8565b6101656102df366004612a66565b611a76565b6101656102f23660046127d1565b612129565b610196610305366004612c24565b60076020526000908152604090205481565b6002546101e7906001600160a01b031681565b6101656103383660046128a7565b6121a2565b600554600160a01b900460ff1661036f5760405162461bcd60e51b815260040161036690612eeb565b60405180910390fd5b600360009054906101000a90046001600160a01b031686866000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156103c257600080fd5b505afa1580156103d6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103fe9190810190612b82565b60405190915082151590610416908390602001612ccb565b604051602081830303815290604052906104435760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561064557336001600160a01b038616636352211e8686858181106104715761047161307f565b905060200201356040518263ffffffff1660e01b815260040161049691815260200190565b60206040518083038186803b1580156104ae57600080fd5b505afa1580156104c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e691906127f5565b6001600160a01b031614826105128686858181106105065761050661307f565b9050602002013561225a565b604051602001610523929190612d98565b604051602081830303815290604052906105505760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061057f5761057f61307f565b9050602002013581526020019081526020016000205410826105ac8686858181106105065761050661307f565b6040516020016105bd929190612d09565b604051602081830303815290604052906105ea5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106106195761061961307f565b90506020020135815260200190815260200160002081905550808061063d9061304e565b915050610447565b5050600560009054906101000a90046001600160a01b031687876000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561069a57600080fd5b505afa1580156106ae573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d69190810190612b82565b604051909150821515906106ee908390602001612ccb565b6040516020818303038152906040529061071b5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561091157336001600160a01b038616636352211e8686858181106107495761074961307f565b905060200201356040518263ffffffff1660e01b815260040161076e91815260200190565b60206040518083038186803b15801561078657600080fd5b505afa15801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be91906127f5565b6001600160a01b031614826107de8686858181106105065761050661307f565b6040516020016107ef929190612d98565b6040516020818303038152906040529061081c5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061084b5761084b61307f565b9050602002013581526020019081526020016000205410826108788686858181106105065761050661307f565b604051602001610889929190612d09565b604051602081830303815290604052906108b65760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106108e5576108e561307f565b9050602002013581526020019081526020016000208190555080806109099061304e565b91505061071f565b5050600460009054906101000a90046001600160a01b031688886000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561096657600080fd5b505afa15801561097a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109a29190810190612b82565b604051909150821515906109ba908390602001612ccb565b604051602081830303815290604052906109e75760405162461bcd60e51b81526004016103669190612e81565b5060005b82811015610bdd57336001600160a01b038616636352211e868685818110610a1557610a1561307f565b905060200201356040518263ffffffff1660e01b8152600401610a3a91815260200190565b60206040518083038186803b158015610a5257600080fd5b505afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a91906127f5565b6001600160a01b03161482610aaa8686858181106105065761050661307f565b604051602001610abb929190612d98565b60405160208183030381529060405290610ae85760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610b1757610b1761307f565b905060200201358152602001908152602001600020541082610b448686858181106105065761050661307f565b604051602001610b55929190612d09565b60405160208183030381529060405290610b825760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610bb157610bb161307f565b905060200201358152602001908152602001600020819055508080610bd59061304e565b9150506109eb565b5050610be76122f7565b8d8c148015610bf55750898c145b610c115760405162461bcd60e51b815260040161036690612eb4565b610cf933600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610c6357600080fd5b505afa158015610c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9b9190612c56565b610ca690600a612f54565b600360005260076020527f3be6fd20d5acfde5b873b48692cd31f4d3c7e8ee8a813af4696af8859e5ca6c654610cdc908e612fff565b610ce69190612fff565b6002546001600160a01b03169190612351565b610d0260018055565b505050505050505050505050505050565b600554600160a01b900460ff16610d3c5760405162461bcd60e51b815260040161036690612eeb565b600360009054906101000a90046001600160a01b031682826000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610d8f57600080fd5b505afa158015610da3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610dcb9190810190612b82565b60405190915082151590610de3908390602001612ccb565b60405160208183030381529060405290610e105760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561100657336001600160a01b038616636352211e868685818110610e3e57610e3e61307f565b905060200201356040518263ffffffff1660e01b8152600401610e6391815260200190565b60206040518083038186803b158015610e7b57600080fd5b505afa158015610e8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb391906127f5565b6001600160a01b03161482610ed38686858181106105065761050661307f565b604051602001610ee4929190612d98565b60405160208183030381529060405290610f115760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610f4057610f4061307f565b905060200201358152602001908152602001600020541082610f6d8686858181106105065761050661307f565b604051602001610f7e929190612d09565b60405160208183030381529060405290610fab5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110610fda57610fda61307f565b905060200201358152602001908152602001600020819055508080610ffe9061304e565b915050610e14565b50506110106122f7565b6110da33600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561106257600080fd5b505afa158015611076573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109a9190612c56565b6110a590600a612f54565b6000805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df54610cdc9088612fff565b6110e360018055565b5050505050565b6110f26123a3565b60005b600481101561113e578282828181106111105761111061307f565b60008481526007602090815260409091209102929092013590915550806111368161304e565b9150506110f5565b505050565b61114b6123a3565b6005805460ff60a01b19169055565b6111626123a3565b600680549060006111728361304e565b90915550506005805460ff60a01b1916600160a01b179055565b6111946123a3565b6000816001600160a01b03164760405160006040518083038185875af1925050503d80600081146111e1576040519150601f19603f3d011682016040523d82523d6000602084013e6111e6565b606091505b505090508061122a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610366565b5050565b6112366123a3565b61124060006123fd565b565b600554600160a01b900460ff1661126b5760405162461bcd60e51b815260040161036690612eeb565b600360009054906101000a90046001600160a01b031684846000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156112be57600080fd5b505afa1580156112d2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112fa9190810190612b82565b60405190915082151590611312908390602001612ccb565b6040516020818303038152906040529061133f5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561153557336001600160a01b038616636352211e86868581811061136d5761136d61307f565b905060200201356040518263ffffffff1660e01b815260040161139291815260200190565b60206040518083038186803b1580156113aa57600080fd5b505afa1580156113be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e291906127f5565b6001600160a01b031614826114028686858181106105065761050661307f565b604051602001611413929190612d98565b604051602081830303815290604052906114405760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061146f5761146f61307f565b90506020020135815260200190815260200160002054108261149c8686858181106105065761050661307f565b6040516020016114ad929190612d09565b604051602081830303815290604052906114da5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106115095761150961307f565b90506020020135815260200190815260200160002081905550808061152d9061304e565b915050611343565b5050600560009054906101000a90046001600160a01b031685856000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b15801561158a57600080fd5b505afa15801561159e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115c69190810190612b82565b604051909150821515906115de908390602001612ccb565b6040516020818303038152906040529061160b5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561180157336001600160a01b038616636352211e8686858181106116395761163961307f565b905060200201356040518263ffffffff1660e01b815260040161165e91815260200190565b60206040518083038186803b15801561167657600080fd5b505afa15801561168a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ae91906127f5565b6001600160a01b031614826116ce8686858181106105065761050661307f565b6040516020016116df929190612d98565b6040516020818303038152906040529061170c5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b03861660009081526008602052604081209086868581811061173b5761173b61307f565b9050602002013581526020019081526020016000205410826117688686858181106105065761050661307f565b604051602001611779929190612d09565b604051602081830303815290604052906117a65760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106117d5576117d561307f565b9050602002013581526020019081526020016000208190555080806117f99061304e565b91505061160f565b505061180b6122f7565b88871461182a5760405162461bcd60e51b815260040161036690612eb4565b6118f533600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561187c57600080fd5b505afa158015611890573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b49190612c56565b6118bf90600a612f54565b600160005260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82854610cdc908d612fff565b6118fe60018055565b50505050505050505050565b6119126123a3565b6040516370a0823160e01b815230600482015261122a9082906001600160a01b038516906370a082319060240160206040518083038186803b15801561195757600080fd5b505afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f9190612c3d565b6001600160a01b0385169190612351565b6119a86123a3565b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600480549285169284169290921790915560058054919093169116179055565b611a006123a3565b604051631759616b60e11b81526001600160a01b03891690632eb2c2d690611a3a9030908b908b908b908b908b908b908b90600401612e07565b600060405180830381600087803b158015611a5457600080fd5b505af1158015611a68573d6000803e3d6000fd5b505050505050505050505050565b600554600160a01b900460ff16611a9f5760405162461bcd60e51b815260040161036690612eeb565b600360009054906101000a90046001600160a01b031684846000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611af257600080fd5b505afa158015611b06573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b2e9190810190612b82565b60405190915082151590611b46908390602001612ccb565b60405160208183030381529060405290611b735760405162461bcd60e51b81526004016103669190612e81565b5060005b82811015611d6957336001600160a01b038616636352211e868685818110611ba157611ba161307f565b905060200201356040518263ffffffff1660e01b8152600401611bc691815260200190565b60206040518083038186803b158015611bde57600080fd5b505afa158015611bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1691906127f5565b6001600160a01b03161482611c368686858181106105065761050661307f565b604051602001611c47929190612d98565b60405160208183030381529060405290611c745760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110611ca357611ca361307f565b905060200201358152602001908152602001600020541082611cd08686858181106105065761050661307f565b604051602001611ce1929190612d09565b60405160208183030381529060405290611d0e5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110611d3d57611d3d61307f565b905060200201358152602001908152602001600020819055508080611d619061304e565b915050611b77565b5050600460009054906101000a90046001600160a01b031685856000836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611dbe57600080fd5b505afa158015611dd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611dfa9190810190612b82565b60405190915082151590611e12908390602001612ccb565b60405160208183030381529060405290611e3f5760405162461bcd60e51b81526004016103669190612e81565b5060005b8281101561203557336001600160a01b038616636352211e868685818110611e6d57611e6d61307f565b905060200201356040518263ffffffff1660e01b8152600401611e9291815260200190565b60206040518083038186803b158015611eaa57600080fd5b505afa158015611ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee291906127f5565b6001600160a01b03161482611f028686858181106105065761050661307f565b604051602001611f13929190612d98565b60405160208183030381529060405290611f405760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b038616600090815260086020526040812090868685818110611f6f57611f6f61307f565b905060200201358152602001908152602001600020541082611f9c8686858181106105065761050661307f565b604051602001611fad929190612d09565b60405160208183030381529060405290611fda5760405162461bcd60e51b81526004016103669190612e81565b506006546001600160a01b0386166000908152600860205260408120908686858181106120095761200961307f565b90506020020135815260200190815260200160002081905550808061202d9061304e565b915050611e43565b505061203f6122f7565b88871461205e5760405162461bcd60e51b815260040161036690612eb4565b6118f533600260009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156120b057600080fd5b505afa1580156120c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e89190612c56565b6120f390600a612f54565b600260005260076020527fb7c774451310d1be4108bc180d1b52823cb0ee0274a6c0081bcaf94f115fb96d54610cdc908d612fff565b6121316123a3565b6001600160a01b0381166121965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610366565b61219f816123fd565b50565b6121aa6123a3565b60005b818110156110e357846001600160a01b03166323b872dd30868686868181106121d8576121d861307f565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561222f57600080fd5b505af1158015612243573d6000803e3d6000fd5b5050505080806122529061304e565b9150506121ad565b606060006122678361244d565b600101905060008167ffffffffffffffff81111561228757612287613095565b6040519080825280601f01601f1916602001820160405280156122b1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846122ea576122ef565b6122bb565b509392505050565b6002600154141561234a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610366565b6002600155565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261113e908490612526565b6000546001600160a01b031633146112405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610366565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061248c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106124b8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106124d657662386f26fc10000830492506010015b6305f5e10083106124ee576305f5e100830492506008015b612710831061250257612710830492506004015b60648310612514576064830492506002015b600a8310612520576001015b92915050565b600061257b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125f89092919063ffffffff16565b80519091501561113e57808060200190518101906125999190612b60565b61113e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610366565b6060612607848460008561260f565b949350505050565b6060824710156126705760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610366565b600080866001600160a01b0316858760405161268c9190612caf565b60006040518083038185875af1925050503d80600081146126c9576040519150601f19603f3d011682016040523d82523d6000602084013e6126ce565b606091505b50915091506126df878383876126ea565b979650505050505050565b6060831561275657825161274f576001600160a01b0385163b61274f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610366565b5081612607565b612607838381511561276b5781518083602001fd5b8060405162461bcd60e51b81526004016103669190612e81565b60008083601f84011261279757600080fd5b50813567ffffffffffffffff8111156127af57600080fd5b6020830191508360208260051b85010111156127ca57600080fd5b9250929050565b6000602082840312156127e357600080fd5b81356127ee816130ab565b9392505050565b60006020828403121561280757600080fd5b81516127ee816130ab565b6000806040838503121561282557600080fd5b8235612830816130ab565b91506020830135612840816130ab565b809150509250929050565b6000806000806080858703121561286157600080fd5b843561286c816130ab565b9350602085013561287c816130ab565b9250604085013561288c816130ab565b9150606085013561289c816130ab565b939692955090935050565b600080600080606085870312156128bd57600080fd5b84356128c8816130ab565b935060208501356128d8816130ab565b9250604085013567ffffffffffffffff8111156128f457600080fd5b61290087828801612785565b95989497509550505050565b60008060008060008060008060a0898b03121561292857600080fd5b8835612933816130ab565b97506020890135612943816130ab565b9650604089013567ffffffffffffffff8082111561296057600080fd5b61296c8c838d01612785565b909850965060608b013591508082111561298557600080fd5b6129918c838d01612785565b909650945060808b01359150808211156129aa57600080fd5b818b0191508b601f8301126129be57600080fd5b8135818111156129cd57600080fd5b8c60208285010111156129df57600080fd5b6020830194508093505050509295985092959890939650565b60008060408385031215612a0b57600080fd5b8235612a16816130ab565b946020939093013593505050565b60008060208385031215612a3757600080fd5b823567ffffffffffffffff811115612a4e57600080fd5b612a5a85828601612785565b90969095509350505050565b60008060008060408587031215612a7c57600080fd5b843567ffffffffffffffff80821115612a9457600080fd5b612aa088838901612785565b90965094506020870135915080821115612ab957600080fd5b5061290087828801612785565b60008060008060008060608789031215612adf57600080fd5b863567ffffffffffffffff80821115612af757600080fd5b612b038a838b01612785565b90985096506020890135915080821115612b1c57600080fd5b612b288a838b01612785565b90965094506040890135915080821115612b4157600080fd5b50612b4e89828a01612785565b979a9699509497509295939492505050565b600060208284031215612b7257600080fd5b815180151581146127ee57600080fd5b600060208284031215612b9457600080fd5b815167ffffffffffffffff80821115612bac57600080fd5b818401915084601f830112612bc057600080fd5b815181811115612bd257612bd2613095565b604051601f8201601f19908116603f01168101908382118183101715612bfa57612bfa613095565b81604052828152876020848701011115612c1357600080fd5b6126df83602083016020880161301e565b600060208284031215612c3657600080fd5b5035919050565b600060208284031215612c4f57600080fd5b5051919050565b600060208284031215612c6857600080fd5b815160ff811681146127ee57600080fd5b81835260006001600160fb1b03831115612c9257600080fd5b8260051b8083602087013760009401602001938452509192915050565b60008251612cc181846020870161301e565b9190910192915050565b7502cb7ba903237b713ba103430bb329032b737bab3b4160551b815260008251612cfc81601685016020870161301e565b9190910160160192915050565b6302a3432960e51b815260008351612d2881600485016020880161301e565b680103a37b5b2b724b2160bd1b6004918401918201528351612d5181600d84016020880161301e565b7f20796f7520686f6c6420686173206265656e20636c61696d656420696e207468600d9290910191820152671a5cc81c9bdd5b9960c21b602d820152603501949350505050565b6b02cb7ba9036bab9ba103132960a51b815260008351612dbf81600c85016020880161301e565b680103a37b5b2b724b2160bd1b600c918401918201528351612de881601584016020880161301e565b651037bbb732b960d11b60159290910191820152601b01949350505050565b6001600160a01b0389811682528816602082015260a060408201819052600090612e34908301888a612c79565b8281036060840152612e47818789612c79565b90508281036080840152838152838560208301376000602085830101526020601f19601f8601168201019150509998505050505050505050565b6020815260008251806020840152612ea081604085016020870161301e565b601f01601f19169190910160400192915050565b6020808252601d908201527f546f6b656e496473206c656e677468206d75737420626520657175616c000000604082015260600190565b6020808252600c908201526b43616e27742061636365737360a01b604082015260600190565b600181815b80851115612f4c578160001904821115612f3257612f32613069565b80851615612f3f57918102915b93841c9390800290612f16565b509250929050565b60006127ee60ff841683600082612f6d57506001612520565b81612f7a57506000612520565b8160018114612f905760028114612f9a57612fb6565b6001915050612520565b60ff841115612fab57612fab613069565b50506001821b612520565b5060208310610133831016604e8410600b8410161715612fd9575081810a612520565b612fe38383612f11565b8060001904821115612ff757612ff7613069565b029392505050565b600081600019048311821515161561301957613019613069565b500290565b60005b83811015613039578181015183820152602001613021565b83811115613048576000848401525b50505050565b600060001982141561306257613062613069565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461219f57600080fdfea26469706673582212207b032b8572393e9dfe65a7359a9cfe7702f131b6ec926b3c0e4074394566463a64736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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