Token Punk'd Apes

 

Overview ERC-721

Total Supply:
1,708 PA

Holders:
1,492 addresses

Transfers:
-

Loading
[ Download CSV Export  ] 
Loading
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PunkdApes

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 19 : PunkdApes.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";

// coded by Crypto Tester: https://twitter.com/crypto_tester_

interface IBinaryPunkdApes {
  function mint(address to, uint256 tokenId) external;
}

contract PunkdApes is ERC721,
  ERC721Enumerable,
  ERC721URIStorage,
  Ownable,
  AccessControl,
  ERC165Storage,
  IERC2981 {

  uint256 public adminMintCount;
  uint256 public airdropMintCount;
  uint256 public mintCount;
  uint256 public price;
  uint256 public supply;
  uint256 public stopMintingAt;
  uint256 public royaltyFee;
  address public royaltyAddress;
  address public bpaAddress;
  bool public mintingEnabled;
  string public baseUrl;
  enum MintType { PUBLIC, AIRDROP, ADMIN }

  struct FeeRecipient {
    address recipient;
    uint256 basisPoints;
  }
  mapping(uint256 => FeeRecipient) public feeRecipients;
  uint256 feeRecipientCount;
  uint256 totalFeeBasisPoints;

  mapping(uint256 => uint256) private tokenMatrix;
  uint256 public startFrom;
  uint256 public mintBlockSize;
  uint256 public mintBlockNr;
  uint256 public mintOffset;
  uint256 public lastMintBlockNr;
  uint256 public mintBlockReminder;

  bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

  event PublicMint(address addr, uint256 tokenId);
  event AirdropMint(address addr, uint256 tokenId);
  event AdminMint(address addr, uint256 tokenId);
  event RandomizationUpdate(uint256 mintCount, uint256 startFrom);
  event UpdateBaseUrl(string newBaseUrl);
  event UpdateTokenURI(uint256 id, string newTokenURI);
  event UintPropertyChange(string param, uint256 value);
  event BoolPropertyChange(string param, bool value);
  event AddressPropertyChange(string param, address value);

  bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
  bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
  bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
  bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

  constructor() ERC721("Punk'd Apes", "PA") {
    adminMintCount = 0;
    airdropMintCount = 0;
    mintCount = 0;
    price = 100 * 10**18;
    supply = 5000;
    stopMintingAt = supply;
    royaltyFee = 75; // 7.5%
    royaltyAddress = 0x802fa9C643E3d1770ffFA60195631e1b7002d795;
    startFrom = 0;
    mintBlockSize = 1000;
    mintBlockNr = 1;
    mintOffset = 0;
    setLastMintBlockNrAndReminder();

    // ERC721 interface
    _registerInterface(_INTERFACE_ID_ERC721);
    _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);

    // Royalties interface
    _registerInterface(_INTERFACE_ID_ERC2981);
    
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _setupRole(ADMIN_ROLE, msg.sender);
  }

  function mint(uint256 quantity) external payable {
    require(mintingEnabled, "MINTING_DISABLED");
    require(mintCount + quantity <= stopMintingAt, "STOP_MINTING_AT");
    require(msg.value == price * quantity, "WRONG_AMOUNT");
    _doMint(quantity, msg.sender, MintType.PUBLIC);
    _splitPayment();
  }

  function adminMint(uint256 quantity, address to) external {
    require(hasRole(ADMIN_ROLE, msg.sender), "UNAUTHORIZED");
    _adminMint(quantity, to, MintType.ADMIN);
  }

  function batchAirdrop(address [] calldata addresses) external onlyOwner {
    for (uint256 i = 0; i < addresses.length; i++) {
      _adminMint(1, addresses[i], MintType.AIRDROP);
    }
  }

  function airdropMint(uint256 quantity, address to) external onlyOwner {
    _adminMint(quantity, to, MintType.AIRDROP);
  }

  function _adminMint(uint256 quantity, address to, MintType mintType) private {
    _doMint(quantity, to, mintType);
  }

  function specificMint(uint256 tokenId, address to) external {
    require(tokenId < mintBlockNr * mintBlockSize, "ID_OUT_OF_MINT_BLOCK");
    require(hasRole(ADMIN_ROLE, msg.sender), "UNAUTHORIZED");
    uint256 maxIndex = mintBlockNr * mintBlockSize - mintCount - mintOffset;
    if (mintBlockNr == lastMintBlockNr + 1) {
      maxIndex = supply - mintCount;
    }
    tokenMatrix[tokenId] = maxIndex - 1;
    _mint(to, tokenId);
    _bpaMint(to, tokenId);
    mintCount++;
    adminMintCount++;
    emit AdminMint(to, tokenId);
  }

  function getNextRandomTokenId() private returns (uint256) {
    uint256 maxIndex = mintBlockNr * mintBlockSize - mintCount - mintOffset;
    if (mintBlockNr == lastMintBlockNr + 1) {
      maxIndex = supply - mintCount;
    }
    uint256 random = uint256(
      keccak256(
        abi.encodePacked(
          msg.sender,
          block.coinbase,
          block.difficulty,
          block.gaslimit,
          block.timestamp
        )
      )
    ) % maxIndex;

    uint256 randomNr = 0;
    if (tokenMatrix[random] == 0) {
      randomNr = random;
    } else {
      randomNr = tokenMatrix[random];
    }

    if (tokenMatrix[maxIndex - 1] == 0) {
      tokenMatrix[random] = maxIndex - 1;
    } else {
      tokenMatrix[random] = tokenMatrix[maxIndex - 1];
    }

    return randomNr + startFrom;
  }

  function handleMintBlock() private {
    if (mintCount % mintBlockSize == 0) {
      mintBlockNr++;
      startFrom = (mintBlockNr - 1) * mintBlockSize;
      emit RandomizationUpdate(mintCount, startFrom);
      for (uint256 i = 0; i < mintBlockSize; i++){
        tokenMatrix[i] = 0;
      }
    }
  }

  function setMintBlock(uint256 _mintBlockNr) external onlyOwner {
    mintBlockNr = _mintBlockNr;
    startFrom = (mintBlockNr - 1) * mintBlockSize;
  }

  function _bpaMint(address to, uint256 tokenId) private {
    IBinaryPunkdApes bpa = IBinaryPunkdApes(bpaAddress);
    bpa.mint(to, tokenId);
  }

  function _doMint(uint256 quantity, address to, MintType mintType) private {
    require(bpaAddress != address(0), "BPA_ADDRESS_NOT_SET");
    require(mintCount + quantity <= supply, "MINTED_OUT");
    for (uint256 i = 0; i < quantity; i++) {
      uint256 tokenId = getNextRandomTokenId();
      _mint(to, tokenId);
      _setTokenURI(tokenId, _endOfURI(tokenId));
      mintCount++;
      handleMintBlock();
      _bpaMint(to, tokenId);

      if (mintType == MintType.PUBLIC) {
        emit PublicMint(to, tokenId);
      } else if (mintType == MintType.ADMIN) {
        emit AdminMint(to, tokenId);
      } else if (mintType == MintType.AIRDROP) {
        emit AirdropMint(to, tokenId);
      }

      if (mintType == MintType.ADMIN) {
        adminMintCount++;
      }

      if (mintType == MintType.AIRDROP) {
        airdropMintCount++;
      }

      if (mintType == MintType.PUBLIC && mintCount == stopMintingAt)
      {
        mintingEnabled = false;
        emit BoolPropertyChange("mintingEnabled", mintingEnabled);
        break;
      }
    }
  }

  function setLastMintBlockNrAndReminder() public onlyOwner {
    lastMintBlockNr = supply / mintBlockSize;
    mintBlockReminder = supply % mintBlockSize;
  }

  function setMintingEnabled(bool value) external {
    require(hasRole(ADMIN_ROLE, msg.sender), "UNAUTHORIZED");
    mintingEnabled = value;
    emit BoolPropertyChange("mintingEnabled", mintingEnabled);
  }

  function setSupply(uint256 value) external onlyOwner {
    require(value >= mintCount, "supply must be >= mintCount");
    supply = value;
    setLastMintBlockNrAndReminder();
    emit UintPropertyChange("supply", value);
  }

  function setMintBlockSize(uint256 value) external onlyOwner {
    mintBlockSize = value;
    emit UintPropertyChange("mintBlockSize", value);
  }

  function setMintOffset(uint256 value) external onlyOwner {
    mintOffset = value;
    emit UintPropertyChange("mintOffset", value);
  }

  function setStopMintingAt(uint256 value) external onlyOwner {
    stopMintingAt = value;
    emit UintPropertyChange("stopMintingAt", value);
  }

  function setPrice(uint256 priceInEth) external onlyOwner {
    price = priceInEth * 10**18;
    emit UintPropertyChange("price", price);
  }

  function setPriceInWei(uint256 priceInWei) external onlyOwner {
    price = priceInWei;
    emit UintPropertyChange("price", price);
  }

  function setRoyaltyAddress(address addr) external onlyOwner {
    royaltyAddress = addr;
    emit AddressPropertyChange("royaltyAddress", addr);
  }

  function setRoyaltyFee(uint256 feePercent) external onlyOwner {
    royaltyFee = feePercent;
    emit UintPropertyChange("royaltyFee", feePercent);
  }

  function setBpaAddress(address addr) external onlyOwner {
    bpaAddress = addr;
    emit AddressPropertyChange("bpaAddress", addr);
  }

  function setBaseUrl(string calldata url) external onlyOwner {
    baseUrl = url;
    emit UpdateBaseUrl(url);
  }

  function setTokenURI(uint256 id, string calldata dotJson) external onlyOwner {
    _setTokenURI(id, dotJson);
    emit UpdateTokenURI(id, dotJson);
  }

  function addFeeRecipient(address recipient, uint256 basisPoints) external onlyOwner {
    feeRecipientCount++;
    feeRecipients[feeRecipientCount].recipient = recipient;
    feeRecipients[feeRecipientCount].basisPoints = basisPoints;
    totalFeeBasisPoints += basisPoints;
  }

  function editFeeRecipient(uint256 id, address recipient, uint256 basisPoints) external onlyOwner {
    require(id <= feeRecipientCount, "INVALID_ID");
    totalFeeBasisPoints = totalFeeBasisPoints - feeRecipients[id].basisPoints + basisPoints;
    feeRecipients[id].recipient = recipient;
    feeRecipients[id].basisPoints = basisPoints;
  }

  function _splitPayment() internal {
    if (feeRecipientCount > 0) {
      uint256 amount = msg.value;
      for(uint256 i = 1; i <= feeRecipientCount; i++) {
        uint256 amountForRecipient = amount * feeRecipients[i].basisPoints / totalFeeBasisPoints;
        (bool sent, ) = feeRecipients[i].recipient.call{value: amountForRecipient}("");
        require(sent, "FAILED_SENDING_FUNDS");
      }
    }
  }

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

  function _uint2str(uint256 nr) internal pure returns (string memory str) {
    if (nr == 0) {
      return "0";
    }
    uint256 j = nr;
    uint256 length;
    while (j != 0) {
      length++;
      j /= 10;
    }
    bytes memory bstr = new bytes(length);
    uint256 k = length;
    j = nr;
    while (j != 0) {
      bstr[--k] = bytes1(uint8(48 + j % 10));
      j /= 10;
    }
    str = string(bstr);
  }

  function _endOfURI(uint256 nr) internal pure returns (string memory jsonString) {
    string memory number = _uint2str(nr);
    string memory dotJson = ".json";
    jsonString = string(abi.encodePacked(number, dotJson));
  }

  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
    super._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return super.tokenURI(tokenId);
  }

  function royaltyInfo(uint256, uint256 salePrice) external view override(IERC2981) returns (address receiver, uint256 royaltyAmount) {
    receiver = royaltyAddress;
    royaltyAmount = salePrice * royaltyFee / 1000; // royalty is set with 2 decimals, thus divide by 1000 instead of 100
  }

  function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC165Storage, IERC165, AccessControl) returns (bool) {
    return super.supportsInterface(interfaceId);
  }

  function sweepEth() external onlyOwner {
    uint256 balance = address(this).balance;
    require(balance > 0, "NO_FUNDS");
    (bool sent, ) = owner().call{value: balance}("");
    require(sent, "FAILED_SENDING_FUNDS");
  }

  function sweepErc20(IERC20 token) external onlyOwner {
    uint256 balance = token.balanceOf(address(this));
    require(balance > 0, "NO_FUNDS");
    token.transfer(owner(), balance);
  }

  receive() external payable {}

  fallback() external payable {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.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 AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    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(IAccessControl).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 _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 ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.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 _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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

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

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

File 4 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.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 IERC2981 is IERC165 {
    /**
     * @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 paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 5 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _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 = ERC721.ownerOf(tokenId);

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

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

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

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

        _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(ERC721.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);

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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 6 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.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 ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 19 : ERC165Storage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol)

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

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

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 8 of 19 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _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");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 19 : IAccessControl.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 IAccessControl {
    /**
     * @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 12 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"param","type":"string"},{"indexed":false,"internalType":"address","name":"value","type":"address"}],"name":"AddressPropertyChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AdminMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AirdropMint","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":false,"internalType":"string","name":"param","type":"string"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"BoolPropertyChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startFrom","type":"uint256"}],"name":"RandomizationUpdate","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":"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":"string","name":"param","type":"string"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"UintPropertyChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseUrl","type":"string"}],"name":"UpdateBaseUrl","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"newTokenURI","type":"string"}],"name":"UpdateTokenURI","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"name":"addFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropMintCount","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":"baseUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"batchAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bpaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"name":"editFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeRecipients","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"stateMutability":"view","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":[{"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":"lastMintBlockNr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintBlockNr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintBlockReminder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintBlockSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","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":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"url","type":"string"}],"name":"setBaseUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setBpaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setLastMintBlockNrAndReminder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintBlockNr","type":"uint256"}],"name":"setMintBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMintBlockSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMintOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInEth","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInWei","type":"uint256"}],"name":"setPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feePercent","type":"uint256"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setStopMintingAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"dotJson","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"specificMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopMintingAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"sweepErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sweepEth","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040518060400160405280600b81526020016a50756e6b2764204170657360a81b81525060405180604001604052806002815260200161504160f01b81525081600090816200006291906200044e565b5060016200007182826200044e565b5050506200008e620000886200018660201b60201c565b6200018a565b6000600e819055600f819055601081905568056bc75e2d631000006011556113886012819055601355604b601455601580546001600160a01b03191673802fa9c643e3d1770fffa60195631e1b7002d795179055601c8190556103e8601d556001601e55601f55620000ff620001dc565b620001116380ac58cd60e01b62000212565b62000123635b5e139f60e01b62000212565b6200013563780e9d6360e01b62000212565b6200014763152a902d60e11b62000212565b6200015460003362000297565b620001807fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753362000297565b6200055e565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001e6620002a7565b601d54601254620001f8919062000530565b602055601d546012546200020d919062000547565b602155565b6001600160e01b03198082169003620002725760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e746572666163652069640000000060448201526064015b60405180910390fd5b6001600160e01b0319166000908152600d60205260409020805460ff19166001179055565b620002a3828262000305565b5050565b600b546001600160a01b03163314620003035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000269565b565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16620002a3576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003653390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003d457607f821691505b602082108103620003f557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200044957600081815260208120601f850160051c81016020861015620004245750805b601f850160051c820191505b81811015620004455782815560010162000430565b5050505b505050565b81516001600160401b038111156200046a576200046a620003a9565b62000482816200047b8454620003bf565b84620003fb565b602080601f831160018114620004ba5760008415620004a15750858301515b600019600386901b1c1916600185901b17855562000445565b600085815260208120601f198616915b82811015620004eb57888601518255948401946001909101908401620004ca565b50858210156200050a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826200054257620005426200051a565b500490565b6000826200055957620005596200051a565b500690565b614176806200056e6000396000f3fe6080604052600436106103c35760003560e01c806370dce664116101f0578063a217fddf1161010c578063c87b56dd116100a5578063e8e483db11610077578063e8e483db14610b7b578063e985e9c514610b91578063efc6dbf214610bda578063f2fde38b14610bf0578063f6ea570714610c1057005b8063c87b56dd14610b05578063d547741f14610b25578063d6df204414610b45578063d9fe3eae14610b5b57005b8063b88d4fde116100de578063b88d4fde14610a8f578063b8997a9714610aaf578063bf60dc2114610ac5578063c7c3268b14610ae557005b8063a217fddf14610a1a578063a22cb46514610a2f578063ad2f852a14610a4f578063ad6115d914610a6f57005b806391d14854116101895780639ac844141161015b5780639ac844141461099b5780639edfbec9146109b05780639fd6db12146109d0578063a035b1fe146109f1578063a0712d6814610a0757005b806391d148541461093057806395d89b41146109505780639659867e1461096557806399a089e11461097b57005b80638774e5d0116101c25780638774e5d0146108b2578063893d7edb146108d25780638da5cb5b146108f257806391b7f5ed1461091057005b806370dce66414610845578063715018a61461086557806375b238fc1461087a5780637815963e1461089c57005b80632a55205a116102df5780634ea3871a116102785780635bcabf041161024a5780635bcabf04146107c55780636352211e146107da578063670437ea146107fa57806369d6b4331461081057806370a082311461082557005b80634ea3871a146107255780634f64c8f8146107455780634f6ccce71461076557806351fe9eff1461078557005b80633b4c4b25116102b15780633b4c4b25146106af5780633e4086e5146106cf5780633f0d6258146106ef57806342842e0e1461070557005b80632a55205a146106105780632f2ff15d1461064f5780632f745c591461066f57806336568abe1461068f57005b806311c1907c1161035c5780631c8eed9a1161032e5780631c8eed9a1461056a5780631ed3598f1461058a578063208904c7146105aa57806323b872dd146105c0578063248a9ca3146105e057005b806311c1907c146104ff578063162094c41461051f57806318160ddd1461053f5780631a23ab5f1461055457005b806306fdde031161039557806306fdde0314610465578063081812fc14610487578063095ea7b3146104bf5780630dc28efe146104df57005b806301ffc9a7146103cc578063047fc9aa1461040157806305dfd2c01461042557806306d254da1461044557005b366103ca57005b005b3480156103d857600080fd5b506103ec6103e7366004613720565b610c26565b60405190151581526020015b60405180910390f35b34801561040d57600080fd5b5061041760125481565b6040519081526020016103f8565b34801561043157600080fd5b506103ca610440366004613752565b610c37565b34801561045157600080fd5b506103ca61046036600461378a565b610ce3565b34801561047157600080fd5b5061047a610d69565b6040516103f891906137f7565b34801561049357600080fd5b506104a76104a236600461380a565b610dfb565b6040516001600160a01b0390911681526020016103f8565b3480156104cb57600080fd5b506103ca6104da366004613823565b610e22565b3480156104eb57600080fd5b506103ca6104fa36600461384f565b610f37565b34801561050b57600080fd5b506103ca61051a36600461384f565b610f7b565b34801561052b57600080fd5b506103ca61053a3660046138c8565b610f8f565b34801561054b57600080fd5b50600854610417565b34801561056057600080fd5b5061041760135481565b34801561057657600080fd5b506103ca61058536600461380a565b611017565b34801561059657600080fd5b506103ca6105a536600461380a565b611066565b3480156105b657600080fd5b50610417601c5481565b3480156105cc57600080fd5b506103ca6105db366004613914565b6110b8565b3480156105ec57600080fd5b506104176105fb36600461380a565b6000908152600c602052604090206001015490565b34801561061c57600080fd5b5061063061062b366004613944565b6110e9565b604080516001600160a01b0390931683526020830191909152016103f8565b34801561065b57600080fd5b506103ca61066a36600461384f565b61111f565b34801561067b57600080fd5b5061041761068a366004613823565b611144565b34801561069b57600080fd5b506103ca6106aa36600461384f565b6111da565b3480156106bb57600080fd5b506103ca6106ca36600461380a565b611254565b3480156106db57600080fd5b506103ca6106ea36600461380a565b6112f9565b3480156106fb57600080fd5b50610417600f5481565b34801561071157600080fd5b506103ca610720366004613914565b611348565b34801561073157600080fd5b506103ca610740366004613974565b611363565b34801561075157600080fd5b506103ca61076036600461378a565b611413565b34801561077157600080fd5b5061041761078036600461380a565b61148e565b34801561079157600080fd5b506106306107a036600461380a565b601860205260009081526040902080546001909101546001600160a01b039091169082565b3480156107d157600080fd5b5061047a611521565b3480156107e657600080fd5b506104a76107f536600461380a565b6115af565b34801561080657600080fd5b50610417601f5481565b34801561081c57600080fd5b506103ca61160f565b34801561083157600080fd5b5061041761084036600461378a565b61163f565b34801561085157600080fd5b506103ca61086036600461380a565b6116c5565b34801561087157600080fd5b506103ca611717565b34801561088657600080fd5b5061041760008051602061412183398151915281565b3480156108a857600080fd5b50610417601e5481565b3480156108be57600080fd5b506103ca6108cd36600461380a565b61172b565b3480156108de57600080fd5b506103ca6108ed36600461384f565b611775565b3480156108fe57600080fd5b50600b546001600160a01b03166104a7565b34801561091c57600080fd5b506103ca61092b36600461380a565b6118ed565b34801561093c57600080fd5b506103ec61094b36600461384f565b61194a565b34801561095c57600080fd5b5061047a611975565b34801561097157600080fd5b5061041760105481565b34801561098757600080fd5b506103ca61099636600461380a565b611984565b3480156109a757600080fd5b506103ca6119af565b3480156109bc57600080fd5b506103ca6109cb366004613991565b611a9b565b3480156109dc57600080fd5b506016546103ec90600160a01b900460ff1681565b3480156109fd57600080fd5b5061041760115481565b6103ca610a1536600461380a565b611af3565b348015610a2657600080fd5b50610417600081565b348015610a3b57600080fd5b506103ca610a4a366004613a06565b611bf2565b348015610a5b57600080fd5b506015546104a7906001600160a01b031681565b348015610a7b57600080fd5b506016546104a7906001600160a01b031681565b348015610a9b57600080fd5b506103ca610aaa366004613a4a565b611bfd565b348015610abb57600080fd5b5061041760145481565b348015610ad157600080fd5b506103ca610ae0366004613823565b611c35565b348015610af157600080fd5b506103ca610b00366004613b2a565b611ca6565b348015610b1157600080fd5b5061047a610b2036600461380a565b611cf9565b348015610b3157600080fd5b506103ca610b4036600461384f565b611d04565b348015610b5157600080fd5b5061041760205481565b348015610b6757600080fd5b506103ca610b7636600461378a565b611d29565b348015610b8757600080fd5b5061041760215481565b348015610b9d57600080fd5b506103ec610bac366004613b6c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610be657600080fd5b50610417600e5481565b348015610bfc57600080fd5b506103ca610c0b36600461378a565b611e6b565b348015610c1c57600080fd5b50610417601d5481565b6000610c3182611ee1565b92915050565b610c3f611f12565b601954831115610c835760405162461bcd60e51b815260206004820152600a6024820152691253959053125117d25160b21b60448201526064015b60405180910390fd5b600083815260186020526040902060010154601a548291610ca391613bb0565b610cad9190613bc3565b601a5560009283526018602052604090922080546001600160a01b0319166001600160a01b039290921691909117815560010155565b610ceb611f12565b601580546001600160a01b0319166001600160a01b03831690811790915560408051818152600e918101919091526d726f79616c74794164647265737360901b606082015260208101919091527fa0595d3994065522f393bcbdd66c48e61cb68322e8bea3001d79b41cfac67f8f906080015b60405180910390a150565b606060008054610d7890613bd6565b80601f0160208091040260200160405190810160405280929190818152602001828054610da490613bd6565b8015610df15780601f10610dc657610100808354040283529160200191610df1565b820191906000526020600020905b815481529060010190602001808311610dd457829003601f168201915b5050505050905090565b6000610e0682611f6c565b506000908152600460205260409020546001600160a01b031690565b6000610e2d826115af565b9050806001600160a01b0316836001600160a01b031603610e9a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c7a565b336001600160a01b0382161480610eb65750610eb68133610bac565b610f285760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610c7a565b610f328383611fcb565b505050565b610f4f6000805160206141218339815191523361194a565b610f6b5760405162461bcd60e51b8152600401610c7a90613c10565b610f7782826002612039565b5050565b610f83611f12565b610f7782826001612039565b610f97611f12565b610fd78383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061204492505050565b7f0418254f69edc41d3d2b429767526234e99f60018e7e21cda80307bf3ef28cc483838360405161100a93929190613c5f565b60405180910390a1505050565b61101f611f12565b601f81905560408051818152600a91810191909152691b5a5b9d13d9999cd95d60b21b60608201526020810182905260008051602061410183398151915290608001610d5e565b61106e611f12565b601381905560408051818152600d918101919091526c1cdd1bdc135a5b9d1a5b99d05d609a1b60608201526020810182905260008051602061410183398151915290608001610d5e565b6110c233826120d7565b6110de5760405162461bcd60e51b8152600401610c7a90613c82565b610f32838383612156565b6015546014546001600160a01b03909116906000906103e89061110c9085613cd0565b6111169190613cfd565b90509250929050565b6000828152600c602052604090206001015461113a816122fd565b610f328383612307565b600061114f8361163f565b82106111b15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c7a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b038116331461124a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c7a565b610f77828261238d565b61125c611f12565b6010548110156112ae5760405162461bcd60e51b815260206004820152601b60248201527f737570706c79206d757374206265203e3d206d696e74436f756e7400000000006044820152606401610c7a565b60128190556112bb61160f565b6040805181815260069181019190915265737570706c7960d01b60608201526020810182905260008051602061410183398151915290608001610d5e565b611301611f12565b601481905560408051818152600a9181019190915269726f79616c747946656560b01b60608201526020810182905260008051602061410183398151915290608001610d5e565b610f3283838360405180602001604052806000815250611bfd565b61137b6000805160206141218339815191523361194a565b6113975760405162461bcd60e51b8152600401610c7a90613c10565b6016805460ff60a01b1916600160a01b8315158102919091179182905560408051818152600e918101919091526d1b5a5b9d1a5b99d15b98589b195960921b606082015260ff9190920416151560208201527faf0a21dcba8ecaaa2ac47734f3e34a4dfad90acf9cef0887246fbedec2bf255590608001610d5e565b61141b611f12565b601680546001600160a01b0319166001600160a01b03831690811790915560408051818152600a91810191909152696270614164647265737360b01b606082015260208101919091527fa0595d3994065522f393bcbdd66c48e61cb68322e8bea3001d79b41cfac67f8f90608001610d5e565b600061149960085490565b82106114fc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c7a565b6008828154811061150f5761150f613d11565b90600052602060002001549050919050565b6017805461152e90613bd6565b80601f016020809104026020016040519081016040528092919081815260200182805461155a90613bd6565b80156115a75780601f1061157c576101008083540402835291602001916115a7565b820191906000526020600020905b81548152906001019060200180831161158a57829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b031680610c315760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610c7a565b611617611f12565b601d546012546116279190613cfd565b602055601d5460125461163a9190613d27565b602155565b60006001600160a01b0382166116a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610c7a565b506001600160a01b031660009081526003602052604090205490565b6116cd611f12565b601d81905560408051818152600d918101919091526c6d696e74426c6f636b53697a6560981b60608201526020810182905260008051602061410183398151915290608001610d5e565b61171f611f12565b61172960006123f4565b565b611733611f12565b60118190556040805181815260059181019190915264707269636560d81b60608201526020810182905260008051602061410183398151915290608001610d5e565b601d54601e546117859190613cd0565b82106117ca5760405162461bcd60e51b815260206004820152601460248201527349445f4f55545f4f465f4d494e545f424c4f434b60601b6044820152606401610c7a565b6117e26000805160206141218339815191523361194a565b6117fe5760405162461bcd60e51b8152600401610c7a90613c10565b6000601f54601054601d54601e546118169190613cd0565b6118209190613bb0565b61182a9190613bb0565b9050602054600161183b9190613bc3565b601e5403611856576010546012546118539190613bb0565b90505b611861600182613bb0565b6000848152601b602052604090205561187a8284612446565b6118848284612594565b6010805490600061189483613d3b565b9091555050600e80549060006118a983613d3b565b9091555050604080516001600160a01b0384168152602081018590527f90363c347ac279caf3ee0f1a07c9c17f19f56b1e394697a1d23b056c2c5bb36b910161100a565b6118f5611f12565b61190781670de0b6b3a7640000613cd0565b601181905560405160008051602061410183398151915291610d5e91604080825260059082015264707269636560d81b6060820152602081019190915260800190565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610d7890613bd6565b61198c611f12565b601e819055601d5461199f600183613bb0565b6119a99190613cd0565b601c5550565b6119b7611f12565b47806119f05760405162461bcd60e51b81526020600482015260086024820152674e4f5f46554e445360c01b6044820152606401610c7a565b6000611a04600b546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114611a4e576040519150601f19603f3d011682016040523d82523d6000602084013e611a53565b606091505b5050905080610f775760405162461bcd60e51b81526020600482015260146024820152734641494c45445f53454e44494e475f46554e445360601b6044820152606401610c7a565b611aa3611f12565b60005b81811015610f3257611ae16001848484818110611ac557611ac5613d11565b9050602002016020810190611ada919061378a565b6001612039565b80611aeb81613d3b565b915050611aa6565b601654600160a01b900460ff16611b3f5760405162461bcd60e51b815260206004820152601060248201526f13525395125391d7d11254d05093115160821b6044820152606401610c7a565b60135481601054611b509190613bc3565b1115611b905760405162461bcd60e51b815260206004820152600f60248201526e14d513d417d3525395125391d7d055608a1b6044820152606401610c7a565b80601154611b9e9190613cd0565b3414611bdb5760405162461bcd60e51b815260206004820152600c60248201526b15d493d391d7d05353d5539560a21b6044820152606401610c7a565b611be781336000612601565b611bef612926565b50565b610f77338383612a26565b611c0733836120d7565b611c235760405162461bcd60e51b8152600401610c7a90613c82565b611c2f84848484612af4565b50505050565b611c3d611f12565b60198054906000611c4d83613d3b565b90915550506019805460009081526018602052604080822080546001600160a01b0319166001600160a01b03871617905591548152908120600101829055601a8054839290611c9d908490613bc3565b90915550505050565b611cae611f12565b6017611cbb828483613da2565b507f1140693e0fafb790f2ecee2223ee8bc35ebb7aa6afa489c3af81794ded527b9f8282604051611ced929190613e63565b60405180910390a15050565b6060610c3182612b27565b6000828152600c6020526040902060010154611d1f816122fd565b610f32838361238d565b611d31611f12565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9c9190613e77565b905060008111611dd95760405162461bcd60e51b81526020600482015260086024820152674e4f5f46554e445360c01b6044820152606401610c7a565b816001600160a01b031663a9059cbb611dfa600b546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611e47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f329190613e90565b611e73611f12565b6001600160a01b038116611ed85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c7a565b611bef816123f4565b6000611eec82612c22565b80610c315750506001600160e01b0319166000908152600d602052604090205460ff1690565b600b546001600160a01b031633146117295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7a565b6000818152600260205260409020546001600160a01b0316611bef5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610c7a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612000826115af565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610f32838383612601565b6000828152600260205260409020546001600160a01b03166120bf5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610c7a565b6000828152600a60205260409020610f328282613ead565b6000806120e3836115af565b9050806001600160a01b0316846001600160a01b0316148061212a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061214e5750836001600160a01b031661214384610dfb565b6001600160a01b0316145b949350505050565b826001600160a01b0316612169826115af565b6001600160a01b0316146121cd5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c7a565b6001600160a01b03821661222f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c7a565b61223a838383612c47565b612245600082611fcb565b6001600160a01b038316600090815260036020526040812080546001929061226e908490613bb0565b90915550506001600160a01b038216600090815260036020526040812080546001929061229c908490613bc3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611bef8133612c52565b612311828261194a565b610f77576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612397828261194a565b15610f77576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661249c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c7a565b6000818152600260205260409020546001600160a01b0316156125015760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c7a565b61250d60008383612c47565b6001600160a01b0382166000908152600360205260408120805460019290612536908490613bc3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6016546040516340c10f1960e01b81526001600160a01b038481166004830152602482018490529091169081906340c10f1990604401600060405180830381600087803b1580156125e457600080fd5b505af11580156125f8573d6000803e3d6000fd5b50505050505050565b6016546001600160a01b031661264f5760405162461bcd60e51b815260206004820152601360248201527210941057d05111149154d4d7d393d517d4d155606a1b6044820152606401610c7a565b601254836010546126609190613bc3565b111561269b5760405162461bcd60e51b815260206004820152600a60248201526913525395115117d3d55560b21b6044820152606401610c7a565b60005b83811015611c2f5760006126b0612cb6565b90506126bc8482612446565b6126ce816126c983612e2d565b612044565b601080549060006126de83613d3b565b91905055506126eb612e71565b6126f58482612594565b600083600281111561270957612709613f6d565b0361275657604080516001600160a01b0386168152602081018390527f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed291015b60405180910390a161280a565b600283600281111561276a5761276a613f6d565b036127ae57604080516001600160a01b0386168152602081018390527f90363c347ac279caf3ee0f1a07c9c17f19f56b1e394697a1d23b056c2c5bb36b9101612749565b60018360028111156127c2576127c2613f6d565b0361280a57604080516001600160a01b0386168152602081018390527f7f9c9cb9137926c7f7c3bdbb971b627d14e5f95ded13be068becbd8ce8198361910160405180910390a15b600283600281111561281e5761281e613f6d565b0361283957600e805490600061283383613d3b565b91905055505b600183600281111561284d5761284d613f6d565b0361286857600f805490600061286283613d3b565b91905055505b600083600281111561287c5761287c613f6d565b14801561288c5750601354601054145b15612913576016805460ff60a01b1916908190556040517faf0a21dcba8ecaaa2ac47734f3e34a4dfad90acf9cef0887246fbedec2bf25559161290591600160a01b90910460ff16906040808252600e908201526d1b5a5b9d1a5b99d15b98589b195960921b6060820152901515602082015260800190565b60405180910390a150611c2f565b508061291e81613d3b565b91505061269e565b60195415611729573460015b6019548111610f7757601a5460008281526018602052604081206001015490919061295d9085613cd0565b6129679190613cfd565b60008381526018602052604080822054905192935090916001600160a01b039091169083908381818185875af1925050503d80600081146129c4576040519150601f19603f3d011682016040523d82523d6000602084013e6129c9565b606091505b5050905080612a115760405162461bcd60e51b81526020600482015260146024820152734641494c45445f53454e44494e475f46554e445360601b6044820152606401610c7a565b50508080612a1e90613d3b565b915050612932565b816001600160a01b0316836001600160a01b031603612a875760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c7a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612aff848484612156565b612b0b84848484612f2d565b611c2f5760405162461bcd60e51b8152600401610c7a90613f83565b6060612b3282611f6c565b6000828152600a602052604081208054612b4b90613bd6565b80601f0160208091040260200160405190810160405280929190818152602001828054612b7790613bd6565b8015612bc45780601f10612b9957610100808354040283529160200191612bc4565b820191906000526020600020905b815481529060010190602001808311612ba757829003601f168201915b505050505090506000612bd561302e565b90508051600003612be7575092915050565b815115612c19578082604051602001612c01929190613fd5565b60405160208183030381529060405292505050919050565b61214e8461303d565b60006001600160e01b03198216637965db0b60e01b1480610c315750610c31826130a4565b610f328383836130c9565b612c5c828261194a565b610f7757612c74816001600160a01b03166014613181565b612c7f836020613181565b604051602001612c90929190614004565b60408051601f198184030181529082905262461bcd60e51b8252610c7a916004016137f7565b600080601f54601054601d54601e54612ccf9190613cd0565b612cd99190613bb0565b612ce39190613bb0565b90506020546001612cf49190613bc3565b601e5403612d0f57601054601254612d0c9190613bb0565b90505b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152600090829060a8016040516020818303038152906040528051906020012060001c612d739190613d27565b6000818152601b6020526040812054919250908103612d93575080612da4565b506000818152601b60205260409020545b601b6000612db3600186613bb0565b815260200190815260200160002054600003612de857612dd4600184613bb0565b6000838152601b6020526040902055612e18565b601b6000612df7600186613bb0565b81526020808201929092526040908101600090812054858252601b90935220555b601c54612e259082613bc3565b935050505090565b60606000612e3a8361331d565b9050600060405180604001604052806005815260200164173539b7b760d91b81525090508181604051602001612c01929190613fd5565b601d54601054612e819190613d27565b60000361172957601e8054906000612e9883613d3b565b9190505550601d546001601e54612eaf9190613bb0565b612eb99190613cd0565b601c8190556010546040517f8f86b4c4ee905295dc861ab70988cda84917dc3a395c4bb0b95a594e87218f6392612ef7928252602082015260400190565b60405180910390a160005b601d54811015611bef576000818152601b602052604081205580612f2581613d3b565b915050612f02565b60006001600160a01b0384163b1561302357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f71903390899088908890600401614079565b6020604051808303816000875af1925050508015612fac575060408051601f3d908101601f19168201909252612fa9918101906140b6565b60015b613009573d808015612fda576040519150601f19603f3d011682016040523d82523d6000602084013e612fdf565b606091505b5080516000036130015760405162461bcd60e51b8152600401610c7a90613f83565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061214e565b506001949350505050565b606060178054610d7890613bd6565b606061304882611f6c565b600061305261302e565b90506000815111613072576040518060200160405280600081525061309d565b8061307c84613429565b60405160200161308d929190613fd5565b6040516020818303038152906040525b9392505050565b60006001600160e01b0319821663780e9d6360e01b1480610c315750610c318261352a565b6001600160a01b0383166131245761311f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613147565b816001600160a01b0316836001600160a01b03161461314757613147838261357a565b6001600160a01b03821661315e57610f3281613617565b826001600160a01b0316826001600160a01b031614610f3257610f3282826136c6565b60606000613190836002613cd0565b61319b906002613bc3565b67ffffffffffffffff8111156131b3576131b3613a34565b6040519080825280601f01601f1916602001820160405280156131dd576020820181803683370190505b509050600360fc1b816000815181106131f8576131f8613d11565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061322757613227613d11565b60200101906001600160f81b031916908160001a905350600061324b846002613cd0565b613256906001613bc3565b90505b60018111156132ce576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061328a5761328a613d11565b1a60f81b8282815181106132a0576132a0613d11565b60200101906001600160f81b031916908160001a90535060049490941c936132c7816140d3565b9050613259565b50831561309d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c7a565b6060816000036133445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561336e578061335881613d3b565b91506133679050600a83613cfd565b9150613348565b60008167ffffffffffffffff81111561338957613389613a34565b6040519080825280601f01601f1916602001820160405280156133b3576020820181803683370190505b508593509050815b8315613420576133cc600a85613d27565b6133d7906030613bc3565b60f81b826133e4836140d3565b925082815181106133f7576133f7613d11565b60200101906001600160f81b031916908160001a905350613419600a85613cfd565b93506133bb565b50949350505050565b6060816000036134505750506040805180820190915260018152600360fc1b602082015290565b8160005b811561347a578061346481613d3b565b91506134739050600a83613cfd565b9150613454565b60008167ffffffffffffffff81111561349557613495613a34565b6040519080825280601f01601f1916602001820160405280156134bf576020820181803683370190505b5090505b841561214e576134d4600183613bb0565b91506134e1600a86613d27565b6134ec906030613bc3565b60f81b81838151811061350157613501613d11565b60200101906001600160f81b031916908160001a905350613523600a86613cfd565b94506134c3565b60006001600160e01b031982166380ac58cd60e01b148061355b57506001600160e01b03198216635b5e139f60e01b145b80610c3157506301ffc9a760e01b6001600160e01b0319831614610c31565b600060016135878461163f565b6135919190613bb0565b6000838152600760205260409020549091508082146135e4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061362990600190613bb0565b6000838152600960205260408120546008805493945090928490811061365157613651613d11565b90600052602060002001549050806008838154811061367257613672613d11565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136aa576136aa6140ea565b6001900381819060005260206000200160009055905550505050565b60006136d18361163f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114611bef57600080fd5b60006020828403121561373257600080fd5b813561309d8161370a565b6001600160a01b0381168114611bef57600080fd5b60008060006060848603121561376757600080fd5b8335925060208401356137798161373d565b929592945050506040919091013590565b60006020828403121561379c57600080fd5b813561309d8161373d565b60005b838110156137c25781810151838201526020016137aa565b50506000910152565b600081518084526137e38160208601602086016137a7565b601f01601f19169290920160200192915050565b60208152600061309d60208301846137cb565b60006020828403121561381c57600080fd5b5035919050565b6000806040838503121561383657600080fd5b82356138418161373d565b946020939093013593505050565b6000806040838503121561386257600080fd5b8235915060208301356138748161373d565b809150509250929050565b60008083601f84011261389157600080fd5b50813567ffffffffffffffff8111156138a957600080fd5b6020830191508360208285010111156138c157600080fd5b9250929050565b6000806000604084860312156138dd57600080fd5b83359250602084013567ffffffffffffffff8111156138fb57600080fd5b6139078682870161387f565b9497909650939450505050565b60008060006060848603121561392957600080fd5b83356139348161373d565b925060208401356137798161373d565b6000806040838503121561395757600080fd5b50508035926020909101359150565b8015158114611bef57600080fd5b60006020828403121561398657600080fd5b813561309d81613966565b600080602083850312156139a457600080fd5b823567ffffffffffffffff808211156139bc57600080fd5b818501915085601f8301126139d057600080fd5b8135818111156139df57600080fd5b8660208260051b85010111156139f457600080fd5b60209290920196919550909350505050565b60008060408385031215613a1957600080fd5b8235613a248161373d565b9150602083013561387481613966565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613a6057600080fd5b8435613a6b8161373d565b93506020850135613a7b8161373d565b925060408501359150606085013567ffffffffffffffff80821115613a9f57600080fd5b818701915087601f830112613ab357600080fd5b813581811115613ac557613ac5613a34565b604051601f8201601f19908116603f01168101908382118183101715613aed57613aed613a34565b816040528281528a6020848701011115613b0657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060208385031215613b3d57600080fd5b823567ffffffffffffffff811115613b5457600080fd5b613b608582860161387f565b90969095509350505050565b60008060408385031215613b7f57600080fd5b8235613b8a8161373d565b915060208301356138748161373d565b634e487b7160e01b600052601160045260246000fd5b81810381811115610c3157610c31613b9a565b80820180821115610c3157610c31613b9a565b600181811c90821680613bea57607f821691505b602082108103613c0a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b838152604060208201526000613c79604083018486613c36565b95945050505050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8082028115828204841417610c3157610c31613b9a565b634e487b7160e01b600052601260045260246000fd5b600082613d0c57613d0c613ce7565b500490565b634e487b7160e01b600052603260045260246000fd5b600082613d3657613d36613ce7565b500690565b600060018201613d4d57613d4d613b9a565b5060010190565b601f821115610f3257600081815260208120601f850160051c81016020861015613d7b5750805b601f850160051c820191505b81811015613d9a57828155600101613d87565b505050505050565b67ffffffffffffffff831115613dba57613dba613a34565b613dce83613dc88354613bd6565b83613d54565b6000601f841160018114613e025760008515613dea5750838201355b600019600387901b1c1916600186901b178355613e5c565b600083815260209020601f19861690835b82811015613e335786850135825560209485019460019092019101613e13565b5086821015613e505760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208152600061214e602083018486613c36565b600060208284031215613e8957600080fd5b5051919050565b600060208284031215613ea257600080fd5b815161309d81613966565b815167ffffffffffffffff811115613ec757613ec7613a34565b613edb81613ed58454613bd6565b84613d54565b602080601f831160018114613f105760008415613ef85750858301515b600019600386901b1c1916600185901b178555613d9a565b600085815260208120601f198616915b82811015613f3f57888601518255948401946001909101908401613f20565b5085821015613f5d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052602160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351613fe78184602088016137a7565b835190830190613ffb8183602088016137a7565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161403c8160178501602088016137a7565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161406d8160288401602088016137a7565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140ac908301846137cb565b9695505050505050565b6000602082840312156140c857600080fd5b815161309d8161370a565b6000816140e2576140e2613b9a565b506000190190565b634e487b7160e01b600052603160045260246000fdfe63b0d00ca7be95e8ed90417045f614395b95949f5e8b9a472a7997480acbdb62a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122027edb58f33b0a3b2ae04aba8663f7547a8e0a7560544b78408a6c1dad68f96c164736f6c63430008110033

Loading