ETH Price: $3,398.48 (-1.44%)
Gas: 2 Gwei

Token

Flipper Zone Access Pass 2022 (FLIPPER22)
 

Overview

Max Total Supply

218 FLIPPER22

Holders

167

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
specialagentk.eth
0xFCb85D4139123B1eC6746d1C487A2201045b9F72
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Flipper

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Flipper.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol";
import "./IERC2981.sol";

contract OpenseaOwnableDelegateProxy {}

contract OpenseaProxyRegistry {
  mapping(address => OpenseaOwnableDelegateProxy) public proxies;
}

/**
 * @title Flipper 2022
 * Flipper - 2022 Access Pass
 * Owning this token will give you access to flipper.zone on 2022.
 */
contract Flipper is ERC1155Pausable, IERC2981, Ownable {
  string public constant name = "Flipper Zone Access Pass 2022";
  string public constant symbol = "FLIPPER22";
  uint256 public constant ACCESS_PASS_TOKEN_ID = 0;
  uint256 private immutable alphaAccessMembershipTokenId;
  uint256 private immutable alphaOGAccessMembershipTokenId;
  uint256 internal _mintCounter;
  IERC20 private immutable Bank;
  IERC20 private immutable BankUniswapV2Pair;
  IERC20 private immutable BankBalancerPool;
  IERC1155 private immutable OpenseaSharedStorefront;
  OpenseaProxyRegistry private immutable openseaProxyRegistry;
  bool public public_sale_active = false;
  bool public bankless_presale_active = false;
  bool public general_presale_active = false;
  string public contractURI;
  address private immutable royaltyFeeRecipient;

  constructor(
    string memory _tokenURI,
    string memory _contractURI,
    address _bankAddress,
    address _bankUniswapV2PairAddress,
    address _bankBalancerPoolAddress,
    address _openseaSharedStorefrontAddress,
    address _openseaProxyRegistryAddress,
    address _royaltyFeeRecipient,
    uint256 _alphaAccessMembershipTokenId,
    uint256 _alphaOGAccessMembershipTokenId
  ) ERC1155(_tokenURI) {
    contractURI = _contractURI;
    Bank = IERC20(_bankAddress);
    BankUniswapV2Pair = IERC20(_bankUniswapV2PairAddress);
    BankBalancerPool = IERC20(_bankBalancerPoolAddress);
    OpenseaSharedStorefront = IERC1155(_openseaSharedStorefrontAddress);
    alphaAccessMembershipTokenId = _alphaAccessMembershipTokenId;
    alphaOGAccessMembershipTokenId = _alphaOGAccessMembershipTokenId;
    openseaProxyRegistry = OpenseaProxyRegistry(_openseaProxyRegistryAddress);
    royaltyFeeRecipient = _royaltyFeeRecipient;
  }

  struct WhitelistStatus {
    bool isExplicitlyWhitelisted;
    bool isWhitelistedByBankBalance;
    bool isWhitelistedByAlphaAccessMembership;
  }

  struct MintStatus {
    uint256 totalSupply;
    uint256 currentPrice;
    bool isBanklessPresaleActive;
    bool isGeneralPresaleActive;
    bool isPublicSaleActive;
    bool isPaused;
  }

  modifier eoaOnly() {
    require(msg.sender == tx.origin, "Can only be called by EOAs");
    _;
  }

  function setTokenURI(string memory _tokenURI) public onlyOwner {
    _setURI(_tokenURI);
  }

  function setContractURI(string memory _contractURI) public onlyOwner {
    contractURI = _contractURI;
  }

  function mint() external payable whenNotPaused eoaOnly {
    require(canMint(msg.sender), "Sale is not active or wallet is not whitelisted");
    require(_mintCounter < 500, "All 500 passes were already minted");
    if (bankless_presale_active && !public_sale_active && !general_presale_active) {
      require(_mintCounter < 300, "All 300 Bankless presale passes were already minted");
    }
    require(msg.value == currentPrice(), "Amount of ether sent does not match current price");
    unchecked {
      _mintCounter += 1;
    }
    _mint(msg.sender, ACCESS_PASS_TOKEN_ID, 1, "");
  }

  function totalSupply() public view returns (uint256) {
    return _mintCounter;
  }

  function canMint(address _toCheck) public view returns (bool) {
    if (public_sale_active) {
      return true;
    }

    if (bankless_presale_active && isWhitelistedByBankBalance(_toCheck)) {
      return true;
    }

    if (
      general_presale_active && (isWhitelistedByAlphaAccessMembership(_toCheck) || isExplicitlyWhitelisted(_toCheck))
    ) {
      return true;
    }

    return false;
  }

  /// @notice Only the discord geveaway winners were explicitly whitelisted
  function isExplicitlyWhitelisted(address _toCheck) public pure returns (bool) {
    if (_toCheck == 0x026c2760ba6852cc188F7Be6D62ee1d663Ec9bdb) {
      return true;
    }
    if (_toCheck == 0x1A589c87d396254aE9fc07A5defB920B1039bd36) {
      return true;
    }
    if (_toCheck == 0xe766b33876CdBb918F06f5f4380deEE435EA8596) {
      return true;
    }
    if (_toCheck == 0x3B666dbC539d25DFF4ec62357a3C13258528DfBe) {
      return true;
    }
    if (_toCheck == 0x051D85190dBacd14D705426C86Ca440B004deEb4) {
      return true;
    }
    if (_toCheck == 0xC6F08690C67D20AA2D9E952e57478fE6606c85fe) {
      return true;
    }
    if (_toCheck == 0x46B866329b762a2e1791D1cb4E0407D3E2B98983) {
      return true;
    }
    if (_toCheck == 0x0D289031af6b6299bC6B9174F3A1583079fd6e56) {
      return true;
    }
    if (_toCheck == 0x8DcD8b9E43fbCFC807BA0a52D48937862454c03d) {
      return true;
    }
    if (_toCheck == 0x575A979789520C5B6E70feC4De4a355f8F6956C5) {
      return true;
    }
    if (_toCheck == 0x870f7aF906DdEf083cf257c0D252825773b06bD9) {
      return true;
    }
    if (_toCheck == 0xece358648A41801577f70C80e4cd8654f9726066) {
      return true;
    }
    if (_toCheck == 0xd8d128ad7d2c3Ac50A009AA453781D466D76adc3) {
      return true;
    }
    if (_toCheck == 0xa24b43113CD757223517e53A6Fe8A0B5462873eA) {
      return true;
    }
    if (_toCheck == 0x1bca9771DcD5709B405804d6d0c314b49370C1A3) {
      return true;
    }
    if (_toCheck == 0x5B5d89Fa961B503EcdB1C7dBC30F88C566f3865A) {
      return true;
    }
    if (_toCheck == 0x4f4861a604c1b6DbDcd693a82F8e3A581f2B62E7) {
      return true;
    }
    if (_toCheck == 0x7AF4f4d7B0028851C6Deebe95cf296B1A4C491e9) {
      return true;
    }
    if (_toCheck == 0x4cD38718522ef9f7d1ebFd1A7b642a436241C458) {
      return true;
    }
    if (_toCheck == 0x3E69ea72edc970f99676d8150698681CA7673bb2) {
      return true;
    }
    if (_toCheck == 0xbd721a0a38F3898Cfdf66c76B27fBa160b5da204) {
      return true;
    }
    if (_toCheck == 0xe0A8A4D427Eef7Bb1BA257323e2Fcf42D5C558Cf) {
      return true;
    }
    if (_toCheck == 0x9474b2d7278414cb33F624f69800Db96Ab51Eb8D) {
      return true;
    }
    if (_toCheck == 0xC9eB1555B2810D5731c4Ef3eAf089894f81226Cb) {
      return true;
    }
    if (_toCheck == 0x7373CF1e3527274bBdA97095F2D50cf2c6778c5a) {
      return true;
    }
    if (_toCheck == 0x9B9B0811BB1277bc7881dA97085203b7DDfee85E) {
      return true;
    }
    if (_toCheck == 0x6C3F672D8beEFC1d052D43326adee4C40580dFc5) {
      return true;
    }
    if (_toCheck == 0x76d9957E9F91E330F66ac4C0ed23A470dc04336F) {
      return true;
    }
    if (_toCheck == 0x91a9B4DA163a1F248C92DBd262aD3e95e042C87E) {
      return true;
    }
    if (_toCheck == 0x91BEF3247BEEf67F068d757e97d527caE3798Ee6) {
      return true;
    }
    if (_toCheck == 0x20bf082A4040649Ab641Fd3B470aD00a3cE1a935) {
      return true;
    }
    if (_toCheck == 0xbEd4ce28E0FF95204A9cc0A4FF10Ff201F656A2E) {
      return true;
    }
    if (_toCheck == 0x171C1CF42C8e11589381f5E4846FFE4E2c7f6D95) {
      return true;
    }
    if (_toCheck == 0xf5eabB96508760a10d72c6beB995B8297B48DED4) {
      return true;
    }
    if (_toCheck == 0x2d50aE0ad5b79c861B8caD5982bDcDF66376aC4b) {
      return true;
    }
    if (_toCheck == 0xfF5244420A64CD43B50AB9aA9f240a618f3d3eCa) {
      return true;
    }
    if (_toCheck == 0xBE6F5437C3C73FA238628Fb5dA61A1A07ea0E8f5) {
      return true;
    }
    if (_toCheck == 0xE7e0657036d77a87Dd9ab39b509e1500bdDf7B1A) {
      return true;
    }
    if (_toCheck == 0xaf2536Ca649f40FE69737BB37Faf20dfA1616dDc) {
      return true;
    }
    if (_toCheck == 0x4c08AcbAc5bd7269D0236f40F82CA14C55f82fD7) {
      return true;
    }
    if (_toCheck == 0xbEd4ce28E0FF95204A9cc0A4FF10Ff201F656A2E) {
      return true;
    }
    if (_toCheck == 0x44b246Aa370c6eb3df78943Ccb586c99067960A0) {
      return true;
    }
    if (_toCheck == 0x7d13B39Ec86E1669f69Ea49dCe1299eCDa589F22) {
      return true;
    }
    if (_toCheck == 0xf5eabB96508760a10d72c6beB995B8297B48DED4) {
      return true;
    }
    if (_toCheck == 0x17186C6062D49e8377e480e55560167A18baE3CB) {
      return true;
    }
    if (_toCheck == 0x88DE3dfB4b5D2990d014c525A43CbD38864c9d50) {
      return true;
    }
    if (_toCheck == 0x4D45C560439C3E3eDF0c8abC93eC9E041F1101f3) {
      return true;
    }
    return false;
  }

  function isWhitelistedByBankBalance(address _toCheck) public view returns (bool) {
    if (Bank.balanceOf(_toCheck) >= 35_000e18) {
      return true;
    }

    if (BankUniswapV2Pair.balanceOf(_toCheck) >= 250e18) {
      return true;
    }

    if (BankBalancerPool.balanceOf(_toCheck) >= 4_200e18) {
      return true;
    }

    return false;
  }

  function isWhitelistedByAlphaAccessMembership(address _toCheck) public view returns (bool) {
    if (OpenseaSharedStorefront.balanceOf(_toCheck, alphaAccessMembershipTokenId) > 0) {
      return true;
    }

    if (OpenseaSharedStorefront.balanceOf(_toCheck, alphaOGAccessMembershipTokenId) > 0) {
      return true;
    }

    return false;
  }

  function currentPrice() public view returns (uint256) {
    return 0.1 ether * (1 + (_mintCounter / 100));
  }

  function activatePublicSale() public onlyOwner {
    public_sale_active = true;
  }

  function deactivatePublicSale() public onlyOwner {
    public_sale_active = false;
  }

  function activateBanklessPresale() public onlyOwner {
    bankless_presale_active = true;
  }

  function deactivateBanklessPresale() public onlyOwner {
    bankless_presale_active = false;
  }

  function activateGeneralPresale() public onlyOwner {
    general_presale_active = true;
  }

  function deactivateGeneralPresale() public onlyOwner {
    general_presale_active = false;
  }

  function withdraw() public onlyOwner {
    uint256 balance = address(this).balance;
    require(balance > 0, "Balance is 0");
    payable(msg.sender).transfer(balance);
  }

  function pause() public onlyOwner whenNotPaused {
    _pause();
  }

  function unpause() public onlyOwner whenPaused {
    _unpause();
  }

  // Implements ERC-2981
  function royaltyInfo(uint256, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
    return (royaltyFeeRecipient, (_salePrice * 10) / 100);
  }

  // Register support for ERC-2981
  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, IERC165) returns (bool) {
    return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
  }

  // Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-free listings.
  function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) {
    if (address(openseaProxyRegistry.proxies(_owner)) == _operator) {
      return true;
    }

    return ERC1155.isApprovedForAll(_owner, _operator);
  }

  function mintStatus() public view returns (MintStatus memory) {
    return
      MintStatus({
        totalSupply: totalSupply(),
        currentPrice: currentPrice(),
        isBanklessPresaleActive: bankless_presale_active,
        isGeneralPresaleActive: general_presale_active,
        isPublicSaleActive: public_sale_active,
        isPaused: paused()
      });
  }

  function whitelistStatus(address _toCheck) public view returns (WhitelistStatus memory) {
    return
      WhitelistStatus({
        isExplicitlyWhitelisted: isExplicitlyWhitelisted(_toCheck),
        isWhitelistedByBankBalance: isWhitelistedByBankBalance(_toCheck),
        isWhitelistedByAlphaAccessMembership: isWhitelistedByAlphaAccessMembership(_toCheck)
      });
  }
}

File 2 of 15 : IERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts/interfaces/IERC165.sol";

///
/// @dev Interface for the NFT Royalty Standard
///
interface IERC2981 is IERC165 {
  /// ERC165 bytes to add to interface array - set in parent contract
  /// implementing this standard
  ///
  /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
  /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
  /// _registerInterface(_INTERFACE_ID_ERC2981);

  /// @notice Called with the sale price to determine how much royalty
  //          is owed and to whom.
  /// @param _tokenId - the NFT asset queried for royalty information
  /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
  /// @return receiver - address of who should be sent the royalty payment
  /// @return royaltyAmount - the royalty payment amount for _salePrice
  function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
    external
    view
    returns (address receiver, uint256 royaltyAmount);
}

File 3 of 15 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

File 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 6 of 15 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 7 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 8 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

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

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

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

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

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

File 9 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 10 of 15 : 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 11 of 15 : 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 12 of 15 : 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 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 15 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"address","name":"_bankAddress","type":"address"},{"internalType":"address","name":"_bankUniswapV2PairAddress","type":"address"},{"internalType":"address","name":"_bankBalancerPoolAddress","type":"address"},{"internalType":"address","name":"_openseaSharedStorefrontAddress","type":"address"},{"internalType":"address","name":"_openseaProxyRegistryAddress","type":"address"},{"internalType":"address","name":"_royaltyFeeRecipient","type":"address"},{"internalType":"uint256","name":"_alphaAccessMembershipTokenId","type":"uint256"},{"internalType":"uint256","name":"_alphaOGAccessMembershipTokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ACCESS_PASS_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateBanklessPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activateGeneralPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activatePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bankless_presale_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toCheck","type":"address"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivateBanklessPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deactivateGeneralPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deactivatePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"general_presale_active","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":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toCheck","type":"address"}],"name":"isExplicitlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_toCheck","type":"address"}],"name":"isWhitelistedByAlphaAccessMembership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toCheck","type":"address"}],"name":"isWhitelistedByBankBalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"components":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"currentPrice","type":"uint256"},{"internalType":"bool","name":"isBanklessPresaleActive","type":"bool"},{"internalType":"bool","name":"isGeneralPresaleActive","type":"bool"},{"internalType":"bool","name":"isPublicSaleActive","type":"bool"},{"internalType":"bool","name":"isPaused","type":"bool"}],"internalType":"struct Flipper.MintStatus","name":"","type":"tuple"}],"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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"public_sale_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toCheck","type":"address"}],"name":"whitelistStatus","outputs":[{"components":[{"internalType":"bool","name":"isExplicitlyWhitelisted","type":"bool"},{"internalType":"bool","name":"isWhitelistedByBankBalance","type":"bool"},{"internalType":"bool","name":"isWhitelistedByAlphaAccessMembership","type":"bool"}],"internalType":"struct Flipper.WhitelistStatus","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101806040526005805462ffffff191690553480156200001e57600080fd5b5060405162003965380380620039658339810160408190526200004191620002be565b896200004d81620000bb565b506003805460ff191690556200006333620000d4565b8851620000789060069060208c01906200012e565b506001600160a01b0397881660c05295871660e052938616610100529185166101205260809290925260a092909252821661014052166101605250620003ea9050565b8051620000d09060029060208401906200012e565b5050565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013c90620003ad565b90600052602060002090601f016020900481019282620001605760008555620001ab565b82601f106200017b57805160ff1916838001178555620001ab565b82800160010185558215620001ab579182015b82811115620001ab5782518255916020019190600101906200018e565b50620001b9929150620001bd565b5090565b5b80821115620001b95760008155600101620001be565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001fc57600080fd5b81516001600160401b0380821115620002195762000219620001d4565b604051601f8301601f19908116603f01168101908282118183101715620002445762000244620001d4565b816040528381526020925086838588010111156200026157600080fd5b600091505b8382101562000285578582018301518183018401529082019062000266565b83821115620002975760008385830101525b9695505050505050565b80516001600160a01b0381168114620002b957600080fd5b919050565b6000806000806000806000806000806101408b8d031215620002df57600080fd5b8a516001600160401b0380821115620002f757600080fd5b620003058e838f01620001ea565b9b5060208d01519150808211156200031c57600080fd5b506200032b8d828e01620001ea565b9950506200033c60408c01620002a1565b97506200034c60608c01620002a1565b96506200035c60808c01620002a1565b95506200036c60a08c01620002a1565b94506200037c60c08c01620002a1565b93506200038c60e08c01620002a1565b92506101008b015191506101208b015190509295989b9194979a5092959850565b600181811c90821680620003c257607f821691505b60208210811415620003e457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051610140516101605161350e620004576000396000610bee0152600061173e01526000818161142601526114f401526000610dc101526000610d0e01526000610c5d015260006114cb015260006113fb015261350e6000f3fe60806040526004361061023a5760003560e01c80638456cb591161012e578063c2ba4744116100ab578063e8a3d4851161006f578063e8a3d4851461070c578063e985e9c514610721578063f242432a14610741578063f2fde38b14610761578063faccd4271461078157600080fd5b8063c2ba47441461064a578063ccaf1c4b1461066a578063e0df5b6f146106b2578063e48a9bde146106d2578063e6c29125146106ec57600080fd5b80639d1b464a116100f25780639d1b464a146105775780639da3f8fd1461058c5780639fb54768146105f5578063a22cb4651461060a578063af4d0e731461062a57600080fd5b80638456cb59146104c257806385e23071146104d75780638da5cb5b146104ec578063938e3d7b1461052257806395d89b411461054257600080fd5b80632eb2c2d6116101bc5780633f4ba83a116101805780633f4ba83a1461043e5780634e1273f4146104535780635c975abb1461048057806366a62ac914610498578063715018a6146104ad57600080fd5b80632eb2c2d6146103c0578063355499a8146103e057806337d1679b146103f5578063389f54d1146104145780633ccfd60b1461042957600080fd5b806311f2e7c31161020357806311f2e7c31461032f5780631249c58b1461034457806318160ddd1461034c5780632a55205a146103615780632b7a5ab6146103a057600080fd5b8062fdd58e1461023f57806301ffc9a71461027257806306fdde03146102a25780630e89341c146102f857806311eb304714610318575b600080fd5b34801561024b57600080fd5b5061025f61025a366004612ba1565b6107a1565b6040519081526020015b60405180910390f35b34801561027e57600080fd5b5061029261028d366004612be3565b61083b565b6040519015158152602001610269565b3480156102ae57600080fd5b506102eb6040518060400160405280601d81526020017f466c6970706572205a6f6e65204163636573732050617373203230323200000081525081565b6040516102699190612c4d565b34801561030457600080fd5b506102eb610313366004612c60565b610860565b34801561032457600080fd5b5061032d6108f4565b005b34801561033b57600080fd5b5061032d610933565b61032d610970565b34801561035857600080fd5b5060045461025f565b34801561036d57600080fd5b5061038161037c366004612c79565b610be9565b604080516001600160a01b039093168352602083019190915201610269565b3480156103ac57600080fd5b506102926103bb366004612c9b565b610c2f565b3480156103cc57600080fd5b5061032d6103db366004612e0e565b610e52565b3480156103ec57600080fd5b5061032d610ee9565b34801561040157600080fd5b5060055461029290610100900460ff1681565b34801561042057600080fd5b5061032d610f27565b34801561043557600080fd5b5061032d610f6a565b34801561044a57600080fd5b5061032d611008565b34801561045f57600080fd5b5061047361046e366004612ebc565b611089565b6040516102699190612fc4565b34801561048c57600080fd5b5060035460ff16610292565b3480156104a457600080fd5b5061032d6111b3565b3480156104b957600080fd5b5061032d6111ef565b3480156104ce57600080fd5b5061032d611229565b3480156104e357600080fd5b5061025f600081565b3480156104f857600080fd5b5060035461010090046001600160a01b03166040516001600160a01b039091168152602001610269565b34801561052e57600080fd5b5061032d61053d366004612fd7565b611284565b34801561054e57600080fd5b506102eb60405180604001604052806009815260200168232624a82822a9191960b91b81525081565b34801561058357600080fd5b5061025f6112c7565b34801561059857600080fd5b506105a16112fa565b6040516102699190600060c082019050825182526020830151602083015260408301511515604083015260608301511515606083015260808301511515608083015260a0830151151560a083015292915050565b34801561060157600080fd5b5061032d611391565b34801561061657600080fd5b5061032d610625366004613028565b6113d2565b34801561063657600080fd5b50610292610645366004612c9b565b6113dd565b34801561065657600080fd5b50610292610665366004612c9b565b61157d565b34801561067657600080fd5b5061068a610685366004612c9b565b6115f3565b6040805182511515815260208084015115159082015291810151151590820152606001610269565b3480156106be57600080fd5b5061032d6106cd366004612fd7565b61164e565b3480156106de57600080fd5b506005546102929060ff1681565b3480156106f857600080fd5b506005546102929062010000900460ff1681565b34801561071857600080fd5b506102eb61168a565b34801561072d57600080fd5b5061029261073c366004613066565b611718565b34801561074d57600080fd5b5061032d61075c366004613094565b611800565b34801561076d57600080fd5b5061032d61077c366004612c9b565b611887565b34801561078d57600080fd5b5061029261079c366004612c9b565b611925565b60006001600160a01b0383166108125760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b0319821663152a902d60e11b148061083557506108358261216a565b60606002805461086f906130fd565b80601f016020809104026020016040519081016040528092919081815260200182805461089b906130fd565b80156108e85780601f106108bd576101008083540402835291602001916108e8565b820191906000526020600020905b8154815290600101906020018083116108cb57829003601f168201915b50505050509050919050565b6003546001600160a01b036101009091041633146109245760405162461bcd60e51b815260040161080990613138565b6005805460ff19166001179055565b6003546001600160a01b036101009091041633146109635760405162461bcd60e51b815260040161080990613138565b6005805461ff0019169055565b60035460ff16156109935760405162461bcd60e51b81526004016108099061316d565b3332146109e25760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c792062652063616c6c656420627920454f41730000000000006044820152606401610809565b6109eb3361157d565b610a4f5760405162461bcd60e51b815260206004820152602f60248201527f53616c65206973206e6f7420616374697665206f722077616c6c65742069732060448201526e1b9bdd081dda1a5d195b1a5cdd1959608a1b6064820152608401610809565b6101f460045410610aad5760405162461bcd60e51b815260206004820152602260248201527f416c6c2035303020706173736573207765726520616c7265616479206d696e74604482015261195960f21b6064820152608401610809565b600554610100900460ff168015610ac7575060055460ff16155b8015610adc575060055462010000900460ff16155b15610b505761012c60045410610b505760405162461bcd60e51b815260206004820152603360248201527f416c6c203330302042616e6b6c6573732070726573616c6520706173736573206044820152721dd95c9948185b1c9958591e481b5a5b9d1959606a1b6064820152608401610809565b610b586112c7565b3414610bc05760405162461bcd60e51b815260206004820152603160248201527f416d6f756e74206f662065746865722073656e7420646f6573206e6f74206d616044820152707463682063757272656e7420707269636560781b6064820152608401610809565b60048054600190810190915560408051602081019091526000808252610be79233926121ba565b565b6000807f00000000000000000000000000000000000000000000000000000000000000006064610c1a85600a6131ad565b610c2491906131cc565b915091509250929050565b6040516370a0823160e01b81526001600160a01b0382811660048301526000916907695a92c20d6fe00000917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610c9f57600080fd5b505afa158015610cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd791906131ee565b10610ce457506001919050565b6040516370a0823160e01b81526001600160a01b038381166004830152680d8d726b7177a80000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b158015610d5257600080fd5b505afa158015610d66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8a91906131ee565b10610d9757506001919050565b6040516370a0823160e01b81526001600160a01b03838116600483015268e3aeb5737240a00000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b158015610e0557600080fd5b505afa158015610e19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3d91906131ee565b10610e4a57506001919050565b506000919050565b6001600160a01b038516331480610e6e5750610e6e8533611718565b610ed55760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610809565b610ee285858585856122ca565b5050505050565b6003546001600160a01b03610100909104163314610f195760405162461bcd60e51b815260040161080990613138565b6005805462ff000019169055565b6003546001600160a01b03610100909104163314610f575760405162461bcd60e51b815260040161080990613138565b6005805462ff0000191662010000179055565b6003546001600160a01b03610100909104163314610f9a5760405162461bcd60e51b815260040161080990613138565b4780610fd75760405162461bcd60e51b815260206004820152600c60248201526b042616c616e636520697320360a41b6044820152606401610809565b604051339082156108fc029083906000818181858888f19350505050158015611004573d6000803e3d6000fd5b5050565b6003546001600160a01b036101009091041633146110385760405162461bcd60e51b815260040161080990613138565b60035460ff166110815760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610809565b610be76124b5565b606081518351146110ee5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610809565b6000835167ffffffffffffffff81111561110a5761110a612cb8565b604051908082528060200260200182016040528015611133578160200160208202803683370190505b50905060005b84518110156111ab5761117e85828151811061115757611157613207565b602002602001015185838151811061117157611171613207565b60200260200101516107a1565b82828151811061119057611190613207565b60209081029190910101526111a48161321d565b9050611139565b509392505050565b6003546001600160a01b036101009091041633146111e35760405162461bcd60e51b815260040161080990613138565b6005805460ff19169055565b6003546001600160a01b0361010090910416331461121f5760405162461bcd60e51b815260040161080990613138565b610be76000612548565b6003546001600160a01b036101009091041633146112595760405162461bcd60e51b815260040161080990613138565b60035460ff161561127c5760405162461bcd60e51b81526004016108099061316d565b610be76125a2565b6003546001600160a01b036101009091041633146112b45760405162461bcd60e51b815260040161080990613138565b8051611004906006906020840190612af3565b600060646004546112d891906131cc565b6112e3906001613238565b6112f59067016345785d8a00006131ad565b905090565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526040518060c0016040528061134060045490565b815260200161134d6112c7565b815260055460ff6101008204811615156020840152620100008204811615156040840152161515606082015260800161138860035460ff1690565b15159052919050565b6003546001600160a01b036101009091041633146113c15760405162461bcd60e51b815260040161080990613138565b6005805461ff001916610100179055565b6110043383836125fa565b604051627eeac760e11b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000602483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169062fdd58e9060440160206040518083038186803b15801561146757600080fd5b505afa15801561147b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149f91906131ee565b11156114ad57506001919050565b604051627eeac760e11b81526001600160a01b0383811660048301527f000000000000000000000000000000000000000000000000000000000000000060248301526000917f00000000000000000000000000000000000000000000000000000000000000009091169062fdd58e9060440160206040518083038186803b15801561153757600080fd5b505afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f91906131ee565b1115610e4a57506001919050565b60055460009060ff161561159357506001919050565b600554610100900460ff1680156115ae57506115ae82610c2f565b156115bb57506001919050565b60055462010000900460ff1680156115e657506115d7826113dd565b806115e657506115e682611925565b15610e4a57506001919050565b6040805160608101825260008082526020820181905291810191909152604051806060016040528061162484611925565b1515815260200161163484610c2f565b15158152602001611644846113dd565b1515905292915050565b6003546001600160a01b0361010090910416331461167e5760405162461bcd60e51b815260040161080990613138565b611687816126db565b50565b60068054611697906130fd565b80601f01602080910402602001604051908101604052809291908181526020018280546116c3906130fd565b80156117105780601f106116e557610100808354040283529160200191611710565b820191906000526020600020905b8154815290600101906020018083116116f357829003601f168201915b505050505081565b60405163c455279160e01b81526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c45527919060240160206040518083038186803b15801561178057600080fd5b505afa158015611794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b89190613250565b6001600160a01b031614156117cf57506001610835565b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6001600160a01b03851633148061181c575061181c8533611718565b61187a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610809565b610ee285858585856126ee565b6003546001600160a01b036101009091041633146118b75760405162461bcd60e51b815260040161080990613138565b6001600160a01b03811661191c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610809565b61168781612548565b600073026c2760ba6852cc188f7be6d62ee1d663ec9bdb6001600160a01b038316141561195457506001919050565b731a589c87d396254ae9fc07a5defb920b1039bd366001600160a01b038316141561198157506001919050565b73e766b33876cdbb918f06f5f4380deee435ea85966001600160a01b03831614156119ae57506001919050565b733b666dbc539d25dff4ec62357a3c13258528dfbe6001600160a01b03831614156119db57506001919050565b73051d85190dbacd14d705426c86ca440b004deeb46001600160a01b0383161415611a0857506001919050565b73c6f08690c67d20aa2d9e952e57478fe6606c85fe6001600160a01b0383161415611a3557506001919050565b7346b866329b762a2e1791d1cb4e0407d3e2b989836001600160a01b0383161415611a6257506001919050565b730d289031af6b6299bc6b9174f3a1583079fd6e566001600160a01b0383161415611a8f57506001919050565b738dcd8b9e43fbcfc807ba0a52d48937862454c03d6001600160a01b0383161415611abc57506001919050565b73575a979789520c5b6e70fec4de4a355f8f6956c56001600160a01b0383161415611ae957506001919050565b73870f7af906ddef083cf257c0d252825773b06bd96001600160a01b0383161415611b1657506001919050565b73ece358648a41801577f70c80e4cd8654f97260666001600160a01b0383161415611b4357506001919050565b73d8d128ad7d2c3ac50a009aa453781d466d76adc36001600160a01b0383161415611b7057506001919050565b73a24b43113cd757223517e53a6fe8a0b5462873ea6001600160a01b0383161415611b9d57506001919050565b731bca9771dcd5709b405804d6d0c314b49370c1a36001600160a01b0383161415611bca57506001919050565b735b5d89fa961b503ecdb1c7dbc30f88c566f3865a6001600160a01b0383161415611bf757506001919050565b734f4861a604c1b6dbdcd693a82f8e3a581f2b62e76001600160a01b0383161415611c2457506001919050565b737af4f4d7b0028851c6deebe95cf296b1a4c491e96001600160a01b0383161415611c5157506001919050565b734cd38718522ef9f7d1ebfd1a7b642a436241c4586001600160a01b0383161415611c7e57506001919050565b733e69ea72edc970f99676d8150698681ca7673bb26001600160a01b0383161415611cab57506001919050565b73bd721a0a38f3898cfdf66c76b27fba160b5da2046001600160a01b0383161415611cd857506001919050565b73e0a8a4d427eef7bb1ba257323e2fcf42d5c558cf6001600160a01b0383161415611d0557506001919050565b739474b2d7278414cb33f624f69800db96ab51eb8d6001600160a01b0383161415611d3257506001919050565b73c9eb1555b2810d5731c4ef3eaf089894f81226cb6001600160a01b0383161415611d5f57506001919050565b737373cf1e3527274bbda97095f2d50cf2c6778c5a6001600160a01b0383161415611d8c57506001919050565b739b9b0811bb1277bc7881da97085203b7ddfee85e6001600160a01b0383161415611db957506001919050565b736c3f672d8beefc1d052d43326adee4c40580dfc56001600160a01b0383161415611de657506001919050565b7376d9957e9f91e330f66ac4c0ed23a470dc04336f6001600160a01b0383161415611e1357506001919050565b7391a9b4da163a1f248c92dbd262ad3e95e042c87e6001600160a01b0383161415611e4057506001919050565b7391bef3247beef67f068d757e97d527cae3798ee66001600160a01b0383161415611e6d57506001919050565b7320bf082a4040649ab641fd3b470ad00a3ce1a9356001600160a01b0383161415611e9a57506001919050565b73bed4ce28e0ff95204a9cc0a4ff10ff201f656a2e6001600160a01b0383161415611ec757506001919050565b73171c1cf42c8e11589381f5e4846ffe4e2c7f6d956001600160a01b0383161415611ef457506001919050565b73f5eabb96508760a10d72c6beb995b8297b48ded46001600160a01b0383161415611f2157506001919050565b732d50ae0ad5b79c861b8cad5982bdcdf66376ac4b6001600160a01b0383161415611f4e57506001919050565b73ff5244420a64cd43b50ab9aa9f240a618f3d3eca6001600160a01b0383161415611f7b57506001919050565b73be6f5437c3c73fa238628fb5da61a1a07ea0e8f56001600160a01b0383161415611fa857506001919050565b73e7e0657036d77a87dd9ab39b509e1500bddf7b1a6001600160a01b0383161415611fd557506001919050565b73af2536ca649f40fe69737bb37faf20dfa1616ddc6001600160a01b038316141561200257506001919050565b734c08acbac5bd7269d0236f40f82ca14c55f82fd76001600160a01b038316141561202f57506001919050565b73bed4ce28e0ff95204a9cc0a4ff10ff201f656a2e6001600160a01b038316141561205c57506001919050565b7344b246aa370c6eb3df78943ccb586c99067960a06001600160a01b038316141561208957506001919050565b737d13b39ec86e1669f69ea49dce1299ecda589f226001600160a01b03831614156120b657506001919050565b73f5eabb96508760a10d72c6beb995b8297b48ded46001600160a01b03831614156120e357506001919050565b7317186c6062d49e8377e480e55560167a18bae3cb6001600160a01b038316141561211057506001919050565b7388de3dfb4b5d2990d014c525a43cbd38864c9d506001600160a01b038316141561213d57506001919050565b734d45c560439c3e3edf0c8abc93ec9e041f1101f36001600160a01b0383161415610e4a57506001919050565b60006001600160e01b03198216636cdb3d1360e11b148061219b57506001600160e01b031982166303a24d0760e21b145b8061083557506301ffc9a760e01b6001600160e01b0319831614610835565b6001600160a01b03841661221a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610809565b3361223a8160008761222b8861280b565b6122348861280b565b87612856565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061226a908490613238565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ee2816000878787876128be565b815183511461232c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610809565b6001600160a01b0384166123525760405162461bcd60e51b81526004016108099061326d565b33612361818787878787612856565b60005b845181101561244757600085828151811061238157612381613207565b60200260200101519050600085838151811061239f5761239f613207565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156123ef5760405162461bcd60e51b8152600401610809906132b2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061242c908490613238565b92505081905550505050806124409061321d565b9050612364565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124979291906132fc565b60405180910390a46124ad818787878787612a29565b505050505050565b60035460ff166124fe5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610809565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff16156125c55760405162461bcd60e51b81526004016108099061316d565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861252b3390565b816001600160a01b0316836001600160a01b0316141561266e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610809565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b8051611004906002906020840190612af3565b6001600160a01b0384166127145760405162461bcd60e51b81526004016108099061326d565b3361272481878761222b8861280b565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156127655760405162461bcd60e51b8152600401610809906132b2565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906127a2908490613238565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46128028288888888886128be565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061284557612845613207565b602090810291909101015292915050565b60035460ff16156124ad5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610809565b6001600160a01b0384163b156124ad5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612902908990899088908890889060040161332a565b602060405180830381600087803b15801561291c57600080fd5b505af192505050801561294c575060408051601f3d908101601f191682019092526129499181019061336f565b60015b6129f95761295861338c565b806308c379a01415612992575061296d6133a8565b806129785750612994565b8060405162461bcd60e51b81526004016108099190612c4d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610809565b6001600160e01b0319811663f23a6e6160e01b146128025760405162461bcd60e51b815260040161080990613432565b6001600160a01b0384163b156124ad5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612a6d908990899088908890889060040161347a565b602060405180830381600087803b158015612a8757600080fd5b505af1925050508015612ab7575060408051601f3d908101601f19168201909252612ab49181019061336f565b60015b612ac35761295861338c565b6001600160e01b0319811663bc197c8160e01b146128025760405162461bcd60e51b815260040161080990613432565b828054612aff906130fd565b90600052602060002090601f016020900481019282612b215760008555612b67565b82601f10612b3a57805160ff1916838001178555612b67565b82800160010185558215612b67579182015b82811115612b67578251825591602001919060010190612b4c565b50612b73929150612b77565b5090565b5b80821115612b735760008155600101612b78565b6001600160a01b038116811461168757600080fd5b60008060408385031215612bb457600080fd5b8235612bbf81612b8c565b946020939093013593505050565b6001600160e01b03198116811461168757600080fd5b600060208284031215612bf557600080fd5b81356117f981612bcd565b6000815180845260005b81811015612c2657602081850181015186830182015201612c0a565b81811115612c38576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006117f96020830184612c00565b600060208284031215612c7257600080fd5b5035919050565b60008060408385031215612c8c57600080fd5b50508035926020909101359150565b600060208284031215612cad57600080fd5b81356117f981612b8c565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612cf457612cf4612cb8565b6040525050565b600067ffffffffffffffff821115612d1557612d15612cb8565b5060051b60200190565b600082601f830112612d3057600080fd5b81356020612d3d82612cfb565b604051612d4a8282612cce565b83815260059390931b8501820192828101915086841115612d6a57600080fd5b8286015b84811015612d855780358352918301918301612d6e565b509695505050505050565b600067ffffffffffffffff831115612daa57612daa612cb8565b604051612dc1601f8501601f191660200182612cce565b809150838152848484011115612dd657600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612dff57600080fd5b6117f983833560208501612d90565b600080600080600060a08688031215612e2657600080fd5b8535612e3181612b8c565b94506020860135612e4181612b8c565b9350604086013567ffffffffffffffff80821115612e5e57600080fd5b612e6a89838a01612d1f565b94506060880135915080821115612e8057600080fd5b612e8c89838a01612d1f565b93506080880135915080821115612ea257600080fd5b50612eaf88828901612dee565b9150509295509295909350565b60008060408385031215612ecf57600080fd5b823567ffffffffffffffff80821115612ee757600080fd5b818501915085601f830112612efb57600080fd5b81356020612f0882612cfb565b604051612f158282612cce565b83815260059390931b8501820192828101915089841115612f3557600080fd5b948201945b83861015612f5c578535612f4d81612b8c565b82529482019490820190612f3a565b96505086013592505080821115612f7257600080fd5b50612f7f85828601612d1f565b9150509250929050565b600081518084526020808501945080840160005b83811015612fb957815187529582019590820190600101612f9d565b509495945050505050565b6020815260006117f96020830184612f89565b600060208284031215612fe957600080fd5b813567ffffffffffffffff81111561300057600080fd5b8201601f8101841361301157600080fd5b61302084823560208401612d90565b949350505050565b6000806040838503121561303b57600080fd5b823561304681612b8c565b91506020830135801515811461305b57600080fd5b809150509250929050565b6000806040838503121561307957600080fd5b823561308481612b8c565b9150602083013561305b81612b8c565b600080600080600060a086880312156130ac57600080fd5b85356130b781612b8c565b945060208601356130c781612b8c565b93506040860135925060608601359150608086013567ffffffffffffffff8111156130f157600080fd5b612eaf88828901612dee565b600181811c9082168061311157607f821691505b6020821081141561313257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156131c7576131c7613197565b500290565b6000826131e957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561320057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561323157613231613197565b5060010190565b6000821982111561324b5761324b613197565b500190565b60006020828403121561326257600080fd5b81516117f981612b8c565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061330f6040830185612f89565b82810360208401526133218185612f89565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061336490830184612c00565b979650505050505050565b60006020828403121561338157600080fd5b81516117f981612bcd565b600060033d11156133a55760046000803e5060005160e01c5b90565b600060443d10156133b65790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156133e657505050505090565b82850191508151818111156133fe5750505050505090565b843d87010160208285010111156134185750505050505090565b61342760208286010187612cce565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906134a690830186612f89565b82810360608401526134b88186612f89565b905082810360808401526134cc8185612c00565b9897505050505050505056fea26469706673582212208456fb97dc9fd2d51c236d9ea04369a05f42e9b81622ee00b2239a67bf00eed664736f6c63430008090033000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000002d94aa3e47d9d5024503ca8491fce9a2fb4da19800000000000000000000000059c1349bc6f28a427e78ddb6130ec669c2f39b4800000000000000000000000087165b659ba7746907a48763063efa3b323c2b07000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000393c8dc4bd050ad16e1ac2b029bf72a70b2e0c9d7918a4832b1df735801c2de1bdaa76d738acb8ee0000000000000300000009c57918a4832b1df735801c2de1bdaa76d738acb8ee0000000000000400000000650000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5346685275444678754c6242415955647848314850734559475a595432664d376252696f794b7a6e7578616b00000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d59326f5657703971566f75414a6b3254475578644c7743434b664c76696f395477324c584163737058465a670000000000000000000000

Deployed Bytecode

0x60806040526004361061023a5760003560e01c80638456cb591161012e578063c2ba4744116100ab578063e8a3d4851161006f578063e8a3d4851461070c578063e985e9c514610721578063f242432a14610741578063f2fde38b14610761578063faccd4271461078157600080fd5b8063c2ba47441461064a578063ccaf1c4b1461066a578063e0df5b6f146106b2578063e48a9bde146106d2578063e6c29125146106ec57600080fd5b80639d1b464a116100f25780639d1b464a146105775780639da3f8fd1461058c5780639fb54768146105f5578063a22cb4651461060a578063af4d0e731461062a57600080fd5b80638456cb59146104c257806385e23071146104d75780638da5cb5b146104ec578063938e3d7b1461052257806395d89b411461054257600080fd5b80632eb2c2d6116101bc5780633f4ba83a116101805780633f4ba83a1461043e5780634e1273f4146104535780635c975abb1461048057806366a62ac914610498578063715018a6146104ad57600080fd5b80632eb2c2d6146103c0578063355499a8146103e057806337d1679b146103f5578063389f54d1146104145780633ccfd60b1461042957600080fd5b806311f2e7c31161020357806311f2e7c31461032f5780631249c58b1461034457806318160ddd1461034c5780632a55205a146103615780632b7a5ab6146103a057600080fd5b8062fdd58e1461023f57806301ffc9a71461027257806306fdde03146102a25780630e89341c146102f857806311eb304714610318575b600080fd5b34801561024b57600080fd5b5061025f61025a366004612ba1565b6107a1565b6040519081526020015b60405180910390f35b34801561027e57600080fd5b5061029261028d366004612be3565b61083b565b6040519015158152602001610269565b3480156102ae57600080fd5b506102eb6040518060400160405280601d81526020017f466c6970706572205a6f6e65204163636573732050617373203230323200000081525081565b6040516102699190612c4d565b34801561030457600080fd5b506102eb610313366004612c60565b610860565b34801561032457600080fd5b5061032d6108f4565b005b34801561033b57600080fd5b5061032d610933565b61032d610970565b34801561035857600080fd5b5060045461025f565b34801561036d57600080fd5b5061038161037c366004612c79565b610be9565b604080516001600160a01b039093168352602083019190915201610269565b3480156103ac57600080fd5b506102926103bb366004612c9b565b610c2f565b3480156103cc57600080fd5b5061032d6103db366004612e0e565b610e52565b3480156103ec57600080fd5b5061032d610ee9565b34801561040157600080fd5b5060055461029290610100900460ff1681565b34801561042057600080fd5b5061032d610f27565b34801561043557600080fd5b5061032d610f6a565b34801561044a57600080fd5b5061032d611008565b34801561045f57600080fd5b5061047361046e366004612ebc565b611089565b6040516102699190612fc4565b34801561048c57600080fd5b5060035460ff16610292565b3480156104a457600080fd5b5061032d6111b3565b3480156104b957600080fd5b5061032d6111ef565b3480156104ce57600080fd5b5061032d611229565b3480156104e357600080fd5b5061025f600081565b3480156104f857600080fd5b5060035461010090046001600160a01b03166040516001600160a01b039091168152602001610269565b34801561052e57600080fd5b5061032d61053d366004612fd7565b611284565b34801561054e57600080fd5b506102eb60405180604001604052806009815260200168232624a82822a9191960b91b81525081565b34801561058357600080fd5b5061025f6112c7565b34801561059857600080fd5b506105a16112fa565b6040516102699190600060c082019050825182526020830151602083015260408301511515604083015260608301511515606083015260808301511515608083015260a0830151151560a083015292915050565b34801561060157600080fd5b5061032d611391565b34801561061657600080fd5b5061032d610625366004613028565b6113d2565b34801561063657600080fd5b50610292610645366004612c9b565b6113dd565b34801561065657600080fd5b50610292610665366004612c9b565b61157d565b34801561067657600080fd5b5061068a610685366004612c9b565b6115f3565b6040805182511515815260208084015115159082015291810151151590820152606001610269565b3480156106be57600080fd5b5061032d6106cd366004612fd7565b61164e565b3480156106de57600080fd5b506005546102929060ff1681565b3480156106f857600080fd5b506005546102929062010000900460ff1681565b34801561071857600080fd5b506102eb61168a565b34801561072d57600080fd5b5061029261073c366004613066565b611718565b34801561074d57600080fd5b5061032d61075c366004613094565b611800565b34801561076d57600080fd5b5061032d61077c366004612c9b565b611887565b34801561078d57600080fd5b5061029261079c366004612c9b565b611925565b60006001600160a01b0383166108125760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b0319821663152a902d60e11b148061083557506108358261216a565b60606002805461086f906130fd565b80601f016020809104026020016040519081016040528092919081815260200182805461089b906130fd565b80156108e85780601f106108bd576101008083540402835291602001916108e8565b820191906000526020600020905b8154815290600101906020018083116108cb57829003601f168201915b50505050509050919050565b6003546001600160a01b036101009091041633146109245760405162461bcd60e51b815260040161080990613138565b6005805460ff19166001179055565b6003546001600160a01b036101009091041633146109635760405162461bcd60e51b815260040161080990613138565b6005805461ff0019169055565b60035460ff16156109935760405162461bcd60e51b81526004016108099061316d565b3332146109e25760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c792062652063616c6c656420627920454f41730000000000006044820152606401610809565b6109eb3361157d565b610a4f5760405162461bcd60e51b815260206004820152602f60248201527f53616c65206973206e6f7420616374697665206f722077616c6c65742069732060448201526e1b9bdd081dda1a5d195b1a5cdd1959608a1b6064820152608401610809565b6101f460045410610aad5760405162461bcd60e51b815260206004820152602260248201527f416c6c2035303020706173736573207765726520616c7265616479206d696e74604482015261195960f21b6064820152608401610809565b600554610100900460ff168015610ac7575060055460ff16155b8015610adc575060055462010000900460ff16155b15610b505761012c60045410610b505760405162461bcd60e51b815260206004820152603360248201527f416c6c203330302042616e6b6c6573732070726573616c6520706173736573206044820152721dd95c9948185b1c9958591e481b5a5b9d1959606a1b6064820152608401610809565b610b586112c7565b3414610bc05760405162461bcd60e51b815260206004820152603160248201527f416d6f756e74206f662065746865722073656e7420646f6573206e6f74206d616044820152707463682063757272656e7420707269636560781b6064820152608401610809565b60048054600190810190915560408051602081019091526000808252610be79233926121ba565b565b6000807f000000000000000000000000393c8dc4bd050ad16e1ac2b029bf72a70b2e0c9d6064610c1a85600a6131ad565b610c2491906131cc565b915091509250929050565b6040516370a0823160e01b81526001600160a01b0382811660048301526000916907695a92c20d6fe00000917f0000000000000000000000002d94aa3e47d9d5024503ca8491fce9a2fb4da19816906370a082319060240160206040518083038186803b158015610c9f57600080fd5b505afa158015610cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd791906131ee565b10610ce457506001919050565b6040516370a0823160e01b81526001600160a01b038381166004830152680d8d726b7177a80000917f00000000000000000000000059c1349bc6f28a427e78ddb6130ec669c2f39b48909116906370a082319060240160206040518083038186803b158015610d5257600080fd5b505afa158015610d66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8a91906131ee565b10610d9757506001919050565b6040516370a0823160e01b81526001600160a01b03838116600483015268e3aeb5737240a00000917f00000000000000000000000087165b659ba7746907a48763063efa3b323c2b07909116906370a082319060240160206040518083038186803b158015610e0557600080fd5b505afa158015610e19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3d91906131ee565b10610e4a57506001919050565b506000919050565b6001600160a01b038516331480610e6e5750610e6e8533611718565b610ed55760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610809565b610ee285858585856122ca565b5050505050565b6003546001600160a01b03610100909104163314610f195760405162461bcd60e51b815260040161080990613138565b6005805462ff000019169055565b6003546001600160a01b03610100909104163314610f575760405162461bcd60e51b815260040161080990613138565b6005805462ff0000191662010000179055565b6003546001600160a01b03610100909104163314610f9a5760405162461bcd60e51b815260040161080990613138565b4780610fd75760405162461bcd60e51b815260206004820152600c60248201526b042616c616e636520697320360a41b6044820152606401610809565b604051339082156108fc029083906000818181858888f19350505050158015611004573d6000803e3d6000fd5b5050565b6003546001600160a01b036101009091041633146110385760405162461bcd60e51b815260040161080990613138565b60035460ff166110815760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610809565b610be76124b5565b606081518351146110ee5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610809565b6000835167ffffffffffffffff81111561110a5761110a612cb8565b604051908082528060200260200182016040528015611133578160200160208202803683370190505b50905060005b84518110156111ab5761117e85828151811061115757611157613207565b602002602001015185838151811061117157611171613207565b60200260200101516107a1565b82828151811061119057611190613207565b60209081029190910101526111a48161321d565b9050611139565b509392505050565b6003546001600160a01b036101009091041633146111e35760405162461bcd60e51b815260040161080990613138565b6005805460ff19169055565b6003546001600160a01b0361010090910416331461121f5760405162461bcd60e51b815260040161080990613138565b610be76000612548565b6003546001600160a01b036101009091041633146112595760405162461bcd60e51b815260040161080990613138565b60035460ff161561127c5760405162461bcd60e51b81526004016108099061316d565b610be76125a2565b6003546001600160a01b036101009091041633146112b45760405162461bcd60e51b815260040161080990613138565b8051611004906006906020840190612af3565b600060646004546112d891906131cc565b6112e3906001613238565b6112f59067016345785d8a00006131ad565b905090565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526040518060c0016040528061134060045490565b815260200161134d6112c7565b815260055460ff6101008204811615156020840152620100008204811615156040840152161515606082015260800161138860035460ff1690565b15159052919050565b6003546001600160a01b036101009091041633146113c15760405162461bcd60e51b815260040161080990613138565b6005805461ff001916610100179055565b6110043383836125fa565b604051627eeac760e11b81526001600160a01b0382811660048301527f7918a4832b1df735801c2de1bdaa76d738acb8ee0000000000000300000009c5602483015260009182917f000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e169062fdd58e9060440160206040518083038186803b15801561146757600080fd5b505afa15801561147b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149f91906131ee565b11156114ad57506001919050565b604051627eeac760e11b81526001600160a01b0383811660048301527f7918a4832b1df735801c2de1bdaa76d738acb8ee00000000000004000000006560248301526000917f000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e9091169062fdd58e9060440160206040518083038186803b15801561153757600080fd5b505afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f91906131ee565b1115610e4a57506001919050565b60055460009060ff161561159357506001919050565b600554610100900460ff1680156115ae57506115ae82610c2f565b156115bb57506001919050565b60055462010000900460ff1680156115e657506115d7826113dd565b806115e657506115e682611925565b15610e4a57506001919050565b6040805160608101825260008082526020820181905291810191909152604051806060016040528061162484611925565b1515815260200161163484610c2f565b15158152602001611644846113dd565b1515905292915050565b6003546001600160a01b0361010090910416331461167e5760405162461bcd60e51b815260040161080990613138565b611687816126db565b50565b60068054611697906130fd565b80601f01602080910402602001604051908101604052809291908181526020018280546116c3906130fd565b80156117105780601f106116e557610100808354040283529160200191611710565b820191906000526020600020905b8154815290600101906020018083116116f357829003601f168201915b505050505081565b60405163c455279160e01b81526001600160a01b038381166004830152600091818416917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1169063c45527919060240160206040518083038186803b15801561178057600080fd5b505afa158015611794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b89190613250565b6001600160a01b031614156117cf57506001610835565b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6001600160a01b03851633148061181c575061181c8533611718565b61187a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610809565b610ee285858585856126ee565b6003546001600160a01b036101009091041633146118b75760405162461bcd60e51b815260040161080990613138565b6001600160a01b03811661191c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610809565b61168781612548565b600073026c2760ba6852cc188f7be6d62ee1d663ec9bdb6001600160a01b038316141561195457506001919050565b731a589c87d396254ae9fc07a5defb920b1039bd366001600160a01b038316141561198157506001919050565b73e766b33876cdbb918f06f5f4380deee435ea85966001600160a01b03831614156119ae57506001919050565b733b666dbc539d25dff4ec62357a3c13258528dfbe6001600160a01b03831614156119db57506001919050565b73051d85190dbacd14d705426c86ca440b004deeb46001600160a01b0383161415611a0857506001919050565b73c6f08690c67d20aa2d9e952e57478fe6606c85fe6001600160a01b0383161415611a3557506001919050565b7346b866329b762a2e1791d1cb4e0407d3e2b989836001600160a01b0383161415611a6257506001919050565b730d289031af6b6299bc6b9174f3a1583079fd6e566001600160a01b0383161415611a8f57506001919050565b738dcd8b9e43fbcfc807ba0a52d48937862454c03d6001600160a01b0383161415611abc57506001919050565b73575a979789520c5b6e70fec4de4a355f8f6956c56001600160a01b0383161415611ae957506001919050565b73870f7af906ddef083cf257c0d252825773b06bd96001600160a01b0383161415611b1657506001919050565b73ece358648a41801577f70c80e4cd8654f97260666001600160a01b0383161415611b4357506001919050565b73d8d128ad7d2c3ac50a009aa453781d466d76adc36001600160a01b0383161415611b7057506001919050565b73a24b43113cd757223517e53a6fe8a0b5462873ea6001600160a01b0383161415611b9d57506001919050565b731bca9771dcd5709b405804d6d0c314b49370c1a36001600160a01b0383161415611bca57506001919050565b735b5d89fa961b503ecdb1c7dbc30f88c566f3865a6001600160a01b0383161415611bf757506001919050565b734f4861a604c1b6dbdcd693a82f8e3a581f2b62e76001600160a01b0383161415611c2457506001919050565b737af4f4d7b0028851c6deebe95cf296b1a4c491e96001600160a01b0383161415611c5157506001919050565b734cd38718522ef9f7d1ebfd1a7b642a436241c4586001600160a01b0383161415611c7e57506001919050565b733e69ea72edc970f99676d8150698681ca7673bb26001600160a01b0383161415611cab57506001919050565b73bd721a0a38f3898cfdf66c76b27fba160b5da2046001600160a01b0383161415611cd857506001919050565b73e0a8a4d427eef7bb1ba257323e2fcf42d5c558cf6001600160a01b0383161415611d0557506001919050565b739474b2d7278414cb33f624f69800db96ab51eb8d6001600160a01b0383161415611d3257506001919050565b73c9eb1555b2810d5731c4ef3eaf089894f81226cb6001600160a01b0383161415611d5f57506001919050565b737373cf1e3527274bbda97095f2d50cf2c6778c5a6001600160a01b0383161415611d8c57506001919050565b739b9b0811bb1277bc7881da97085203b7ddfee85e6001600160a01b0383161415611db957506001919050565b736c3f672d8beefc1d052d43326adee4c40580dfc56001600160a01b0383161415611de657506001919050565b7376d9957e9f91e330f66ac4c0ed23a470dc04336f6001600160a01b0383161415611e1357506001919050565b7391a9b4da163a1f248c92dbd262ad3e95e042c87e6001600160a01b0383161415611e4057506001919050565b7391bef3247beef67f068d757e97d527cae3798ee66001600160a01b0383161415611e6d57506001919050565b7320bf082a4040649ab641fd3b470ad00a3ce1a9356001600160a01b0383161415611e9a57506001919050565b73bed4ce28e0ff95204a9cc0a4ff10ff201f656a2e6001600160a01b0383161415611ec757506001919050565b73171c1cf42c8e11589381f5e4846ffe4e2c7f6d956001600160a01b0383161415611ef457506001919050565b73f5eabb96508760a10d72c6beb995b8297b48ded46001600160a01b0383161415611f2157506001919050565b732d50ae0ad5b79c861b8cad5982bdcdf66376ac4b6001600160a01b0383161415611f4e57506001919050565b73ff5244420a64cd43b50ab9aa9f240a618f3d3eca6001600160a01b0383161415611f7b57506001919050565b73be6f5437c3c73fa238628fb5da61a1a07ea0e8f56001600160a01b0383161415611fa857506001919050565b73e7e0657036d77a87dd9ab39b509e1500bddf7b1a6001600160a01b0383161415611fd557506001919050565b73af2536ca649f40fe69737bb37faf20dfa1616ddc6001600160a01b038316141561200257506001919050565b734c08acbac5bd7269d0236f40f82ca14c55f82fd76001600160a01b038316141561202f57506001919050565b73bed4ce28e0ff95204a9cc0a4ff10ff201f656a2e6001600160a01b038316141561205c57506001919050565b7344b246aa370c6eb3df78943ccb586c99067960a06001600160a01b038316141561208957506001919050565b737d13b39ec86e1669f69ea49dce1299ecda589f226001600160a01b03831614156120b657506001919050565b73f5eabb96508760a10d72c6beb995b8297b48ded46001600160a01b03831614156120e357506001919050565b7317186c6062d49e8377e480e55560167a18bae3cb6001600160a01b038316141561211057506001919050565b7388de3dfb4b5d2990d014c525a43cbd38864c9d506001600160a01b038316141561213d57506001919050565b734d45c560439c3e3edf0c8abc93ec9e041f1101f36001600160a01b0383161415610e4a57506001919050565b60006001600160e01b03198216636cdb3d1360e11b148061219b57506001600160e01b031982166303a24d0760e21b145b8061083557506301ffc9a760e01b6001600160e01b0319831614610835565b6001600160a01b03841661221a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610809565b3361223a8160008761222b8861280b565b6122348861280b565b87612856565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061226a908490613238565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ee2816000878787876128be565b815183511461232c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610809565b6001600160a01b0384166123525760405162461bcd60e51b81526004016108099061326d565b33612361818787878787612856565b60005b845181101561244757600085828151811061238157612381613207565b60200260200101519050600085838151811061239f5761239f613207565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156123ef5760405162461bcd60e51b8152600401610809906132b2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061242c908490613238565b92505081905550505050806124409061321d565b9050612364565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124979291906132fc565b60405180910390a46124ad818787878787612a29565b505050505050565b60035460ff166124fe5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610809565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff16156125c55760405162461bcd60e51b81526004016108099061316d565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861252b3390565b816001600160a01b0316836001600160a01b0316141561266e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610809565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b8051611004906002906020840190612af3565b6001600160a01b0384166127145760405162461bcd60e51b81526004016108099061326d565b3361272481878761222b8861280b565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156127655760405162461bcd60e51b8152600401610809906132b2565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906127a2908490613238565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46128028288888888886128be565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061284557612845613207565b602090810291909101015292915050565b60035460ff16156124ad5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610809565b6001600160a01b0384163b156124ad5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612902908990899088908890889060040161332a565b602060405180830381600087803b15801561291c57600080fd5b505af192505050801561294c575060408051601f3d908101601f191682019092526129499181019061336f565b60015b6129f95761295861338c565b806308c379a01415612992575061296d6133a8565b806129785750612994565b8060405162461bcd60e51b81526004016108099190612c4d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610809565b6001600160e01b0319811663f23a6e6160e01b146128025760405162461bcd60e51b815260040161080990613432565b6001600160a01b0384163b156124ad5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612a6d908990899088908890889060040161347a565b602060405180830381600087803b158015612a8757600080fd5b505af1925050508015612ab7575060408051601f3d908101601f19168201909252612ab49181019061336f565b60015b612ac35761295861338c565b6001600160e01b0319811663bc197c8160e01b146128025760405162461bcd60e51b815260040161080990613432565b828054612aff906130fd565b90600052602060002090601f016020900481019282612b215760008555612b67565b82601f10612b3a57805160ff1916838001178555612b67565b82800160010185558215612b67579182015b82811115612b67578251825591602001919060010190612b4c565b50612b73929150612b77565b5090565b5b80821115612b735760008155600101612b78565b6001600160a01b038116811461168757600080fd5b60008060408385031215612bb457600080fd5b8235612bbf81612b8c565b946020939093013593505050565b6001600160e01b03198116811461168757600080fd5b600060208284031215612bf557600080fd5b81356117f981612bcd565b6000815180845260005b81811015612c2657602081850181015186830182015201612c0a565b81811115612c38576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006117f96020830184612c00565b600060208284031215612c7257600080fd5b5035919050565b60008060408385031215612c8c57600080fd5b50508035926020909101359150565b600060208284031215612cad57600080fd5b81356117f981612b8c565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612cf457612cf4612cb8565b6040525050565b600067ffffffffffffffff821115612d1557612d15612cb8565b5060051b60200190565b600082601f830112612d3057600080fd5b81356020612d3d82612cfb565b604051612d4a8282612cce565b83815260059390931b8501820192828101915086841115612d6a57600080fd5b8286015b84811015612d855780358352918301918301612d6e565b509695505050505050565b600067ffffffffffffffff831115612daa57612daa612cb8565b604051612dc1601f8501601f191660200182612cce565b809150838152848484011115612dd657600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612dff57600080fd5b6117f983833560208501612d90565b600080600080600060a08688031215612e2657600080fd5b8535612e3181612b8c565b94506020860135612e4181612b8c565b9350604086013567ffffffffffffffff80821115612e5e57600080fd5b612e6a89838a01612d1f565b94506060880135915080821115612e8057600080fd5b612e8c89838a01612d1f565b93506080880135915080821115612ea257600080fd5b50612eaf88828901612dee565b9150509295509295909350565b60008060408385031215612ecf57600080fd5b823567ffffffffffffffff80821115612ee757600080fd5b818501915085601f830112612efb57600080fd5b81356020612f0882612cfb565b604051612f158282612cce565b83815260059390931b8501820192828101915089841115612f3557600080fd5b948201945b83861015612f5c578535612f4d81612b8c565b82529482019490820190612f3a565b96505086013592505080821115612f7257600080fd5b50612f7f85828601612d1f565b9150509250929050565b600081518084526020808501945080840160005b83811015612fb957815187529582019590820190600101612f9d565b509495945050505050565b6020815260006117f96020830184612f89565b600060208284031215612fe957600080fd5b813567ffffffffffffffff81111561300057600080fd5b8201601f8101841361301157600080fd5b61302084823560208401612d90565b949350505050565b6000806040838503121561303b57600080fd5b823561304681612b8c565b91506020830135801515811461305b57600080fd5b809150509250929050565b6000806040838503121561307957600080fd5b823561308481612b8c565b9150602083013561305b81612b8c565b600080600080600060a086880312156130ac57600080fd5b85356130b781612b8c565b945060208601356130c781612b8c565b93506040860135925060608601359150608086013567ffffffffffffffff8111156130f157600080fd5b612eaf88828901612dee565b600181811c9082168061311157607f821691505b6020821081141561313257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156131c7576131c7613197565b500290565b6000826131e957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561320057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561323157613231613197565b5060010190565b6000821982111561324b5761324b613197565b500190565b60006020828403121561326257600080fd5b81516117f981612b8c565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061330f6040830185612f89565b82810360208401526133218185612f89565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061336490830184612c00565b979650505050505050565b60006020828403121561338157600080fd5b81516117f981612bcd565b600060033d11156133a55760046000803e5060005160e01c5b90565b600060443d10156133b65790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156133e657505050505090565b82850191508151818111156133fe5750505050505090565b843d87010160208285010111156134185750505050505090565b61342760208286010187612cce565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906134a690830186612f89565b82810360608401526134b88186612f89565b905082810360808401526134cc8185612c00565b9897505050505050505056fea26469706673582212208456fb97dc9fd2d51c236d9ea04369a05f42e9b81622ee00b2239a67bf00eed664736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000002d94aa3e47d9d5024503ca8491fce9a2fb4da19800000000000000000000000059c1349bc6f28a427e78ddb6130ec669c2f39b4800000000000000000000000087165b659ba7746907a48763063efa3b323c2b07000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000393c8dc4bd050ad16e1ac2b029bf72a70b2e0c9d7918a4832b1df735801c2de1bdaa76d738acb8ee0000000000000300000009c57918a4832b1df735801c2de1bdaa76d738acb8ee0000000000000400000000650000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5346685275444678754c6242415955647848314850734559475a595432664d376252696f794b7a6e7578616b00000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d59326f5657703971566f75414a6b3254475578644c7743434b664c76696f395477324c584163737058465a670000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenURI (string): ipfs://QmSFhRuDFxuLbBAYUdxH1HPsEYGZYT2fM7bRioyKznuxak
Arg [1] : _contractURI (string): ipfs://QmY2oVWp9qVouAJk2TGUxdLwCCKfLvio9Tw2LXAcspXFZg
Arg [2] : _bankAddress (address): 0x2d94AA3e47d9D5024503Ca8491fcE9A2fB4DA198
Arg [3] : _bankUniswapV2PairAddress (address): 0x59C1349BC6F28A427E78DdB6130ec669C2F39b48
Arg [4] : _bankBalancerPoolAddress (address): 0x87165B659Ba7746907a48763063efA3B323C2B07
Arg [5] : _openseaSharedStorefrontAddress (address): 0x495f947276749Ce646f68AC8c248420045cb7b5e
Arg [6] : _openseaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [7] : _royaltyFeeRecipient (address): 0x393c8dC4Bd050AD16E1AC2B029Bf72a70b2E0C9D
Arg [8] : _alphaAccessMembershipTokenId (uint256): 54773394430824556965590286543588488761032872536072298715453009676455439763909
Arg [9] : _alphaOGAccessMembershipTokenId (uint256): 54773394430824556965590286543588488761032872536072298715453009677554951389285

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 0000000000000000000000002d94aa3e47d9d5024503ca8491fce9a2fb4da198
Arg [3] : 00000000000000000000000059c1349bc6f28a427e78ddb6130ec669c2f39b48
Arg [4] : 00000000000000000000000087165b659ba7746907a48763063efa3b323c2b07
Arg [5] : 000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 000000000000000000000000393c8dc4bd050ad16e1ac2b029bf72a70b2e0c9d
Arg [8] : 7918a4832b1df735801c2de1bdaa76d738acb8ee0000000000000300000009c5
Arg [9] : 7918a4832b1df735801c2de1bdaa76d738acb8ee000000000000040000000065
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [11] : 697066733a2f2f516d5346685275444678754c62424159556478483148507345
Arg [12] : 59475a595432664d376252696f794b7a6e7578616b0000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [14] : 697066733a2f2f516d59326f5657703971566f75414a6b3254475578644c7743
Arg [15] : 434b664c76696f395477324c584163737058465a670000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.