ETH Price: $3,271.93 (-4.21%)
Gas: 12 Gwei

Contract

0xEB667659b19dfc8B6b3b6FaAFaE3b5D7661dcB68
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Initialize147748762022-05-14 17:21:57781 days ago1652548917IN
0xEB667659...7661dcB68
0 ETH0.0025298831.79725941
0x60a06040147742602022-05-14 15:02:42781 days ago1652540562IN
 Create: ParcelNFT
0 ETH0.2008702544.10954822

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ParcelNFT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 42 : ParcelNFT.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.9;

import '@gnus.ai/contracts-upgradeable-diamond/access/AccessControlUpgradeable.sol';
import '@gnus.ai/contracts-upgradeable-diamond/proxy/utils/UUPSUpgradeable.sol';
import '@gnus.ai/contracts-upgradeable-diamond/security/PausableUpgradeable.sol';
import '@gnus.ai/contracts-upgradeable-diamond/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol';
import '@gnus.ai/contracts-upgradeable-diamond/token/ERC721/extensions/ERC721RoyaltyUpgradeable.sol';
import '@gnus.ai/contracts-upgradeable-diamond/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol';
import './common/AllowListClaim.sol';
import './common/RoyaltyEventSupport.sol';
import './common/TokenUriStorage.sol';
import './Roles.sol';
import './common/ERC721BatchTransfer.sol';

/*
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@&BG5YJ??7777777?JY5PB#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@&BPJ7!!!7?JY55PPPP55YJ?7!!!7J5B&@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@&GJ7!!?YPB&&@@@@@@@@@@@@@@@&BGY?!!!JP#@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@BY!!7YG#@@@@@@@@@@@@@@@@@@@@@@@@@@&GY7!!JG@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@P?!!JG&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BY!!?P&@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@B?!!Y#@@@@@@@@@@@@@@@@&GYJ@@@@@@@@@@@@@@@@@@#57!7G@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@&Y!!J#@@@@@@@@@@@@@@&B5??YG#@@@@@@@@@@@@@@@@@@@@&Y!!J#@@@@@@@@@@@@@
 * @@@@@@@@@@@@#?!!P@@@@@@@@@@@@@#PJ?JPB&#PY@@@@@@@@@@@@@@@@@@@@@@G7!7B@@@@@@@@@@@@
 * @@@@@@@@@@@B7!7B@@@@@@@@@@@GY??5B##GY??5B@@@@@@@@@@@@@@@@##@@@@@#?!!G@@@@@@@@@@@
 * @@@@@@@@@@#7!7#@@@@@@@@@@@@5P#&B5??YG#&G5@@@@@@@@@@@@&GY?!7?5B&@@&?!!B@@@@@@@@@@
 * @@@@@@@@@@?!!B@@@@@@@@@@@@@#PJ?JP#&BPJ?JG@@@@@@@@&B5J7!!!!J#PJ?JP##7!7&@@@@@@@@@
 * @@@@@@@@@P!!Y@@@@@@@@@@@@@@Y5B&#GY?J5B&#G@@@@@#PY7!!!!!!!!J@@@&B5JJ7!!Y@@@@@@@@@
 * @@@@@@@@@?!!#@@@@@@@@@@@@@@&B5??YG&#GY??P@@@@J!!!!!!!!!!!!J@@@@@@@&BPJ?&@@@@@@@@
 * @@@@@@@@#!!?@@@@@@@@@@@@@@@YJP#&B5J?YG#&B@@@&7!!!!!!!!!!!!J@@@@@@@@@@@&@@@@@@@@@
 * @@@@@@@@B!!Y@@@@@@@@@@@@@@@&#PJ?JP#&#PJ?Y@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@B!!Y@@@@@@@@@@@@@@@Y?5B&#GY??5B&#@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@#!!?@@@@@@@@@@@@@@@&&B5??YG#&BY?J@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@?!!#@@@@@@#GYJ5B&@5?JP#&BPJ?YG#&@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@G!!Y@@&B5?!!!!YJ?JYB#GY?JPB&#PJJ@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@J!!YJ7!!!!!!7&@#GY?!!JB#GY??5B&@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@&7!!!!!!!!!!7&@@@@@#PJ??YG#&B5Y@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@#7!!!!!!!!!7&@@@@@@@@&&#PJ?JP#@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@&?!!!!!!!!7&@@@@@@@@@Y?5B&#PY@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@5!!!!!!!7&@@@@@@@@@&&GY??5B@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@#J!!!!!7&@@@@@@@@@Y?YG#&BP@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@BJ!!!7&@@@@@@@@@#&#PJ?JG@@@&7!!!!!!!!!!!!J@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@#57!&@@@@@@@@@5?J5B&#B@@@&7!!!!!!!!!!!!Y@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@&B&@@@@@@@@@G#&B5?!7@@@@7!!!!!!!!!?YG&@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@J?7!!!!7YYYJ!!!!!7?YP#@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PYJJJ??????JY5PB#&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 * |--------------------------------------------------------------------------------|
 * Hello fellow CityDAO Citizen,
 * In this smart contract you find the Parcel-0 Drop from CityDAO!
 * We are using an merkle proof whitelisting drop to reduce gas cost.
 *
 * ~ Let's Build this City!
 *
 * Developed By: @slyRacoon23 & @mdnatx
 */
contract ParcelNFT is
  UUPSUpgradeable,
  AllowListClaim,
  ERC721URIStorageUpgradeable,
  RoyaltyEventSupport,
  ERC721RoyaltyUpgradeable,
  ERC721BatchTransfer,
  AccessControlUpgradeable,
  PausableUpgradeable
{
  struct InitParams {
    string name;
    string symbol;
    address superAdmin;
  }

  function initialize(InitParams memory initParams) public initializer {
    __ERC721_init(initParams.name, initParams.symbol);
    __ERC721Enumerable_init_unchained();
    __ERC721URIStorage_init_unchained();
    __ERC2981_init_unchained();
    __ERC721Royalty_init_unchained();
    __AccessControl_init_unchained();
    __Pausable_init_unchained();

    if (initParams.superAdmin == address(0)) {
      initParams.superAdmin = _msgSender();
    }
    _setupRole(Roles.SUPER_ADMIN, initParams.superAdmin);
  }

  /**
   * @notice Attempts to mint the given amount of tokens to the given account.
   */
  function allowListMint(
    uint256 amount,
    uint256 allowance,
    bytes32[] calldata proof
  ) public payable {
    _allowListMint(_msgSender(), amount, allowance, proof);
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(
      AccessControlUpgradeable,
      AllowListClaim,
      ERC721RoyaltyUpgradeable,
      ERC721Upgradeable,
      ERC721BatchTransfer,
      ERC2981Upgradeable
    )
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  /**
   * @notice Gets base URI for all tokens, if set.
   */
  function baseURI() public view returns (string memory) {
    return _baseURI();
  }

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

  /**
   * @notice Sets `baseURI` as the base URI for all tokens. Used when explicit tokenURI not set.
   */
  function setBaseURI(string calldata __baseURI) external onlyRole(Roles.PARCEL_MANAGER) {
    TokenUriStorage.setBaseURI(__baseURI);
  }

  /**
   * @dev See {IERC721Metadata-tokenURI}.
   */
  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override(ERC721URIStorageUpgradeable, ERC721Upgradeable)
    returns (string memory)
  {
    return super.tokenURI(tokenId);
  }

  /**
   * @notice Sets `_tokenURI` as the tokenURI of `tokenId`.
   *
   * Requirements:
   *
   * - `tokenId` must exist.
   */
  function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyRole(Roles.PARCEL_MANAGER) {
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
   * @notice sets the claim period start and end with block timestamps
   */
  function setClaimPeriod(uint256 start, uint256 end) public onlyRole(Roles.PARCEL_MANAGER) {
    _setClaimPeriod(start, end);
  }

  /**
   * @notice Sets the merkle root for the allow list claim
   */
  function setMerkleRoot(bytes32 _merkleRoot) public onlyRole(Roles.PARCEL_MANAGER) {
    _setMerkleRoot(_merkleRoot);
  }

  /**
   * @notice Sets the royalty information that all ids in this contract will default to.
   *
   * Requirements:
   *
   * - `receiver` cannot be the zero address.
   * - `feeNumerator` cannot be greater than the fee denominator.
   */
  function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyRole(Roles.PARCEL_MANAGER) {
    _setDefaultRoyalty(receiver, feeNumerator);
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _setDefaultRoyalty(address receiver, uint96 feeNumerator)
    internal
    virtual
    override(RoyaltyEventSupport, ERC2981Upgradeable)
  {
    super._setDefaultRoyalty(receiver, feeNumerator);
  }

  /**
   * @notice Removes default royalty information.
   */
  function deleteDefaultRoyalty() external onlyRole(Roles.PARCEL_MANAGER) {
    _deleteDefaultRoyalty();
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _deleteDefaultRoyalty() internal virtual override(RoyaltyEventSupport, ERC2981Upgradeable) {
    super._deleteDefaultRoyalty();
  }

  /**
   * @notice Sets the royalty information for a specific token id, overriding the global default.
   *
   * Requirements:
   *
   * - `tokenId` must be already minted.
   * - `receiver` cannot be the zero address.
   * - `feeNumerator` cannot be greater than the fee denominator.
   */
  function setTokenRoyalty(
    uint256 tokenId,
    address receiver,
    uint96 feeNumerator
  ) external onlyRole(Roles.PARCEL_MANAGER) {
    _setTokenRoyalty(tokenId, receiver, feeNumerator);
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _setTokenRoyalty(
    uint256 tokenId,
    address receiver,
    uint96 feeNumerator
  ) internal virtual override(RoyaltyEventSupport, ERC2981Upgradeable) {
    super._setTokenRoyalty(tokenId, receiver, feeNumerator);
  }

  /**
   * @notice Resets royalty information for the token id back to the global default.
   */
  function resetTokenRoyalty(uint256 tokenId) external onlyRole(Roles.PARCEL_MANAGER) {
    _resetTokenRoyalty(tokenId);
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _resetTokenRoyalty(uint256 tokenId) internal virtual override(RoyaltyEventSupport, ERC2981Upgradeable) {
    super._resetTokenRoyalty(tokenId);
  }

  /**
   * @notice Triggers stopped state.
   *
   * Requirements:
   *
   * - The contract must not be paused.
   */
  function pause() external onlyRole(Roles.PAUSER) {
    _pause();
  }

  /**
   * @notice Returns to normal state.
   *
   * Requirements:
   *
   * - The contract must be paused.
   */
  function unpause() external onlyRole(Roles.PAUSER) {
    _unpause();
  }

  function _burn(uint256 tokenId)
    internal
    virtual
    override(ERC721URIStorageUpgradeable, ERC721RoyaltyUpgradeable, ERC721Upgradeable)
  {
    super._burn(tokenId);
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal virtual override(ERC721EnumerableUpgradeable, ERC721Upgradeable) whenNotPaused {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  // solhint-disable-next-line no-empty-blocks
  function _authorizeUpgrade(address newImplementation) internal virtual override onlyRole(Roles.UPGRADER) {}
}

File 2 of 42 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import { AccessControlStorage } from "./AccessControlStorage.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    using AccessControlStorage for AccessControlStorage.Layout;
    function __AccessControl_init() internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __AccessControl_init_unchained();
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return AccessControlStorage.layout()._roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return AccessControlStorage.layout()._roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        AccessControlStorage.layout()._roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            AccessControlStorage.layout()._roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            AccessControlStorage.layout()._roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 42 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

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

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

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

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate that the this implementation remains valid after an upgrade.
     *
     * 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. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

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

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

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

File 4 of 42 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import { PausableStorage } from "./PausableStorage.sol";
import "../proxy/utils/Initializable.sol";

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

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

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        PausableStorage.layout()._paused = false;
    }

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

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

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

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

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

File 5 of 42 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import { ERC721EnumerableStorage } from "./ERC721EnumerableStorage.sol";
import "../../../proxy/utils/Initializable.sol";

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

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        uint256 lastTokenIndex = ERC721EnumerableStorage.layout()._allTokens.length - 1;
        uint256 tokenIndex = ERC721EnumerableStorage.layout()._allTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        delete ERC721EnumerableStorage.layout()._allTokensIndex[tokenId];
        ERC721EnumerableStorage.layout()._allTokens.pop();
    }
}

File 6 of 42 : ERC721RoyaltyUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "../../common/ERC2981Upgradeable.sol";
import "../../../utils/introspection/ERC165Upgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721RoyaltyUpgradeable is Initializable, ERC2981Upgradeable, ERC721Upgradeable {
    function __ERC721Royalty_init() internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC2981_init_unchained();
        __ERC721Royalty_init_unchained();
    }

    function __ERC721Royalty_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable, ERC2981Upgradeable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 7 of 42 : ERC721URIStorageUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import { ERC721URIStorageStorage } from "./ERC721URIStorageStorage.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorageUpgradeable is Initializable, ERC721Upgradeable {
    using ERC721URIStorageStorage for ERC721URIStorageStorage.Layout;
    function __ERC721URIStorage_init() internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721URIStorage_init_unchained();
    }

    function __ERC721URIStorage_init_unchained() internal onlyInitializing {
    }
    using StringsUpgradeable for uint256;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = ERC721URIStorageStorage.layout()._tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        ERC721URIStorageStorage.layout()._tokenURIs[tokenId] = _tokenURI;
    }

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

        if (bytes(ERC721URIStorageStorage.layout()._tokenURIs[tokenId]).length != 0) {
            delete ERC721URIStorageStorage.layout()._tokenURIs[tokenId];
        }
    }
}

File 8 of 42 : AllowListClaim.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.9;

import '@gnus.ai/contracts-upgradeable-diamond/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol';
import '@gnus.ai/contracts-upgradeable-diamond/utils/cryptography/MerkleProofUpgradeable.sol';
import './IAllowListClaim.sol';
import './AllowListClaimStorage.sol';

/*
 * Based on Nuclear Nerds
 */

/**
 * @dev Allows a list of addresses to claim a specific number of tokens. Uses Merkle Tree to verify the list.
 */
abstract contract AllowListClaim is IAllowListClaim, ERC721EnumerableUpgradeable {
  /**
   * @dev See {IERC165-supportsInterface}.
   */
  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721EnumerableUpgradeable)
    returns (bool)
  {
    return interfaceId == type(IAllowListClaim).interfaceId || super.supportsInterface(interfaceId);
  }

  /**
   * @inheritdoc IAllowListClaim
   */
  function claimPeriod() public view virtual override returns (uint256, uint256) {
    return AllowListClaimStorage.claimPeriod();
  }

  /**
   * @dev sets the claim period start and end with block timestamps
   */
  function _setClaimPeriod(uint256 start, uint256 end) internal virtual {
    require(start < end, 'AllowListClaim: start must be before end');
    AllowListClaimStorage.setClaimPeriod(start, end);
    emit ClaimPeriodChanged(start, end);
  }

  /**
   * @inheritdoc IAllowListClaim
   */
  function merkleRoot() public view virtual override returns (bytes32) {
    return AllowListClaimStorage.merkleRoot();
  }

  /**
   * @dev Sets the merkle root for the allow list claim
   */
  function _setMerkleRoot(bytes32 _merkleRoot) internal virtual {
    AllowListClaimStorage.setMerkleRoot(_merkleRoot);
    emit MerkleRootChanged(_merkleRoot);
  }

  /**
   * @inheritdoc IAllowListClaim
   */
  function alreadyClaimed(address account) public view virtual override returns (uint256) {
    return AllowListClaimStorage.alreadyClaimed(account);
  }

  /**
   * @dev Attempts to mint the given amount of tokens to the given account.
   */
  function _allowListMint(
    address account,
    uint256 amount,
    uint256 allowance,
    bytes32[] calldata proof
  ) internal virtual {
    _verifyClaimPeriod();
    _verifyMerkleProof(account, allowance, proof);

    uint256 _alreadyClaimed = AllowListClaimStorage.alreadyClaimed(account);
    require(_alreadyClaimed + amount <= allowance, 'AllowListClaim: exceeds claim allowance');

    AllowListClaimStorage.setAlreadyClaimed(account, _alreadyClaimed + amount);
    uint256 nextToken = totalSupply() + 1;
    for (uint256 i; i < amount; i++) {
      _safeMint(account, nextToken + i);
    }
  }

  /**
   * @dev Verifies that we are in the claim period
   */
  function _verifyClaimPeriod() internal view virtual {
    require(
      // solhint-disable-next-line not-rely-on-time
      block.timestamp >= AllowListClaimStorage.claimPeriodStart(),
      'AllowListClaim: mint claim period has not yet started'
    );
    require(
      // solhint-disable-next-line not-rely-on-time
      block.timestamp <= AllowListClaimStorage.claimPeriodEnd(),
      'AllowListClaim: mint claim period has already ended'
    );
  }

  /**
   * @dev Verifies that the given account and allowance are in the Merkle Proof
   */
  function _verifyMerkleProof(
    address account,
    uint256 allowance,
    bytes32[] memory proof
  ) internal view virtual {
    require(
      MerkleProofUpgradeable.verify(proof, AllowListClaimStorage.merkleRoot(), _buildMerkleLeaf(account, allowance)),
      'AllowListClaim: invalid Merkle Tree proof supplied.'
    );
  }

  function _buildMerkleLeaf(address account, uint256 allowance) internal pure virtual returns (bytes32) {
    return keccak256(abi.encodePacked(account, allowance));
  }
}

File 9 of 42 : RoyaltyEventSupport.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.9;

import '@gnus.ai/contracts-upgradeable-diamond/token/common/ERC2981Upgradeable.sol';

abstract contract RoyaltyEventSupport is ERC2981Upgradeable {
  /**
   * @dev Emitted when the default royalty is updated.
   */
  event DefaultRoyaltyChanged(address indexed receiver, uint96 indexed feeNumerator);

  /**
   * @dev Emitted when a token royalty is updated.
   */
  event TokenRoyaltyChanged(uint256 indexed tokenId, address indexed receiver, uint96 indexed feeNumerator);

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual override {
    super._setDefaultRoyalty(receiver, feeNumerator);
    emit DefaultRoyaltyChanged(receiver, feeNumerator);
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _deleteDefaultRoyalty() internal virtual override {
    super._deleteDefaultRoyalty();
    emit DefaultRoyaltyChanged(address(0), 0);
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _setTokenRoyalty(
    uint256 tokenId,
    address receiver,
    uint96 feeNumerator
  ) internal virtual override {
    super._setTokenRoyalty(tokenId, receiver, feeNumerator);
    emit TokenRoyaltyChanged(tokenId, receiver, feeNumerator);
  }

  /**
   * @inheritdoc ERC2981Upgradeable
   */
  function _resetTokenRoyalty(uint256 tokenId) internal virtual override {
    super._resetTokenRoyalty(tokenId);
    emit TokenRoyaltyChanged(tokenId, address(0), 0);
  }
}

File 10 of 42 : TokenUriStorage.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.9;

library TokenUriStorage {
  struct Layout {
    // storage for base URI
    string baseURI;
  }

  bytes32 internal constant STORAGE_SLOT = keccak256('citydao.contracts.storage.TokenUri');

  //noinspection NoReturn
  function layout() internal pure returns (Layout storage _layout) {
    bytes32 slot = STORAGE_SLOT;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      _layout.slot := slot
    }
  }

  function baseURI() internal view returns (string memory) {
    return layout().baseURI;
  }

  function setBaseURI(string memory _baseURI) internal {
    layout().baseURI = _baseURI;
  }
}

File 11 of 42 : Roles.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.9;

library Roles {
  bytes32 public constant SUPER_ADMIN = 0x00;
  bytes32 public constant PARCEL_MANAGER = keccak256('citydao.ParcelManager');
  bytes32 public constant PAUSER = keccak256('citydao.Pauser');
  bytes32 public constant UPGRADER = keccak256('citydao.Upgrader');
}

File 12 of 42 : ERC721BatchTransfer.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.9;

import '@gnus.ai/contracts-upgradeable-diamond/token/ERC721/ERC721Upgradeable.sol';
import './IERC721BatchTransfer.sol';

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

  /**
   * @inheritdoc IERC721BatchTransfer
   */
  function batchTransferFrom(
    address _from,
    address _to,
    uint256[] memory _tokenIds
  ) public virtual override {
    for (uint256 i = 0; i < _tokenIds.length; i++) {
      transferFrom(_from, _to, _tokenIds[i]);
    }
  }

  /**
   * @inheritdoc IERC721BatchTransfer
   */
  function batchSafeTransferFrom(
    address _from,
    address _to,
    uint256[] memory _tokenIds,
    bytes memory data_
  ) public virtual override {
    for (uint256 i = 0; i < _tokenIds.length; i++) {
      safeTransferFrom(_from, _to, _tokenIds[i], data_);
    }
  }
}

File 13 of 42 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 14 of 42 : 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 {
        __Context_init_unchained();
    }

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

File 15 of 42 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
}

File 17 of 42 : AccessControlStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { AccessControlUpgradeable } from "./AccessControlUpgradeable.sol";

library AccessControlStorage {

  struct Layout {

    mapping(bytes32 => AccessControlUpgradeable.RoleData) _roles;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.AccessControl');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 18 of 42 : 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";
import { InitializableStorage } from "./InitializableStorage.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 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(InitializableStorage.layout()._initializing ? _isConstructor() : !InitializableStorage.layout()._initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            InitializableStorage.layout()._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(InitializableStorage.layout()._initializing, "Initializable: contract is not initializing");
        _;
    }

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

File 19 of 42 : 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 20 of 42 : InitializableStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { Initializable } from "./Initializable.sol";

library InitializableStorage {

  struct Layout {
    /*
     * @dev Indicates that the contract has been initialized.
     */
    bool _initialized;

    /*
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool _initializing;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.Initializable');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 21 of 42 : 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);
}

File 22 of 42 : draft-IERC1822Upgradeable.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 IERC1822ProxiableUpgradeable {
    /**
     * @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 23 of 42 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

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

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

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

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

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

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

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

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

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _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 (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(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 StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

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

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

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

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

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

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

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

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

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

File 24 of 42 : IBeaconUpgradeable.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 IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 25 of 42 : StorageSlotUpgradeable.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 StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

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

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

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

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

File 26 of 42 : PausableStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { PausableUpgradeable } from "./PausableUpgradeable.sol";

library PausableStorage {

  struct Layout {

    bool _paused;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.Pausable');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 27 of 42 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import { ERC721Storage } from "./ERC721Storage.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using ERC721Storage for ERC721Storage.Layout;
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        ERC721Storage.layout()._name = name_;
        ERC721Storage.layout()._symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = ERC721Storage.layout()._owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        return ERC721Storage.layout()._tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return ERC721Storage.layout()._owners[tokenId] != address(0);
    }

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

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

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

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

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

        ERC721Storage.layout()._balances[to] += 1;
        ERC721Storage.layout()._owners[tokenId] = to;

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

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

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

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

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

        ERC721Storage.layout()._balances[owner] -= 1;
        delete ERC721Storage.layout()._owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        ERC721Storage.layout()._balances[from] -= 1;
        ERC721Storage.layout()._balances[to] += 1;
        ERC721Storage.layout()._owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 28 of 42 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

File 29 of 42 : ERC721EnumerableStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { ERC721EnumerableUpgradeable } from "./ERC721EnumerableUpgradeable.sol";

library ERC721EnumerableStorage {

  struct Layout {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) _ownedTokens;

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

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

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) _allTokensIndex;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.ERC721Enumerable');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 30 of 42 : 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 31 of 42 : IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 32 of 42 : 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 33 of 42 : ERC721Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { ERC721Upgradeable } from "./ERC721Upgradeable.sol";

library ERC721Storage {

  struct Layout {

    // Token name
    string _name;

    // Token symbol
    string _symbol;

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

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

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

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) _operatorApprovals;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.ERC721');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 34 of 42 : ERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981Upgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import { ERC2981Storage } from "./ERC2981Storage.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable {
    using ERC2981Storage for ERC2981Storage.Layout;
    function __ERC2981_init() internal onlyInitializing {
        __ERC165_init_unchained();
        __ERC2981_init_unchained();
    }

    function __ERC2981_init_unchained() internal onlyInitializing {
    }
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

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

    /**
     * @inheritdoc IERC2981Upgradeable
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = ERC2981Storage.layout()._tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = ERC2981Storage.layout()._defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        ERC2981Storage.layout()._defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete ERC2981Storage.layout()._defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        ERC2981Storage.layout()._tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete ERC2981Storage.layout()._tokenRoyaltyInfo[tokenId];
    }
}

File 35 of 42 : IERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981Upgradeable is IERC165Upgradeable {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 36 of 42 : ERC2981Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { ERC2981Upgradeable } from "./ERC2981Upgradeable.sol";

library ERC2981Storage {

  struct Layout {

    ERC2981Upgradeable.RoyaltyInfo _defaultRoyaltyInfo;
    mapping(uint256 => ERC2981Upgradeable.RoyaltyInfo) _tokenRoyaltyInfo;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.ERC2981');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 37 of 42 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 38 of 42 : ERC721URIStorageStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


import { ERC721URIStorageUpgradeable } from "./ERC721URIStorageUpgradeable.sol";

library ERC721URIStorageStorage {

  struct Layout {

    // Optional mapping for token URIs
    mapping(uint256 => string) _tokenURIs;
  
  }
  
  bytes32 internal constant STORAGE_SLOT = keccak256('openzepplin.contracts.storage.ERC721URIStorage');

  function layout() internal pure returns (Layout storage l) {
    bytes32 slot = STORAGE_SLOT;
    assembly {
      l.slot := slot
    }
  }
}

File 39 of 42 : MerkleProofUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProofUpgradeable {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 40 of 42 : IAllowListClaim.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.9;

interface IAllowListClaim {
  /**
   * @notice Sent when the merkle root has been updated
   */
  event MerkleRootChanged(bytes32 indexed merkleRoot);

  /**
   * @notice Sent when the claim period has been updated
   */
  event ClaimPeriodChanged(uint256 indexed claimPeriodStart, uint256 indexed claimPeriodEnd);

  /**
   * @notice Returns the claim period start and end dates as block timestamps.
   */
  function claimPeriod() external view returns (uint256, uint256);

  /**
   * @notice Returns the merkle root for the allow list claim
   */
  function merkleRoot() external view returns (bytes32);

  /**
   * @notice Returns the number of tokens already claimed by the given address
   */
  function alreadyClaimed(address account) external view returns (uint256);
}

File 41 of 42 : AllowListClaimStorage.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.9;

library AllowListClaimStorage {
  struct Layout {
    // storage for the merkle tree root
    bytes32 merkleRoot;
    // how many tokens are already claimed by a given account
    mapping(address => uint256) alreadyClaimed;
    // start of the claiming period
    uint256 claimPeriodStart;
    // end of the claiming period
    uint256 claimPeriodEnd;
  }

  bytes32 internal constant STORAGE_SLOT = keccak256('citydao.contracts.storage.AllowList');

  //noinspection NoReturn
  function layout() internal pure returns (Layout storage _layout) {
    bytes32 slot = STORAGE_SLOT;
    // solhint-disable-next-line no-inline-assembly
    assembly {
      _layout.slot := slot
    }
  }

  function merkleRoot() internal view returns (bytes32) {
    return layout().merkleRoot;
  }

  function setMerkleRoot(bytes32 _merkleRoot) internal {
    layout().merkleRoot = _merkleRoot;
  }

  function alreadyClaimed(address account) internal view returns (uint256) {
    return layout().alreadyClaimed[account];
  }

  function setAlreadyClaimed(address account, uint256 amount) internal {
    layout().alreadyClaimed[account] = amount;
  }

  function claimPeriod() internal view returns (uint256, uint256) {
    Layout storage data = layout();
    return (data.claimPeriodStart, data.claimPeriodEnd);
  }

  function claimPeriodStart() internal view returns (uint256) {
    return layout().claimPeriodStart;
  }

  function claimPeriodEnd() internal view returns (uint256) {
    return layout().claimPeriodEnd;
  }

  function setClaimPeriod(uint256 _start, uint256 _end) internal {
    Layout storage data = layout();
    data.claimPeriodStart = _start;
    data.claimPeriodEnd = _end;
  }
}

File 42 of 42 : IERC721BatchTransfer.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.9;

import '@gnus.ai/contracts-upgradeable-diamond/token/ERC721/IERC721Upgradeable.sol';

interface IERC721BatchTransfer is IERC721Upgradeable {
  /**
   * @notice Batch transfer of tokens from one address to another
   */
  function batchTransferFrom(
    address _from,
    address _to,
    uint256[] memory _tokenIds
  ) external;

  /**
   * @notice Safe batch transfer of tokens from one address to another
   */
  function batchSafeTransferFrom(
    address _from,
    address _to,
    uint256[] memory _tokenIds,
    bytes memory data_
  ) external;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"claimPeriodStart","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"claimPeriodEnd","type":"uint256"}],"name":"ClaimPeriodChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"DefaultRoyaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"TokenRoyaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"alreadyClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"superAdmin","type":"address"}],"internalType":"struct ParcelNFT.InitParams","name":"initParams","type":"tuple"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"setClaimPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040523060805234801561001457600080fd5b5060805161519361004c600039600081816111ff01528181611284015281816113db01528181611460015261162901526151936000f3fe6080604052600436106102f25760003560e01c806355f804b31161018f57806391d14854116100e1578063c87b56dd1161008a578063e985e9c511610064578063e985e9c5146108c8578063f3993d1114610930578063f54b893b1461095057600080fd5b8063c87b56dd14610868578063d547741f14610888578063df6ec1bd146108a857600080fd5b8063a22cb465116100bb578063a22cb46514610813578063aa1b103f14610833578063b88d4fde1461084857600080fd5b806391d148541461078457806395d89b41146107e9578063a217fddf146107fe57600080fd5b80636c0360eb116101435780637dc2cd981161011d5780637dc2cd98146107255780638456cb591461074f5780638a616bc01461076457600080fd5b80636c0360eb146106d057806370a08231146106e55780637cb647591461070557600080fd5b80635a4fee30116101745780635a4fee30146106595780635c975abb146106795780636352211e146106b057600080fd5b806355f804b3146106195780635944c7531461063957600080fd5b80632eb4a7ab116102485780633da1fe29116101fc5780634f1ef286116101d65780634f1ef286146105d15780634f6ccce7146105e457806352d1902d1461060457600080fd5b80633da1fe29146105895780633f4ba83a1461059c57806342842e0e146105b157600080fd5b80632f745c591161022d5780632f745c591461052957806336568abe146105495780633659cfe61461056957600080fd5b80632eb4a7ab146104f45780632f2ff15d1461050957600080fd5b8063095ea7b3116102aa57806323b872dd1161028457806323b872dd14610446578063248a9ca3146104665780632a55205a146104b557600080fd5b8063095ea7b3146103c8578063162094c4146103e857806318160ddd1461040857600080fd5b806306fdde03116102db57806306fdde031461034e57806307db3d3d14610370578063081812fc1461039057600080fd5b806301ffc9a7146102f757806304634d8d1461032c575b600080fd5b34801561030357600080fd5b506103176103123660046147a7565b610970565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034c6103473660046147fc565b610981565b005b34801561035a57600080fd5b506103636109ba565b6040516103239190614887565b34801561037c57600080fd5b5061034c61038b366004614951565b610a6c565b34801561039c57600080fd5b506103b06103ab366004614a09565b610c41565b6040516001600160a01b039091168152602001610323565b3480156103d457600080fd5b5061034c6103e3366004614a22565b610d14565b3480156103f457600080fd5b5061034c610403366004614a4c565b610e7e565b34801561041457600080fd5b507f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861545b604051908152602001610323565b34801561045257600080fd5b5061034c610461366004614a93565b610eb2565b34801561047257600080fd5b50610438610481366004614a09565b60009081527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602052604090206001015490565b3480156104c157600080fd5b506104d56104d0366004614acf565b610f39565b604080516001600160a01b039093168352602083019190915201610323565b34801561050057600080fd5b50610438611032565b34801561051557600080fd5b5061034c610524366004614af1565b611061565b34801561053557600080fd5b50610438610544366004614a22565b6110a5565b34801561055557600080fd5b5061034c610564366004614af1565b61116c565b34801561057557600080fd5b5061034c610584366004614b14565b6111f4565b61034c610597366004614b2f565b611370565b3480156105a857600080fd5b5061034c611383565b3480156105bd57600080fd5b5061034c6105cc366004614a93565b6113b5565b61034c6105df366004614bb2565b6113d0565b3480156105f057600080fd5b506104386105ff366004614a09565b611539565b34801561061057600080fd5b5061043861161c565b34801561062557600080fd5b5061034c610634366004614bea565b6116e1565b34801561064557600080fd5b5061034c610654366004614c5c565b61174a565b34801561066557600080fd5b5061034c610674366004614d18565b61177f565b34801561068557600080fd5b507fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff16610317565b3480156106bc57600080fd5b506103b06106cb366004614a09565b6117c9565b3480156106dc57600080fd5b50610363611873565b3480156106f157600080fd5b50610438610700366004614b14565b61187d565b34801561071157600080fd5b5061034c610720366004614a09565b611936565b34801561073157600080fd5b5061073a611969565b60408051928352602083019190915201610323565b34801561075b57600080fd5b5061034c6119bf565b34801561077057600080fd5b5061034c61077f366004614a09565b6119f1565b34801561079057600080fd5b5061031761079f366004614af1565b60009182527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107f557600080fd5b50610363611a24565b34801561080a57600080fd5b50610438600081565b34801561081f57600080fd5b5061034c61082e366004614d9d565b611a55565b34801561083f57600080fd5b5061034c611a60565b34801561085457600080fd5b5061034c610863366004614dd9565b611a92565b34801561087457600080fd5b50610363610883366004614a09565b611b1a565b34801561089457600080fd5b5061034c6108a3366004614af1565b611b25565b3480156108b457600080fd5b5061034c6108c3366004614acf565b611b69565b3480156108d457600080fd5b506103176108e3366004614e35565b6001600160a01b0391821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb926020908152604080832093909416825291909152205460ff1690565b34801561093c57600080fd5b5061034c61094b366004614e5f565b611b9d565b34801561095c57600080fd5b5061043861096b366004614b14565b611bdf565b600061097b82611c1c565b92915050565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d6109ab81611c5a565b6109b58383611c64565b505050565b60607f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8d5b80546109e990614ebd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1590614ebd565b8015610a625780601f10610a3757610100808354040283529160200191610a62565b820191906000526020600020905b815481529060010190602001808311610a4557829003601f168201915b5050505050905090565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16610ac5577f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b5460ff1615610ac9565b303b155b610b405760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16158015610ba0577f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b805461ffff19166101011790555b610bb282600001518360200151611c6e565b610bba611d12565b610bc2611d12565b610bca611d12565b610bd2611d12565b610bda611d12565b610be2611d9e565b60408201516001600160a01b0316610bfb573360408301525b610c0c6000801b8360400151611e53565b8015610c3d577f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b805461ff00191690555b5050565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260408120546001600160a01b0316610cd95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b37565b5060009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb9160205260409020546001600160a01b031690565b6000610d1f826117c9565b9050806001600160a01b0316836001600160a01b03161415610da95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b37565b336001600160a01b0382161480610e0257506001600160a01b03811660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb926020908152604080832033845290915290205460ff165b610e745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b37565b6109b58383611e5d565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d610ea881611c5a565b6109b58383611ef7565b610ebc3382611fde565b610f2e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b37565b6109b5838383612113565b60008281527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c2602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610ff65750604080518082019091527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c1546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061101a906bffffffffffffffffffffffff1687614f0e565b6110249190614f43565b915196919550909350505050565b600061105c7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56b5490565b905090565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602052604090206001015461109b81611c5a565b6109b58383612355565b60006110b08361187d565b82106111245760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b37565b506001600160a01b039190911660009081527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f60209081526040808320938352929052205490565b6001600160a01b03811633146111ea5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b37565b610c3d8282612418565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156112825760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b37565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112dd7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146113485760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b37565b611351816124d9565b6040805160008082526020820190925261136d91839190612503565b50565b61137d33858585856126b2565b50505050565b7f982ab1c703a0281535eb9a1070cf70871d848dddf6b560f6fcc09197066207ea6113ad81611c5a565b61136d61286a565b6109b583838360405180602001604052806000815250611a92565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561145e5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b37565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166114b97f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146115245760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b37565b61152d826124d9565b610c3d82826001612503565b60006115637f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768615490565b82106115d75760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b37565b7f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686180548390811061160a5761160a614f57565b90600052602060002001549050919050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116bc5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610b37565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d61170b81611c5a565b6109b583838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061294492505050565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d61177481611c5a565b61137d848484612975565b60005b82518110156117c2576117b085858584815181106117a2576117a2614f57565b602002602001015185611a92565b806117ba81614f6d565b915050611782565b5050505050565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260408120546001600160a01b03168061097b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b37565b606061105c612980565b60006001600160a01b0382166118fb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b37565b506001600160a01b031660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb90602052604090205490565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d61196081611c5a565b610c3d8261298a565b6000806119b77f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56d547f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56e549091565b915091509091565b7f982ab1c703a0281535eb9a1070cf70871d848dddf6b560f6fcc09197066207ea6119e981611c5a565b61136d6129e0565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d611a1b81611c5a565b610c3d82612aa5565b60607f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8d60010180546109e990614ebd565b610c3d338383612aae565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d611a8a81611c5a565b61136d612b9d565b611a9c3383611fde565b611b0e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b37565b61137d84848484612ba5565b606061097b82612c23565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f6020526040902060010154611b5f81611c5a565b6109b58383612418565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d611b9381611c5a565b6109b58383612ddf565b60005b815181101561137d57611bcd8484848481518110611bc057611bc0614f57565b6020026020010151610eb2565b80611bd781614f6d565b915050611ba0565b6001600160a01b03811660009081527f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56c602052604081205461097b565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061097b575061097b82612ecd565b61136d8133612f0b565b610c3d8282612faa565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16611cf85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b611d00611d12565b611d08611d12565b610c3d8282612ffc565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16611d9c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16611e285760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a72772805460ff19169055565b610c3d8282612355565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb9160205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611ebe826117c9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008281527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546001600160a01b0316611fa05760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610b37565b60008281527f8f9aad6003f43bd6768b1c2a1469b16c291a0fb3db7d56f87c8a271fc6ad76806020908152604090912082516109b5928401906146f8565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260408120546001600160a01b03166120765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b37565b6000612081836117c9565b9050806001600160a01b0316846001600160a01b031614806120bc5750836001600160a01b03166120b184610c41565b6001600160a01b0316145b8061210b57506001600160a01b0380821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb92602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612126826117c9565b6001600160a01b0316146121a25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b37565b6001600160a01b03821661221d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b37565b6122288383836130ea565b612233600082611e5d565b6001600160a01b03831660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb906020526040812080546001929061227b908490614f88565b90915550506001600160a01b03821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb90602052604081208054600192906122c8908490614f9f565b909155505060008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f6020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b038516845290915290205460ff16610c3d5760008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b038516845290915290205460ff1615610c3d5760008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b7f51abc5761b13492162bf5abe058c5043f766ddccdb9196f2468a9c0449146d98610c3d81611c5a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615612536576109b583613167565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561256f57600080fd5b505afa92505050801561259f575060408051601f3d908101601f1916820190925261259c91810190614fb7565b60015b6126115760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610b37565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc81146126a65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610b37565b506109b5838383613232565b6126ba613257565b6126f8858484848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061338592505050565b6001600160a01b03851660009081527f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56c60205260409020548361273b8683614f9f565b11156127af5760405162461bcd60e51b815260206004820152602760248201527f416c6c6f774c697374436c61696d3a206578636565647320636c61696d20616c60448201527f6c6f77616e6365000000000000000000000000000000000000000000000000006064820152608401610b37565b6127f9866127bd8784614f9f565b6001600160a01b039190911660009081527f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56c6020526040902055565b60006128237f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768615490565b61282e906001614f9f565b905060005b868110156128605761284e886128498385614f9f565b613468565b8061285881614f6d565b915050612833565b5050505050505050565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff166128db5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b37565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a72772805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b807f2a33075f808aca455e667a0be0791db395a1574ea01c92d76cf0d58a35e7fcb98151610c3d92602001906146f8565b6109b5838383613482565b606061105c6134d8565b6129b2817f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56b55565b60405181907f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c90600090a250565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff1615612a525760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b37565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a72772805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833612927565b61136d81613500565b816001600160a01b0316836001600160a01b03161415612b105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b37565b6001600160a01b0383811660008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb926020908152604080832094871680845294825291829020805460ff1916861515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b611d9c613560565b612bb0848484612113565b612bbc848484846135b8565b61137d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b37565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546060906001600160a01b0316612ccf5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610b37565b60008281527f8f9aad6003f43bd6768b1c2a1469b16c291a0fb3db7d56f87c8a271fc6ad7680602052604081208054612d0790614ebd565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3390614ebd565b8015612d805780601f10612d5557610100808354040283529160200191612d80565b820191906000526020600020905b815481529060010190602001808311612d6357829003601f168201915b505050505090506000612d91612980565b9050805160001415612da4575092915050565b815115612dd6578082604051602001612dbe929190614fd0565b60405160208183030381529060405292505050919050565b61210b84613710565b808210612e545760405162461bcd60e51b815260206004820152602860248201527f416c6c6f774c697374436c61696d3a207374617274206d75737420626520626560448201527f666f726520656e640000000000000000000000000000000000000000000000006064820152608401610b37565b7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56d8290557f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56e819055604051819083907f1da05f5e7764e0fd6d12d9644a13dc70a36f2aeecae5bc06c737985c5ee0f6ec90600090a35050565b60006001600160e01b031982167fa9d6d32100000000000000000000000000000000000000000000000000000000148061097b575061097b82613818565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b038516845290915290205460ff16610c3d57612f68816001600160a01b03166014613823565b612f73836020613823565b604051602001612f84929190614fff565b60408051601f198184030181529082905262461bcd60e51b8252610b3791600401614887565b612fb482826139e8565b6040516bffffffffffffffffffffffff8216906001600160a01b038416907fe5ed39918c4170e24337471011e1ccdeb5e4a433f53fae4eb2ad73e03cd21bda90600090a35050565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff166130865760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b817f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8d81516130b792602001906146f8565b5080516109b5907f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8e9060208401906146f8565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff161561315c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b37565b6109b5838383613b10565b6001600160a01b0381163b6131e45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610b37565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61323b83613c06565b6000825111806132485750805b156109b55761137d8383613c46565b7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56d544210156132ee5760405162461bcd60e51b815260206004820152603560248201527f416c6c6f774c697374436c61696d3a206d696e7420636c61696d20706572696f60448201527f6420686173206e6f7420796574207374617274656400000000000000000000006064820152608401610b37565b7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56e54421115611d9c5760405162461bcd60e51b815260206004820152603360248201527f416c6c6f774c697374436c61696d3a206d696e7420636c61696d20706572696f60448201527f642068617320616c726561647920656e646564000000000000000000000000006064820152608401610b37565b6133f6816133b17f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56b5490565b60408051606088901b6bffffffffffffffffffffffff191660208083019190915260348083018990528351808403909101815260549092019092528051910120613d51565b6109b55760405162461bcd60e51b815260206004820152603360248201527f416c6c6f774c697374436c61696d3a20696e76616c6964204d65726b6c65205460448201527f7265652070726f6f6620737570706c6965642e000000000000000000000000006064820152608401610b37565b610c3d828260405180602001604052806000815250613d67565b61348d838383613de5565b806bffffffffffffffffffffffff16826001600160a01b0316847f25e2a3f12d544321cece1ec262049813ecc33ed43ed9c3e93a6b0a730a37e2ec60405160405180910390a4505050565b60607f2a33075f808aca455e667a0be0791db395a1574ea01c92d76cf0d58a35e7fcb96109de565b60008181527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c26020526040812055604051600090819083907f25e2a3f12d544321cece1ec262049813ecc33ed43ed9c3e93a6b0a730a37e2ec908390a450565b61358960007f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c155565b60405160009081907fe5ed39918c4170e24337471011e1ccdeb5e4a433f53fae4eb2ad73e03cd21bda908290a3565b60006001600160a01b0384163b1561370557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906135fc903390899088908890600401615080565b602060405180830381600087803b15801561361657600080fd5b505af1925050508015613646575060408051601f3d908101601f19168201909252613643918101906150bc565b60015b6136eb573d808015613674576040519150601f19603f3d011682016040523d82523d6000602084013e613679565b606091505b5080516136e35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b37565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061210b565b506001949350505050565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546060906001600160a01b03166137bc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b37565b60006137c6612980565b905060008151116137e65760405180602001604052806000815250613811565b806137f084613f1c565b604051602001613801929190614fd0565b6040516020818303038152906040525b9392505050565b600061097b8261401a565b60606000613832836002614f0e565b61383d906002614f9f565b67ffffffffffffffff8111156138555761385561489a565b6040519080825280601f01601f19166020018201604052801561387f576020820181803683370190505b509050600360fc1b8160008151811061389a5761389a614f57565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106138e5576138e5614f57565b60200101906001600160f81b031916908160001a9053506000613909846002614f0e565b613914906001614f9f565b90505b6001811115613999577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061395557613955614f57565b1a60f81b82828151811061396b5761396b614f57565b60200101906001600160f81b031916908160001a90535060049490941c93613992816150d9565b9050613917565b5083156138115760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b37565b6127106bffffffffffffffffffffffff82161115613a5b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610b37565b6001600160a01b038216613ab15760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b37565b604080518082019091526001600160a01b03929092168083526bffffffffffffffffffffffff919091166020909201829052600160a01b909102177f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c155565b6001600160a01b038316613ba957613ba4817f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861805460008381527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686260205260408120829055600182018355919091527ff164be80f47311484041e7f16fc09f301c4334069612e98dccd85438250b0a810155565b613bcc565b816001600160a01b0316836001600160a01b031614613bcc57613bcc8382614058565b6001600160a01b038216613be3576109b581614191565b826001600160a01b0316826001600160a01b0316146109b5576109b58282614303565b613c0f81613167565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b613cc55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610b37565b600080846001600160a01b031684604051613ce091906150f0565b600060405180830381855af49150503d8060008114613d1b576040519150601f19603f3d011682016040523d82523d6000602084013e613d20565b606091505b5091509150613d48828260405180606001604052806027815260200161513760279139614386565b95945050505050565b600082613d5e85846143bf565b14949350505050565b613d718383614433565b613d7e60008484846135b8565b6109b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b37565b6127106bffffffffffffffffffffffff82161115613e585760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610b37565b6001600160a01b038216613eae5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b37565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff928316602080830191825260009687527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c290529190942093519051909116600160a01b029116179055565b606081613f405750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613f6a5780613f5481614f6d565b9150613f639050600a83614f43565b9150613f44565b60008167ffffffffffffffff811115613f8557613f8561489a565b6040519080825280601f01601f191660200182016040528015613faf576020820181803683370190505b5090505b841561210b57613fc4600183614f88565b9150613fd1600a8661510c565b613fdc906030614f9f565b60f81b818381518110613ff157613ff1614f57565b60200101906001600160f81b031916908160001a905350614013600a86614f43565b9450613fb3565b60006001600160e01b031982167fa63de30800000000000000000000000000000000000000000000000000000000148061097b575061097b826145eb565b600060016140658461187d565b61406f9190614f88565b60008381527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476860602052604090205490915080821461411f576001600160a01b03841660009081527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f6020908152604080832085845282528083205484845281842081905583527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686090915290208190555b5060009182527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476860602090815260408084208490556001600160a01b039490941683527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f81528383209183525290812055565b7f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861546000906141c290600190614f88565b60008381527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686260205260408120547f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861805493945090928490811061422857614228614f57565b906000526020600020015490508061425d7f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f90565b600201838154811061427157614271614f57565b60009182526020808320909101929092558281527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686290915260408082208490558582528120557f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768618054806142e7576142e7615120565b6001900381819060005260206000200160009055905550505050565b600061430e8361187d565b6001600160a01b039390931660009081527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f6020908152604080832086845282528083208590559382527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768609052919091209190915550565b60608315614395575081613811565b8251156143a55782518084602001fd5b8160405162461bcd60e51b8152600401610b379190614887565b600081815b845181101561442b5760008582815181106143e1576143e1614f57565b602002602001015190508083116144075760008381526020829052604090209250614418565b600081815260208490526040902092505b508061442381614f6d565b9150506143c4565b509392505050565b6001600160a01b0382166144895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b37565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546001600160a01b03161561450d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b37565b614519600083836130ea565b6001600160a01b03821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb9060205260408120805460019290614561908490614f9f565b909155505060008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f6020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061097b575061097b8260006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061468757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061097b575061097b8260006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061097b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461097b565b82805461470490614ebd565b90600052602060002090601f016020900481019282614726576000855561476c565b82601f1061473f57805160ff191683800117855561476c565b8280016001018555821561476c579182015b8281111561476c578251825591602001919060010190614751565b5061477892915061477c565b5090565b5b80821115614778576000815560010161477d565b6001600160e01b03198116811461136d57600080fd5b6000602082840312156147b957600080fd5b813561381181614791565b80356001600160a01b03811681146147db57600080fd5b919050565b80356bffffffffffffffffffffffff811681146147db57600080fd5b6000806040838503121561480f57600080fd5b614818836147c4565b9150614826602084016147e0565b90509250929050565b60005b8381101561484a578181015183820152602001614832565b8381111561137d5750506000910152565b6000815180845261487381602086016020860161482f565b601f01601f19169290920160200192915050565b602081526000613811602083018461485b565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156148d9576148d961489a565b604052919050565b600082601f8301126148f257600080fd5b813567ffffffffffffffff81111561490c5761490c61489a565b61491f601f8201601f19166020016148b0565b81815284602083860101111561493457600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561496357600080fd5b813567ffffffffffffffff8082111561497b57600080fd5b908301906060828603121561498f57600080fd5b6040516060810181811083821117156149aa576149aa61489a565b6040528235828111156149bc57600080fd5b6149c8878286016148e1565b8252506020830135828111156149dd57600080fd5b6149e9878286016148e1565b6020830152506149fb604084016147c4565b604082015295945050505050565b600060208284031215614a1b57600080fd5b5035919050565b60008060408385031215614a3557600080fd5b614a3e836147c4565b946020939093013593505050565b60008060408385031215614a5f57600080fd5b82359150602083013567ffffffffffffffff811115614a7d57600080fd5b614a89858286016148e1565b9150509250929050565b600080600060608486031215614aa857600080fd5b614ab1846147c4565b9250614abf602085016147c4565b9150604084013590509250925092565b60008060408385031215614ae257600080fd5b50508035926020909101359150565b60008060408385031215614b0457600080fd5b82359150614826602084016147c4565b600060208284031215614b2657600080fd5b613811826147c4565b60008060008060608587031215614b4557600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115614b6b57600080fd5b818701915087601f830112614b7f57600080fd5b813581811115614b8e57600080fd5b8860208260051b8501011115614ba357600080fd5b95989497505060200194505050565b60008060408385031215614bc557600080fd5b614bce836147c4565b9150602083013567ffffffffffffffff811115614a7d57600080fd5b60008060208385031215614bfd57600080fd5b823567ffffffffffffffff80821115614c1557600080fd5b818501915085601f830112614c2957600080fd5b813581811115614c3857600080fd5b866020828501011115614c4a57600080fd5b60209290920196919550909350505050565b600080600060608486031215614c7157600080fd5b83359250614c81602085016147c4565b9150614c8f604085016147e0565b90509250925092565b600082601f830112614ca957600080fd5b8135602067ffffffffffffffff821115614cc557614cc561489a565b8160051b614cd48282016148b0565b9283528481018201928281019087851115614cee57600080fd5b83870192505b84831015614d0d57823582529183019190830190614cf4565b979650505050505050565b60008060008060808587031215614d2e57600080fd5b614d37856147c4565b9350614d45602086016147c4565b9250604085013567ffffffffffffffff80821115614d6257600080fd5b614d6e88838901614c98565b93506060870135915080821115614d8457600080fd5b50614d91878288016148e1565b91505092959194509250565b60008060408385031215614db057600080fd5b614db9836147c4565b915060208301358015158114614dce57600080fd5b809150509250929050565b60008060008060808587031215614def57600080fd5b614df8856147c4565b9350614e06602086016147c4565b925060408501359150606085013567ffffffffffffffff811115614e2957600080fd5b614d91878288016148e1565b60008060408385031215614e4857600080fd5b614e51836147c4565b9150614826602084016147c4565b600080600060608486031215614e7457600080fd5b614e7d846147c4565b9250614e8b602085016147c4565b9150604084013567ffffffffffffffff811115614ea757600080fd5b614eb386828701614c98565b9150509250925092565b600181811c90821680614ed157607f821691505b60208210811415614ef257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614f2857614f28614ef8565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614f5257614f52614f2d565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415614f8157614f81614ef8565b5060010190565b600082821015614f9a57614f9a614ef8565b500390565b60008219821115614fb257614fb2614ef8565b500190565b600060208284031215614fc957600080fd5b5051919050565b60008351614fe281846020880161482f565b835190830190614ff681836020880161482f565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161503781601785016020880161482f565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161507481602884016020880161482f565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526150b2608083018461485b565b9695505050505050565b6000602082840312156150ce57600080fd5b815161381181614791565b6000816150e8576150e8614ef8565b506000190190565b6000825161510281846020870161482f565b9190910192915050565b60008261511b5761511b614f2d565b500690565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202785b50a5ba4f547792354755b9ddac907c2f704e83470074b85b80c43643feb64736f6c63430008090033

Deployed Bytecode

0x6080604052600436106102f25760003560e01c806355f804b31161018f57806391d14854116100e1578063c87b56dd1161008a578063e985e9c511610064578063e985e9c5146108c8578063f3993d1114610930578063f54b893b1461095057600080fd5b8063c87b56dd14610868578063d547741f14610888578063df6ec1bd146108a857600080fd5b8063a22cb465116100bb578063a22cb46514610813578063aa1b103f14610833578063b88d4fde1461084857600080fd5b806391d148541461078457806395d89b41146107e9578063a217fddf146107fe57600080fd5b80636c0360eb116101435780637dc2cd981161011d5780637dc2cd98146107255780638456cb591461074f5780638a616bc01461076457600080fd5b80636c0360eb146106d057806370a08231146106e55780637cb647591461070557600080fd5b80635a4fee30116101745780635a4fee30146106595780635c975abb146106795780636352211e146106b057600080fd5b806355f804b3146106195780635944c7531461063957600080fd5b80632eb4a7ab116102485780633da1fe29116101fc5780634f1ef286116101d65780634f1ef286146105d15780634f6ccce7146105e457806352d1902d1461060457600080fd5b80633da1fe29146105895780633f4ba83a1461059c57806342842e0e146105b157600080fd5b80632f745c591161022d5780632f745c591461052957806336568abe146105495780633659cfe61461056957600080fd5b80632eb4a7ab146104f45780632f2ff15d1461050957600080fd5b8063095ea7b3116102aa57806323b872dd1161028457806323b872dd14610446578063248a9ca3146104665780632a55205a146104b557600080fd5b8063095ea7b3146103c8578063162094c4146103e857806318160ddd1461040857600080fd5b806306fdde03116102db57806306fdde031461034e57806307db3d3d14610370578063081812fc1461039057600080fd5b806301ffc9a7146102f757806304634d8d1461032c575b600080fd5b34801561030357600080fd5b506103176103123660046147a7565b610970565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034c6103473660046147fc565b610981565b005b34801561035a57600080fd5b506103636109ba565b6040516103239190614887565b34801561037c57600080fd5b5061034c61038b366004614951565b610a6c565b34801561039c57600080fd5b506103b06103ab366004614a09565b610c41565b6040516001600160a01b039091168152602001610323565b3480156103d457600080fd5b5061034c6103e3366004614a22565b610d14565b3480156103f457600080fd5b5061034c610403366004614a4c565b610e7e565b34801561041457600080fd5b507f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861545b604051908152602001610323565b34801561045257600080fd5b5061034c610461366004614a93565b610eb2565b34801561047257600080fd5b50610438610481366004614a09565b60009081527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602052604090206001015490565b3480156104c157600080fd5b506104d56104d0366004614acf565b610f39565b604080516001600160a01b039093168352602083019190915201610323565b34801561050057600080fd5b50610438611032565b34801561051557600080fd5b5061034c610524366004614af1565b611061565b34801561053557600080fd5b50610438610544366004614a22565b6110a5565b34801561055557600080fd5b5061034c610564366004614af1565b61116c565b34801561057557600080fd5b5061034c610584366004614b14565b6111f4565b61034c610597366004614b2f565b611370565b3480156105a857600080fd5b5061034c611383565b3480156105bd57600080fd5b5061034c6105cc366004614a93565b6113b5565b61034c6105df366004614bb2565b6113d0565b3480156105f057600080fd5b506104386105ff366004614a09565b611539565b34801561061057600080fd5b5061043861161c565b34801561062557600080fd5b5061034c610634366004614bea565b6116e1565b34801561064557600080fd5b5061034c610654366004614c5c565b61174a565b34801561066557600080fd5b5061034c610674366004614d18565b61177f565b34801561068557600080fd5b507fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff16610317565b3480156106bc57600080fd5b506103b06106cb366004614a09565b6117c9565b3480156106dc57600080fd5b50610363611873565b3480156106f157600080fd5b50610438610700366004614b14565b61187d565b34801561071157600080fd5b5061034c610720366004614a09565b611936565b34801561073157600080fd5b5061073a611969565b60408051928352602083019190915201610323565b34801561075b57600080fd5b5061034c6119bf565b34801561077057600080fd5b5061034c61077f366004614a09565b6119f1565b34801561079057600080fd5b5061031761079f366004614af1565b60009182527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156107f557600080fd5b50610363611a24565b34801561080a57600080fd5b50610438600081565b34801561081f57600080fd5b5061034c61082e366004614d9d565b611a55565b34801561083f57600080fd5b5061034c611a60565b34801561085457600080fd5b5061034c610863366004614dd9565b611a92565b34801561087457600080fd5b50610363610883366004614a09565b611b1a565b34801561089457600080fd5b5061034c6108a3366004614af1565b611b25565b3480156108b457600080fd5b5061034c6108c3366004614acf565b611b69565b3480156108d457600080fd5b506103176108e3366004614e35565b6001600160a01b0391821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb926020908152604080832093909416825291909152205460ff1690565b34801561093c57600080fd5b5061034c61094b366004614e5f565b611b9d565b34801561095c57600080fd5b5061043861096b366004614b14565b611bdf565b600061097b82611c1c565b92915050565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d6109ab81611c5a565b6109b58383611c64565b505050565b60607f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8d5b80546109e990614ebd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1590614ebd565b8015610a625780601f10610a3757610100808354040283529160200191610a62565b820191906000526020600020905b815481529060010190602001808311610a4557829003601f168201915b5050505050905090565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16610ac5577f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b5460ff1615610ac9565b303b155b610b405760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16158015610ba0577f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b805461ffff19166101011790555b610bb282600001518360200151611c6e565b610bba611d12565b610bc2611d12565b610bca611d12565b610bd2611d12565b610bda611d12565b610be2611d9e565b60408201516001600160a01b0316610bfb573360408301525b610c0c6000801b8360400151611e53565b8015610c3d577f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b805461ff00191690555b5050565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260408120546001600160a01b0316610cd95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b37565b5060009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb9160205260409020546001600160a01b031690565b6000610d1f826117c9565b9050806001600160a01b0316836001600160a01b03161415610da95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b37565b336001600160a01b0382161480610e0257506001600160a01b03811660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb926020908152604080832033845290915290205460ff165b610e745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b37565b6109b58383611e5d565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d610ea881611c5a565b6109b58383611ef7565b610ebc3382611fde565b610f2e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b37565b6109b5838383612113565b60008281527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c2602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610ff65750604080518082019091527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c1546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061101a906bffffffffffffffffffffffff1687614f0e565b6110249190614f43565b915196919550909350505050565b600061105c7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56b5490565b905090565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602052604090206001015461109b81611c5a565b6109b58383612355565b60006110b08361187d565b82106111245760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b37565b506001600160a01b039190911660009081527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f60209081526040808320938352929052205490565b6001600160a01b03811633146111ea5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b37565b610c3d8282612418565b306001600160a01b037f000000000000000000000000eb667659b19dfc8b6b3b6faafae3b5d7661dcb681614156112825760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b37565b7f000000000000000000000000eb667659b19dfc8b6b3b6faafae3b5d7661dcb686001600160a01b03166112dd7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146113485760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b37565b611351816124d9565b6040805160008082526020820190925261136d91839190612503565b50565b61137d33858585856126b2565b50505050565b7f982ab1c703a0281535eb9a1070cf70871d848dddf6b560f6fcc09197066207ea6113ad81611c5a565b61136d61286a565b6109b583838360405180602001604052806000815250611a92565b306001600160a01b037f000000000000000000000000eb667659b19dfc8b6b3b6faafae3b5d7661dcb6816141561145e5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610b37565b7f000000000000000000000000eb667659b19dfc8b6b3b6faafae3b5d7661dcb686001600160a01b03166114b97f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b0316146115245760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610b37565b61152d826124d9565b610c3d82826001612503565b60006115637f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768615490565b82106115d75760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b37565b7f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686180548390811061160a5761160a614f57565b90600052602060002001549050919050565b6000306001600160a01b037f000000000000000000000000eb667659b19dfc8b6b3b6faafae3b5d7661dcb6816146116bc5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610b37565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d61170b81611c5a565b6109b583838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061294492505050565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d61177481611c5a565b61137d848484612975565b60005b82518110156117c2576117b085858584815181106117a2576117a2614f57565b602002602001015185611a92565b806117ba81614f6d565b915050611782565b5050505050565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260408120546001600160a01b03168061097b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b37565b606061105c612980565b60006001600160a01b0382166118fb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b37565b506001600160a01b031660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb90602052604090205490565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d61196081611c5a565b610c3d8261298a565b6000806119b77f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56d547f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56e549091565b915091509091565b7f982ab1c703a0281535eb9a1070cf70871d848dddf6b560f6fcc09197066207ea6119e981611c5a565b61136d6129e0565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d611a1b81611c5a565b610c3d82612aa5565b60607f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8d60010180546109e990614ebd565b610c3d338383612aae565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d611a8a81611c5a565b61136d612b9d565b611a9c3383611fde565b611b0e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b37565b61137d84848484612ba5565b606061097b82612c23565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f6020526040902060010154611b5f81611c5a565b6109b58383612418565b7fc09d940421967831501b73d7fb2642050d1459153313d7f63939d3115216073d611b9381611c5a565b6109b58383612ddf565b60005b815181101561137d57611bcd8484848481518110611bc057611bc0614f57565b6020026020010151610eb2565b80611bd781614f6d565b915050611ba0565b6001600160a01b03811660009081527f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56c602052604081205461097b565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061097b575061097b82612ecd565b61136d8133612f0b565b610c3d8282612faa565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16611cf85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b611d00611d12565b611d08611d12565b610c3d8282612ffc565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16611d9c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff16611e285760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a72772805460ff19169055565b610c3d8282612355565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb9160205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611ebe826117c9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008281527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546001600160a01b0316611fa05760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e0000000000000000000000000000000000006064820152608401610b37565b60008281527f8f9aad6003f43bd6768b1c2a1469b16c291a0fb3db7d56f87c8a271fc6ad76806020908152604090912082516109b5928401906146f8565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260408120546001600160a01b03166120765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b37565b6000612081836117c9565b9050806001600160a01b0316846001600160a01b031614806120bc5750836001600160a01b03166120b184610c41565b6001600160a01b0316145b8061210b57506001600160a01b0380821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb92602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612126826117c9565b6001600160a01b0316146121a25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b37565b6001600160a01b03821661221d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b37565b6122288383836130ea565b612233600082611e5d565b6001600160a01b03831660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb906020526040812080546001929061227b908490614f88565b90915550506001600160a01b03821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb90602052604081208054600192906122c8908490614f9f565b909155505060008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f6020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b038516845290915290205460ff16610c3d5760008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b0385168085529252808320805460ff1916600117905551339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b038516845290915290205460ff1615610c3d5760008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b7f51abc5761b13492162bf5abe058c5043f766ddccdb9196f2468a9c0449146d98610c3d81611c5a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615612536576109b583613167565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561256f57600080fd5b505afa92505050801561259f575060408051601f3d908101601f1916820190925261259c91810190614fb7565b60015b6126115760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610b37565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc81146126a65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610b37565b506109b5838383613232565b6126ba613257565b6126f8858484848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061338592505050565b6001600160a01b03851660009081527f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56c60205260409020548361273b8683614f9f565b11156127af5760405162461bcd60e51b815260206004820152602760248201527f416c6c6f774c697374436c61696d3a206578636565647320636c61696d20616c60448201527f6c6f77616e6365000000000000000000000000000000000000000000000000006064820152608401610b37565b6127f9866127bd8784614f9f565b6001600160a01b039190911660009081527f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56c6020526040902055565b60006128237f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768615490565b61282e906001614f9f565b905060005b868110156128605761284e886128498385614f9f565b613468565b8061285881614f6d565b915050612833565b5050505050505050565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff166128db5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b37565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a72772805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b807f2a33075f808aca455e667a0be0791db395a1574ea01c92d76cf0d58a35e7fcb98151610c3d92602001906146f8565b6109b5838383613482565b606061105c6134d8565b6129b2817f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56b55565b60405181907f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c90600090a250565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff1615612a525760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b37565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a72772805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833612927565b61136d81613500565b816001600160a01b0316836001600160a01b03161415612b105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b37565b6001600160a01b0383811660008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb926020908152604080832094871680845294825291829020805460ff1916861515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b611d9c613560565b612bb0848484612113565b612bbc848484846135b8565b61137d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b37565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546060906001600160a01b0316612ccf5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610b37565b60008281527f8f9aad6003f43bd6768b1c2a1469b16c291a0fb3db7d56f87c8a271fc6ad7680602052604081208054612d0790614ebd565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3390614ebd565b8015612d805780601f10612d5557610100808354040283529160200191612d80565b820191906000526020600020905b815481529060010190602001808311612d6357829003601f168201915b505050505090506000612d91612980565b9050805160001415612da4575092915050565b815115612dd6578082604051602001612dbe929190614fd0565b60405160208183030381529060405292505050919050565b61210b84613710565b808210612e545760405162461bcd60e51b815260206004820152602860248201527f416c6c6f774c697374436c61696d3a207374617274206d75737420626520626560448201527f666f726520656e640000000000000000000000000000000000000000000000006064820152608401610b37565b7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56d8290557f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56e819055604051819083907f1da05f5e7764e0fd6d12d9644a13dc70a36f2aeecae5bc06c737985c5ee0f6ec90600090a35050565b60006001600160e01b031982167fa9d6d32100000000000000000000000000000000000000000000000000000000148061097b575061097b82613818565b60008281527f790f2e6a69a6ef47d9d055fc71267d8ba088e4aaa30d0fa0755c430237a51b2f602090815260408083206001600160a01b038516845290915290205460ff16610c3d57612f68816001600160a01b03166014613823565b612f73836020613823565b604051602001612f84929190614fff565b60408051601f198184030181529082905262461bcd60e51b8252610b3791600401614887565b612fb482826139e8565b6040516bffffffffffffffffffffffff8216906001600160a01b038416907fe5ed39918c4170e24337471011e1ccdeb5e4a433f53fae4eb2ad73e03cd21bda90600090a35050565b7f7a9c09dffb400f1c80d0455dcb8e56808aa28f0a58ad6480b85e9ec3328b6d9b54610100900460ff166130865760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610b37565b817f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8d81516130b792602001906146f8565b5080516109b5907f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8e9060208401906146f8565b7fe015734889d3a8ab0ca3c280ee72165114ca59934360f1e946ade07ca4a727725460ff161561315c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b37565b6109b5838383613b10565b6001600160a01b0381163b6131e45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610b37565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61323b83613c06565b6000825111806132485750805b156109b55761137d8383613c46565b7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56d544210156132ee5760405162461bcd60e51b815260206004820152603560248201527f416c6c6f774c697374436c61696d3a206d696e7420636c61696d20706572696f60448201527f6420686173206e6f7420796574207374617274656400000000000000000000006064820152608401610b37565b7f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56e54421115611d9c5760405162461bcd60e51b815260206004820152603360248201527f416c6c6f774c697374436c61696d3a206d696e7420636c61696d20706572696f60448201527f642068617320616c726561647920656e646564000000000000000000000000006064820152608401610b37565b6133f6816133b17f5aade9cb1167284f0fc98865cbda500f02833d66a23c5759422f9172d21fa56b5490565b60408051606088901b6bffffffffffffffffffffffff191660208083019190915260348083018990528351808403909101815260549092019092528051910120613d51565b6109b55760405162461bcd60e51b815260206004820152603360248201527f416c6c6f774c697374436c61696d3a20696e76616c6964204d65726b6c65205460448201527f7265652070726f6f6620737570706c6965642e000000000000000000000000006064820152608401610b37565b610c3d828260405180602001604052806000815250613d67565b61348d838383613de5565b806bffffffffffffffffffffffff16826001600160a01b0316847f25e2a3f12d544321cece1ec262049813ecc33ed43ed9c3e93a6b0a730a37e2ec60405160405180910390a4505050565b60607f2a33075f808aca455e667a0be0791db395a1574ea01c92d76cf0d58a35e7fcb96109de565b60008181527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c26020526040812055604051600090819083907f25e2a3f12d544321cece1ec262049813ecc33ed43ed9c3e93a6b0a730a37e2ec908390a450565b61358960007f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c155565b60405160009081907fe5ed39918c4170e24337471011e1ccdeb5e4a433f53fae4eb2ad73e03cd21bda908290a3565b60006001600160a01b0384163b1561370557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906135fc903390899088908890600401615080565b602060405180830381600087803b15801561361657600080fd5b505af1925050508015613646575060408051601f3d908101601f19168201909252613643918101906150bc565b60015b6136eb573d808015613674576040519150601f19603f3d011682016040523d82523d6000602084013e613679565b606091505b5080516136e35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b37565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061210b565b506001949350505050565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546060906001600160a01b03166137bc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b37565b60006137c6612980565b905060008151116137e65760405180602001604052806000815250613811565b806137f084613f1c565b604051602001613801929190614fd0565b6040516020818303038152906040525b9392505050565b600061097b8261401a565b60606000613832836002614f0e565b61383d906002614f9f565b67ffffffffffffffff8111156138555761385561489a565b6040519080825280601f01601f19166020018201604052801561387f576020820181803683370190505b509050600360fc1b8160008151811061389a5761389a614f57565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106138e5576138e5614f57565b60200101906001600160f81b031916908160001a9053506000613909846002614f0e565b613914906001614f9f565b90505b6001811115613999577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061395557613955614f57565b1a60f81b82828151811061396b5761396b614f57565b60200101906001600160f81b031916908160001a90535060049490941c93613992816150d9565b9050613917565b5083156138115760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b37565b6127106bffffffffffffffffffffffff82161115613a5b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610b37565b6001600160a01b038216613ab15760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b37565b604080518082019091526001600160a01b03929092168083526bffffffffffffffffffffffff919091166020909201829052600160a01b909102177f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c155565b6001600160a01b038316613ba957613ba4817f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861805460008381527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686260205260408120829055600182018355919091527ff164be80f47311484041e7f16fc09f301c4334069612e98dccd85438250b0a810155565b613bcc565b816001600160a01b0316836001600160a01b031614613bcc57613bcc8382614058565b6001600160a01b038216613be3576109b581614191565b826001600160a01b0316826001600160a01b0316146109b5576109b58282614303565b613c0f81613167565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b613cc55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610b37565b600080846001600160a01b031684604051613ce091906150f0565b600060405180830381855af49150503d8060008114613d1b576040519150601f19603f3d011682016040523d82523d6000602084013e613d20565b606091505b5091509150613d48828260405180606001604052806027815260200161513760279139614386565b95945050505050565b600082613d5e85846143bf565b14949350505050565b613d718383614433565b613d7e60008484846135b8565b6109b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b37565b6127106bffffffffffffffffffffffff82161115613e585760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610b37565b6001600160a01b038216613eae5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b37565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff928316602080830191825260009687527f54fcd2ed9a55ad9b12e91ab200e71f57eae5152fe75ba1c822fe0ce521e407c290529190942093519051909116600160a01b029116179055565b606081613f405750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613f6a5780613f5481614f6d565b9150613f639050600a83614f43565b9150613f44565b60008167ffffffffffffffff811115613f8557613f8561489a565b6040519080825280601f01601f191660200182016040528015613faf576020820181803683370190505b5090505b841561210b57613fc4600183614f88565b9150613fd1600a8661510c565b613fdc906030614f9f565b60f81b818381518110613ff157613ff1614f57565b60200101906001600160f81b031916908160001a905350614013600a86614f43565b9450613fb3565b60006001600160e01b031982167fa63de30800000000000000000000000000000000000000000000000000000000148061097b575061097b826145eb565b600060016140658461187d565b61406f9190614f88565b60008381527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476860602052604090205490915080821461411f576001600160a01b03841660009081527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f6020908152604080832085845282528083205484845281842081905583527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686090915290208190555b5060009182527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476860602090815260408084208490556001600160a01b039490941683527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f81528383209183525290812055565b7f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861546000906141c290600190614f88565b60008381527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686260205260408120547f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff476861805493945090928490811061422857614228614f57565b906000526020600020015490508061425d7f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f90565b600201838154811061427157614271614f57565b60009182526020808320909101929092558281527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47686290915260408082208490558582528120557f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768618054806142e7576142e7615120565b6001900381819060005260206000200160009055905550505050565b600061430e8361187d565b6001600160a01b039390931660009081527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff47685f6020908152604080832086845282528083208590559382527f20f44f131a2d1e2509683f8dc2187cc22a94e6e9aa7536856bcc39ffff4768609052919091209190915550565b60608315614395575081613811565b8251156143a55782518084602001fd5b8160405162461bcd60e51b8152600401610b379190614887565b600081815b845181101561442b5760008582815181106143e1576143e1614f57565b602002602001015190508083116144075760008381526020829052604090209250614418565b600081815260208490526040902092505b508061442381614f6d565b9150506143c4565b509392505050565b6001600160a01b0382166144895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b37565b60008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f60205260409020546001600160a01b03161561450d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b37565b614519600083836130ea565b6001600160a01b03821660009081527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb9060205260408120805460019290614561908490614f9f565b909155505060008181527f5c265d8dd47a4c645c02a3f84412d3dd5b80e81662a5ad3113c5a17f597edb8f6020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061097b575061097b8260006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061468757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061097b575061097b8260006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061097b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461097b565b82805461470490614ebd565b90600052602060002090601f016020900481019282614726576000855561476c565b82601f1061473f57805160ff191683800117855561476c565b8280016001018555821561476c579182015b8281111561476c578251825591602001919060010190614751565b5061477892915061477c565b5090565b5b80821115614778576000815560010161477d565b6001600160e01b03198116811461136d57600080fd5b6000602082840312156147b957600080fd5b813561381181614791565b80356001600160a01b03811681146147db57600080fd5b919050565b80356bffffffffffffffffffffffff811681146147db57600080fd5b6000806040838503121561480f57600080fd5b614818836147c4565b9150614826602084016147e0565b90509250929050565b60005b8381101561484a578181015183820152602001614832565b8381111561137d5750506000910152565b6000815180845261487381602086016020860161482f565b601f01601f19169290920160200192915050565b602081526000613811602083018461485b565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156148d9576148d961489a565b604052919050565b600082601f8301126148f257600080fd5b813567ffffffffffffffff81111561490c5761490c61489a565b61491f601f8201601f19166020016148b0565b81815284602083860101111561493457600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561496357600080fd5b813567ffffffffffffffff8082111561497b57600080fd5b908301906060828603121561498f57600080fd5b6040516060810181811083821117156149aa576149aa61489a565b6040528235828111156149bc57600080fd5b6149c8878286016148e1565b8252506020830135828111156149dd57600080fd5b6149e9878286016148e1565b6020830152506149fb604084016147c4565b604082015295945050505050565b600060208284031215614a1b57600080fd5b5035919050565b60008060408385031215614a3557600080fd5b614a3e836147c4565b946020939093013593505050565b60008060408385031215614a5f57600080fd5b82359150602083013567ffffffffffffffff811115614a7d57600080fd5b614a89858286016148e1565b9150509250929050565b600080600060608486031215614aa857600080fd5b614ab1846147c4565b9250614abf602085016147c4565b9150604084013590509250925092565b60008060408385031215614ae257600080fd5b50508035926020909101359150565b60008060408385031215614b0457600080fd5b82359150614826602084016147c4565b600060208284031215614b2657600080fd5b613811826147c4565b60008060008060608587031215614b4557600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115614b6b57600080fd5b818701915087601f830112614b7f57600080fd5b813581811115614b8e57600080fd5b8860208260051b8501011115614ba357600080fd5b95989497505060200194505050565b60008060408385031215614bc557600080fd5b614bce836147c4565b9150602083013567ffffffffffffffff811115614a7d57600080fd5b60008060208385031215614bfd57600080fd5b823567ffffffffffffffff80821115614c1557600080fd5b818501915085601f830112614c2957600080fd5b813581811115614c3857600080fd5b866020828501011115614c4a57600080fd5b60209290920196919550909350505050565b600080600060608486031215614c7157600080fd5b83359250614c81602085016147c4565b9150614c8f604085016147e0565b90509250925092565b600082601f830112614ca957600080fd5b8135602067ffffffffffffffff821115614cc557614cc561489a565b8160051b614cd48282016148b0565b9283528481018201928281019087851115614cee57600080fd5b83870192505b84831015614d0d57823582529183019190830190614cf4565b979650505050505050565b60008060008060808587031215614d2e57600080fd5b614d37856147c4565b9350614d45602086016147c4565b9250604085013567ffffffffffffffff80821115614d6257600080fd5b614d6e88838901614c98565b93506060870135915080821115614d8457600080fd5b50614d91878288016148e1565b91505092959194509250565b60008060408385031215614db057600080fd5b614db9836147c4565b915060208301358015158114614dce57600080fd5b809150509250929050565b60008060008060808587031215614def57600080fd5b614df8856147c4565b9350614e06602086016147c4565b925060408501359150606085013567ffffffffffffffff811115614e2957600080fd5b614d91878288016148e1565b60008060408385031215614e4857600080fd5b614e51836147c4565b9150614826602084016147c4565b600080600060608486031215614e7457600080fd5b614e7d846147c4565b9250614e8b602085016147c4565b9150604084013567ffffffffffffffff811115614ea757600080fd5b614eb386828701614c98565b9150509250925092565b600181811c90821680614ed157607f821691505b60208210811415614ef257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614f2857614f28614ef8565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614f5257614f52614f2d565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415614f8157614f81614ef8565b5060010190565b600082821015614f9a57614f9a614ef8565b500390565b60008219821115614fb257614fb2614ef8565b500190565b600060208284031215614fc957600080fd5b5051919050565b60008351614fe281846020880161482f565b835190830190614ff681836020880161482f565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161503781601785016020880161482f565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161507481602884016020880161482f565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526150b2608083018461485b565b9695505050505050565b6000602082840312156150ce57600080fd5b815161381181614791565b6000816150e8576150e8614ef8565b506000190190565b6000825161510281846020870161482f565b9190910192915050565b60008261511b5761511b614f2d565b500690565b634e487b7160e01b600052603160045260246000fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202785b50a5ba4f547792354755b9ddac907c2f704e83470074b85b80c43643feb64736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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