ETH Price: $2,194.82 (-5.88%)

Contract

0x43969c778ee61bc2F7d7af25E04F5DfaDc5BcBaf
 

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:
BNFTRegistry

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion
File 1 of 19 : BNFTRegistry.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;

import {IBNFTRegistry} from "../interfaces/IBNFTRegistry.sol";
import {IBNFT} from "../interfaces/IBNFT.sol";
import {BNFTUpgradeableProxy} from "../libraries/BNFTUpgradeableProxy.sol";

import {AddressUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import {IERC721MetadataUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol";

contract BNFTRegistry is IBNFTRegistry, Initializable, OwnableUpgradeable {
  mapping(address => address) public bNftProxys;
  mapping(address => address) public bNftImpls;
  address[] public bNftAssetLists;
  string public namePrefix;
  string public symbolPrefix;
  address public bNftGenericImpl;
  mapping(address => string) public customSymbols;
  uint256 private constant _NOT_ENTERED = 0;
  uint256 private constant _ENTERED = 1;
  uint256 private _status;
  address private _claimAdmin;
  address private _delegateCashContract;
  address private _delegateCashContractV2;

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

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

    _;

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

  /**
   * @dev Throws if called by any account other than the claim admin.
   */
  modifier onlyClaimAdmin() {
    require(claimAdmin() == _msgSender(), "BNFTR: caller is not the claim admin");
    _;
  }

  function getBNFTAddresses(address nftAsset) external view override returns (address bNftProxy, address bNftImpl) {
    bNftProxy = bNftProxys[nftAsset];
    bNftImpl = bNftImpls[nftAsset];
  }

  function getBNFTAddressesByIndex(uint16 index) external view override returns (address bNftProxy, address bNftImpl) {
    require(index < bNftAssetLists.length, "BNFTR: invalid index");
    bNftProxy = bNftProxys[bNftAssetLists[index]];
    bNftImpl = bNftImpls[bNftAssetLists[index]];
  }

  function getBNFTAssetList() external view override returns (address[] memory) {
    return bNftAssetLists;
  }

  function allBNFTAssetLength() external view override returns (uint256) {
    return bNftAssetLists.length;
  }

  function getDelegateCashContract() public view override returns (address) {
    return _delegateCashContract;
  }

  function getDelegateCashContractV2() public view override returns (address) {
    return _delegateCashContractV2;
  }

  function initialize(
    address genericImpl,
    string memory namePrefix_,
    string memory symbolPrefix_
  ) external override initializer {
    require(genericImpl != address(0), "BNFTR: impl is zero address");

    __Ownable_init();

    bNftGenericImpl = genericImpl;

    namePrefix = namePrefix_;
    symbolPrefix = symbolPrefix_;

    _setClaimAdmin(_msgSender());

    emit Initialized(genericImpl, namePrefix, symbolPrefix);
  }

  /**
   * @dev See {IBNFTRegistry-createBNFT}.
   */
  function createBNFT(address nftAsset) external override nonReentrant returns (address bNftProxy) {
    _requireAddressIsERC721(nftAsset);
    require(bNftProxys[nftAsset] == address(0), "BNFTR: asset exist");
    require(bNftGenericImpl != address(0), "BNFTR: impl is zero address");

    bNftProxy = _createProxyAndInitWithImpl(nftAsset, bNftGenericImpl);

    emit BNFTCreated(nftAsset, bNftImpls[nftAsset], bNftProxy, bNftAssetLists.length);
  }

  /**
   * @dev See {IBNFTRegistry-setBNFTGenericImpl}.
   */
  function setBNFTGenericImpl(address genericImpl) external override nonReentrant onlyOwner {
    require(genericImpl != address(0), "BNFTR: impl is zero address");
    bNftGenericImpl = genericImpl;

    emit GenericImplementationUpdated(genericImpl);
  }

  /**
   * @dev See {IBNFTRegistry-createBNFTWithImpl}.
   */
  function createBNFTWithImpl(address nftAsset, address bNftImpl)
    external
    override
    nonReentrant
    onlyOwner
    returns (address bNftProxy)
  {
    _requireAddressIsERC721(nftAsset);
    require(bNftImpl != address(0), "BNFTR: implement is zero address");
    require(bNftProxys[nftAsset] == address(0), "BNFTR: asset exist");

    bNftProxy = _createProxyAndInitWithImpl(nftAsset, bNftImpl);

    emit BNFTCreated(nftAsset, bNftImpls[nftAsset], bNftProxy, bNftAssetLists.length);
  }

  /**
   * @dev See {IBNFTRegistry-upgradeBNFTWithImpl}.
   */
  function upgradeBNFTWithImpl(
    address nftAsset,
    address bNftImpl,
    bytes memory encodedCallData
  ) external override nonReentrant onlyOwner {
    _upgradeBNFTWithImpl(nftAsset, bNftImpl, encodedCallData);
  }

  function _upgradeBNFTWithImpl(
    address nftAsset,
    address bNftImpl,
    bytes memory encodedCallData
  ) internal {
    address bNftProxy = bNftProxys[nftAsset];
    require(bNftProxy != address(0), "BNFTR: asset nonexist");

    BNFTUpgradeableProxy proxy = BNFTUpgradeableProxy(payable(bNftProxy));

    if (encodedCallData.length > 0) {
      proxy.upgradeToAndCall(bNftImpl, encodedCallData);
    } else {
      proxy.upgradeTo(bNftImpl);
    }

    bNftImpls[nftAsset] = bNftImpl;

    emit BNFTUpgraded(nftAsset, bNftImpl, bNftProxy, bNftAssetLists.length);
  }

  function batchUpgradeBNFT(address[] calldata nftAssets) external override nonReentrant onlyOwner {
    require(nftAssets.length > 0, "BNFTR: empty assets");

    for (uint256 i = 0; i < nftAssets.length; i++) {
      _upgradeBNFTWithImpl(nftAssets[i], bNftGenericImpl, new bytes(0));
    }
  }

  function batchUpgradeAllBNFT() external override nonReentrant onlyOwner {
    for (uint256 i = 0; i < bNftAssetLists.length; i++) {
      _upgradeBNFTWithImpl(bNftAssetLists[i], bNftGenericImpl, new bytes(0));
    }
  }

  /**
   * @dev See {IBNFTRegistry-addCustomeSymbols}.
   */
  function addCustomeSymbols(address[] memory nftAssets_, string[] memory symbols_)
    external
    override
    nonReentrant
    onlyOwner
  {
    require(nftAssets_.length == symbols_.length, "BNFTR: inconsistent parameters");

    for (uint256 i = 0; i < nftAssets_.length; i++) {
      customSymbols[nftAssets_[i]] = symbols_[i];
    }

    emit CustomeSymbolsAdded(nftAssets_, symbols_);
  }

  /**
   * @dev Returns the address of the current claim admin.
   */
  function claimAdmin() public view virtual returns (address) {
    return _claimAdmin;
  }

  /**
   * @dev Set claim admin of the contract to a new account (`newAdmin`).
   * Can only be called by the current owner.
   */
  function setClaimAdmin(address newAdmin) public virtual onlyOwner {
    require(newAdmin != address(0), "BNFTR: new admin is the zero address");
    _setClaimAdmin(newAdmin);
  }

  function _setClaimAdmin(address newAdmin) internal virtual {
    address oldAdmin = _claimAdmin;
    _claimAdmin = newAdmin;
    emit ClaimAdminUpdated(oldAdmin, newAdmin);
  }

  function setDelegateCashContract(address newDelegateCash) public virtual onlyOwner {
    require(newDelegateCash != address(0), "BNFTR: new contract is the zero address");
    address oldDelegateCash = _delegateCashContract;
    _delegateCashContract = newDelegateCash;
    emit DelegateCashUpdated(oldDelegateCash, newDelegateCash);
  }

  function setDelegateCashContractV2(address newDelegateCash) public virtual onlyOwner {
    require(newDelegateCash != address(0), "BNFTR: new contract is the zero address");
    address oldDelegateCash = _delegateCashContractV2;
    _delegateCashContractV2 = newDelegateCash;
    emit DelegateCashV2Updated(oldDelegateCash, newDelegateCash);
  }

  function _createProxyAndInitWithImpl(address nftAsset, address bNftImpl) internal returns (address bNftProxy) {
    bytes memory initParams = _buildInitParams(nftAsset);

    BNFTUpgradeableProxy proxy = new BNFTUpgradeableProxy(bNftImpl, address(this), initParams);

    bNftProxy = address(proxy);

    bNftImpls[nftAsset] = bNftImpl;
    bNftProxys[nftAsset] = bNftProxy;
    bNftAssetLists.push(nftAsset);
  }

  function _buildInitParams(address nftAsset) internal view returns (bytes memory initParams) {
    string memory nftSymbol = customSymbols[nftAsset];
    if (bytes(nftSymbol).length == 0) {
      nftSymbol = IERC721MetadataUpgradeable(nftAsset).symbol();
    }
    string memory bNftName = string(abi.encodePacked(namePrefix, " ", nftSymbol));
    string memory bNftSymbol = string(abi.encodePacked(symbolPrefix, nftSymbol));

    initParams = abi.encodeWithSelector(
      IBNFT.initialize.selector,
      nftAsset,
      bNftName,
      bNftSymbol,
      owner(),
      claimAdmin(),
      address(this)
    );
  }

  function _requireAddressIsERC721(address nftAsset) internal view {
    require(nftAsset != address(0), "BNFTR: asset is zero address");
    require(AddressUpgradeable.isContract(nftAsset), "BNFTR: asset is not contract");
  }
}

File 2 of 19 : IBNFTRegistry.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;

interface IBNFTRegistry {
  event Initialized(address genericImpl, string namePrefix, string symbolPrefix);
  event GenericImplementationUpdated(address genericImpl);
  event BNFTCreated(address indexed nftAsset, address bNftImpl, address bNftProxy, uint256 totals);
  event BNFTUpgraded(address indexed nftAsset, address bNftImpl, address bNftProxy, uint256 totals);
  event CustomeSymbolsAdded(address[] nftAssets, string[] symbols);
  event ClaimAdminUpdated(address oldAdmin, address newAdmin);
  event DelegateCashUpdated(address oldDelegateCash, address newDelegateCash);
  event DelegateCashV2Updated(address oldDelegateCash, address newDelegateCash);

  function getBNFTAddresses(address nftAsset) external view returns (address bNftProxy, address bNftImpl);

  function getBNFTAddressesByIndex(uint16 index) external view returns (address bNftProxy, address bNftImpl);

  function getBNFTAssetList() external view returns (address[] memory);

  function allBNFTAssetLength() external view returns (uint256);

  function getDelegateCashContract() external view returns (address);

  function getDelegateCashContractV2() external view returns (address);

  function initialize(
    address genericImpl,
    string memory namePrefix_,
    string memory symbolPrefix_
  ) external;

  function setBNFTGenericImpl(address genericImpl) external;

  /**
   * @dev Create bNFT proxy and implement, then initialize it
   * @param nftAsset The address of the underlying asset of the BNFT
   **/
  function createBNFT(address nftAsset) external returns (address bNftProxy);

  /**
   * @dev Create bNFT proxy with already deployed implement, then initialize it
   * @param nftAsset The address of the underlying asset of the BNFT
   * @param bNftImpl The address of the deployed implement of the BNFT
   **/
  function createBNFTWithImpl(address nftAsset, address bNftImpl) external returns (address bNftProxy);

  /**
   * @dev Update bNFT proxy to an new deployed implement, then initialize it
   * @param nftAsset The address of the underlying asset of the BNFT
   * @param bNftImpl The address of the deployed implement of the BNFT
   * @param encodedCallData The encoded function call.
   **/
  function upgradeBNFTWithImpl(
    address nftAsset,
    address bNftImpl,
    bytes memory encodedCallData
  ) external;

  function batchUpgradeBNFT(address[] calldata nftAssets) external;

  function batchUpgradeAllBNFT() external;

  /**
   * @dev Adding custom symbol for some special NFTs like CryptoPunks
   * @param nftAssets_ The addresses of the NFTs
   * @param symbols_ The custom symbols of the NFTs
   **/
  function addCustomeSymbols(address[] memory nftAssets_, string[] memory symbols_) external;
}

File 3 of 19 : IBNFT.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;

interface IBNFT {
  /**
   * @dev Emitted when an bNFT is initialized
   * @param underlyingAsset_ The address of the underlying asset
   **/
  event Initialized(address indexed underlyingAsset_);

  /**
   * @dev Emitted when the ownership is transferred
   * @param oldOwner The address of the old owner
   * @param newOwner The address of the new owner
   **/
  event OwnershipTransferred(address oldOwner, address newOwner);

  /**
   * @dev Emitted when the claim admin is updated
   * @param oldAdmin The address of the old admin
   * @param newAdmin The address of the new admin
   **/
  event ClaimAdminUpdated(address oldAdmin, address newAdmin);

  /**
   * @dev Emitted on mint
   * @param user The address initiating the burn
   * @param nftAsset address of the underlying asset of NFT
   * @param nftTokenId token id of the underlying asset of NFT
   * @param owner The owner address receive the bNFT token
   **/
  event Mint(address indexed user, address indexed nftAsset, uint256 nftTokenId, address indexed owner);

  /**
   * @dev Emitted on burn
   * @param user The address initiating the burn
   * @param nftAsset address of the underlying asset of NFT
   * @param nftTokenId token id of the underlying asset of NFT
   * @param owner The owner address of the burned bNFT token
   **/
  event Burn(address indexed user, address indexed nftAsset, uint256 nftTokenId, address indexed owner);

  /**
   * @dev Emitted on flashLoan
   * @param target The address of the flash loan receiver contract
   * @param initiator The address initiating the flash loan
   * @param nftAsset address of the underlying asset of NFT
   * @param tokenId The token id of the asset being flash borrowed
   **/
  event FlashLoan(address indexed target, address indexed initiator, address indexed nftAsset, uint256 tokenId);

  event ClaimERC20Airdrop(address indexed token, address indexed to, uint256 amount);

  event ClaimERC721Airdrop(address indexed token, address indexed to, uint256[] ids);

  event ClaimERC1155Airdrop(address indexed token, address indexed to, uint256[] ids, uint256[] amounts, bytes data);

  event ExecuteAirdrop(address indexed airdropContract);

  event FlashLoanApproval(address indexed minter, address indexed operator, bool approved);

  event FlashLoanLocking(uint256 tokenId, address indexed minter, address indexed operator, bool approved);

  /**
   * @dev Initializes the bNFT
   * @param underlyingAsset_ The address of the underlying asset of this bNFT (E.g. PUNK for bPUNK)
   */
  function initialize(
    address underlyingAsset_,
    string calldata bNftName,
    string calldata bNftSymbol,
    address owner_,
    address claimAdmin_,
    address bnftRegistry_
  ) external;

  /**
   * @dev Mints bNFT token to the user address
   *
   * Requirements:
   *  - The caller can be contract address and EOA.
   *  - `nftTokenId` must not exist.
   *
   * @param to The owner address receive the bNFT token
   * @param tokenId token id of the underlying asset of NFT
   **/
  function mint(address to, uint256 tokenId) external;

  /**
   * @dev Burns user bNFT token
   *
   * Requirements:
   *  - The caller can be contract address and EOA.
   *  - `tokenId` must exist.
   *
   * @param tokenId token id of the underlying asset of NFT
   **/
  function burn(uint256 tokenId) external;

  /**
   * @dev Allows smartcontracts to access the tokens within one transaction, as long as the tokens taken is returned.
   *
   * Requirements:
   *  - `nftTokenIds` must exist.
   *
   * @param receiverAddress The address of the contract receiving the tokens, implementing the IFlashLoanReceiver interface
   * @param nftTokenIds token ids of the underlying asset
   * @param params Variadic packed params to pass to the receiver as extra information
   */
  function flashLoan(
    address receiverAddress,
    uint256[] calldata nftTokenIds,
    bytes calldata params
  ) external;

  /**
   * @dev Approve or remove the flash loan `operator` as an operator for the minter.
   * Operators can call {flashLoan} for any token minted by the minter.
   *
   */
  function setFlashLoanApproval(address operator, bool approved) external;

  /**
   * @dev Returns if the `operator` is allowed to call flash loan of the assets of `minter`.
   */
  function isFlashLoanApproved(address minter, address operator) external view returns (bool);

  /**
   * @dev Lock or unlock the flash loan `operator` as an operator for the minter.
   * Operators can call {flashLoan} for any token minted by the minter.
   *
   */
  function setFlashLoanLocking(
    uint256 tokenId,
    address operator,
    bool locked
  ) external;

  /**
   * @dev Returns if the `operator` is allowed to call flash loan of the assets of `minter`.
   */
  function isFlashLoanLocked(
    uint256 tokenId,
    address minter,
    address operator
  ) external view returns (bool);

  function getFlashLoanLocked(uint256 tokenId, address minter) external view returns (address[] memory);

  // V1 Delegate Cash

  function getDelegateCashForToken(uint256[] calldata tokenIds) external view returns (address[][] memory);

  function setDelegateCashForToken(uint256[] calldata tokenIds, bool value) external;

  function setDelegateCashForToken(
    address delegate,
    uint256[] calldata tokenIds,
    bool value
  ) external;

  // V2 Delegate Cash

  function getDelegateCashForTokenV2(uint256[] calldata tokenIds) external view returns (address[][] memory);

  function setDelegateCashForTokenV2(uint256[] calldata tokenIds, bool value) external;

  function setDelegateCashForTokenV2(
    address delegate,
    uint256[] calldata tokenIds,
    bool value
  ) external;

  // Airdrop

  function claimERC20Airdrop(
    address token,
    address to,
    uint256 amount
  ) external;

  function claimERC721Airdrop(
    address token,
    address to,
    uint256[] calldata ids
  ) external;

  function claimERC1155Airdrop(
    address token,
    address to,
    uint256[] calldata ids,
    uint256[] calldata amounts,
    bytes calldata data
  ) external;

  function executeAirdrop(address airdropContract, bytes calldata airdropParams) external;

  /**
   * @dev Returns the owner of the `nftTokenId` token.
   *
   * Requirements:
   *  - `tokenId` must exist.
   *
   * @param tokenId token id of the underlying asset of NFT
   */
  function minterOf(uint256 tokenId) external view returns (address);

  /**
   * @dev Returns the address of the underlying asset.
   */
  function underlyingAsset() external view returns (address);

  /**
   * @dev Returns the contract-level metadata.
   */
  function contractURI() external view returns (string memory);
}

File 4 of 19 : BNFTUpgradeableProxy.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

contract BNFTUpgradeableProxy is TransparentUpgradeableProxy {
  constructor(
    address _logic,
    address admin_,
    bytes memory _data
  ) payable TransparentUpgradeableProxy(_logic, admin_, _data) {}
}

File 5 of 19 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 6 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @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 proxied contracts do not make use of 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.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
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() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 7 of 19 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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 onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_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 {
        _transferOwnership(address(0));
    }

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

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 9 of 19 : TransparentUpgradeableProxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)

pragma solidity ^0.8.0;

import "../ERC1967/ERC1967Proxy.sol";

/**
 * @dev This contract implements a proxy that is upgradeable by an admin.
 *
 * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
 * clashing], which can potentially be used in an attack, this contract uses the
 * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
 * things that go hand in hand:
 *
 * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
 * that call matches one of the admin functions exposed by the proxy itself.
 * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
 * implementation. If the admin tries to call a function on the implementation it will fail with an error that says
 * "admin cannot fallback to proxy target".
 *
 * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
 * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
 * to sudden errors when trying to call a function from the proxy implementation.
 *
 * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
 * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
 */
contract TransparentUpgradeableProxy is ERC1967Proxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
     */
    constructor(
        address _logic,
        address admin_,
        bytes memory _data
    ) payable ERC1967Proxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _changeAdmin(admin_);
    }

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _getAdmin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address admin_) {
        admin_ = _getAdmin();
    }

    /**
     * @dev Returns the current implementation.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address implementation_) {
        implementation_ = _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external virtual ifAdmin {
        _changeAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeToAndCall(newImplementation, bytes(""), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     *
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
        _upgradeToAndCall(newImplementation, data, true);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view virtual returns (address) {
        return _getAdmin();
    }

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal virtual override {
        require(msg.sender != _getAdmin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}

File 10 of 19 : ERC1967Proxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)

pragma solidity ^0.8.0;

import "../Proxy.sol";
import "./ERC1967Upgrade.sol";

/**
 * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
 * implementation address that can be changed. This address is stored in storage in the location specified by
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
 * implementation behind the proxy.
 */
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     *
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializating the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) payable {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _upgradeToAndCall(_logic, _data, false);
    }

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal view virtual override returns (address impl) {
        return ERC1967Upgrade._getImplementation();
    }
}

File 11 of 19 : Proxy.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

File 12 of 19 : ERC1967Upgrade.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeacon.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.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 ERC1967Upgrade {
    // 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 StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlot.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) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @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 StorageSlot.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");
        StorageSlot.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 StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.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) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        }
    }
}

File 13 of 19 : IBeacon.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @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 14 of 19 : draft-IERC1822.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 15 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 19 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

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 StorageSlot {
    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
        }
    }
}

File 17 of 19 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 onlyInitializing {
    }

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 18 of 19 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

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 19 of 19 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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);
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftAsset","type":"address"},{"indexed":false,"internalType":"address","name":"bNftImpl","type":"address"},{"indexed":false,"internalType":"address","name":"bNftProxy","type":"address"},{"indexed":false,"internalType":"uint256","name":"totals","type":"uint256"}],"name":"BNFTCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftAsset","type":"address"},{"indexed":false,"internalType":"address","name":"bNftImpl","type":"address"},{"indexed":false,"internalType":"address","name":"bNftProxy","type":"address"},{"indexed":false,"internalType":"uint256","name":"totals","type":"uint256"}],"name":"BNFTUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"ClaimAdminUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"nftAssets","type":"address[]"},{"indexed":false,"internalType":"string[]","name":"symbols","type":"string[]"}],"name":"CustomeSymbolsAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldDelegateCash","type":"address"},{"indexed":false,"internalType":"address","name":"newDelegateCash","type":"address"}],"name":"DelegateCashUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldDelegateCash","type":"address"},{"indexed":false,"internalType":"address","name":"newDelegateCash","type":"address"}],"name":"DelegateCashV2Updated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"genericImpl","type":"address"}],"name":"GenericImplementationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"genericImpl","type":"address"},{"indexed":false,"internalType":"string","name":"namePrefix","type":"string"},{"indexed":false,"internalType":"string","name":"symbolPrefix","type":"string"}],"name":"Initialized","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"},{"inputs":[{"internalType":"address[]","name":"nftAssets_","type":"address[]"},{"internalType":"string[]","name":"symbols_","type":"string[]"}],"name":"addCustomeSymbols","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allBNFTAssetLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bNftAssetLists","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bNftGenericImpl","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bNftImpls","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bNftProxys","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batchUpgradeAllBNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"nftAssets","type":"address[]"}],"name":"batchUpgradeBNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftAsset","type":"address"}],"name":"createBNFT","outputs":[{"internalType":"address","name":"bNftProxy","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"address","name":"bNftImpl","type":"address"}],"name":"createBNFTWithImpl","outputs":[{"internalType":"address","name":"bNftProxy","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customSymbols","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftAsset","type":"address"}],"name":"getBNFTAddresses","outputs":[{"internalType":"address","name":"bNftProxy","type":"address"},{"internalType":"address","name":"bNftImpl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"index","type":"uint16"}],"name":"getBNFTAddressesByIndex","outputs":[{"internalType":"address","name":"bNftProxy","type":"address"},{"internalType":"address","name":"bNftImpl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBNFTAssetList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDelegateCashContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDelegateCashContractV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"genericImpl","type":"address"},{"internalType":"string","name":"namePrefix_","type":"string"},{"internalType":"string","name":"symbolPrefix_","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"namePrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"genericImpl","type":"address"}],"name":"setBNFTGenericImpl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setClaimAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDelegateCash","type":"address"}],"name":"setDelegateCashContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDelegateCash","type":"address"}],"name":"setDelegateCashContractV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbolPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"address","name":"bNftImpl","type":"address"},{"internalType":"bytes","name":"encodedCallData","type":"bytes"}],"name":"upgradeBNFTWithImpl","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061342a806100206000396000f3fe60806040523480156200001157600080fd5b5060043610620001e95760003560e01c80637cae5931116200010d578063bd0a20fa11620000a3578063d8389dfd116200007a578063d8389dfd146200046f578063d8ac9f4c1462000481578063e6caa64a1462000498578063f2fde38b14620004af57600080fd5b8063bd0a20fa1462000435578063cc7438be146200044c578063cda9cf2f146200045657600080fd5b80639065714711620000e45780639065714714620003d957806393bd552a14620003f0578063a8b256b71462000407578063b25923b9146200041e57600080fd5b80637cae5931146200039c5780637f1b30eb14620003b05780638da5cb5b14620003c757600080fd5b806359f31d7a116200018357806373e42851116200015a57806373e42851146200034f57806377ed7ec0146200036157806377f50f97146200037857806379637240146200038a57600080fd5b806359f31d7a14620002d957806368d5f7611462000319578063715018a6146200034557600080fd5b806330784b5e11620001c457806330784b5e146200028857806338225b18146200029f5780633bb7b6c514620002b857806359a8a86714620002cf57600080fd5b8063139ba2ff14620001ee578063141f08621462000237578063146e61801462000250575b600080fd5b6200021a620001ff36600462001b92565b6066602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6200024e6200024836600462001b92565b620004c6565b005b620002676200026136600462001e8e565b620005a9565b604080516001600160a01b039384168152929091166020830152016200022e565b6200024e6200029936600462001d43565b620006b4565b620002a962000852565b6040516200022e919062002218565b620002a9620002c936600462001b92565b620008e8565b620002a962000903565b62000267620002ea36600462001b92565b6001600160a01b0390811660009081526065602090815260408083205460669092529091205490821692911690565b6200021a6200032a36600462001b92565b6065602052600090815260409020546001600160a01b031681565b6200024e62000912565b606e546001600160a01b03166200021a565b6200024e6200037236600462001b92565b6200094d565b606d546001600160a01b03166200021a565b606f546001600160a01b03166200021a565b606a546200021a906001600160a01b031681565b6200024e620003c136600462001be6565b62000a05565b6033546001600160a01b03166200021a565b6200024e620003ea36600462001c5e565b62000a74565b6200024e6200040136600462001b92565b62000bfa565b6200021a6200041836600462001b92565b62000c99565b6200021a6200042f36600462001eb2565b62000de7565b6200024e6200044636600462001b92565b62000e12565b6200024e62000ec3565b6200046062000fbc565b6040516200022e91906200218c565b6067546040519081526020016200022e565b6200024e6200049236600462001cce565b62001020565b6200021a620004a936600462001baf565b6200112e565b6200024e620004c036600462001b92565b620012ca565b6001606c541415620004f55760405162461bcd60e51b8152600401620004ec906200232b565b60405180910390fd5b6001606c556033546001600160a01b03163314620005275760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b038116620005505760405162461bcd60e51b8152600401620004ec906200222d565b606a80546001600160a01b0319166001600160a01b0383169081179091556040519081527fdd85d4e8d565505229fd3ea870919ce71bc2335f4e033afc47fcbbfbcb37fd3b9060200160405180910390a1506000606c55565b606754600090819061ffff841610620005fc5760405162461bcd60e51b81526020600482015260146024820152730849c8ca8a47440d2dcecc2d8d2c840d2dcc8caf60631b6044820152606401620004ec565b6065600060678561ffff16815481106200062657634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b039081168452908301939093526040909101812054606780549190931694506066929061ffff87169081106200068157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03908116845290830193909352604090910190205492949216925050565b6001606c541415620006da5760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b031633146200070c5760405162461bcd60e51b8152600401620004ec90620022ab565b80518251146200075f5760405162461bcd60e51b815260206004820152601e60248201527f424e4654523a20696e636f6e73697374656e7420706172616d657465727300006044820152606401620004ec565b60005b82518110156200080d578181815181106200078d57634e487b7160e01b600052603260045260246000fd5b6020026020010151606b6000858481518110620007ba57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000209080519060200190620007f7929190620019be565b5080620008048162002454565b91505062000762565b507f15f7688f8838d8320cf7742c865b5223ee96a6ac69defbaed14187aca5d94f35828260405162000841929190620021a1565b60405180910390a150506000606c55565b60688054620008619062002417565b80601f01602080910402602001604051908101604052809291908181526020018280546200088f9062002417565b8015620008e05780601f10620008b457610100808354040283529160200191620008e0565b820191906000526020600020905b815481529060010190602001808311620008c257829003601f168201915b505050505081565b606b6020526000908152604090208054620008619062002417565b60698054620008619062002417565b6033546001600160a01b031633146200093f5760405162461bcd60e51b8152600401620004ec90620022ab565b6200094b600062001364565b565b6033546001600160a01b031633146200097a5760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b038116620009a35760405162461bcd60e51b8152600401620004ec9062002264565b606f80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fc6cbd40e6f52e8984fe2a729e846e67d565cd67ec0233261a02420ca851594fe91015b60405180910390a15050565b6001606c54141562000a2b5760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b0316331462000a5d5760405162461bcd60e51b8152600401620004ec90620022ab565b62000a6a838383620013b6565b50506000606c5550565b600054610100900460ff1662000a915760005460ff161562000a95565b303b155b62000afa5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620004ec565b600054610100900460ff1615801562000b1d576000805461ffff19166101011790555b6001600160a01b03841662000b465760405162461bcd60e51b8152600401620004ec906200222d565b62000b506200156a565b606a80546001600160a01b0319166001600160a01b038616179055825162000b80906068906020860190620019be565b50815162000b96906069906020850190620019be565b5062000ba2336200159e565b7f82dfd53401a55bb491abcb3e7a97c99da1ed7eaffd89721d3e96e8e8ad4a692d846068606960405162000bd99392919062002148565b60405180910390a1801562000bf4576000805461ff00191690555b50505050565b6033546001600160a01b0316331462000c275760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b03811662000c8b5760405162461bcd60e51b8152602060048201526024808201527f424e4654523a206e65772061646d696e20697320746865207a65726f206164646044820152637265737360e01b6064820152608401620004ec565b62000c96816200159e565b50565b60006001606c54141562000cc15760405162461bcd60e51b8152600401620004ec906200232b565b6001606c5562000cd182620015f9565b6001600160a01b03828116600090815260656020526040902054161562000d305760405162461bcd60e51b815260206004820152601260248201527110939195148e88185cdcd95d08195e1a5cdd60721b6044820152606401620004ec565b606a546001600160a01b031662000d5b5760405162461bcd60e51b8152600401620004ec906200222d565b606a5462000d749083906001600160a01b0316620016aa565b6001600160a01b03838116600081815260666020908152604091829020546067548351918616825294861691810191909152908101929092529192507f6ebf9ae7a3bfb6fca39acf13fc1ec503f6a49e9732d372c5008314cfcef73d469060600160405180910390a26000606c55919050565b6067818154811062000df857600080fd5b6000918252602090912001546001600160a01b0316905081565b6033546001600160a01b0316331462000e3f5760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b03811662000e685760405162461bcd60e51b8152600401620004ec9062002264565b606e80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fe3ee7eb57b4f6207d1419a4ca43e8e79071665045bf71a2cbd787eb10335d8b19101620009f9565b6001606c54141562000ee95760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b0316331462000f1b5760405162461bcd60e51b8152600401620004ec90620022ab565b60005b60675481101562000fb45762000f9f6067828154811062000f4f57634e487b7160e01b600052603260045260246000fd5b6000918252602082200154606a546001600160a01b03918216929116905b6040519080825280601f01601f19166020018201604052801562000f98576020820181803683370190505b50620013b6565b8062000fab8162002454565b91505062000f1e565b506000606c55565b606060678054806020026020016040519081016040528092919081815260200182805480156200101657602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000ff7575b5050505050905090565b6001606c541415620010465760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b03163314620010785760405162461bcd60e51b8152600401620004ec90620022ab565b80620010bd5760405162461bcd60e51b8152602060048201526013602482015272424e4654523a20656d7074792061737365747360681b6044820152606401620004ec565b60005b8181101562000a6a5762001119838383818110620010ee57634e487b7160e01b600052603260045260246000fd5b905060200201602081019062001105919062001b92565b606a546001600160a01b0316600062000f6d565b80620011258162002454565b915050620010c0565b60006001606c541415620011565760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b03163314620011885760405162461bcd60e51b8152600401620004ec90620022ab565b6200119383620015f9565b6001600160a01b038216620011eb5760405162461bcd60e51b815260206004820181905260248201527f424e4654523a20696d706c656d656e74206973207a65726f20616464726573736044820152606401620004ec565b6001600160a01b0383811660009081526065602052604090205416156200124a5760405162461bcd60e51b815260206004820152601260248201527110939195148e88185cdcd95d08195e1a5cdd60721b6044820152606401620004ec565b620012568383620016aa565b6001600160a01b03848116600081815260666020908152604091829020546067548351918616825294861691810191909152908101929092529192507f6ebf9ae7a3bfb6fca39acf13fc1ec503f6a49e9732d372c5008314cfcef73d469060600160405180910390a26000606c5592915050565b6033546001600160a01b03163314620012f75760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b0381166200135e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004ec565b62000c96815b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038084166000908152606560205260409020541680620014185760405162461bcd60e51b815260206004820152601560248201527410939195148e88185cdcd95d081b9bdb995e1a5cdd605a1b6044820152606401620004ec565b81518190156200148c5760405163278f794360e11b81526001600160a01b03821690634f1ef28690620014529087908790600401620020c1565b600060405180830381600087803b1580156200146d57600080fd5b505af115801562001482573d6000803e3d6000fd5b50505050620014ea565b604051631b2ce7f360e11b81526001600160a01b038581166004830152821690633659cfe690602401600060405180830381600087803b158015620014d057600080fd5b505af1158015620014e5573d6000803e3d6000fd5b505050505b6001600160a01b0385811660008181526066602090815260409182902080546001600160a01b03191689861690811790915560675483519182529487169181019190915290810192909252907f871221279d076ff05c178687f0881e32661d592022be7e05452ce07aa68d5c479060600160405180910390a25050505050565b600054610100900460ff16620015945760405162461bcd60e51b8152600401620004ec90620022e0565b6200094b62001782565b606d80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f03a10997c98b0878c1fd2feebb4382f49c6d47668492dc17c8e85d8827d92dbf9101620009f9565b6001600160a01b038116620016515760405162461bcd60e51b815260206004820152601c60248201527f424e4654523a206173736574206973207a65726f2061646472657373000000006044820152606401620004ec565b6001600160a01b0381163b62000c965760405162461bcd60e51b815260206004820152601c60248201527f424e4654523a206173736574206973206e6f7420636f6e7472616374000000006044820152606401620004ec565b600080620016b884620017b7565b90506000833083604051620016cd9062001a4d565b620016db9392919062002093565b604051809103906000f080158015620016f8573d6000803e3d6000fd5b506001600160a01b0395861660008181526066602090815260408083208054998b166001600160a01b03199a8b16179055606590915281208054988416988816989098179097556067805460018101825597527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae9096018054909516909517909355509192915050565b600054610100900460ff16620017ac5760405162461bcd60e51b8152600401620004ec90620022e0565b6200094b3362001364565b6001600160a01b0381166000908152606b6020526040812080546060929190620017e19062002417565b80601f01602080910402602001604051908101604052809291908181526020018280546200180f9062002417565b8015620018605780601f10620018345761010080835404028352916020019162001860565b820191906000526020600020905b8154815290600101906020018083116200184257829003601f168201915b50505050509050805160001415620018ee57826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015620018ac57600080fd5b505afa158015620018c1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620018eb919081019062001e12565b90505b6000606882604051602001620019069291906200205d565b604051602081830303815290604052905060006069836040516020016200192f92919062002034565b60408051601f198184030181529190529050636dc6c7e360e11b8583836200195f6033546001600160a01b031690565b606d546001600160a01b0316306040516024016200198396959493929190620020ef565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915295945050505050565b828054620019cc9062002417565b90600052602060002090601f016020900481019282620019f0576000855562001a3b565b82601f1062001a0b57805160ff191683800117855562001a3b565b8280016001018555821562001a3b579182015b8281111562001a3b57825182559160200191906001019062001a1e565b5062001a4992915062001a5b565b5090565b610f62806200249383390190565b5b8082111562001a49576000815560010162001a5c565b600062001a8962001a8384620023bd565b62002362565b905082815283838301111562001a9e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811462001acd57600080fd5b919050565b600082601f83011262001ae3578081fd5b8135602062001af662001a838362002396565b80838252828201915082860187848660051b890101111562001b16578586fd5b855b8581101562001b5c57813567ffffffffffffffff81111562001b38578788fd5b62001b488a87838c010162001b69565b855250928401929084019060010162001b18565b5090979650505050505050565b600082601f83011262001b7a578081fd5b62001b8b8383356020850162001a72565b9392505050565b60006020828403121562001ba4578081fd5b62001b8b8262001ab5565b6000806040838503121562001bc2578081fd5b62001bcd8362001ab5565b915062001bdd6020840162001ab5565b90509250929050565b60008060006060848603121562001bfb578081fd5b62001c068462001ab5565b925062001c166020850162001ab5565b9150604084013567ffffffffffffffff81111562001c32578182fd5b8401601f8101861362001c43578182fd5b62001c548682356020840162001a72565b9150509250925092565b60008060006060848603121562001c73578283fd5b62001c7e8462001ab5565b9250602084013567ffffffffffffffff8082111562001c9b578384fd5b62001ca98783880162001b69565b9350604086013591508082111562001cbf578283fd5b5062001c548682870162001b69565b6000806020838503121562001ce1578182fd5b823567ffffffffffffffff8082111562001cf9578384fd5b818501915085601f83011262001d0d578384fd5b81358181111562001d1c578485fd5b8660208260051b850101111562001d31578485fd5b60209290920196919550909350505050565b6000806040838503121562001d56578182fd5b823567ffffffffffffffff8082111562001d6e578384fd5b818501915085601f83011262001d82578384fd5b8135602062001d9562001a838362002396565b8083825282820191508286018a848660051b890101111562001db5578889fd5b8896505b8487101562001de25762001dcd8162001ab5565b83526001969096019591830191830162001db9565b509650508601359250508082111562001df9578283fd5b5062001e088582860162001ad2565b9150509250929050565b60006020828403121562001e24578081fd5b815167ffffffffffffffff81111562001e3b578182fd5b8201601f8101841362001e4c578182fd5b805162001e5d62001a8382620023bd565b81815285602083850101111562001e72578384fd5b62001e85826020830160208601620023e8565b95945050505050565b60006020828403121562001ea0578081fd5b813561ffff8116811462001b8b578182fd5b60006020828403121562001ec4578081fd5b5035919050565b6000815180845260208085019450808401835b8381101562001f055781516001600160a01b03168752958201959082019060010162001ede565b509495945050505050565b6000815180845262001f2a816020860160208601620023e8565b601f01601f19169290920160200192915050565b6000815462001f4d8162002417565b80855260206001838116801562001f6d576001811462001f825762001fb2565b60ff1985168884015260408801955062001fb2565b866000528260002060005b8581101562001faa5781548a820186015290830190840162001f8d565b890184019650505b505050505092915050565b6000815462001fcc8162002417565b6001828116801562001fe7576001811462001ff9576200202a565b60ff198416875282870194506200202a565b8560005260208060002060005b85811015620020215781548a82015290840190820162002006565b50505082870194505b5050505092915050565b600062002042828562001fbd565b835162002054818360208801620023e8565b01949350505050565b60006200206b828562001fbd565b600160fd1b8152835162002087816001840160208801620023e8565b01600101949350505050565b6001600160a01b0384811682528316602082015260606040820181905260009062001e859083018462001f10565b6001600160a01b0383168152604060208201819052600090620020e79083018462001f10565b949350505050565b600060018060a01b03808916835260c060208401526200211360c084018962001f10565b838103604085015262002127818962001f10565b968216606085015250938416608083015250911660a0909101529392505050565b6001600160a01b03841681526060602082018190526000906200216e9083018562001f3e565b828103604084015262002182818562001f3e565b9695505050505050565b60208152600062001b8b602083018462001ecb565b604081526000620021b6604083018562001ecb565b6020838203818501528185518084528284019150828160051b850101838801865b838110156200220957601f19878403018552620021f683835162001f10565b94860194925090850190600101620021d7565b50909998505050505050505050565b60208152600062001b8b602083018462001f10565b6020808252601b908201527f424e4654523a20696d706c206973207a65726f20616464726573730000000000604082015260600190565b60208082526027908201527f424e4654523a206e657720636f6e747261637420697320746865207a65726f206040820152666164647265737360c81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156200238e576200238e6200247c565b604052919050565b600067ffffffffffffffff821115620023b357620023b36200247c565b5060051b60200190565b600067ffffffffffffffff821115620023da57620023da6200247c565b50601f01601f191660200190565b60005b8381101562002405578181015183820152602001620023eb565b8381111562000bf45750506000910152565b600181811c908216806200242c57607f821691505b602082108114156200244e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200247557634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fdfe608060405260405162000f6238038062000f628339810160408190526200002691620004f2565b82828282816200005860017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd62000621565b60008051602062000f1b833981519152146200008457634e487b7160e01b600052600160045260246000fd5b620000928282600062000105565b50620000c2905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610462000621565b60008051602062000efb83398151915214620000ee57634e487b7160e01b600052600160045260246000fd5b620000f98262000142565b5050505050506200068a565b62000110836200019d565b6000825111806200011e5750805b156200013d576200013b8383620001df60201b620002601760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200016d6200020e565b604080516001600160a01b03928316815291841660208301520160405180910390a16200019a8162000247565b50565b620001a881620002fc565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606062000207838360405180606001604052806027815260200162000f3b602791396200039f565b9392505050565b60006200023860008051602062000efb83398151915260001b6200048560201b620002081760201c565b546001600160a01b0316919050565b6001600160a01b038116620002b25760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002db60008051602062000efb83398151915260001b6200048560201b620002081760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b62000312816200048860201b6200028c1760201c565b620003765760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620002a9565b80620002db60008051602062000f1b83398151915260001b6200048560201b620002081760201c565b60606001600160a01b0384163b620004095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401620002a9565b600080856001600160a01b031685604051620004269190620005ce565b600060405180830381855af49150503d806000811462000463576040519150601f19603f3d011682016040523d82523d6000602084013e62000468565b606091505b5090925090506200047b82828662000497565b9695505050505050565b90565b6001600160a01b03163b151590565b60608315620004a857508162000207565b825115620004b95782518084602001fd5b8160405162461bcd60e51b8152600401620002a99190620005ec565b80516001600160a01b0381168114620004ed57600080fd5b919050565b60008060006060848603121562000507578283fd5b6200051284620004d5565b92506200052260208501620004d5565b60408501519092506001600160401b03808211156200053f578283fd5b818601915086601f83011262000553578283fd5b81518181111562000568576200056862000674565b604051601f8201601f19908116603f0116810190838211818310171562000593576200059362000674565b81604052828152896020848701011115620005ac578586fd5b620005bf83602083016020880162000645565b80955050505050509250925092565b60008251620005e281846020870162000645565b9190910192915050565b60208152600082518060208401526200060d81604085016020870162000645565b601f01601f19169190910160400192915050565b6000828210156200064057634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156200066257818101518382015260200162000648565b838111156200013b5750506000910152565b634e487b7160e01b600052604160045260246000fd5b610861806200069a6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b6100803660046106f1565b610118565b61005b61009336600461070b565b61015f565b3480156100a457600080fd5b506100ad6101d0565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e43660046106f1565b61020b565b3480156100f557600080fd5b506100ad610235565b61010661029b565b61011661011161033a565b610344565b565b610120610368565b6001600160a01b0316336001600160a01b03161415610157576101548160405180602001604052806000815250600061039b565b50565b6101546100fe565b610167610368565b6001600160a01b0316336001600160a01b031614156101c8576101c38383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506001925061039b915050565b505050565b6101c36100fe565b60006101da610368565b6001600160a01b0316336001600160a01b03161415610200576101fb61033a565b905090565b6102086100fe565b90565b610213610368565b6001600160a01b0316336001600160a01b0316141561015757610154816103c6565b600061023f610368565b6001600160a01b0316336001600160a01b03161415610200576101fb610368565b606061028583836040518060600160405280602781526020016108056027913961041a565b9392505050565b6001600160a01b03163b151590565b6102a3610368565b6001600160a01b0316336001600160a01b031614156101165760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101fb6104f7565b3660008037600080366000845af43d6000803e808015610363573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b6103a48361051f565b6000825111806103b15750805b156101c3576103c08383610260565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103ef610368565b604080516001600160a01b03928316815291841660208301520160405180910390a16101548161055f565b60606001600160a01b0384163b6104825760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610331565b600080856001600160a01b03168560405161049d9190610789565b600060405180830381855af49150503d80600081146104d8576040519150601f19603f3d011682016040523d82523d6000602084013e6104dd565b606091505b50915091506104ed828286610608565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61038c565b61052881610641565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105c45760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610331565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b60608315610617575081610285565b8251156106275782518084602001fd5b8160405162461bcd60e51b815260040161033191906107a5565b6001600160a01b0381163b6106ae5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610331565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6105e7565b80356001600160a01b03811681146106ec57600080fd5b919050565b600060208284031215610702578081fd5b610285826106d5565b60008060006040848603121561071f578182fd5b610728846106d5565b9250602084013567ffffffffffffffff80821115610744578384fd5b818601915086601f830112610757578384fd5b813581811115610765578485fd5b876020828501011115610776578485fd5b6020830194508093505050509250925092565b6000825161079b8184602087016107d8565b9190910192915050565b60208152600082518060208401526107c48160408501602087016107d8565b601f01601f19169190910160400192915050565b60005b838110156107f35781810151838201526020016107db565b838111156103c0575050600091015256fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202bf2e5ffee2745882a454fd32805936a4f5f22add5cfc0d297fa73f7f93f8c6564736f6c63430008040033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201714328227dfdb01dab547031fd76bdbf792f23190d8ac1e2aa4ccd2a2364eba64736f6c63430008040033

Deployed Bytecode

0x60806040523480156200001157600080fd5b5060043610620001e95760003560e01c80637cae5931116200010d578063bd0a20fa11620000a3578063d8389dfd116200007a578063d8389dfd146200046f578063d8ac9f4c1462000481578063e6caa64a1462000498578063f2fde38b14620004af57600080fd5b8063bd0a20fa1462000435578063cc7438be146200044c578063cda9cf2f146200045657600080fd5b80639065714711620000e45780639065714714620003d957806393bd552a14620003f0578063a8b256b71462000407578063b25923b9146200041e57600080fd5b80637cae5931146200039c5780637f1b30eb14620003b05780638da5cb5b14620003c757600080fd5b806359f31d7a116200018357806373e42851116200015a57806373e42851146200034f57806377ed7ec0146200036157806377f50f97146200037857806379637240146200038a57600080fd5b806359f31d7a14620002d957806368d5f7611462000319578063715018a6146200034557600080fd5b806330784b5e11620001c457806330784b5e146200028857806338225b18146200029f5780633bb7b6c514620002b857806359a8a86714620002cf57600080fd5b8063139ba2ff14620001ee578063141f08621462000237578063146e61801462000250575b600080fd5b6200021a620001ff36600462001b92565b6066602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6200024e6200024836600462001b92565b620004c6565b005b620002676200026136600462001e8e565b620005a9565b604080516001600160a01b039384168152929091166020830152016200022e565b6200024e6200029936600462001d43565b620006b4565b620002a962000852565b6040516200022e919062002218565b620002a9620002c936600462001b92565b620008e8565b620002a962000903565b62000267620002ea36600462001b92565b6001600160a01b0390811660009081526065602090815260408083205460669092529091205490821692911690565b6200021a6200032a36600462001b92565b6065602052600090815260409020546001600160a01b031681565b6200024e62000912565b606e546001600160a01b03166200021a565b6200024e6200037236600462001b92565b6200094d565b606d546001600160a01b03166200021a565b606f546001600160a01b03166200021a565b606a546200021a906001600160a01b031681565b6200024e620003c136600462001be6565b62000a05565b6033546001600160a01b03166200021a565b6200024e620003ea36600462001c5e565b62000a74565b6200024e6200040136600462001b92565b62000bfa565b6200021a6200041836600462001b92565b62000c99565b6200021a6200042f36600462001eb2565b62000de7565b6200024e6200044636600462001b92565b62000e12565b6200024e62000ec3565b6200046062000fbc565b6040516200022e91906200218c565b6067546040519081526020016200022e565b6200024e6200049236600462001cce565b62001020565b6200021a620004a936600462001baf565b6200112e565b6200024e620004c036600462001b92565b620012ca565b6001606c541415620004f55760405162461bcd60e51b8152600401620004ec906200232b565b60405180910390fd5b6001606c556033546001600160a01b03163314620005275760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b038116620005505760405162461bcd60e51b8152600401620004ec906200222d565b606a80546001600160a01b0319166001600160a01b0383169081179091556040519081527fdd85d4e8d565505229fd3ea870919ce71bc2335f4e033afc47fcbbfbcb37fd3b9060200160405180910390a1506000606c55565b606754600090819061ffff841610620005fc5760405162461bcd60e51b81526020600482015260146024820152730849c8ca8a47440d2dcecc2d8d2c840d2dcc8caf60631b6044820152606401620004ec565b6065600060678561ffff16815481106200062657634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b039081168452908301939093526040909101812054606780549190931694506066929061ffff87169081106200068157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03908116845290830193909352604090910190205492949216925050565b6001606c541415620006da5760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b031633146200070c5760405162461bcd60e51b8152600401620004ec90620022ab565b80518251146200075f5760405162461bcd60e51b815260206004820152601e60248201527f424e4654523a20696e636f6e73697374656e7420706172616d657465727300006044820152606401620004ec565b60005b82518110156200080d578181815181106200078d57634e487b7160e01b600052603260045260246000fd5b6020026020010151606b6000858481518110620007ba57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000209080519060200190620007f7929190620019be565b5080620008048162002454565b91505062000762565b507f15f7688f8838d8320cf7742c865b5223ee96a6ac69defbaed14187aca5d94f35828260405162000841929190620021a1565b60405180910390a150506000606c55565b60688054620008619062002417565b80601f01602080910402602001604051908101604052809291908181526020018280546200088f9062002417565b8015620008e05780601f10620008b457610100808354040283529160200191620008e0565b820191906000526020600020905b815481529060010190602001808311620008c257829003601f168201915b505050505081565b606b6020526000908152604090208054620008619062002417565b60698054620008619062002417565b6033546001600160a01b031633146200093f5760405162461bcd60e51b8152600401620004ec90620022ab565b6200094b600062001364565b565b6033546001600160a01b031633146200097a5760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b038116620009a35760405162461bcd60e51b8152600401620004ec9062002264565b606f80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fc6cbd40e6f52e8984fe2a729e846e67d565cd67ec0233261a02420ca851594fe91015b60405180910390a15050565b6001606c54141562000a2b5760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b0316331462000a5d5760405162461bcd60e51b8152600401620004ec90620022ab565b62000a6a838383620013b6565b50506000606c5550565b600054610100900460ff1662000a915760005460ff161562000a95565b303b155b62000afa5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620004ec565b600054610100900460ff1615801562000b1d576000805461ffff19166101011790555b6001600160a01b03841662000b465760405162461bcd60e51b8152600401620004ec906200222d565b62000b506200156a565b606a80546001600160a01b0319166001600160a01b038616179055825162000b80906068906020860190620019be565b50815162000b96906069906020850190620019be565b5062000ba2336200159e565b7f82dfd53401a55bb491abcb3e7a97c99da1ed7eaffd89721d3e96e8e8ad4a692d846068606960405162000bd99392919062002148565b60405180910390a1801562000bf4576000805461ff00191690555b50505050565b6033546001600160a01b0316331462000c275760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b03811662000c8b5760405162461bcd60e51b8152602060048201526024808201527f424e4654523a206e65772061646d696e20697320746865207a65726f206164646044820152637265737360e01b6064820152608401620004ec565b62000c96816200159e565b50565b60006001606c54141562000cc15760405162461bcd60e51b8152600401620004ec906200232b565b6001606c5562000cd182620015f9565b6001600160a01b03828116600090815260656020526040902054161562000d305760405162461bcd60e51b815260206004820152601260248201527110939195148e88185cdcd95d08195e1a5cdd60721b6044820152606401620004ec565b606a546001600160a01b031662000d5b5760405162461bcd60e51b8152600401620004ec906200222d565b606a5462000d749083906001600160a01b0316620016aa565b6001600160a01b03838116600081815260666020908152604091829020546067548351918616825294861691810191909152908101929092529192507f6ebf9ae7a3bfb6fca39acf13fc1ec503f6a49e9732d372c5008314cfcef73d469060600160405180910390a26000606c55919050565b6067818154811062000df857600080fd5b6000918252602090912001546001600160a01b0316905081565b6033546001600160a01b0316331462000e3f5760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b03811662000e685760405162461bcd60e51b8152600401620004ec9062002264565b606e80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fe3ee7eb57b4f6207d1419a4ca43e8e79071665045bf71a2cbd787eb10335d8b19101620009f9565b6001606c54141562000ee95760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b0316331462000f1b5760405162461bcd60e51b8152600401620004ec90620022ab565b60005b60675481101562000fb45762000f9f6067828154811062000f4f57634e487b7160e01b600052603260045260246000fd5b6000918252602082200154606a546001600160a01b03918216929116905b6040519080825280601f01601f19166020018201604052801562000f98576020820181803683370190505b50620013b6565b8062000fab8162002454565b91505062000f1e565b506000606c55565b606060678054806020026020016040519081016040528092919081815260200182805480156200101657602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000ff7575b5050505050905090565b6001606c541415620010465760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b03163314620010785760405162461bcd60e51b8152600401620004ec90620022ab565b80620010bd5760405162461bcd60e51b8152602060048201526013602482015272424e4654523a20656d7074792061737365747360681b6044820152606401620004ec565b60005b8181101562000a6a5762001119838383818110620010ee57634e487b7160e01b600052603260045260246000fd5b905060200201602081019062001105919062001b92565b606a546001600160a01b0316600062000f6d565b80620011258162002454565b915050620010c0565b60006001606c541415620011565760405162461bcd60e51b8152600401620004ec906200232b565b6001606c556033546001600160a01b03163314620011885760405162461bcd60e51b8152600401620004ec90620022ab565b6200119383620015f9565b6001600160a01b038216620011eb5760405162461bcd60e51b815260206004820181905260248201527f424e4654523a20696d706c656d656e74206973207a65726f20616464726573736044820152606401620004ec565b6001600160a01b0383811660009081526065602052604090205416156200124a5760405162461bcd60e51b815260206004820152601260248201527110939195148e88185cdcd95d08195e1a5cdd60721b6044820152606401620004ec565b620012568383620016aa565b6001600160a01b03848116600081815260666020908152604091829020546067548351918616825294861691810191909152908101929092529192507f6ebf9ae7a3bfb6fca39acf13fc1ec503f6a49e9732d372c5008314cfcef73d469060600160405180910390a26000606c5592915050565b6033546001600160a01b03163314620012f75760405162461bcd60e51b8152600401620004ec90620022ab565b6001600160a01b0381166200135e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004ec565b62000c96815b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038084166000908152606560205260409020541680620014185760405162461bcd60e51b815260206004820152601560248201527410939195148e88185cdcd95d081b9bdb995e1a5cdd605a1b6044820152606401620004ec565b81518190156200148c5760405163278f794360e11b81526001600160a01b03821690634f1ef28690620014529087908790600401620020c1565b600060405180830381600087803b1580156200146d57600080fd5b505af115801562001482573d6000803e3d6000fd5b50505050620014ea565b604051631b2ce7f360e11b81526001600160a01b038581166004830152821690633659cfe690602401600060405180830381600087803b158015620014d057600080fd5b505af1158015620014e5573d6000803e3d6000fd5b505050505b6001600160a01b0385811660008181526066602090815260409182902080546001600160a01b03191689861690811790915560675483519182529487169181019190915290810192909252907f871221279d076ff05c178687f0881e32661d592022be7e05452ce07aa68d5c479060600160405180910390a25050505050565b600054610100900460ff16620015945760405162461bcd60e51b8152600401620004ec90620022e0565b6200094b62001782565b606d80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f03a10997c98b0878c1fd2feebb4382f49c6d47668492dc17c8e85d8827d92dbf9101620009f9565b6001600160a01b038116620016515760405162461bcd60e51b815260206004820152601c60248201527f424e4654523a206173736574206973207a65726f2061646472657373000000006044820152606401620004ec565b6001600160a01b0381163b62000c965760405162461bcd60e51b815260206004820152601c60248201527f424e4654523a206173736574206973206e6f7420636f6e7472616374000000006044820152606401620004ec565b600080620016b884620017b7565b90506000833083604051620016cd9062001a4d565b620016db9392919062002093565b604051809103906000f080158015620016f8573d6000803e3d6000fd5b506001600160a01b0395861660008181526066602090815260408083208054998b166001600160a01b03199a8b16179055606590915281208054988416988816989098179097556067805460018101825597527f9787eeb91fe3101235e4a76063c7023ecb40f923f97916639c598592fa30d6ae9096018054909516909517909355509192915050565b600054610100900460ff16620017ac5760405162461bcd60e51b8152600401620004ec90620022e0565b6200094b3362001364565b6001600160a01b0381166000908152606b6020526040812080546060929190620017e19062002417565b80601f01602080910402602001604051908101604052809291908181526020018280546200180f9062002417565b8015620018605780601f10620018345761010080835404028352916020019162001860565b820191906000526020600020905b8154815290600101906020018083116200184257829003601f168201915b50505050509050805160001415620018ee57826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015620018ac57600080fd5b505afa158015620018c1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620018eb919081019062001e12565b90505b6000606882604051602001620019069291906200205d565b604051602081830303815290604052905060006069836040516020016200192f92919062002034565b60408051601f198184030181529190529050636dc6c7e360e11b8583836200195f6033546001600160a01b031690565b606d546001600160a01b0316306040516024016200198396959493929190620020ef565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915295945050505050565b828054620019cc9062002417565b90600052602060002090601f016020900481019282620019f0576000855562001a3b565b82601f1062001a0b57805160ff191683800117855562001a3b565b8280016001018555821562001a3b579182015b8281111562001a3b57825182559160200191906001019062001a1e565b5062001a4992915062001a5b565b5090565b610f62806200249383390190565b5b8082111562001a49576000815560010162001a5c565b600062001a8962001a8384620023bd565b62002362565b905082815283838301111562001a9e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811462001acd57600080fd5b919050565b600082601f83011262001ae3578081fd5b8135602062001af662001a838362002396565b80838252828201915082860187848660051b890101111562001b16578586fd5b855b8581101562001b5c57813567ffffffffffffffff81111562001b38578788fd5b62001b488a87838c010162001b69565b855250928401929084019060010162001b18565b5090979650505050505050565b600082601f83011262001b7a578081fd5b62001b8b8383356020850162001a72565b9392505050565b60006020828403121562001ba4578081fd5b62001b8b8262001ab5565b6000806040838503121562001bc2578081fd5b62001bcd8362001ab5565b915062001bdd6020840162001ab5565b90509250929050565b60008060006060848603121562001bfb578081fd5b62001c068462001ab5565b925062001c166020850162001ab5565b9150604084013567ffffffffffffffff81111562001c32578182fd5b8401601f8101861362001c43578182fd5b62001c548682356020840162001a72565b9150509250925092565b60008060006060848603121562001c73578283fd5b62001c7e8462001ab5565b9250602084013567ffffffffffffffff8082111562001c9b578384fd5b62001ca98783880162001b69565b9350604086013591508082111562001cbf578283fd5b5062001c548682870162001b69565b6000806020838503121562001ce1578182fd5b823567ffffffffffffffff8082111562001cf9578384fd5b818501915085601f83011262001d0d578384fd5b81358181111562001d1c578485fd5b8660208260051b850101111562001d31578485fd5b60209290920196919550909350505050565b6000806040838503121562001d56578182fd5b823567ffffffffffffffff8082111562001d6e578384fd5b818501915085601f83011262001d82578384fd5b8135602062001d9562001a838362002396565b8083825282820191508286018a848660051b890101111562001db5578889fd5b8896505b8487101562001de25762001dcd8162001ab5565b83526001969096019591830191830162001db9565b509650508601359250508082111562001df9578283fd5b5062001e088582860162001ad2565b9150509250929050565b60006020828403121562001e24578081fd5b815167ffffffffffffffff81111562001e3b578182fd5b8201601f8101841362001e4c578182fd5b805162001e5d62001a8382620023bd565b81815285602083850101111562001e72578384fd5b62001e85826020830160208601620023e8565b95945050505050565b60006020828403121562001ea0578081fd5b813561ffff8116811462001b8b578182fd5b60006020828403121562001ec4578081fd5b5035919050565b6000815180845260208085019450808401835b8381101562001f055781516001600160a01b03168752958201959082019060010162001ede565b509495945050505050565b6000815180845262001f2a816020860160208601620023e8565b601f01601f19169290920160200192915050565b6000815462001f4d8162002417565b80855260206001838116801562001f6d576001811462001f825762001fb2565b60ff1985168884015260408801955062001fb2565b866000528260002060005b8581101562001faa5781548a820186015290830190840162001f8d565b890184019650505b505050505092915050565b6000815462001fcc8162002417565b6001828116801562001fe7576001811462001ff9576200202a565b60ff198416875282870194506200202a565b8560005260208060002060005b85811015620020215781548a82015290840190820162002006565b50505082870194505b5050505092915050565b600062002042828562001fbd565b835162002054818360208801620023e8565b01949350505050565b60006200206b828562001fbd565b600160fd1b8152835162002087816001840160208801620023e8565b01600101949350505050565b6001600160a01b0384811682528316602082015260606040820181905260009062001e859083018462001f10565b6001600160a01b0383168152604060208201819052600090620020e79083018462001f10565b949350505050565b600060018060a01b03808916835260c060208401526200211360c084018962001f10565b838103604085015262002127818962001f10565b968216606085015250938416608083015250911660a0909101529392505050565b6001600160a01b03841681526060602082018190526000906200216e9083018562001f3e565b828103604084015262002182818562001f3e565b9695505050505050565b60208152600062001b8b602083018462001ecb565b604081526000620021b6604083018562001ecb565b6020838203818501528185518084528284019150828160051b850101838801865b838110156200220957601f19878403018552620021f683835162001f10565b94860194925090850190600101620021d7565b50909998505050505050505050565b60208152600062001b8b602083018462001f10565b6020808252601b908201527f424e4654523a20696d706c206973207a65726f20616464726573730000000000604082015260600190565b60208082526027908201527f424e4654523a206e657720636f6e747261637420697320746865207a65726f206040820152666164647265737360c81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156200238e576200238e6200247c565b604052919050565b600067ffffffffffffffff821115620023b357620023b36200247c565b5060051b60200190565b600067ffffffffffffffff821115620023da57620023da6200247c565b50601f01601f191660200190565b60005b8381101562002405578181015183820152602001620023eb565b8381111562000bf45750506000910152565b600181811c908216806200242c57607f821691505b602082108114156200244e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200247557634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fdfe608060405260405162000f6238038062000f628339810160408190526200002691620004f2565b82828282816200005860017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd62000621565b60008051602062000f1b833981519152146200008457634e487b7160e01b600052600160045260246000fd5b620000928282600062000105565b50620000c2905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610462000621565b60008051602062000efb83398151915214620000ee57634e487b7160e01b600052600160045260246000fd5b620000f98262000142565b5050505050506200068a565b62000110836200019d565b6000825111806200011e5750805b156200013d576200013b8383620001df60201b620002601760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200016d6200020e565b604080516001600160a01b03928316815291841660208301520160405180910390a16200019a8162000247565b50565b620001a881620002fc565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606062000207838360405180606001604052806027815260200162000f3b602791396200039f565b9392505050565b60006200023860008051602062000efb83398151915260001b6200048560201b620002081760201c565b546001600160a01b0316919050565b6001600160a01b038116620002b25760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002db60008051602062000efb83398151915260001b6200048560201b620002081760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b62000312816200048860201b6200028c1760201c565b620003765760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401620002a9565b80620002db60008051602062000f1b83398151915260001b6200048560201b620002081760201c565b60606001600160a01b0384163b620004095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401620002a9565b600080856001600160a01b031685604051620004269190620005ce565b600060405180830381855af49150503d806000811462000463576040519150601f19603f3d011682016040523d82523d6000602084013e62000468565b606091505b5090925090506200047b82828662000497565b9695505050505050565b90565b6001600160a01b03163b151590565b60608315620004a857508162000207565b825115620004b95782518084602001fd5b8160405162461bcd60e51b8152600401620002a99190620005ec565b80516001600160a01b0381168114620004ed57600080fd5b919050565b60008060006060848603121562000507578283fd5b6200051284620004d5565b92506200052260208501620004d5565b60408501519092506001600160401b03808211156200053f578283fd5b818601915086601f83011262000553578283fd5b81518181111562000568576200056862000674565b604051601f8201601f19908116603f0116810190838211818310171562000593576200059362000674565b81604052828152896020848701011115620005ac578586fd5b620005bf83602083016020880162000645565b80955050505050509250925092565b60008251620005e281846020870162000645565b9190910192915050565b60208152600082518060208401526200060d81604085016020870162000645565b601f01601f19169190910160400192915050565b6000828210156200064057634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156200066257818101518382015260200162000648565b838111156200013b5750506000910152565b634e487b7160e01b600052604160045260246000fd5b610861806200069a6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b6100803660046106f1565b610118565b61005b61009336600461070b565b61015f565b3480156100a457600080fd5b506100ad6101d0565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e43660046106f1565b61020b565b3480156100f557600080fd5b506100ad610235565b61010661029b565b61011661011161033a565b610344565b565b610120610368565b6001600160a01b0316336001600160a01b03161415610157576101548160405180602001604052806000815250600061039b565b50565b6101546100fe565b610167610368565b6001600160a01b0316336001600160a01b031614156101c8576101c38383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506001925061039b915050565b505050565b6101c36100fe565b60006101da610368565b6001600160a01b0316336001600160a01b03161415610200576101fb61033a565b905090565b6102086100fe565b90565b610213610368565b6001600160a01b0316336001600160a01b0316141561015757610154816103c6565b600061023f610368565b6001600160a01b0316336001600160a01b03161415610200576101fb610368565b606061028583836040518060600160405280602781526020016108056027913961041a565b9392505050565b6001600160a01b03163b151590565b6102a3610368565b6001600160a01b0316336001600160a01b031614156101165760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101fb6104f7565b3660008037600080366000845af43d6000803e808015610363573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b6103a48361051f565b6000825111806103b15750805b156101c3576103c08383610260565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103ef610368565b604080516001600160a01b03928316815291841660208301520160405180910390a16101548161055f565b60606001600160a01b0384163b6104825760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610331565b600080856001600160a01b03168560405161049d9190610789565b600060405180830381855af49150503d80600081146104d8576040519150601f19603f3d011682016040523d82523d6000602084013e6104dd565b606091505b50915091506104ed828286610608565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61038c565b61052881610641565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105c45760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610331565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b60608315610617575081610285565b8251156106275782518084602001fd5b8160405162461bcd60e51b815260040161033191906107a5565b6001600160a01b0381163b6106ae5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610331565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6105e7565b80356001600160a01b03811681146106ec57600080fd5b919050565b600060208284031215610702578081fd5b610285826106d5565b60008060006040848603121561071f578182fd5b610728846106d5565b9250602084013567ffffffffffffffff80821115610744578384fd5b818601915086601f830112610757578384fd5b813581811115610765578485fd5b876020828501011115610776578485fd5b6020830194508093505050509250925092565b6000825161079b8184602087016107d8565b9190910192915050565b60208152600082518060208401526107c48160408501602087016107d8565b601f01601f19169190910160400192915050565b60005b838110156107f35781810151838201526020016107db565b838111156103c0575050600091015256fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202bf2e5ffee2745882a454fd32805936a4f5f22add5cfc0d297fa73f7f93f8c6564736f6c63430008040033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201714328227dfdb01dab547031fd76bdbf792f23190d8ac1e2aa4ccd2a2364eba64736f6c63430008040033

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.