ETH Price: $2,706.59 (+5.16%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ProphetsV3

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 999 runs

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

pragma solidity 0.8.9;

import '@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol';
import '@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721BurnableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';
import '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';
import '@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol';

// TODO: Clawback BABL from not minted great prophets

contract Prophets is
    Initializable,
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable,
    ERC721Upgradeable,
    ERC721EnumerableUpgradeable,
    ERC721BurnableUpgradeable,
    UUPSUpgradeable
{
    using SafeERC20Upgradeable for IERC20Upgradeable;
    using CountersUpgradeable for CountersUpgradeable.Counter;

    /* ============ Constants ============ */

    uint256 public constant PROPHETS = 8000;
    uint256 public constant GREAT_PROPHETS = 1000;
    uint256 public constant FUTURE_PROPHETS = 1000;

    uint256 public constant MAX_PROPHETS = PROPHETS + GREAT_PROPHETS + FUTURE_PROPHETS;

    uint256 public constant BABL_SUPPLY = 40_000e18;
    uint256 public constant PROPHET_BABL = BABL_SUPPLY / PROPHETS;
    uint64 public constant PROPHET_LP_BONUS = 1e2; // 1%

    /* ============ Immutables ============ */

    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    IERC20Upgradeable public immutable bablToken;

    /* ============ Structs ============ */

    struct Attributes {
        uint256 bablLoot;
        uint64 creatorMultiplier;
        uint64 lpMultiplier;
        uint64 voterMultiplier;
        uint64 strategistMultiplier;
    }

    /* ============ Upgradeable Storage ============ */

    /**
      This is an upgradeable contract. Do not modify storage vars order or the types. Only appending allowed.

        RRRRRRRRRRRRRRRRR   EEEEEEEEEEEEEEEEEEEEEEKKKKKKKKK    KKKKKKKTTTTTTTTTTTTTTTTTTTTTTT
    R::::::::::::::::R  E::::::::::::::::::::EK:::::::K    K:::::KT:::::::::::::::::::::T
    R::::::RRRRRR:::::R E::::::::::::::::::::EK:::::::K    K:::::KT:::::::::::::::::::::T
    RR:::::R     R:::::REE::::::EEEEEEEEE::::EK:::::::K   K::::::KT:::::TT:::::::TT:::::T
      R::::R     R:::::R  E:::::E       EEEEEEKK::::::K  K:::::KKKTTTTTT  T:::::T  TTTTTT
      R::::R     R:::::R  E:::::E               K:::::K K:::::K           T:::::T
      R::::RRRRRR:::::R   E::::::EEEEEEEEEE     K::::::K:::::K            T:::::T
      R:::::::::::::RR    E:::::::::::::::E     K:::::::::::K             T:::::T
      R::::RRRRRR:::::R   E:::::::::::::::E     K:::::::::::K             T:::::T
      R::::R     R:::::R  E::::::EEEEEEEEEE     K::::::K:::::K            T:::::T
      R::::R     R:::::R  E:::::E               K:::::K K:::::K           T:::::T
      R::::R     R:::::R  E:::::E       EEEEEEKK::::::K  K:::::KKK        T:::::T
    RR:::::R     R:::::REE::::::EEEEEEEE:::::EK:::::::K   K::::::K      TT:::::::TT
    R::::::R     R:::::RE::::::::::::::::::::EK:::::::K    K:::::K      T:::::::::T
    R::::::R     R:::::RE::::::::::::::::::::EK:::::::K    K:::::K      T:::::::::T
    RRRRRRRR     RRRRRRREEEEEEEEEEEEEEEEEEEEEEKKKKKKKKK    KKKKKKK      TTTTTTTTTTT

    **/

    CountersUpgradeable.Counter private prophetsMinted;

    // Mapping from token ID to prophet's attributes
    mapping(uint256 => Attributes) private attributes;
    // Mapping from token ID to a staked address
    mapping(uint256 => address) private stakes;
    // User -> SC -> token ID
    mapping(address => mapping(address => uint256)) private userToStakes;

    string public baseTokenURI;
    mapping(uint256 => bool) public prophetsBABLClaimed;
    address public minter;

    // Mapping from token ID to a stake timestamp
    mapping(uint256 => uint256) private stakesToTime;

    /* ============ Modifiers ============ */

    function _onlyMinter() internal view {
        require(msg.sender == minter, 'Caller is not the minter');
    }

    function _onlyOwner() internal view {
        require(owner() == msg.sender, 'Caller is not the owner');
    }

    /* ============ Events ============ */

    event Stake(address indexed _owner, address indexed _target, uint256 _tokenId);

    /* ============ Constructor ============ */

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(IERC20Upgradeable _bablToken) initializer {
        bablToken = _bablToken;
    }

    function initialize(string calldata _uri) public initializer {
        __ERC721_init('Babylon Prophets', 'BPH');
        __ERC721Enumerable_init();
        __Ownable_init();
        __UUPSUpgradeable_init();
        __ReentrancyGuard_init();
        __ERC721Burnable_init();

        baseTokenURI = _uri;
    }

    /* ============ External Write Functions ============ */

    function mintProphet(address _to) external {
        _onlyMinter();
        require(prophetsMinted.current() < PROPHETS, 'Not a prophet');

        prophetsMinted.increment();
        _mintProphet(_to, prophetsMinted.current());
    }

    function mintGreatProphet(address _to, uint256 _id) external {
        _onlyMinter();
        require(_id > PROPHETS && _id <= PROPHETS + GREAT_PROPHETS, 'Not a great prophet');

        _mintProphet(_to, _id);
    }

    function setProphetsAttributes(
        uint256[] calldata _ids,
        uint256[] calldata _bablLoots,
        uint64[] calldata _creatorBonuses,
        uint64[] calldata _lpBonuses,
        uint64[] calldata _voterMultipliers,
        uint64[] calldata _strategistMultipliers
    ) external {
        _onlyOwner();
        for (uint256 i = 0; i < _ids.length; i++) {
            require(_ids[i] > PROPHETS, 'Not a great prophet');
            _setAttributes(
                _ids[i],
                _bablLoots[i],
                _creatorBonuses[i],
                _lpBonuses[i],
                _voterMultipliers[i],
                _strategistMultipliers[i]
            );
        }
    }

    function setBaseURI(string memory baseURI) external {
        _onlyOwner();
        baseTokenURI = baseURI;
    }

    function setMinter(address _minter) external {
        _onlyOwner();
        require(address(_minter) != address(0), 'Specify minter');
        minter = _minter;
    }

    function batchClaimLoot(uint256[] calldata _ids) external nonReentrant {
        uint256 totalLoot;
        for (uint256 i = 0; i < _ids.length; i++) {
            uint256 id = _ids[i];
            require(ownerOf(id) == msg.sender, 'Caller must own the prophet');
            require(!prophetsBABLClaimed[id], 'Loot already claimed');

            uint256 lootAmount = getAttributes(id).bablLoot;
            require(lootAmount != 0, 'Loot can not be empty');

            prophetsBABLClaimed[id] = true;

            totalLoot += lootAmount;
        }
        bablToken.safeTransfer(msg.sender, totalLoot);
    }

    function claimLoot(uint256 _id) public nonReentrant {
        require(balanceOf(msg.sender) > 0, 'Caller does not own a prophet');
        require(ownerOf(_id) == msg.sender, 'Caller must own the prophet');
        require(!prophetsBABLClaimed[_id] && _id <= (PROPHETS + GREAT_PROPHETS), 'Loot already claimed');

        uint256 lootAmount = getAttributes(_id).bablLoot;
        require(lootAmount != 0, 'Loot can not be empty');

        prophetsBABLClaimed[_id] = true;

        bablToken.safeTransfer(msg.sender, lootAmount);
    }

    function stake(uint256 _id, address _target) public {
        require(ownerOf(_id) == msg.sender, 'Not an owner of the prophet');
        uint256 prevProphet = userToStakes[msg.sender][_target];
        require(prevProphet != _id, 'Already staked');

        // if there was another prophet staked then unstake it
        if (prevProphet != 0) {
            stakes[prevProphet] = address(0);
        }

        // if was staked then remove old reference
        if (stakes[_id] != address(0)) {
            userToStakes[msg.sender][stakes[_id]] = 0;
        }

        stakes[_id] = _target;
        userToStakes[msg.sender][_target] = _id;
        stakesToTime[_id] = block.timestamp;

        emit Stake(msg.sender, _target, _id);
    }

    /* ============ External View Functions ============ */

    function getAttributes(uint256 _id) public view returns (Attributes memory) {
        if (_id <= PROPHETS) {
            return
                Attributes({
                    bablLoot: PROPHET_BABL,
                    creatorMultiplier: 0,
                    lpMultiplier: PROPHET_LP_BONUS,
                    voterMultiplier: 0,
                    strategistMultiplier: 0
                });
        }

        return attributes[_id];
    }

    function getStakedProphetAttrs(address _owner, address _stakedAt) public view returns (uint256[7] memory) {
        uint256 id = userToStakes[_owner][_stakedAt];
        if (id == 0) {
            // not staked
            return [uint256(0), uint256(0), uint256(0), uint256(0), uint256(0), uint256(0), uint256(0)];
        }
        if (id <= PROPHETS) {
            return [id, PROPHET_BABL, 0, 0, PROPHET_LP_BONUS * 1e14, 0, stakesToTime[id]];
        }
        Attributes memory attrs = attributes[id];
        return [
            id,
            uint256(attrs.bablLoot),
            uint256(attrs.strategistMultiplier) * 1e14,
            uint256(attrs.voterMultiplier) * 1e14,
            uint256(attrs.lpMultiplier) * 1e14,
            uint256(attrs.creatorMultiplier) * 1e14,
            stakesToTime[id]
        ];
    }

    function targetOf(uint256 _id) external view returns (address) {
        return stakes[_id];
    }

    function stakeOf(address _user, address _target) external view returns (uint256) {
        return userToStakes[_user][_target];
    }

    function maxSupply() external pure returns (uint256) {
        return MAX_PROPHETS;
    }

    function prophetsSupply() external view returns (uint256) {
        return prophetsMinted.current();
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Upgradeable, ERC721EnumerableUpgradeable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /* ============ Internal Write Functions ============ */

    function _mintProphet(address _to, uint256 _id) private {
        require(_to != address(0), 'Recipient is 0x0');
        _mint(_to, _id);
    }

    function _setAttributes(
        uint256 _id,
        uint256 _bablLoot,
        uint64 _creatorMultiplier,
        uint64 _lpMultiplier,
        uint64 _voterMultiplier,
        uint64 _strategistMultiplier
    ) private {
        Attributes storage attrs = attributes[_id];

        attrs.bablLoot = _bablLoot;

        attrs.creatorMultiplier = _creatorMultiplier;
        attrs.lpMultiplier = _lpMultiplier;
        attrs.voterMultiplier = _voterMultiplier;
        attrs.strategistMultiplier = _strategistMultiplier;
    }

    function _authorizeUpgrade(address newImplementation) internal override {
        _onlyOwner();
    }

    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _tokenId
    ) internal virtual override(ERC721Upgradeable, ERC721EnumerableUpgradeable) {
        super._beforeTokenTransfer(_from, _to, _tokenId);
        // if prophet is staked then unstake before the transfer
        if (stakes[_tokenId] != address(0)) {
            stake(_tokenId, address(0));
        }
    }

    /* ============ Internal View Functions ============ */

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

contract ProphetsV3 is Prophets {
    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(IERC20Upgradeable _bablToken) Prophets(_bablToken) {}
}

File 2 of 23 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 overriden 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 = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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: transfer caller is not owner nor 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: transfer caller is not owner nor 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 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 _owners[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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @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(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` 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 tokenId
    ) internal virtual {}
    uint256[44] private __gap;
}

File 3 of 23 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721Enumerable_init_unchained();
    }

    function __ERC721Enumerable_init_unchained() internal initializer {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721Upgradeable.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
    uint256[46] private __gap;
}

File 4 of 23 : ERC721BurnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "../../../utils/ContextUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721BurnableUpgradeable is Initializable, ContextUpgradeable, ERC721Upgradeable {
    function __ERC721Burnable_init() internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721Burnable_init_unchained();
    }

    function __ERC721Burnable_init_unchained() internal initializer {
    }
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
    uint256[50] private __gap;
}

File 5 of 23 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
    uint256[49] private __gap;
}

File 6 of 23 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 7 of 23 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal initializer {
        __ERC1967Upgrade_init_unchained();
        __UUPSUpgradeable_init_unchained();
    }

    function __UUPSUpgradeable_init_unchained() internal initializer {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;
    uint256[50] private __gap;
}

File 8 of 23 : CountersUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library CountersUpgradeable {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 9 of 23 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 10 of 23 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 11 of 23 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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));
        }
    }

    /**
     * @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(IERC20Upgradeable 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 12 of 23 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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
    ) external;

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

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

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

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

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

File 13 of 23 : IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT

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 IERC721ReceiverUpgradeable {
    /**
     * @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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 23 : IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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 15 of 23 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 16 of 23 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

File 17 of 23 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 18 of 23 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

File 19 of 23 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT

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 IERC165Upgradeable {
    /**
     * @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 20 of 23 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 21 of 23 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal initializer {
        __ERC1967Upgrade_init_unchained();
    }

    function __ERC1967Upgrade_init_unchained() internal initializer {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallSecure(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlotUpgradeable.BooleanSlot storage rollbackTesting = StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            _functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature("upgradeTo(address)", oldImplementation)
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
            // Finally reset to the new implementation and log the upgrade
            _upgradeTo(newImplementation);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }
    uint256[50] private __gap;
}

File 22 of 23 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 23 of 23 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999,
    "details": {
      "yul": true,
      "yulDetails": {
        "stackAllocation": true
      }
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20Upgradeable","name":"_bablToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_target","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"BABL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUTURE_PROPHETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GREAT_PROPHETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PROPHETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROPHETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROPHET_BABL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROPHET_LP_BONUS","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bablToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"batchClaimLoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"claimLoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getAttributes","outputs":[{"components":[{"internalType":"uint256","name":"bablLoot","type":"uint256"},{"internalType":"uint64","name":"creatorMultiplier","type":"uint64"},{"internalType":"uint64","name":"lpMultiplier","type":"uint64"},{"internalType":"uint64","name":"voterMultiplier","type":"uint64"},{"internalType":"uint64","name":"strategistMultiplier","type":"uint64"}],"internalType":"struct Prophets.Attributes","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_stakedAt","type":"address"}],"name":"getStakedProphetAttrs","outputs":[{"internalType":"uint256[7]","name":"","type":"uint256[7]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"mintGreatProphet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintProphet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prophetsBABLClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prophetsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_bablLoots","type":"uint256[]"},{"internalType":"uint64[]","name":"_creatorBonuses","type":"uint64[]"},{"internalType":"uint64[]","name":"_lpBonuses","type":"uint64[]"},{"internalType":"uint64[]","name":"_voterMultipliers","type":"uint64[]"},{"internalType":"uint64[]","name":"_strategistMultipliers","type":"uint64[]"}],"name":"setProphetsAttributes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_target","type":"address"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_target","type":"address"}],"name":"stakeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"targetOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60c0604052306080523480156200001557600080fd5b5060405162004af638038062004af6833981016040819052620000389162000108565b6000548190610100900460ff168062000054575060005460ff16155b620000bc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015620000df576000805461ffff19166101011790555b6001600160a01b03821660a0528015620000ff576000805461ff00191690555b5050506200013a565b6000602082840312156200011b57600080fd5b81516001600160a01b03811681146200013357600080fd5b9392505050565b60805160a05161497362000183600039600081816105d8015281816110be01526119570152600081816111a201528181611227015281816114a6015261152b01526149736000f3fe6080604052600436106103135760003560e01c80636352211e1161019a578063b88d4fde116100e1578063e985e9c51161008a578063f62d188811610064578063f62d188814610943578063fab967a014610963578063fca3b5aa1461099457600080fd5b8063e985e9c5146108c5578063f2b96b851461090e578063f2fde38b1461092357600080fd5b8063ce4cb876116100bb578063ce4cb87614610854578063d547cfb71461089b578063d5abeb01146108b057600080fd5b8063b88d4fde146107f6578063c87b56dd14610816578063cde9c5921461083657600080fd5b806382bcd2d7116101435780639844b1011161011d5780639844b101146107a1578063a22cb465146107b6578063b7e0cbe3146107d657600080fd5b806382bcd2d7146107375780638da5cb5b1461076e57806395d89b411461078c57600080fd5b80637acb7757116101745780637acb7757146106f757806382a455f2146105b057806382b4e9ce1461071757600080fd5b80636352211e146106a257806370a08231146106c2578063715018a6146106e257600080fd5b806339515cb31161025e5780634f1ef2861161020757806355f804b3116101e157806355f804b31461064d5780635b8ed9e21461066d5780635e1191601461068d57600080fd5b80634f1ef286146105fa5780634f6ccce71461060d57806354f1d56a1461062d57600080fd5b80634378a6e3116102385780634378a6e31461053a5780634a708540146105b05780634c5aa479146105c657600080fd5b806339515cb3146104cc57806342842e0e146104fa57806342966c681461051a57600080fd5b80631bf98774116102c0578063275303381161029a578063275303381461046c5780632f745c591461048c5780633659cfe6146104ac57600080fd5b80631bf98774146104095780631f772abc1461043657806323b872dd1461044c57600080fd5b8063081812fc116102f1578063081812fc146103a8578063095ea7b3146103c857806318160ddd146103ea57600080fd5b806301ffc9a71461031857806306fdde031461034d578063075461721461036f575b600080fd5b34801561032457600080fd5b506103386103333660046140df565b6109b4565b60405190151581526020015b60405180910390f35b34801561035957600080fd5b506103626109c5565b6040516103449190614154565b34801561037b57600080fd5b506101c954610390906001600160a01b031681565b6040516001600160a01b039091168152602001610344565b3480156103b457600080fd5b506103906103c3366004614167565b610a57565b3480156103d457600080fd5b506103e86103e336600461419c565b610af1565b005b3480156103f657600080fd5b5060fd545b604051908152602001610344565b34801561041557600080fd5b506104296104243660046141c6565b610c23565b60405161034491906141f9565b34801561044257600080fd5b506103fb611f4081565b34801561045857600080fd5b506103e861046736600461422a565b610e48565b34801561047857600080fd5b506103e86104873660046142b2565b610ed0565b34801561049857600080fd5b506103fb6104a736600461419c565b6110ef565b3480156104b857600080fd5b506103e86104c73660046142f4565b611197565b3480156104d857600080fd5b506104e1606481565b60405167ffffffffffffffff9091168152602001610344565b34801561050657600080fd5b506103e861051536600461422a565b611313565b34801561052657600080fd5b506103e8610535366004614167565b61132e565b34801561054657600080fd5b5061055a610555366004614167565b6113b2565b6040516103449190600060a08201905082518252602083015167ffffffffffffffff8082166020850152806040860151166040850152806060860151166060850152806080860151166080850152505092915050565b3480156105bc57600080fd5b506103fb6103e881565b3480156105d257600080fd5b506103907f000000000000000000000000000000000000000000000000000000000000000081565b6103e86106083660046143bb565b61149b565b34801561061957600080fd5b506103fb610628366004614167565b611608565b34801561063957600080fd5b506103e86106483660046142f4565b6116ac565b34801561065957600080fd5b506103e8610668366004614409565b611730565b34801561067957600080fd5b506103e8610688366004614167565b61174c565b34801561069957600080fd5b506103fb611987565b3480156106ae57600080fd5b506103906106bd366004614167565b611998565b3480156106ce57600080fd5b506103fb6106dd3660046142f4565b611a23565b3480156106ee57600080fd5b506103e8611abd565b34801561070357600080fd5b506103e8610712366004614452565b611b23565b34801561072357600080fd5b506103e861073236600461419c565b611cf7565b34801561074357600080fd5b50610390610752366004614167565b60009081526101c560205260409020546001600160a01b031690565b34801561077a57600080fd5b506033546001600160a01b0316610390565b34801561079857600080fd5b50610362611d73565b3480156107ad57600080fd5b506103fb611d82565b3480156107c257600080fd5b506103e86107d1366004614483565b611d9b565b3480156107e257600080fd5b506103e86107f13660046144ba565b611e60565b34801561080257600080fd5b506103e86108113660046145fd565b612067565b34801561082257600080fd5b50610362610831366004614167565b6120f5565b34801561084257600080fd5b506103fb690878678326eac900000081565b34801561086057600080fd5b506103fb61086f3660046141c6565b6001600160a01b0391821660009081526101c66020908152604080832093909416825291909152205490565b3480156108a757600080fd5b506103626121de565b3480156108bc57600080fd5b506103fb61226d565b3480156108d157600080fd5b506103386108e03660046141c6565b6001600160a01b03918216600090815260ce6020908152604080832093909416825291909152205460ff1690565b34801561091a57600080fd5b506103fb612288565b34801561092f57600080fd5b506103e861093e3660046142f4565b6122a1565b34801561094f57600080fd5b506103e861095e366004614665565b612380565b34801561096f57600080fd5b5061033861097e366004614167565b6101c86020526000908152604090205460ff1681565b3480156109a057600080fd5b506103e86109af3660046142f4565b6124de565b60006109bf8261255f565b92915050565b606060c980546109d4906146d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a00906146d7565b8015610a4d5780601f10610a2257610100808354040283529160200191610a4d565b820191906000526020600020905b815481529060010190602001808311610a3057829003601f168201915b5050505050905090565b600081815260cb60205260408120546001600160a01b0316610ad55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815260cd60205260409020546001600160a01b031690565b6000610afc82611998565b9050806001600160a01b0316836001600160a01b03161415610b865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610acc565b336001600160a01b0382161480610ba25750610ba281336108e0565b610c145760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610acc565b610c1e838361259d565b505050565b610c2b613f9e565b6001600160a01b0380841660009081526101c6602090815260408083209386168352929052205480610c99576040518060e0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509150506109bf565b611f408111610d25576040518060e00160405280828152602001611f40690878678326eac9000000610ccb919061473e565b81526000602082018190526040820152606001610cef6064655af3107a4000614752565b67ffffffffffffffff168152602001600081526020016101ca6000848152602001908152602001600020548152509150506109bf565b60008181526101c46020908152604091829020825160a0810184528154815260019091015467ffffffffffffffff80821683850152680100000000000000008204811683860152600160801b820481166060840152600160c01b909104811660808301908152845160e081018652868152835194810194909452519193830191610db69116655af3107a4000614782565b8152602001826060015167ffffffffffffffff16655af3107a4000610ddb9190614782565b8152602001826040015167ffffffffffffffff16655af3107a4000610e009190614782565b8152602001826020015167ffffffffffffffff16655af3107a4000610e259190614782565b815260009384526101ca6020908152604090942054930192909252509392505050565b610e53335b8261260b565b610ec55760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610acc565b610c1e838383612702565b60026065541415610f235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610acc565b60026065556000805b828110156110b0576000848483818110610f4857610f486147a1565b905060200201359050336001600160a01b0316610f6482611998565b6001600160a01b031614610fba5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206d757374206f776e207468652070726f7068657400000000006044820152606401610acc565b60008181526101c8602052604090205460ff161561101a5760405162461bcd60e51b815260206004820152601460248201527f4c6f6f7420616c726561647920636c61696d65640000000000000000000000006044820152606401610acc565b6000611025826113b2565b519050806110755760405162461bcd60e51b815260206004820152601560248201527f4c6f6f742063616e206e6f7420626520656d70747900000000000000000000006044820152606401610acc565b60008281526101c860205260409020805460ff1916600117905561109981856147b7565b9350505080806110a8906147cf565b915050610f2c565b506110e56001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836128da565b5050600160655550565b60006110fa83611a23565b821061116e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610acc565b506001600160a01b0391909116600090815260fb60209081526040808320938352929052205490565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156112255760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610acc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146112eb5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610acc565b6112f48161295a565b6040805160008082526020820190925261131091839190612962565b50565b610c1e83838360405180602001604052806000815250612067565b61133733610e4d565b6113a95760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610acc565b61131081612b26565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152611f40821161142e576040518060a00160405280611f40690878678326eac9000000611409919061473e565b8152600060208201819052606460408301526060820181905260809091015292915050565b5060009081526101c46020908152604091829020825160a0810184528154815260019091015467ffffffffffffffff80821693830193909352680100000000000000008104831693820193909352600160801b830482166060820152600160c01b90920416608082015290565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156115295760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610acc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166115847f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146115ef5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610acc565b6115f88261295a565b61160482826001612962565b5050565b600061161360fd5490565b82106116875760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610acc565b60fd828154811061169a5761169a6147a1565b90600052602060002001549050919050565b6116b4612bcd565b611f406116c16101c35490565b1061170e5760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420612070726f70686574000000000000000000000000000000000000006044820152606401610acc565b61171d6101c380546001019055565b6113108161172b6101c35490565b612c28565b611738612c88565b8051611604906101c7906020840190613fbc565b6002606554141561179f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610acc565b600260655560006117af33611a23565b116117fc5760405162461bcd60e51b815260206004820152601d60248201527f43616c6c657220646f6573206e6f74206f776e20612070726f706865740000006044820152606401610acc565b3361180682611998565b6001600160a01b03161461185c5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206d757374206f776e207468652070726f7068657400000000006044820152606401610acc565b60008181526101c8602052604090205460ff1615801561188957506118856103e8611f406147b7565b8111155b6118d55760405162461bcd60e51b815260206004820152601460248201527f4c6f6f7420616c726561647920636c61696d65640000000000000000000000006044820152606401610acc565b60006118e0826113b2565b519050806119305760405162461bcd60e51b815260206004820152601560248201527f4c6f6f742063616e206e6f7420626520656d70747900000000000000000000006044820152606401610acc565b60008281526101c860205260409020805460ff1916600117905561197e6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836128da565b50506001606555565b60006119936101c35490565b905090565b600081815260cb60205260408120546001600160a01b0316806109bf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610acc565b60006001600160a01b038216611aa15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610acc565b506001600160a01b0316600090815260cc602052604090205490565b6033546001600160a01b03163314611b175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610acc565b611b216000612cf1565b565b33611b2d83611998565b6001600160a01b031614611b835760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420616e206f776e6572206f66207468652070726f7068657400000000006044820152606401610acc565b3360009081526101c6602090815260408083206001600160a01b038516845290915290205482811415611bf85760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479207374616b65640000000000000000000000000000000000006044820152606401610acc565b8015611c1c5760008181526101c56020526040902080546001600160a01b03191690555b60008381526101c560205260409020546001600160a01b031615611c6b573360009081526101c6602090815260408083208684526101c58352818420546001600160a01b031684529091528120555b60008381526101c56020908152604080832080546001600160a01b0319166001600160a01b038716908117909155338085526101c6845282852082865284528285208890558785526101ca84529382902042905590518681529092917f99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f7910160405180910390a3505050565b611cff612bcd565b611f4081118015611d1d5750611d196103e8611f406147b7565b8111155b611d695760405162461bcd60e51b815260206004820152601360248201527f4e6f7420612067726561742070726f70686574000000000000000000000000006044820152606401610acc565b6116048282612c28565b606060ca80546109d4906146d7565b611d98611f40690878678326eac900000061473e565b81565b6001600160a01b038216331415611df45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610acc565b33600081815260ce602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611e68612c88565b60005b8b81101561205857611f408d8d83818110611e8857611e886147a1565b9050602002013511611edc5760405162461bcd60e51b815260206004820152601360248201527f4e6f7420612067726561742070726f70686574000000000000000000000000006044820152606401610acc565b6120468d8d83818110611ef157611ef16147a1565b905060200201358c8c84818110611f0a57611f0a6147a1565b905060200201358b8b85818110611f2357611f236147a1565b9050602002016020810190611f3891906147ea565b8a8a86818110611f4a57611f4a6147a1565b9050602002016020810190611f5f91906147ea565b898987818110611f7157611f716147a1565b9050602002016020810190611f8691906147ea565b888888818110611f9857611f986147a1565b9050602002016020810190611fad91906147ea565b60009586526101c460205260409095209384556001909301805467ffffffffffffffff958616600160c01b0277ffffffffffffffffffffffffffffffffffffffffffffffff958716600160801b02959095166fffffffffffffffffffffffffffffffff93871668010000000000000000026fffffffffffffffffffffffffffffffff199092169690941695909517949094171617179055565b80612050816147cf565b915050611e6b565b50505050505050505050505050565b612071338361260b565b6120e35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610acc565b6120ef84848484612d43565b50505050565b600081815260cb60205260409020546060906001600160a01b03166121825760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610acc565b600061218c612dcc565b905060008151116121ac57604051806020016040528060008152506121d7565b806121b684612ddc565b6040516020016121c7929190614814565b6040516020818303038152906040525b9392505050565b6101c780546121ec906146d7565b80601f0160208091040260200160405190810160405280929190818152602001828054612218906146d7565b80156122655780601f1061223a57610100808354040283529160200191612265565b820191906000526020600020905b81548152906001019060200180831161224857829003601f168201915b505050505081565b60006103e861227e81611f406147b7565b61199391906147b7565b6103e861229781611f406147b7565b611d9891906147b7565b6033546001600160a01b031633146122fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610acc565b6001600160a01b0381166123775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610acc565b61131081612cf1565b600054610100900460ff1680612399575060005460ff16155b6123fc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff1615801561241e576000805461ffff19166101011790555b6124926040518060400160405280601081526020017f426162796c6f6e2050726f7068657473000000000000000000000000000000008152506040518060400160405280600381526020017f4250480000000000000000000000000000000000000000000000000000000000815250612f0e565b61249a612fdc565b6124a26130a6565b6124aa613154565b6124b26131f9565b6124ba612fdc565b6124c76101c78484614040565b508015610c1e576000805461ff0019169055505050565b6124e6612c88565b6001600160a01b03811661253c5760405162461bcd60e51b815260206004820152600e60248201527f53706563696679206d696e7465720000000000000000000000000000000000006044820152606401610acc565b6101c980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806109bf57506109bf8261329f565b600081815260cd6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125d282611998565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260cb60205260408120546001600160a01b03166126845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610acc565b600061268f83611998565b9050806001600160a01b0316846001600160a01b031614806126ca5750836001600160a01b03166126bf84610a57565b6001600160a01b0316145b806126fa57506001600160a01b03808216600090815260ce602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661271582611998565b6001600160a01b0316146127915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610acc565b6001600160a01b03821661280c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610acc565b61281783838361333a565b61282260008261259d565b6001600160a01b038316600090815260cc6020526040812080546001929061284b908490614843565b90915550506001600160a01b038216600090815260cc602052604081208054600192906128799084906147b7565b9091555050600081815260cb602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c1e90849061336e565b611310612c88565b60006129957f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b90506129a084613453565b6000835111806129ad5750815b156129be576129bc8484613508565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16612b1f57805460ff191660011781556040516001600160a01b0383166024820152612a6b90869060440160408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f3659cfe600000000000000000000000000000000000000000000000000000000179052613508565b50805460ff191681557f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b03838116911614612b165760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201527f75727468657220757067726164657300000000000000000000000000000000006064820152608401610acc565b612b1f8561360a565b5050505050565b6000612b3182611998565b9050612b3f8160008461333a565b612b4a60008361259d565b6001600160a01b038116600090815260cc60205260408120805460019290612b73908490614843565b9091555050600082815260cb602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6101c9546001600160a01b03163314611b215760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420746865206d696e74657200000000000000006044820152606401610acc565b6001600160a01b038216612c7e5760405162461bcd60e51b815260206004820152601060248201527f526563697069656e7420697320307830000000000000000000000000000000006044820152606401610acc565b611604828261364a565b33612c9b6033546001600160a01b031690565b6001600160a01b031614611b215760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610acc565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612d4e848484612702565b612d5a84848484613798565b6120ef5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610acc565b60606101c780546109d4906146d7565b606081612e1c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e465780612e30816147cf565b9150612e3f9050600a8361473e565b9150612e20565b60008167ffffffffffffffff811115612e6157612e6161430f565b6040519080825280601f01601f191660200182016040528015612e8b576020820181803683370190505b5090505b84156126fa57612ea0600183614843565b9150612ead600a8661485a565b612eb89060306147b7565b60f81b818381518110612ecd57612ecd6147a1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612f07600a8661473e565b9450612e8f565b600054610100900460ff1680612f27575060005460ff16155b612f8a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015612fac576000805461ffff19166101011790555b612fb46138fb565b612fbc6138fb565b612fc683836139ac565b8015610c1e576000805461ff0019169055505050565b600054610100900460ff1680612ff5575060005460ff16155b6130585760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff1615801561307a576000805461ffff19166101011790555b6130826138fb565b61308a6138fb565b6130926138fb565b8015611310576000805461ff001916905550565b600054610100900460ff16806130bf575060005460ff16155b6131225760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613144576000805461ffff19166101011790555b61314c6138fb565b613092613a71565b600054610100900460ff168061316d575060005460ff16155b6131d05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613082576000805461ffff191661010117905561308a6138fb565b600054610100900460ff1680613212575060005460ff16155b6132755760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613297576000805461ffff19166101011790555b613092613b18565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061330257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109bf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109bf565b613345838383613bcf565b60008181526101c560205260409020546001600160a01b031615610c1e57610c1e816000611b23565b60006133c3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613c879092919063ffffffff16565b805190915015610c1e57808060200190518101906133e1919061486e565b610c1e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610acc565b803b6134c75760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610acc565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b61357e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610acc565b600080846001600160a01b031684604051613599919061488b565b600060405180830381855af49150503d80600081146135d4576040519150601f19603f3d011682016040523d82523d6000602084013e6135d9565b606091505b5091509150613601828260405180606001604052806027815260200161491760279139613c96565b95945050505050565b61361381613453565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0382166136a05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610acc565b600081815260cb60205260409020546001600160a01b0316156137055760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610acc565b6137116000838361333a565b6001600160a01b038216600090815260cc6020526040812080546001929061373a9084906147b7565b9091555050600081815260cb602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156138f057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137dc9033908990889088906004016148a7565b602060405180830381600087803b1580156137f657600080fd5b505af1925050508015613826575060408051601f3d908101601f19168201909252613823918101906148e3565b60015b6138d6573d808015613854576040519150601f19603f3d011682016040523d82523d6000602084013e613859565b606091505b5080516138ce5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610acc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126fa565b506001949350505050565b600054610100900460ff1680613914575060005460ff16155b6139775760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613092576000805461ffff19166101011790558015611310576000805461ff001916905550565b600054610100900460ff16806139c5575060005460ff16155b613a285760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613a4a576000805461ffff19166101011790555b8251613a5d9060c9906020860190613fbc565b5081516124c79060ca906020850190613fbc565b600054610100900460ff1680613a8a575060005460ff16155b613aed5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613b0f576000805461ffff19166101011790555b61309233612cf1565b600054610100900460ff1680613b31575060005460ff16155b613b945760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613bb6576000805461ffff19166101011790555b60016065558015611310576000805461ff001916905550565b6001600160a01b038316613c2a57613c258160fd8054600083815260fe60205260408120829055600182018355919091527f9346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca2800155565b613c4d565b816001600160a01b0316836001600160a01b031614613c4d57613c4d8382613ccf565b6001600160a01b038216613c6457610c1e81613d6c565b826001600160a01b0316826001600160a01b031614610c1e57610c1e8282613e1b565b60606126fa8484600085613e5f565b60608315613ca55750816121d7565b825115613cb55782518084602001fd5b8160405162461bcd60e51b8152600401610acc9190614154565b60006001613cdc84611a23565b613ce69190614843565b600083815260fc6020526040902054909150808214613d39576001600160a01b038416600090815260fb60209081526040808320858452825280832054848452818420819055835260fc90915290208190555b50600091825260fc602090815260408084208490556001600160a01b03909416835260fb81528383209183525290812055565b60fd54600090613d7e90600190614843565b600083815260fe602052604081205460fd8054939450909284908110613da657613da66147a1565b906000526020600020015490508060fd8381548110613dc757613dc76147a1565b600091825260208083209091019290925582815260fe909152604080822084905585825281205560fd805480613dff57613dff614900565b6001900381819060005260206000200160009055905550505050565b6000613e2683611a23565b6001600160a01b03909316600090815260fb60209081526040808320868452825280832085905593825260fc9052919091209190915550565b606082471015613ed75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610acc565b843b613f255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610acc565b600080866001600160a01b03168587604051613f41919061488b565b60006040518083038185875af1925050503d8060008114613f7e576040519150601f19603f3d011682016040523d82523d6000602084013e613f83565b606091505b5091509150613f93828286613c96565b979650505050505050565b6040518060e001604052806007906020820280368337509192915050565b828054613fc8906146d7565b90600052602060002090601f016020900481019282613fea5760008555614030565b82601f1061400357805160ff1916838001178555614030565b82800160010185558215614030579182015b82811115614030578251825591602001919060010190614015565b5061403c9291506140b4565b5090565b82805461404c906146d7565b90600052602060002090601f01602090048101928261406e5760008555614030565b82601f106140875782800160ff19823516178555614030565b82800160010185558215614030579182015b82811115614030578235825591602001919060010190614099565b5b8082111561403c57600081556001016140b5565b6001600160e01b03198116811461131057600080fd5b6000602082840312156140f157600080fd5b81356121d7816140c9565b60005b838110156141175781810151838201526020016140ff565b838111156120ef5750506000910152565b600081518084526141408160208601602086016140fc565b601f01601f19169290920160200192915050565b6020815260006121d76020830184614128565b60006020828403121561417957600080fd5b5035919050565b80356001600160a01b038116811461419757600080fd5b919050565b600080604083850312156141af57600080fd5b6141b883614180565b946020939093013593505050565b600080604083850312156141d957600080fd5b6141e283614180565b91506141f060208401614180565b90509250929050565b60e08101818360005b6007811015614221578151835260209283019290910190600101614202565b50505092915050565b60008060006060848603121561423f57600080fd5b61424884614180565b925061425660208501614180565b9150604084013590509250925092565b60008083601f84011261427857600080fd5b50813567ffffffffffffffff81111561429057600080fd5b6020830191508360208260051b85010111156142ab57600080fd5b9250929050565b600080602083850312156142c557600080fd5b823567ffffffffffffffff8111156142dc57600080fd5b6142e885828601614266565b90969095509350505050565b60006020828403121561430657600080fd5b6121d782614180565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156143405761434061430f565b604051601f8501601f19908116603f011681019082821181831017156143685761436861430f565b8160405280935085815286868601111561438157600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126143ac57600080fd5b6121d783833560208501614325565b600080604083850312156143ce57600080fd5b6143d783614180565b9150602083013567ffffffffffffffff8111156143f357600080fd5b6143ff8582860161439b565b9150509250929050565b60006020828403121561441b57600080fd5b813567ffffffffffffffff81111561443257600080fd5b8201601f8101841361444357600080fd5b6126fa84823560208401614325565b6000806040838503121561446557600080fd5b823591506141f060208401614180565b801515811461131057600080fd5b6000806040838503121561449657600080fd5b61449f83614180565b915060208301356144af81614475565b809150509250929050565b60008060008060008060008060008060008060c08d8f0312156144dc57600080fd5b67ffffffffffffffff8d3511156144f257600080fd5b6144ff8e8e358f01614266565b909c509a5067ffffffffffffffff60208e0135111561451d57600080fd5b61452d8e60208f01358f01614266565b909a50985067ffffffffffffffff60408e0135111561454b57600080fd5b61455b8e60408f01358f01614266565b909850965067ffffffffffffffff60608e0135111561457957600080fd5b6145898e60608f01358f01614266565b909650945067ffffffffffffffff60808e013511156145a757600080fd5b6145b78e60808f01358f01614266565b909450925067ffffffffffffffff60a08e013511156145d557600080fd5b6145e58e60a08f01358f01614266565b81935080925050509295989b509295989b509295989b565b6000806000806080858703121561461357600080fd5b61461c85614180565b935061462a60208601614180565b925060408501359150606085013567ffffffffffffffff81111561464d57600080fd5b6146598782880161439b565b91505092959194509250565b6000806020838503121561467857600080fd5b823567ffffffffffffffff8082111561469057600080fd5b818501915085601f8301126146a457600080fd5b8135818111156146b357600080fd5b8660208285010111156146c557600080fd5b60209290920196919550909350505050565b600181811c908216806146eb57607f821691505b6020821081141561470c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261474d5761474d614712565b500490565b600067ffffffffffffffff8083168185168183048111821515161561477957614779614728565b02949350505050565b600081600019048311821515161561479c5761479c614728565b500290565b634e487b7160e01b600052603260045260246000fd5b600082198211156147ca576147ca614728565b500190565b60006000198214156147e3576147e3614728565b5060010190565b6000602082840312156147fc57600080fd5b813567ffffffffffffffff811681146121d757600080fd5b600083516148268184602088016140fc565b83519083019061483a8183602088016140fc565b01949350505050565b60008282101561485557614855614728565b500390565b60008261486957614869614712565b500690565b60006020828403121561488057600080fd5b81516121d781614475565b6000825161489d8184602087016140fc565b9190910192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526148d96080830184614128565b9695505050505050565b6000602082840312156148f557600080fd5b81516121d7816140c9565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220feabcd5a675112104abae3aab78cca7dca25ce117d3c911abfe0ebe462c7993864736f6c63430008090033000000000000000000000000f4dc48d260c93ad6a96c5ce563e70ca578987c74

Deployed Bytecode

0x6080604052600436106103135760003560e01c80636352211e1161019a578063b88d4fde116100e1578063e985e9c51161008a578063f62d188811610064578063f62d188814610943578063fab967a014610963578063fca3b5aa1461099457600080fd5b8063e985e9c5146108c5578063f2b96b851461090e578063f2fde38b1461092357600080fd5b8063ce4cb876116100bb578063ce4cb87614610854578063d547cfb71461089b578063d5abeb01146108b057600080fd5b8063b88d4fde146107f6578063c87b56dd14610816578063cde9c5921461083657600080fd5b806382bcd2d7116101435780639844b1011161011d5780639844b101146107a1578063a22cb465146107b6578063b7e0cbe3146107d657600080fd5b806382bcd2d7146107375780638da5cb5b1461076e57806395d89b411461078c57600080fd5b80637acb7757116101745780637acb7757146106f757806382a455f2146105b057806382b4e9ce1461071757600080fd5b80636352211e146106a257806370a08231146106c2578063715018a6146106e257600080fd5b806339515cb31161025e5780634f1ef2861161020757806355f804b3116101e157806355f804b31461064d5780635b8ed9e21461066d5780635e1191601461068d57600080fd5b80634f1ef286146105fa5780634f6ccce71461060d57806354f1d56a1461062d57600080fd5b80634378a6e3116102385780634378a6e31461053a5780634a708540146105b05780634c5aa479146105c657600080fd5b806339515cb3146104cc57806342842e0e146104fa57806342966c681461051a57600080fd5b80631bf98774116102c0578063275303381161029a578063275303381461046c5780632f745c591461048c5780633659cfe6146104ac57600080fd5b80631bf98774146104095780631f772abc1461043657806323b872dd1461044c57600080fd5b8063081812fc116102f1578063081812fc146103a8578063095ea7b3146103c857806318160ddd146103ea57600080fd5b806301ffc9a71461031857806306fdde031461034d578063075461721461036f575b600080fd5b34801561032457600080fd5b506103386103333660046140df565b6109b4565b60405190151581526020015b60405180910390f35b34801561035957600080fd5b506103626109c5565b6040516103449190614154565b34801561037b57600080fd5b506101c954610390906001600160a01b031681565b6040516001600160a01b039091168152602001610344565b3480156103b457600080fd5b506103906103c3366004614167565b610a57565b3480156103d457600080fd5b506103e86103e336600461419c565b610af1565b005b3480156103f657600080fd5b5060fd545b604051908152602001610344565b34801561041557600080fd5b506104296104243660046141c6565b610c23565b60405161034491906141f9565b34801561044257600080fd5b506103fb611f4081565b34801561045857600080fd5b506103e861046736600461422a565b610e48565b34801561047857600080fd5b506103e86104873660046142b2565b610ed0565b34801561049857600080fd5b506103fb6104a736600461419c565b6110ef565b3480156104b857600080fd5b506103e86104c73660046142f4565b611197565b3480156104d857600080fd5b506104e1606481565b60405167ffffffffffffffff9091168152602001610344565b34801561050657600080fd5b506103e861051536600461422a565b611313565b34801561052657600080fd5b506103e8610535366004614167565b61132e565b34801561054657600080fd5b5061055a610555366004614167565b6113b2565b6040516103449190600060a08201905082518252602083015167ffffffffffffffff8082166020850152806040860151166040850152806060860151166060850152806080860151166080850152505092915050565b3480156105bc57600080fd5b506103fb6103e881565b3480156105d257600080fd5b506103907f000000000000000000000000f4dc48d260c93ad6a96c5ce563e70ca578987c7481565b6103e86106083660046143bb565b61149b565b34801561061957600080fd5b506103fb610628366004614167565b611608565b34801561063957600080fd5b506103e86106483660046142f4565b6116ac565b34801561065957600080fd5b506103e8610668366004614409565b611730565b34801561067957600080fd5b506103e8610688366004614167565b61174c565b34801561069957600080fd5b506103fb611987565b3480156106ae57600080fd5b506103906106bd366004614167565b611998565b3480156106ce57600080fd5b506103fb6106dd3660046142f4565b611a23565b3480156106ee57600080fd5b506103e8611abd565b34801561070357600080fd5b506103e8610712366004614452565b611b23565b34801561072357600080fd5b506103e861073236600461419c565b611cf7565b34801561074357600080fd5b50610390610752366004614167565b60009081526101c560205260409020546001600160a01b031690565b34801561077a57600080fd5b506033546001600160a01b0316610390565b34801561079857600080fd5b50610362611d73565b3480156107ad57600080fd5b506103fb611d82565b3480156107c257600080fd5b506103e86107d1366004614483565b611d9b565b3480156107e257600080fd5b506103e86107f13660046144ba565b611e60565b34801561080257600080fd5b506103e86108113660046145fd565b612067565b34801561082257600080fd5b50610362610831366004614167565b6120f5565b34801561084257600080fd5b506103fb690878678326eac900000081565b34801561086057600080fd5b506103fb61086f3660046141c6565b6001600160a01b0391821660009081526101c66020908152604080832093909416825291909152205490565b3480156108a757600080fd5b506103626121de565b3480156108bc57600080fd5b506103fb61226d565b3480156108d157600080fd5b506103386108e03660046141c6565b6001600160a01b03918216600090815260ce6020908152604080832093909416825291909152205460ff1690565b34801561091a57600080fd5b506103fb612288565b34801561092f57600080fd5b506103e861093e3660046142f4565b6122a1565b34801561094f57600080fd5b506103e861095e366004614665565b612380565b34801561096f57600080fd5b5061033861097e366004614167565b6101c86020526000908152604090205460ff1681565b3480156109a057600080fd5b506103e86109af3660046142f4565b6124de565b60006109bf8261255f565b92915050565b606060c980546109d4906146d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610a00906146d7565b8015610a4d5780601f10610a2257610100808354040283529160200191610a4d565b820191906000526020600020905b815481529060010190602001808311610a3057829003601f168201915b5050505050905090565b600081815260cb60205260408120546001600160a01b0316610ad55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815260cd60205260409020546001600160a01b031690565b6000610afc82611998565b9050806001600160a01b0316836001600160a01b03161415610b865760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610acc565b336001600160a01b0382161480610ba25750610ba281336108e0565b610c145760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610acc565b610c1e838361259d565b505050565b610c2b613f9e565b6001600160a01b0380841660009081526101c6602090815260408083209386168352929052205480610c99576040518060e0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509150506109bf565b611f408111610d25576040518060e00160405280828152602001611f40690878678326eac9000000610ccb919061473e565b81526000602082018190526040820152606001610cef6064655af3107a4000614752565b67ffffffffffffffff168152602001600081526020016101ca6000848152602001908152602001600020548152509150506109bf565b60008181526101c46020908152604091829020825160a0810184528154815260019091015467ffffffffffffffff80821683850152680100000000000000008204811683860152600160801b820481166060840152600160c01b909104811660808301908152845160e081018652868152835194810194909452519193830191610db69116655af3107a4000614782565b8152602001826060015167ffffffffffffffff16655af3107a4000610ddb9190614782565b8152602001826040015167ffffffffffffffff16655af3107a4000610e009190614782565b8152602001826020015167ffffffffffffffff16655af3107a4000610e259190614782565b815260009384526101ca6020908152604090942054930192909252509392505050565b610e53335b8261260b565b610ec55760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610acc565b610c1e838383612702565b60026065541415610f235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610acc565b60026065556000805b828110156110b0576000848483818110610f4857610f486147a1565b905060200201359050336001600160a01b0316610f6482611998565b6001600160a01b031614610fba5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206d757374206f776e207468652070726f7068657400000000006044820152606401610acc565b60008181526101c8602052604090205460ff161561101a5760405162461bcd60e51b815260206004820152601460248201527f4c6f6f7420616c726561647920636c61696d65640000000000000000000000006044820152606401610acc565b6000611025826113b2565b519050806110755760405162461bcd60e51b815260206004820152601560248201527f4c6f6f742063616e206e6f7420626520656d70747900000000000000000000006044820152606401610acc565b60008281526101c860205260409020805460ff1916600117905561109981856147b7565b9350505080806110a8906147cf565b915050610f2c565b506110e56001600160a01b037f000000000000000000000000f4dc48d260c93ad6a96c5ce563e70ca578987c741633836128da565b5050600160655550565b60006110fa83611a23565b821061116e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610acc565b506001600160a01b0391909116600090815260fb60209081526040808320938352929052205490565b306001600160a01b037f00000000000000000000000066c9e3f2bef64cf65a54a5e96bbc43cc1e0060091614156112255760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610acc565b7f00000000000000000000000066c9e3f2bef64cf65a54a5e96bbc43cc1e0060096001600160a01b03166112807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146112eb5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610acc565b6112f48161295a565b6040805160008082526020820190925261131091839190612962565b50565b610c1e83838360405180602001604052806000815250612067565b61133733610e4d565b6113a95760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610acc565b61131081612b26565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152611f40821161142e576040518060a00160405280611f40690878678326eac9000000611409919061473e565b8152600060208201819052606460408301526060820181905260809091015292915050565b5060009081526101c46020908152604091829020825160a0810184528154815260019091015467ffffffffffffffff80821693830193909352680100000000000000008104831693820193909352600160801b830482166060820152600160c01b90920416608082015290565b306001600160a01b037f00000000000000000000000066c9e3f2bef64cf65a54a5e96bbc43cc1e0060091614156115295760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610acc565b7f00000000000000000000000066c9e3f2bef64cf65a54a5e96bbc43cc1e0060096001600160a01b03166115847f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146115ef5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610acc565b6115f88261295a565b61160482826001612962565b5050565b600061161360fd5490565b82106116875760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610acc565b60fd828154811061169a5761169a6147a1565b90600052602060002001549050919050565b6116b4612bcd565b611f406116c16101c35490565b1061170e5760405162461bcd60e51b815260206004820152600d60248201527f4e6f7420612070726f70686574000000000000000000000000000000000000006044820152606401610acc565b61171d6101c380546001019055565b6113108161172b6101c35490565b612c28565b611738612c88565b8051611604906101c7906020840190613fbc565b6002606554141561179f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610acc565b600260655560006117af33611a23565b116117fc5760405162461bcd60e51b815260206004820152601d60248201527f43616c6c657220646f6573206e6f74206f776e20612070726f706865740000006044820152606401610acc565b3361180682611998565b6001600160a01b03161461185c5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206d757374206f776e207468652070726f7068657400000000006044820152606401610acc565b60008181526101c8602052604090205460ff1615801561188957506118856103e8611f406147b7565b8111155b6118d55760405162461bcd60e51b815260206004820152601460248201527f4c6f6f7420616c726561647920636c61696d65640000000000000000000000006044820152606401610acc565b60006118e0826113b2565b519050806119305760405162461bcd60e51b815260206004820152601560248201527f4c6f6f742063616e206e6f7420626520656d70747900000000000000000000006044820152606401610acc565b60008281526101c860205260409020805460ff1916600117905561197e6001600160a01b037f000000000000000000000000f4dc48d260c93ad6a96c5ce563e70ca578987c741633836128da565b50506001606555565b60006119936101c35490565b905090565b600081815260cb60205260408120546001600160a01b0316806109bf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610acc565b60006001600160a01b038216611aa15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610acc565b506001600160a01b0316600090815260cc602052604090205490565b6033546001600160a01b03163314611b175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610acc565b611b216000612cf1565b565b33611b2d83611998565b6001600160a01b031614611b835760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420616e206f776e6572206f66207468652070726f7068657400000000006044820152606401610acc565b3360009081526101c6602090815260408083206001600160a01b038516845290915290205482811415611bf85760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479207374616b65640000000000000000000000000000000000006044820152606401610acc565b8015611c1c5760008181526101c56020526040902080546001600160a01b03191690555b60008381526101c560205260409020546001600160a01b031615611c6b573360009081526101c6602090815260408083208684526101c58352818420546001600160a01b031684529091528120555b60008381526101c56020908152604080832080546001600160a01b0319166001600160a01b038716908117909155338085526101c6845282852082865284528285208890558785526101ca84529382902042905590518681529092917f99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f7910160405180910390a3505050565b611cff612bcd565b611f4081118015611d1d5750611d196103e8611f406147b7565b8111155b611d695760405162461bcd60e51b815260206004820152601360248201527f4e6f7420612067726561742070726f70686574000000000000000000000000006044820152606401610acc565b6116048282612c28565b606060ca80546109d4906146d7565b611d98611f40690878678326eac900000061473e565b81565b6001600160a01b038216331415611df45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610acc565b33600081815260ce602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611e68612c88565b60005b8b81101561205857611f408d8d83818110611e8857611e886147a1565b9050602002013511611edc5760405162461bcd60e51b815260206004820152601360248201527f4e6f7420612067726561742070726f70686574000000000000000000000000006044820152606401610acc565b6120468d8d83818110611ef157611ef16147a1565b905060200201358c8c84818110611f0a57611f0a6147a1565b905060200201358b8b85818110611f2357611f236147a1565b9050602002016020810190611f3891906147ea565b8a8a86818110611f4a57611f4a6147a1565b9050602002016020810190611f5f91906147ea565b898987818110611f7157611f716147a1565b9050602002016020810190611f8691906147ea565b888888818110611f9857611f986147a1565b9050602002016020810190611fad91906147ea565b60009586526101c460205260409095209384556001909301805467ffffffffffffffff958616600160c01b0277ffffffffffffffffffffffffffffffffffffffffffffffff958716600160801b02959095166fffffffffffffffffffffffffffffffff93871668010000000000000000026fffffffffffffffffffffffffffffffff199092169690941695909517949094171617179055565b80612050816147cf565b915050611e6b565b50505050505050505050505050565b612071338361260b565b6120e35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610acc565b6120ef84848484612d43565b50505050565b600081815260cb60205260409020546060906001600160a01b03166121825760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610acc565b600061218c612dcc565b905060008151116121ac57604051806020016040528060008152506121d7565b806121b684612ddc565b6040516020016121c7929190614814565b6040516020818303038152906040525b9392505050565b6101c780546121ec906146d7565b80601f0160208091040260200160405190810160405280929190818152602001828054612218906146d7565b80156122655780601f1061223a57610100808354040283529160200191612265565b820191906000526020600020905b81548152906001019060200180831161224857829003601f168201915b505050505081565b60006103e861227e81611f406147b7565b61199391906147b7565b6103e861229781611f406147b7565b611d9891906147b7565b6033546001600160a01b031633146122fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610acc565b6001600160a01b0381166123775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610acc565b61131081612cf1565b600054610100900460ff1680612399575060005460ff16155b6123fc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff1615801561241e576000805461ffff19166101011790555b6124926040518060400160405280601081526020017f426162796c6f6e2050726f7068657473000000000000000000000000000000008152506040518060400160405280600381526020017f4250480000000000000000000000000000000000000000000000000000000000815250612f0e565b61249a612fdc565b6124a26130a6565b6124aa613154565b6124b26131f9565b6124ba612fdc565b6124c76101c78484614040565b508015610c1e576000805461ff0019169055505050565b6124e6612c88565b6001600160a01b03811661253c5760405162461bcd60e51b815260206004820152600e60248201527f53706563696679206d696e7465720000000000000000000000000000000000006044820152606401610acc565b6101c980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806109bf57506109bf8261329f565b600081815260cd6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125d282611998565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260cb60205260408120546001600160a01b03166126845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610acc565b600061268f83611998565b9050806001600160a01b0316846001600160a01b031614806126ca5750836001600160a01b03166126bf84610a57565b6001600160a01b0316145b806126fa57506001600160a01b03808216600090815260ce602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661271582611998565b6001600160a01b0316146127915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610acc565b6001600160a01b03821661280c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610acc565b61281783838361333a565b61282260008261259d565b6001600160a01b038316600090815260cc6020526040812080546001929061284b908490614843565b90915550506001600160a01b038216600090815260cc602052604081208054600192906128799084906147b7565b9091555050600081815260cb602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c1e90849061336e565b611310612c88565b60006129957f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b90506129a084613453565b6000835111806129ad5750815b156129be576129bc8484613508565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16612b1f57805460ff191660011781556040516001600160a01b0383166024820152612a6b90869060440160408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f3659cfe600000000000000000000000000000000000000000000000000000000179052613508565b50805460ff191681557f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b03838116911614612b165760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201527f75727468657220757067726164657300000000000000000000000000000000006064820152608401610acc565b612b1f8561360a565b5050505050565b6000612b3182611998565b9050612b3f8160008461333a565b612b4a60008361259d565b6001600160a01b038116600090815260cc60205260408120805460019290612b73908490614843565b9091555050600082815260cb602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6101c9546001600160a01b03163314611b215760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420746865206d696e74657200000000000000006044820152606401610acc565b6001600160a01b038216612c7e5760405162461bcd60e51b815260206004820152601060248201527f526563697069656e7420697320307830000000000000000000000000000000006044820152606401610acc565b611604828261364a565b33612c9b6033546001600160a01b031690565b6001600160a01b031614611b215760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610acc565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612d4e848484612702565b612d5a84848484613798565b6120ef5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610acc565b60606101c780546109d4906146d7565b606081612e1c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e465780612e30816147cf565b9150612e3f9050600a8361473e565b9150612e20565b60008167ffffffffffffffff811115612e6157612e6161430f565b6040519080825280601f01601f191660200182016040528015612e8b576020820181803683370190505b5090505b84156126fa57612ea0600183614843565b9150612ead600a8661485a565b612eb89060306147b7565b60f81b818381518110612ecd57612ecd6147a1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612f07600a8661473e565b9450612e8f565b600054610100900460ff1680612f27575060005460ff16155b612f8a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015612fac576000805461ffff19166101011790555b612fb46138fb565b612fbc6138fb565b612fc683836139ac565b8015610c1e576000805461ff0019169055505050565b600054610100900460ff1680612ff5575060005460ff16155b6130585760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff1615801561307a576000805461ffff19166101011790555b6130826138fb565b61308a6138fb565b6130926138fb565b8015611310576000805461ff001916905550565b600054610100900460ff16806130bf575060005460ff16155b6131225760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613144576000805461ffff19166101011790555b61314c6138fb565b613092613a71565b600054610100900460ff168061316d575060005460ff16155b6131d05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613082576000805461ffff191661010117905561308a6138fb565b600054610100900460ff1680613212575060005460ff16155b6132755760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613297576000805461ffff19166101011790555b613092613b18565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061330257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109bf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109bf565b613345838383613bcf565b60008181526101c560205260409020546001600160a01b031615610c1e57610c1e816000611b23565b60006133c3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613c879092919063ffffffff16565b805190915015610c1e57808060200190518101906133e1919061486e565b610c1e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610acc565b803b6134c75760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610acc565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b61357e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610acc565b600080846001600160a01b031684604051613599919061488b565b600060405180830381855af49150503d80600081146135d4576040519150601f19603f3d011682016040523d82523d6000602084013e6135d9565b606091505b5091509150613601828260405180606001604052806027815260200161491760279139613c96565b95945050505050565b61361381613453565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0382166136a05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610acc565b600081815260cb60205260409020546001600160a01b0316156137055760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610acc565b6137116000838361333a565b6001600160a01b038216600090815260cc6020526040812080546001929061373a9084906147b7565b9091555050600081815260cb602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156138f057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137dc9033908990889088906004016148a7565b602060405180830381600087803b1580156137f657600080fd5b505af1925050508015613826575060408051601f3d908101601f19168201909252613823918101906148e3565b60015b6138d6573d808015613854576040519150601f19603f3d011682016040523d82523d6000602084013e613859565b606091505b5080516138ce5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610acc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126fa565b506001949350505050565b600054610100900460ff1680613914575060005460ff16155b6139775760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613092576000805461ffff19166101011790558015611310576000805461ff001916905550565b600054610100900460ff16806139c5575060005460ff16155b613a285760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613a4a576000805461ffff19166101011790555b8251613a5d9060c9906020860190613fbc565b5081516124c79060ca906020850190613fbc565b600054610100900460ff1680613a8a575060005460ff16155b613aed5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613b0f576000805461ffff19166101011790555b61309233612cf1565b600054610100900460ff1680613b31575060005460ff16155b613b945760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610acc565b600054610100900460ff16158015613bb6576000805461ffff19166101011790555b60016065558015611310576000805461ff001916905550565b6001600160a01b038316613c2a57613c258160fd8054600083815260fe60205260408120829055600182018355919091527f9346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca2800155565b613c4d565b816001600160a01b0316836001600160a01b031614613c4d57613c4d8382613ccf565b6001600160a01b038216613c6457610c1e81613d6c565b826001600160a01b0316826001600160a01b031614610c1e57610c1e8282613e1b565b60606126fa8484600085613e5f565b60608315613ca55750816121d7565b825115613cb55782518084602001fd5b8160405162461bcd60e51b8152600401610acc9190614154565b60006001613cdc84611a23565b613ce69190614843565b600083815260fc6020526040902054909150808214613d39576001600160a01b038416600090815260fb60209081526040808320858452825280832054848452818420819055835260fc90915290208190555b50600091825260fc602090815260408084208490556001600160a01b03909416835260fb81528383209183525290812055565b60fd54600090613d7e90600190614843565b600083815260fe602052604081205460fd8054939450909284908110613da657613da66147a1565b906000526020600020015490508060fd8381548110613dc757613dc76147a1565b600091825260208083209091019290925582815260fe909152604080822084905585825281205560fd805480613dff57613dff614900565b6001900381819060005260206000200160009055905550505050565b6000613e2683611a23565b6001600160a01b03909316600090815260fb60209081526040808320868452825280832085905593825260fc9052919091209190915550565b606082471015613ed75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610acc565b843b613f255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610acc565b600080866001600160a01b03168587604051613f41919061488b565b60006040518083038185875af1925050503d8060008114613f7e576040519150601f19603f3d011682016040523d82523d6000602084013e613f83565b606091505b5091509150613f93828286613c96565b979650505050505050565b6040518060e001604052806007906020820280368337509192915050565b828054613fc8906146d7565b90600052602060002090601f016020900481019282613fea5760008555614030565b82601f1061400357805160ff1916838001178555614030565b82800160010185558215614030579182015b82811115614030578251825591602001919060010190614015565b5061403c9291506140b4565b5090565b82805461404c906146d7565b90600052602060002090601f01602090048101928261406e5760008555614030565b82601f106140875782800160ff19823516178555614030565b82800160010185558215614030579182015b82811115614030578235825591602001919060010190614099565b5b8082111561403c57600081556001016140b5565b6001600160e01b03198116811461131057600080fd5b6000602082840312156140f157600080fd5b81356121d7816140c9565b60005b838110156141175781810151838201526020016140ff565b838111156120ef5750506000910152565b600081518084526141408160208601602086016140fc565b601f01601f19169290920160200192915050565b6020815260006121d76020830184614128565b60006020828403121561417957600080fd5b5035919050565b80356001600160a01b038116811461419757600080fd5b919050565b600080604083850312156141af57600080fd5b6141b883614180565b946020939093013593505050565b600080604083850312156141d957600080fd5b6141e283614180565b91506141f060208401614180565b90509250929050565b60e08101818360005b6007811015614221578151835260209283019290910190600101614202565b50505092915050565b60008060006060848603121561423f57600080fd5b61424884614180565b925061425660208501614180565b9150604084013590509250925092565b60008083601f84011261427857600080fd5b50813567ffffffffffffffff81111561429057600080fd5b6020830191508360208260051b85010111156142ab57600080fd5b9250929050565b600080602083850312156142c557600080fd5b823567ffffffffffffffff8111156142dc57600080fd5b6142e885828601614266565b90969095509350505050565b60006020828403121561430657600080fd5b6121d782614180565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156143405761434061430f565b604051601f8501601f19908116603f011681019082821181831017156143685761436861430f565b8160405280935085815286868601111561438157600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126143ac57600080fd5b6121d783833560208501614325565b600080604083850312156143ce57600080fd5b6143d783614180565b9150602083013567ffffffffffffffff8111156143f357600080fd5b6143ff8582860161439b565b9150509250929050565b60006020828403121561441b57600080fd5b813567ffffffffffffffff81111561443257600080fd5b8201601f8101841361444357600080fd5b6126fa84823560208401614325565b6000806040838503121561446557600080fd5b823591506141f060208401614180565b801515811461131057600080fd5b6000806040838503121561449657600080fd5b61449f83614180565b915060208301356144af81614475565b809150509250929050565b60008060008060008060008060008060008060c08d8f0312156144dc57600080fd5b67ffffffffffffffff8d3511156144f257600080fd5b6144ff8e8e358f01614266565b909c509a5067ffffffffffffffff60208e0135111561451d57600080fd5b61452d8e60208f01358f01614266565b909a50985067ffffffffffffffff60408e0135111561454b57600080fd5b61455b8e60408f01358f01614266565b909850965067ffffffffffffffff60608e0135111561457957600080fd5b6145898e60608f01358f01614266565b909650945067ffffffffffffffff60808e013511156145a757600080fd5b6145b78e60808f01358f01614266565b909450925067ffffffffffffffff60a08e013511156145d557600080fd5b6145e58e60a08f01358f01614266565b81935080925050509295989b509295989b509295989b565b6000806000806080858703121561461357600080fd5b61461c85614180565b935061462a60208601614180565b925060408501359150606085013567ffffffffffffffff81111561464d57600080fd5b6146598782880161439b565b91505092959194509250565b6000806020838503121561467857600080fd5b823567ffffffffffffffff8082111561469057600080fd5b818501915085601f8301126146a457600080fd5b8135818111156146b357600080fd5b8660208285010111156146c557600080fd5b60209290920196919550909350505050565b600181811c908216806146eb57607f821691505b6020821081141561470c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261474d5761474d614712565b500490565b600067ffffffffffffffff8083168185168183048111821515161561477957614779614728565b02949350505050565b600081600019048311821515161561479c5761479c614728565b500290565b634e487b7160e01b600052603260045260246000fd5b600082198211156147ca576147ca614728565b500190565b60006000198214156147e3576147e3614728565b5060010190565b6000602082840312156147fc57600080fd5b813567ffffffffffffffff811681146121d757600080fd5b600083516148268184602088016140fc565b83519083019061483a8183602088016140fc565b01949350505050565b60008282101561485557614855614728565b500390565b60008261486957614869614712565b500690565b60006020828403121561488057600080fd5b81516121d781614475565b6000825161489d8184602087016140fc565b9190910192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526148d96080830184614128565b9695505050505050565b6000602082840312156148f557600080fd5b81516121d7816140c9565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220feabcd5a675112104abae3aab78cca7dca25ce117d3c911abfe0ebe462c7993864736f6c63430008090033

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

000000000000000000000000f4dc48d260c93ad6a96c5ce563e70ca578987c74

-----Decoded View---------------
Arg [0] : _bablToken (address): 0xF4Dc48D260C93ad6a96c5Ce563E70CA578987c74

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4dc48d260c93ad6a96c5ce563e70ca578987c74


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

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.