ETH Price: $3,328.98 (-0.43%)

Token

Arkipel Pass (ArkiPass)
 

Overview

Max Total Supply

3,886 ArkiPass

Holders

86

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
feelline.eth
0x7776caea867683fb174b6b4fc47a2b31423b95e0
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:
ArkipelPass

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : ArkipelPass.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract ArkipelPass is ERC1155, ERC1155Burnable, ERC1155Supply, Ownable {
  uint256 public CURRENT_PASS_ID;
  uint256 public CURRENT_PASS_MAX_AMOUNT;
  uint256 public CURRENT_PASS_PRICE;
  uint256 public CURRENT_PASS_MAX_PURCHASE;
  uint256 public CURRENT_PASS_PRESALE_MAX_AMOUNT;
  uint256 public CURRENT_PASS_PRESALE_PRICE;

  address public ARTEFACT_PASS_ADDRESS;

  mapping(uint256 => uint256) public amountMinted;
  mapping(uint256 => uint256) public presaleAmountMinted;
  mapping(uint256 => mapping(address => bool)) public presaleList;
  mapping(uint256 => mapping(address => bool)) public freeMintList;
  mapping(uint256 => mapping(address => uint256))
    public presaleListMaxPurchases;
  mapping(uint256 => mapping(address => uint256)) public presaleListPurchases;
  mapping(uint256 => mapping(address => uint256)) public freeMintListMaxMint;
  mapping(uint256 => mapping(address => uint256)) public freeMintListMinted;
  mapping(uint256 => address) public redeemedArtefactPass;

  bool public isPresaleActive;
  bool public isSaleActive;
  bool public isArtefactPassAllowed;
  bool public isFreeMintActive;

  string public name = "Arkipel Pass";
  string public symbol = "ArkiPass";

  string private _contractURI;

  constructor() ERC1155("ipfs://") {}

  function presaleMint(uint256 quantity) public payable {
    require(quantity > 0, "QUANTITY_NEEDED");
    require(isPresaleActive && !isSaleActive, "PRESALE_CLOSED");
    require(presaleList[CURRENT_PASS_ID][msg.sender], "NOT_QUALIFIED");
    require(
      amountMinted[CURRENT_PASS_ID] < CURRENT_PASS_MAX_AMOUNT,
      "OUT_OF_STOCK"
    );
    require(
      amountMinted[CURRENT_PASS_ID] + quantity <= CURRENT_PASS_MAX_AMOUNT,
      "EXCEED_STOCK"
    );
    require(
      presaleAmountMinted[CURRENT_PASS_ID] + quantity <=
        CURRENT_PASS_PRESALE_MAX_AMOUNT,
      "EXCEED_PRESALE"
    );
    require(
      presaleListPurchases[CURRENT_PASS_ID][msg.sender] + quantity <=
        presaleListMaxPurchases[CURRENT_PASS_ID][msg.sender],
      "EXCEED_ALLOCATION"
    );
    require(
      CURRENT_PASS_PRESALE_PRICE * quantity <= msg.value,
      "INSUFFICIENT_ETH"
    );

    amountMinted[CURRENT_PASS_ID] += quantity;
    presaleAmountMinted[CURRENT_PASS_ID] += quantity;
    presaleListPurchases[CURRENT_PASS_ID][msg.sender] += quantity;

    _mint(msg.sender, CURRENT_PASS_ID, quantity, "");
  }

  function mint(uint256 quantity) public payable {
    require(quantity > 0, "QUANTITY_NEEDED");
    require(!isPresaleActive && isSaleActive, "SALE_CLOSED");
    require(
      amountMinted[CURRENT_PASS_ID] < CURRENT_PASS_MAX_AMOUNT,
      "OUT_OF_STOCK"
    );
    require(
      amountMinted[CURRENT_PASS_ID] + quantity <= CURRENT_PASS_MAX_AMOUNT,
      "EXCEED_STOCK"
    );
    require(quantity <= CURRENT_PASS_MAX_PURCHASE, "EXCEED_MAX_PURCHASE");
    require(CURRENT_PASS_PRICE * quantity <= msg.value, "INSUFFICIENT_ETH");

    amountMinted[CURRENT_PASS_ID] += quantity;

    _mint(msg.sender, CURRENT_PASS_ID, quantity, "");
  }

  function freeMint(uint256 quantity) public {
    require(isFreeMintActive, "FREE_MINT_CLOSED");
    require(isPresaleActive || isSaleActive, "SALE_CLOSED");
    require(freeMintList[CURRENT_PASS_ID][msg.sender], "NOT_QUALIFIED");
    require(
      amountMinted[CURRENT_PASS_ID] < CURRENT_PASS_MAX_AMOUNT,
      "OUT_OF_STOCK"
    );
    require(
      amountMinted[CURRENT_PASS_ID] + quantity <= CURRENT_PASS_MAX_AMOUNT,
      "EXCEED_STOCK"
    );
    require(
      freeMintListMinted[CURRENT_PASS_ID][msg.sender] + quantity <=
        freeMintListMaxMint[CURRENT_PASS_ID][msg.sender],
      "EXCEED_ALLOCATION"
    );

    amountMinted[CURRENT_PASS_ID] += quantity;
    freeMintListMinted[CURRENT_PASS_ID][msg.sender] += quantity;

    _mint(msg.sender, CURRENT_PASS_ID, quantity, "");
  }

  function mintByHoldArtefactPass(uint256 tokenId) public {
    require(!isPresaleActive && isSaleActive, "SALE_CLOSED");
    require(isArtefactPassAllowed, "ARTEFACT_FREE_MINT_CLOSED");
    require(
      amountMinted[CURRENT_PASS_ID] < CURRENT_PASS_MAX_AMOUNT,
      "OUT_OF_STOCK"
    );
    require(redeemedArtefactPass[tokenId] == address(0), "EXCEED_FREE_MINT");
    require(
      msg.sender == IERC721(ARTEFACT_PASS_ADDRESS).ownerOf(tokenId),
      "ONLY_ARTEFACT_OWNER"
    );

    amountMinted[CURRENT_PASS_ID]++;
    redeemedArtefactPass[tokenId] = msg.sender;

    _mint(msg.sender, CURRENT_PASS_ID, 1, "");
  }

  function contractURI() public view returns (string memory) {
    return _contractURI;
  }

  function setBaseURI(string memory uri) external onlyOwner {
    _setURI(uri);
  }

  function setContractURI(string memory uri) external onlyOwner {
    _contractURI = uri;
  }

  function setCurrentPass(
    uint256 tokenId,
    uint256 amount,
    uint256 price,
    uint256 maxPurchase,
    uint256 presaleAmount,
    uint256 presalePrice
  ) external onlyOwner {
    CURRENT_PASS_ID = tokenId;
    CURRENT_PASS_MAX_AMOUNT = amount;
    CURRENT_PASS_PRICE = price;
    CURRENT_PASS_MAX_PURCHASE = maxPurchase;
    CURRENT_PASS_PRESALE_MAX_AMOUNT = presaleAmount;
    CURRENT_PASS_PRESALE_PRICE = presalePrice;
  }

  function setArtefactPass(address tokenAddress) external onlyOwner {
    ARTEFACT_PASS_ADDRESS = tokenAddress;
  }

  function togglePresale() external onlyOwner {
    isPresaleActive = !isPresaleActive;
  }

  function toggleSale() external onlyOwner {
    isSaleActive = !isSaleActive;
  }

  function toggleFreeMint() external onlyOwner {
    isFreeMintActive = !isFreeMintActive;
  }

  function toggleArtefactPass() external onlyOwner {
    isArtefactPassAllowed = !isArtefactPassAllowed;
  }

  function addToPresaleList(
    address[] calldata entries,
    uint256[] calldata purchases
  ) external onlyOwner {
    for (uint256 i; i < entries.length; i++) {
      require(entries[i] != address(0), "NULL_ADDRESS");
      require(!presaleList[CURRENT_PASS_ID][entries[i]], "DUPLICATE_ENTRY");

      presaleList[CURRENT_PASS_ID][entries[i]] = true;
      presaleListMaxPurchases[CURRENT_PASS_ID][entries[i]] = purchases[i];
    }
  }

  function removeFromPresaleList(address[] calldata entries)
    external
    onlyOwner
  {
    for (uint256 i; i < entries.length; i++) {
      require(entries[i] != address(0), "NULL_ADDRESS");

      delete presaleList[CURRENT_PASS_ID][entries[i]];
      delete presaleListMaxPurchases[CURRENT_PASS_ID][entries[i]];
    }
  }

  function addToFreeMintList(
    address[] calldata entries,
    uint256[] calldata purchases
  ) external onlyOwner {
    for (uint256 i; i < entries.length; i++) {
      require(entries[i] != address(0), "NULL_ADDRESS");
      require(!freeMintList[CURRENT_PASS_ID][entries[i]], "DUPLICATE_ENTRY");

      freeMintList[CURRENT_PASS_ID][entries[i]] = true;
      freeMintListMaxMint[CURRENT_PASS_ID][entries[i]] = purchases[i];
    }
  }

  function removeFromFreeMintList(address[] calldata entries)
    external
    onlyOwner
  {
    for (uint256 i; i < entries.length; i++) {
      require(entries[i] != address(0), "NULL_ADDRESS");

      delete freeMintList[CURRENT_PASS_ID][entries[i]];
      delete freeMintListMaxMint[CURRENT_PASS_ID][entries[i]];
    }
  }

  function gift(address[] calldata receivers, uint256[] calldata amounts)
    external
    onlyOwner
  {
    require(
      amountMinted[CURRENT_PASS_ID] < CURRENT_PASS_MAX_AMOUNT,
      "OUT_OF_STOCK"
    );
    require(
      amountMinted[CURRENT_PASS_ID] + receivers.length <=
        CURRENT_PASS_MAX_AMOUNT,
      "EXCEED_STOCK"
    );

    for (uint256 i; i < receivers.length; i++) {
      require(receivers[i] != address(0), "NULL_ADDRESS");

      amountMinted[CURRENT_PASS_ID] += amounts[i];
      _mint(receivers[i], CURRENT_PASS_ID, amounts[i], "");
    }
  }

  function withdraw() external onlyOwner {
    payable(msg.sender).transfer(address(this).balance);
  }

  // The following functions are overrides required by Solidity.

  function _burn(
    address account,
    uint256 id,
    uint256 amount
  ) internal override(ERC1155, ERC1155Supply) {
    super._burn(account, id, amount);
  }

  function _burnBatch(
    address account,
    uint256[] memory ids,
    uint256[] memory amounts
  ) internal override(ERC1155, ERC1155Supply) {
    super._burnBatch(account, ids, amounts);
  }

  function _mint(
    address account,
    uint256 id,
    uint256 amount,
    bytes memory data
  ) internal override(ERC1155, ERC1155Supply) {
    super._mint(account, id, amount, data);
  }

  function _mintBatch(
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) internal override(ERC1155, ERC1155Supply) {
    super._mintBatch(to, ids, amounts, data);
  }
}

File 2 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT

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 {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), account, 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 `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

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

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

        emit TransferSingle(operator, account, 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 account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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

    /**
     * @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 3 of 13 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 4 of 13 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 5 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT

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 8 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

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

File 9 of 13 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

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 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev 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 11 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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 13 : ERC165.sol
// SPDX-License-Identifier: MIT

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 13 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":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":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"},{"inputs":[],"name":"ARTEFACT_PASS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENT_PASS_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENT_PASS_MAX_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENT_PASS_MAX_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENT_PASS_PRESALE_MAX_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENT_PASS_PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENT_PASS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"},{"internalType":"uint256[]","name":"purchases","type":"uint256[]"}],"name":"addToFreeMintList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"},{"internalType":"uint256[]","name":"purchases","type":"uint256[]"}],"name":"addToPresaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"amountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"freeMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"freeMintListMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"freeMintListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isArtefactPassAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintByHoldArtefactPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"presaleAmountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"presaleList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"presaleListMaxPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"presaleListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemedArtefactPass","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"removeFromFreeMintList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"removeFromPresaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"address","name":"tokenAddress","type":"address"}],"name":"setArtefactPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxPurchase","type":"uint256"},{"internalType":"uint256","name":"presaleAmount","type":"uint256"},{"internalType":"uint256","name":"presalePrice","type":"uint256"}],"name":"setCurrentPass","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":"toggleArtefactPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600c60808190526b41726b6970656c205061737360a01b60a09081526200002f916016919062000116565b506040805180820190915260088082526741726b695061737360c01b6020909201918252620000619160179162000116565b503480156200006f57600080fd5b50604080518082019091526007815266697066733a2f2f60c81b60208201526200009981620000ab565b50620000a533620000c4565b620001f9565b8051620000c090600290602084019062000116565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012490620001bc565b90600052602060002090601f01602090048101928262000148576000855562000193565b82601f106200016357805160ff191683800117855562000193565b8280016001018555821562000193579182015b828111156200019357825182559160200191906001019062000176565b50620001a1929150620001a5565b5090565b5b80821115620001a15760008155600101620001a6565b600181811c90821680620001d157607f821691505b60208210811415620001f357634e487b7160e01b600052602260045260246000fd5b50919050565b613ee380620002096000396000f3fe60806040526004361061036a5760003560e01c80636e3877f6116101c6578063a22cb465116100f7578063d4e27a0111610095578063e985e9c51161006f578063e985e9c514610a67578063f242432a14610ab0578063f2fde38b14610ad0578063f5298aca14610af057600080fd5b8063d4e27a01146109fa578063e66f75d714610a32578063e8a3d48514610a5257600080fd5b8063b179e060116100d1578063b179e06014610984578063bd85b039146109a4578063c9b298f1146109d1578063ca751e6e146109e457600080fd5b8063a22cb46514610938578063a4859bd614610958578063ad0a8de41461096e57600080fd5b80637f99e10111610164578063938e3d7b1161013e578063938e3d7b146108d057806395d89b41146108f057806398a7567814610905578063a0712d681461092557600080fd5b80637f99e101146108705780638da5cb5b14610885578063926df1b2146108a357600080fd5b80637705f9b5116101a05780637705f9b5146107fa5780637a5b85c11461081a5780637c928fe91461083b5780637d8966e41461085b57600080fd5b80636e3877f614610798578063715018a6146107d057806372c0fa54146107e557600080fd5b80633529e730116102a057806352d349701161023e5780635d2ad9dc116102185780635d2ad9dc1461071e5780635e3910901461073e57806360d938dc1461075e5780636b20c4541461077857600080fd5b806352d34970146106bf57806355f804b3146106df578063564566a8146106ff57600080fd5b806346ec80451161027a57806346ec8045146106155780634e1273f41461062b5780634e5dc74c146106585780634f558e791461069057600080fd5b80633529e730146105b35780633ccfd60b146105e05780633e02bacc146105f557600080fd5b806315db45b91161030d5780632b977f2f116102e75780632b977f2f146105485780632eb2c2d61461056857806331b4d58314610588578063343937431461059e57600080fd5b806315db45b9146104b35780631db5502f146104ee578063261eb6191461051057600080fd5b806306fdde031161034957806306fdde03146103e857806309dbd3ae1461040a5780630c2b54f1146104455780630e89341c1461049357600080fd5b8062fdd58e1461036f57806301ffc9a7146103a2578063029463f0146103d2575b600080fd5b34801561037b57600080fd5b5061038f61038a3660046135b6565b610b10565b6040519081526020015b60405180910390f35b3480156103ae57600080fd5b506103c26103bd366004613788565b610ba7565b6040519015158152602001610399565b3480156103de57600080fd5b5061038f600a5481565b3480156103f457600080fd5b506103fd610bf9565b60405161039991906139f4565b34801561041657600080fd5b506103c2610425366004613825565b600f60209081526000928352604080842090915290825290205460ff1681565b34801561045157600080fd5b5061047b61046036600461380d565b6014602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610399565b34801561049f57600080fd5b506103fd6104ae36600461380d565b610c87565b3480156104bf57600080fd5b506103c26104ce366004613825565b600e60209081526000928352604080842090915290825290205460ff1681565b3480156104fa57600080fd5b5061050e610509366004613615565b610d1b565b005b34801561051c57600080fd5b5061038f61052b366004613825565b601160209081526000928352604080842090915290825290205481565b34801561055457600080fd5b5061050e610563366004613849565b610e90565b34801561057457600080fd5b5061050e610583366004613404565b610ed7565b34801561059457600080fd5b5061038f60075481565b3480156105aa57600080fd5b5061050e610f6e565b3480156105bf57600080fd5b5061038f6105ce36600461380d565b600d6020526000908152604090205481565b3480156105ec57600080fd5b5061050e610fac565b34801561060157600080fd5b5061050e61061036600461380d565b611005565b34801561062157600080fd5b5061038f60055481565b34801561063757600080fd5b5061064b6106463660046136bc565b611250565b60405161039991906139b3565b34801561066457600080fd5b5061038f610673366004613825565b601360209081526000928352604080842090915290825290205481565b34801561069c57600080fd5b506103c26106ab36600461380d565b600090815260036020526040902054151590565b3480156106cb57600080fd5b5061050e6106da366004613654565b6113b1565b3480156106eb57600080fd5b5061050e6106fa3660046137c0565b6115f7565b34801561070b57600080fd5b506015546103c290610100900460ff1681565b34801561072a57600080fd5b50600b5461047b906001600160a01b031681565b34801561074a57600080fd5b5061050e610759366004613654565b61162a565b34801561076a57600080fd5b506015546103c29060ff1681565b34801561078457600080fd5b5061050e610793366004613513565b611870565b3480156107a457600080fd5b5061038f6107b3366004613825565b601060209081526000928352604080842090915290825290205481565b3480156107dc57600080fd5b5061050e6118b3565b3480156107f157600080fd5b5061050e6118e9565b34801561080657600080fd5b5061050e610815366004613654565b611934565b34801561082657600080fd5b506015546103c2906301000000900460ff1681565b34801561084757600080fd5b5061050e61085636600461380d565b611b11565b34801561086757600080fd5b5061050e611d52565b34801561087c57600080fd5b5061050e611d99565b34801561089157600080fd5b506004546001600160a01b031661047b565b3480156108af57600080fd5b5061038f6108be36600461380d565b600c6020526000908152604090205481565b3480156108dc57600080fd5b5061050e6108eb3660046137c0565b611de2565b3480156108fc57600080fd5b506103fd611e23565b34801561091157600080fd5b506015546103c29062010000900460ff1681565b61050e61093336600461380d565b611e30565b34801561094457600080fd5b5061050e610953366004613585565b611fd1565b34801561096457600080fd5b5061038f60085481565b34801561097a57600080fd5b5061038f60095481565b34801561099057600080fd5b5061050e61099f366004613615565b6120a8565b3480156109b057600080fd5b5061038f6109bf36600461380d565b60009081526003602052604090205490565b61050e6109df36600461380d565b612218565b3480156109f057600080fd5b5061038f60065481565b348015610a0657600080fd5b5061038f610a15366004613825565b601260209081526000928352604080842090915290825290205481565b348015610a3e57600080fd5b5061050e610a4d366004613394565b612523565b348015610a5e57600080fd5b506103fd61256f565b348015610a7357600080fd5b506103c2610a823660046133cc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610abc57600080fd5b5061050e610acb3660046134ad565b612601565b348015610adc57600080fd5b5061050e610aeb366004613394565b612646565b348015610afc57600080fd5b5061050e610b0b3660046135e1565b6126de565b60006001600160a01b038316610b815760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610bd857506001600160e01b031982166303a24d0760e21b145b80610bf357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60168054610c0690613d33565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3290613d33565b8015610c7f5780601f10610c5457610100808354040283529160200191610c7f565b820191906000526020600020905b815481529060010190602001808311610c6257829003601f168201915b505050505081565b606060028054610c9690613d33565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc290613d33565b8015610d0f5780601f10610ce457610100808354040283529160200191610d0f565b820191906000526020600020905b815481529060010190602001808311610cf257829003601f168201915b50505050509050919050565b6004546001600160a01b03163314610d455760405162461bcd60e51b8152600401610b7890613c45565b60005b81811015610e8b576000838383818110610d7257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d879190613394565b6001600160a01b03161415610dae5760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600f6020526040812090848484818110610de057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610df59190613394565b6001600160a01b0316815260208082019290925260409081016000908120805460ff1916905560055481526012909252812090848484818110610e4857634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e5d9190613394565b6001600160a01b03168152602081019190915260400160009081205580610e8381613d9a565b915050610d48565b505050565b6004546001600160a01b03163314610eba5760405162461bcd60e51b8152600401610b7890613c45565b600595909555600693909355600791909155600855600955600a55565b6001600160a01b038516331480610ef35750610ef38533610a82565b610f5a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b78565b610f678585858585612721565b5050505050565b6004546001600160a01b03163314610f985760405162461bcd60e51b8152600401610b7890613c45565b6015805460ff19811660ff90911615179055565b6004546001600160a01b03163314610fd65760405162461bcd60e51b8152600401610b7890613c45565b60405133904780156108fc02916000818181858888f19350505050158015611002573d6000803e3d6000fd5b50565b60155460ff1615801561101f5750601554610100900460ff165b61103b5760405162461bcd60e51b8152600401610b7890613b4e565b60155462010000900460ff166110935760405162461bcd60e51b815260206004820152601960248201527f41525445464143545f465245455f4d494e545f434c4f534544000000000000006044820152606401610b78565b6006546005546000908152600c6020526040902054106110c55760405162461bcd60e51b8152600401610b7890613b28565b6000818152601460205260409020546001600160a01b03161561111d5760405162461bcd60e51b815260206004820152601060248201526f115610d1515117d194915157d352539560821b6044820152606401610b78565b600b546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561116157600080fd5b505afa158015611175573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119991906133b0565b6001600160a01b0316336001600160a01b0316146111ef5760405162461bcd60e51b815260206004820152601360248201527227a7262cafa0a92a22a320a1aa2fa7aba722a960691b6044820152606401610b78565b6005546000908152600c6020526040812080549161120c83613d9a565b9091555050600081815260146020908152604080832080546001600160a01b03191633908117909155600554825193840190925292825261100292916001906128d9565b606081518351146112b55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b78565b600083516001600160401b038111156112de57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611307578160200160208202803683370190505b50905060005b84518110156113a95761136e85828151811061133957634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061136157634e487b7160e01b600052603260045260246000fd5b6020026020010151610b10565b82828151811061138e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526113a281613d9a565b905061130d565b509392505050565b6004546001600160a01b031633146113db5760405162461bcd60e51b8152600401610b7890613c45565b60005b83811015610f6757600085858381811061140857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061141d9190613394565b6001600160a01b031614156114445760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600f602052604081209086868481811061147657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061148b9190613394565b6001600160a01b0316815260208101919091526040016000205460ff16156114e75760405162461bcd60e51b815260206004820152600f60248201526e4455504c49434154455f454e54525960881b6044820152606401610b78565b6005546000908152600f6020526040812060019187878581811061151b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115309190613394565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905582828281811061157857634e487b7160e01b600052603260045260246000fd5b9050602002013560126000600554815260200190815260200160002060008787858181106115b657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115cb9190613394565b6001600160a01b03168152602081019190915260400160002055806115ef81613d9a565b9150506113de565b6004546001600160a01b031633146116215760405162461bcd60e51b8152600401610b7890613c45565b611002816128eb565b6004546001600160a01b031633146116545760405162461bcd60e51b8152600401610b7890613c45565b60005b83811015610f6757600085858381811061168157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116969190613394565b6001600160a01b031614156116bd5760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600e60205260408120908686848181106116ef57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906117049190613394565b6001600160a01b0316815260208101919091526040016000205460ff16156117605760405162461bcd60e51b815260206004820152600f60248201526e4455504c49434154455f454e54525960881b6044820152606401610b78565b6005546000908152600e6020526040812060019187878581811061179457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906117a99190613394565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558282828181106117f157634e487b7160e01b600052603260045260246000fd5b90506020020135601060006005548152602001908152602001600020600087878581811061182f57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906118449190613394565b6001600160a01b031681526020810191909152604001600020558061186881613d9a565b915050611657565b6001600160a01b03831633148061188c575061188c8333610a82565b6118a85760405162461bcd60e51b8152600401610b7890613adf565b610e8b8383836128fe565b6004546001600160a01b031633146118dd5760405162461bcd60e51b8152600401610b7890613c45565b6118e76000612909565b565b6004546001600160a01b031633146119135760405162461bcd60e51b8152600401610b7890613c45565b6015805463ff00000019811663010000009182900460ff1615909102179055565b6004546001600160a01b0316331461195e5760405162461bcd60e51b8152600401610b7890613c45565b6006546005546000908152600c6020526040902054106119905760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c60205260409020546119b0908590613ce5565b11156119ce5760405162461bcd60e51b8152600401610b7890613a75565b60005b83811015610f675760008585838181106119fb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a109190613394565b6001600160a01b03161415611a375760405162461bcd60e51b8152600401610b7890613a4f565b828282818110611a5757634e487b7160e01b600052603260045260246000fd5b90506020020135600c600060055481526020019081526020016000206000828254611a829190613ce5565b90915550611aff9050858583818110611aab57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611ac09190613394565b600554858585818110611ae357634e487b7160e01b600052603260045260246000fd5b90506020020135604051806020016040528060008152506128d9565b80611b0981613d9a565b9150506119d1565b6015546301000000900460ff16611b5d5760405162461bcd60e51b815260206004820152601060248201526f1194915157d352539517d0d313d4d15160821b6044820152606401610b78565b60155460ff1680611b755750601554610100900460ff165b611b915760405162461bcd60e51b8152600401610b7890613b4e565b6005546000908152600f6020908152604080832033845290915290205460ff16611bed5760405162461bcd60e51b815260206004820152600d60248201526c1393d517d45550531251925151609a1b6044820152606401610b78565b6006546005546000908152600c602052604090205410611c1f5760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c6020526040902054611c3f908390613ce5565b1115611c5d5760405162461bcd60e51b8152600401610b7890613a75565b6005546000818152601260209081526040808320338085529083528184205494845260138352818420908452909152902054611c9a908390613ce5565b1115611cdc5760405162461bcd60e51b815260206004820152601160248201527022ac21a2a2a22fa0a62627a1a0aa24a7a760791b6044820152606401610b78565b6005546000908152600c602052604081208054839290611cfd908490613ce5565b9091555050600554600090815260136020908152604080832033845290915281208054839290611d2e908490613ce5565b925050819055506110023360055483604051806020016040528060008152506128d9565b6004546001600160a01b03163314611d7c5760405162461bcd60e51b8152600401610b7890613c45565b6015805461ff001981166101009182900460ff1615909102179055565b6004546001600160a01b03163314611dc35760405162461bcd60e51b8152600401610b7890613c45565b6015805462ff0000198116620100009182900460ff1615909102179055565b6004546001600160a01b03163314611e0c5760405162461bcd60e51b8152600401610b7890613c45565b8051611e1f9060189060208401906131bb565b5050565b60178054610c0690613d33565b60008111611e725760405162461bcd60e51b815260206004820152600f60248201526e145550539512551657d39151511151608a1b6044820152606401610b78565b60155460ff16158015611e8c5750601554610100900460ff165b611ea85760405162461bcd60e51b8152600401610b7890613b4e565b6006546005546000908152600c602052604090205410611eda5760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c6020526040902054611efa908390613ce5565b1115611f185760405162461bcd60e51b8152600401610b7890613a75565b600854811115611f605760405162461bcd60e51b81526020600482015260136024820152724558434545445f4d41585f505552434841534560681b6044820152606401610b78565b3481600754611f6f9190613cfd565b1115611fb05760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610b78565b6005546000908152600c602052604081208054839290611d2e908490613ce5565b336001600160a01b038316141561203c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b78565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146120d25760405162461bcd60e51b8152600401610b7890613c45565b60005b81811015610e8b5760008383838181106120ff57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121149190613394565b6001600160a01b0316141561213b5760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600e602052604081209084848481811061216d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121829190613394565b6001600160a01b0316815260208082019290925260409081016000908120805460ff19169055600554815260109092528120908484848181106121d557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121ea9190613394565b6001600160a01b0316815260208101919091526040016000908120558061221081613d9a565b9150506120d5565b6000811161225a5760405162461bcd60e51b815260206004820152600f60248201526e145550539512551657d39151511151608a1b6044820152606401610b78565b60155460ff1680156122745750601554610100900460ff16155b6122b15760405162461bcd60e51b815260206004820152600e60248201526d14149154d0531157d0d313d4d15160921b6044820152606401610b78565b6005546000908152600e6020908152604080832033845290915290205460ff1661230d5760405162461bcd60e51b815260206004820152600d60248201526c1393d517d45550531251925151609a1b6044820152606401610b78565b6006546005546000908152600c60205260409020541061233f5760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c602052604090205461235f908390613ce5565b111561237d5760405162461bcd60e51b8152600401610b7890613a75565b6009546005546000908152600d602052604090205461239d908390613ce5565b11156123dc5760405162461bcd60e51b815260206004820152600e60248201526d4558434545445f50524553414c4560901b6044820152606401610b78565b6005546000818152601060209081526040808320338085529083528184205494845260118352818420908452909152902054612419908390613ce5565b111561245b5760405162461bcd60e51b815260206004820152601160248201527022ac21a2a2a22fa0a62627a1a0aa24a7a760791b6044820152606401610b78565b3481600a5461246a9190613cfd565b11156124ab5760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610b78565b6005546000908152600c6020526040812080548392906124cc908490613ce5565b90915550506005546000908152600d6020526040812080548392906124f2908490613ce5565b9091555050600554600090815260116020908152604080832033845290915281208054839290611d2e908490613ce5565b6004546001600160a01b0316331461254d5760405162461bcd60e51b8152600401610b7890613c45565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60606018805461257e90613d33565b80601f01602080910402602001604051908101604052809291908181526020018280546125aa90613d33565b80156125f75780601f106125cc576101008083540402835291602001916125f7565b820191906000526020600020905b8154815290600101906020018083116125da57829003601f168201915b5050505050905090565b6001600160a01b03851633148061261d575061261d8533610a82565b6126395760405162461bcd60e51b8152600401610b7890613adf565b610f67858585858561295b565b6004546001600160a01b031633146126705760405162461bcd60e51b8152600401610b7890613c45565b6001600160a01b0381166126d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b78565b61100281612909565b6001600160a01b0383163314806126fa57506126fa8333610a82565b6127165760405162461bcd60e51b8152600401610b7890613adf565b610e8b838383612a81565b81518351146127425760405162461bcd60e51b8152600401610b7890613c7a565b6001600160a01b0384166127685760405162461bcd60e51b8152600401610b7890613b73565b3360005b845181101561286b57600085828151811061279757634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106127c357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156128135760405162461bcd60e51b8152600401610b7890613bfb565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612850908490613ce5565b925050819055505050508061286490613d9a565b905061276c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128bb9291906139c6565b60405180910390a46128d1818787878787612a8c565b505050505050565b6128e584848484612bf7565b50505050565b8051611e1f9060029060208401906131bb565b610e8b838383612c2c565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166129815760405162461bcd60e51b8152600401610b7890613b73565b3361299a81878761299188612cca565b610f6788612cca565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156129db5760405162461bcd60e51b8152600401610b7890613bfb565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612a18908490613ce5565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612a78828888888888612d23565b50505050505050565b610e8b838383612ded565b6001600160a01b0384163b156128d15760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ad09089908990889088908890600401613910565b602060405180830381600087803b158015612aea57600080fd5b505af1925050508015612b1a575060408051601f3d908101601f19168201909252612b17918101906137a4565b60015b612bc757612b26613de1565b806308c379a01415612b605750612b3b613df9565b80612b465750612b62565b8060405162461bcd60e51b8152600401610b7891906139f4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b78565b6001600160e01b0319811663bc197c8160e01b14612a785760405162461bcd60e51b8152600401610b7890613a07565b612c0384848484612e20565b60008381526003602052604081208054849290612c21908490613ce5565b909155505050505050565b612c37838383612f21565b60005b82518110156128e557818181518110612c6357634e487b7160e01b600052603260045260246000fd5b602002602001015160036000858481518110612c8f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612cb49190613d1c565b90915550612cc3905081613d9a565b9050612c3a565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612d1257634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156128d15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612d67908990899088908890889060040161396e565b602060405180830381600087803b158015612d8157600080fd5b505af1925050508015612db1575060408051601f3d908101601f19168201909252612dae918101906137a4565b60015b612dbd57612b26613de1565b6001600160e01b0319811663f23a6e6160e01b14612a785760405162461bcd60e51b8152600401610b7890613a07565b612df88383836130b9565b60008281526003602052604081208054839290612e16908490613d1c565b9091555050505050565b6001600160a01b038416612e805760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b78565b33612e918160008761299188612cca565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612ec1908490613ce5565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f6781600087878787612d23565b6001600160a01b038316612f475760405162461bcd60e51b8152600401610b7890613bb8565b8051825114612f685760405162461bcd60e51b8152600401610b7890613c7a565b604080516020810190915260009081905233905b835181101561305a576000848281518110612fa757634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612fd357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156130235760405162461bcd60e51b8152600401610b7890613a9b565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061305281613d9a565b915050612f7c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516130ab9291906139c6565b60405180910390a450505050565b6001600160a01b0383166130df5760405162461bcd60e51b8152600401610b7890613bb8565b3361310f818560006130f087612cca565b6130f987612cca565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156131505760405162461bcd60e51b8152600401610b7890613a9b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b8280546131c790613d33565b90600052602060002090601f0160209004810192826131e9576000855561322f565b82601f1061320257805160ff191683800117855561322f565b8280016001018555821561322f579182015b8281111561322f578251825591602001919060010190613214565b5061323b92915061323f565b5090565b5b8082111561323b5760008155600101613240565b60006001600160401b0383111561326d5761326d613dcb565b604051613284601f8501601f191660200182613d6e565b80915083815284848401111561329957600080fd5b83836020830137600060208583010152509392505050565b60008083601f8401126132c2578182fd5b5081356001600160401b038111156132d8578182fd5b6020830191508360208260051b85010111156132f357600080fd5b9250929050565b600082601f83011261330a578081fd5b8135602061331782613cc2565b6040516133248282613d6e565b8381528281019150858301600585901b87018401881015613343578586fd5b855b8581101561336157813584529284019290840190600101613345565b5090979650505050505050565b600082601f83011261337e578081fd5b61338d83833560208501613254565b9392505050565b6000602082840312156133a5578081fd5b813561338d81613e82565b6000602082840312156133c1578081fd5b815161338d81613e82565b600080604083850312156133de578081fd5b82356133e981613e82565b915060208301356133f981613e82565b809150509250929050565b600080600080600060a0868803121561341b578081fd5b853561342681613e82565b9450602086013561343681613e82565b935060408601356001600160401b0380821115613451578283fd5b61345d89838a016132fa565b94506060880135915080821115613472578283fd5b61347e89838a016132fa565b93506080880135915080821115613493578283fd5b506134a08882890161336e565b9150509295509295909350565b600080600080600060a086880312156134c4578081fd5b85356134cf81613e82565b945060208601356134df81613e82565b9350604086013592506060860135915060808601356001600160401b03811115613507578182fd5b6134a08882890161336e565b600080600060608486031215613527578283fd5b833561353281613e82565b925060208401356001600160401b038082111561354d578384fd5b613559878388016132fa565b9350604086013591508082111561356e578283fd5b5061357b868287016132fa565b9150509250925092565b60008060408385031215613597578182fd5b82356135a281613e82565b9150602083013580151581146133f9578182fd5b600080604083850312156135c8578182fd5b82356135d381613e82565b946020939093013593505050565b6000806000606084860312156135f5578081fd5b833561360081613e82565b95602085013595506040909401359392505050565b60008060208385031215613627578182fd5b82356001600160401b0381111561363c578283fd5b613648858286016132b1565b90969095509350505050565b60008060008060408587031215613669578182fd5b84356001600160401b038082111561367f578384fd5b61368b888389016132b1565b909650945060208701359150808211156136a3578384fd5b506136b0878288016132b1565b95989497509550505050565b600080604083850312156136ce578182fd5b82356001600160401b03808211156136e4578384fd5b818501915085601f8301126136f7578384fd5b8135602061370482613cc2565b6040516137118282613d6e565b8381528281019150858301600585901b870184018b1015613730578889fd5b8896505b8487101561375b57803561374781613e82565b835260019690960195918301918301613734565b5096505086013592505080821115613771578283fd5b5061377e858286016132fa565b9150509250929050565b600060208284031215613799578081fd5b813561338d81613e97565b6000602082840312156137b5578081fd5b815161338d81613e97565b6000602082840312156137d1578081fd5b81356001600160401b038111156137e6578182fd5b8201601f810184136137f6578182fd5b61380584823560208401613254565b949350505050565b60006020828403121561381e578081fd5b5035919050565b60008060408385031215613837578182fd5b8235915060208301356133f981613e82565b60008060008060008060c08789031215613861578384fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b6000815180845260208085019450808401835b838110156138ba5781518752958201959082019060010161389e565b509495945050505050565b60008151808452815b818110156138ea576020818501810151868301820152016138ce565b818111156138fb5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015260a06040820181905260009061393c9083018661388b565b828103606084015261394e818661388b565b9050828103608084015261396281856138c5565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906139a8908301846138c5565b979650505050505050565b60208152600061338d602083018461388b565b6040815260006139d9604083018561388b565b82810360208401526139eb818561388b565b95945050505050565b60208152600061338d60208301846138c5565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252600c908201526b4e554c4c5f4144445245535360a01b604082015260600190565b6020808252600c908201526b4558434545445f53544f434b60a01b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6020808252600c908201526b4f55545f4f465f53544f434b60a01b604082015260600190565b6020808252600b908201526a14d0531157d0d313d4d15160aa1b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60006001600160401b03821115613cdb57613cdb613dcb565b5060051b60200190565b60008219821115613cf857613cf8613db5565b500190565b6000816000190483118215151615613d1757613d17613db5565b500290565b600082821015613d2e57613d2e613db5565b500390565b600181811c90821680613d4757607f821691505b60208210811415613d6857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715613d9357613d93613dcb565b6040525050565b6000600019821415613dae57613dae613db5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613df657600481823e5160e01c5b90565b600060443d1015613e075790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e3657505050505090565b8285019150815181811115613e4e5750505050505090565b843d8701016020828501011115613e685750505050505090565b613e7760208286010187613d6e565b509095945050505050565b6001600160a01b038116811461100257600080fd5b6001600160e01b03198116811461100257600080fdfea26469706673582212206e5efa6d8b04cfb0c37458636836cd5dfa81e13e4b879bea0f3a68dac490146964736f6c63430008040033

Deployed Bytecode

0x60806040526004361061036a5760003560e01c80636e3877f6116101c6578063a22cb465116100f7578063d4e27a0111610095578063e985e9c51161006f578063e985e9c514610a67578063f242432a14610ab0578063f2fde38b14610ad0578063f5298aca14610af057600080fd5b8063d4e27a01146109fa578063e66f75d714610a32578063e8a3d48514610a5257600080fd5b8063b179e060116100d1578063b179e06014610984578063bd85b039146109a4578063c9b298f1146109d1578063ca751e6e146109e457600080fd5b8063a22cb46514610938578063a4859bd614610958578063ad0a8de41461096e57600080fd5b80637f99e10111610164578063938e3d7b1161013e578063938e3d7b146108d057806395d89b41146108f057806398a7567814610905578063a0712d681461092557600080fd5b80637f99e101146108705780638da5cb5b14610885578063926df1b2146108a357600080fd5b80637705f9b5116101a05780637705f9b5146107fa5780637a5b85c11461081a5780637c928fe91461083b5780637d8966e41461085b57600080fd5b80636e3877f614610798578063715018a6146107d057806372c0fa54146107e557600080fd5b80633529e730116102a057806352d349701161023e5780635d2ad9dc116102185780635d2ad9dc1461071e5780635e3910901461073e57806360d938dc1461075e5780636b20c4541461077857600080fd5b806352d34970146106bf57806355f804b3146106df578063564566a8146106ff57600080fd5b806346ec80451161027a57806346ec8045146106155780634e1273f41461062b5780634e5dc74c146106585780634f558e791461069057600080fd5b80633529e730146105b35780633ccfd60b146105e05780633e02bacc146105f557600080fd5b806315db45b91161030d5780632b977f2f116102e75780632b977f2f146105485780632eb2c2d61461056857806331b4d58314610588578063343937431461059e57600080fd5b806315db45b9146104b35780631db5502f146104ee578063261eb6191461051057600080fd5b806306fdde031161034957806306fdde03146103e857806309dbd3ae1461040a5780630c2b54f1146104455780630e89341c1461049357600080fd5b8062fdd58e1461036f57806301ffc9a7146103a2578063029463f0146103d2575b600080fd5b34801561037b57600080fd5b5061038f61038a3660046135b6565b610b10565b6040519081526020015b60405180910390f35b3480156103ae57600080fd5b506103c26103bd366004613788565b610ba7565b6040519015158152602001610399565b3480156103de57600080fd5b5061038f600a5481565b3480156103f457600080fd5b506103fd610bf9565b60405161039991906139f4565b34801561041657600080fd5b506103c2610425366004613825565b600f60209081526000928352604080842090915290825290205460ff1681565b34801561045157600080fd5b5061047b61046036600461380d565b6014602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610399565b34801561049f57600080fd5b506103fd6104ae36600461380d565b610c87565b3480156104bf57600080fd5b506103c26104ce366004613825565b600e60209081526000928352604080842090915290825290205460ff1681565b3480156104fa57600080fd5b5061050e610509366004613615565b610d1b565b005b34801561051c57600080fd5b5061038f61052b366004613825565b601160209081526000928352604080842090915290825290205481565b34801561055457600080fd5b5061050e610563366004613849565b610e90565b34801561057457600080fd5b5061050e610583366004613404565b610ed7565b34801561059457600080fd5b5061038f60075481565b3480156105aa57600080fd5b5061050e610f6e565b3480156105bf57600080fd5b5061038f6105ce36600461380d565b600d6020526000908152604090205481565b3480156105ec57600080fd5b5061050e610fac565b34801561060157600080fd5b5061050e61061036600461380d565b611005565b34801561062157600080fd5b5061038f60055481565b34801561063757600080fd5b5061064b6106463660046136bc565b611250565b60405161039991906139b3565b34801561066457600080fd5b5061038f610673366004613825565b601360209081526000928352604080842090915290825290205481565b34801561069c57600080fd5b506103c26106ab36600461380d565b600090815260036020526040902054151590565b3480156106cb57600080fd5b5061050e6106da366004613654565b6113b1565b3480156106eb57600080fd5b5061050e6106fa3660046137c0565b6115f7565b34801561070b57600080fd5b506015546103c290610100900460ff1681565b34801561072a57600080fd5b50600b5461047b906001600160a01b031681565b34801561074a57600080fd5b5061050e610759366004613654565b61162a565b34801561076a57600080fd5b506015546103c29060ff1681565b34801561078457600080fd5b5061050e610793366004613513565b611870565b3480156107a457600080fd5b5061038f6107b3366004613825565b601060209081526000928352604080842090915290825290205481565b3480156107dc57600080fd5b5061050e6118b3565b3480156107f157600080fd5b5061050e6118e9565b34801561080657600080fd5b5061050e610815366004613654565b611934565b34801561082657600080fd5b506015546103c2906301000000900460ff1681565b34801561084757600080fd5b5061050e61085636600461380d565b611b11565b34801561086757600080fd5b5061050e611d52565b34801561087c57600080fd5b5061050e611d99565b34801561089157600080fd5b506004546001600160a01b031661047b565b3480156108af57600080fd5b5061038f6108be36600461380d565b600c6020526000908152604090205481565b3480156108dc57600080fd5b5061050e6108eb3660046137c0565b611de2565b3480156108fc57600080fd5b506103fd611e23565b34801561091157600080fd5b506015546103c29062010000900460ff1681565b61050e61093336600461380d565b611e30565b34801561094457600080fd5b5061050e610953366004613585565b611fd1565b34801561096457600080fd5b5061038f60085481565b34801561097a57600080fd5b5061038f60095481565b34801561099057600080fd5b5061050e61099f366004613615565b6120a8565b3480156109b057600080fd5b5061038f6109bf36600461380d565b60009081526003602052604090205490565b61050e6109df36600461380d565b612218565b3480156109f057600080fd5b5061038f60065481565b348015610a0657600080fd5b5061038f610a15366004613825565b601260209081526000928352604080842090915290825290205481565b348015610a3e57600080fd5b5061050e610a4d366004613394565b612523565b348015610a5e57600080fd5b506103fd61256f565b348015610a7357600080fd5b506103c2610a823660046133cc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610abc57600080fd5b5061050e610acb3660046134ad565b612601565b348015610adc57600080fd5b5061050e610aeb366004613394565b612646565b348015610afc57600080fd5b5061050e610b0b3660046135e1565b6126de565b60006001600160a01b038316610b815760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610bd857506001600160e01b031982166303a24d0760e21b145b80610bf357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60168054610c0690613d33565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3290613d33565b8015610c7f5780601f10610c5457610100808354040283529160200191610c7f565b820191906000526020600020905b815481529060010190602001808311610c6257829003601f168201915b505050505081565b606060028054610c9690613d33565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc290613d33565b8015610d0f5780601f10610ce457610100808354040283529160200191610d0f565b820191906000526020600020905b815481529060010190602001808311610cf257829003601f168201915b50505050509050919050565b6004546001600160a01b03163314610d455760405162461bcd60e51b8152600401610b7890613c45565b60005b81811015610e8b576000838383818110610d7257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610d879190613394565b6001600160a01b03161415610dae5760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600f6020526040812090848484818110610de057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610df59190613394565b6001600160a01b0316815260208082019290925260409081016000908120805460ff1916905560055481526012909252812090848484818110610e4857634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e5d9190613394565b6001600160a01b03168152602081019190915260400160009081205580610e8381613d9a565b915050610d48565b505050565b6004546001600160a01b03163314610eba5760405162461bcd60e51b8152600401610b7890613c45565b600595909555600693909355600791909155600855600955600a55565b6001600160a01b038516331480610ef35750610ef38533610a82565b610f5a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b78565b610f678585858585612721565b5050505050565b6004546001600160a01b03163314610f985760405162461bcd60e51b8152600401610b7890613c45565b6015805460ff19811660ff90911615179055565b6004546001600160a01b03163314610fd65760405162461bcd60e51b8152600401610b7890613c45565b60405133904780156108fc02916000818181858888f19350505050158015611002573d6000803e3d6000fd5b50565b60155460ff1615801561101f5750601554610100900460ff165b61103b5760405162461bcd60e51b8152600401610b7890613b4e565b60155462010000900460ff166110935760405162461bcd60e51b815260206004820152601960248201527f41525445464143545f465245455f4d494e545f434c4f534544000000000000006044820152606401610b78565b6006546005546000908152600c6020526040902054106110c55760405162461bcd60e51b8152600401610b7890613b28565b6000818152601460205260409020546001600160a01b03161561111d5760405162461bcd60e51b815260206004820152601060248201526f115610d1515117d194915157d352539560821b6044820152606401610b78565b600b546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561116157600080fd5b505afa158015611175573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119991906133b0565b6001600160a01b0316336001600160a01b0316146111ef5760405162461bcd60e51b815260206004820152601360248201527227a7262cafa0a92a22a320a1aa2fa7aba722a960691b6044820152606401610b78565b6005546000908152600c6020526040812080549161120c83613d9a565b9091555050600081815260146020908152604080832080546001600160a01b03191633908117909155600554825193840190925292825261100292916001906128d9565b606081518351146112b55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b78565b600083516001600160401b038111156112de57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611307578160200160208202803683370190505b50905060005b84518110156113a95761136e85828151811061133957634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061136157634e487b7160e01b600052603260045260246000fd5b6020026020010151610b10565b82828151811061138e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526113a281613d9a565b905061130d565b509392505050565b6004546001600160a01b031633146113db5760405162461bcd60e51b8152600401610b7890613c45565b60005b83811015610f6757600085858381811061140857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061141d9190613394565b6001600160a01b031614156114445760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600f602052604081209086868481811061147657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061148b9190613394565b6001600160a01b0316815260208101919091526040016000205460ff16156114e75760405162461bcd60e51b815260206004820152600f60248201526e4455504c49434154455f454e54525960881b6044820152606401610b78565b6005546000908152600f6020526040812060019187878581811061151b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115309190613394565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905582828281811061157857634e487b7160e01b600052603260045260246000fd5b9050602002013560126000600554815260200190815260200160002060008787858181106115b657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906115cb9190613394565b6001600160a01b03168152602081019190915260400160002055806115ef81613d9a565b9150506113de565b6004546001600160a01b031633146116215760405162461bcd60e51b8152600401610b7890613c45565b611002816128eb565b6004546001600160a01b031633146116545760405162461bcd60e51b8152600401610b7890613c45565b60005b83811015610f6757600085858381811061168157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116969190613394565b6001600160a01b031614156116bd5760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600e60205260408120908686848181106116ef57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906117049190613394565b6001600160a01b0316815260208101919091526040016000205460ff16156117605760405162461bcd60e51b815260206004820152600f60248201526e4455504c49434154455f454e54525960881b6044820152606401610b78565b6005546000908152600e6020526040812060019187878581811061179457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906117a99190613394565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558282828181106117f157634e487b7160e01b600052603260045260246000fd5b90506020020135601060006005548152602001908152602001600020600087878581811061182f57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906118449190613394565b6001600160a01b031681526020810191909152604001600020558061186881613d9a565b915050611657565b6001600160a01b03831633148061188c575061188c8333610a82565b6118a85760405162461bcd60e51b8152600401610b7890613adf565b610e8b8383836128fe565b6004546001600160a01b031633146118dd5760405162461bcd60e51b8152600401610b7890613c45565b6118e76000612909565b565b6004546001600160a01b031633146119135760405162461bcd60e51b8152600401610b7890613c45565b6015805463ff00000019811663010000009182900460ff1615909102179055565b6004546001600160a01b0316331461195e5760405162461bcd60e51b8152600401610b7890613c45565b6006546005546000908152600c6020526040902054106119905760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c60205260409020546119b0908590613ce5565b11156119ce5760405162461bcd60e51b8152600401610b7890613a75565b60005b83811015610f675760008585838181106119fb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611a109190613394565b6001600160a01b03161415611a375760405162461bcd60e51b8152600401610b7890613a4f565b828282818110611a5757634e487b7160e01b600052603260045260246000fd5b90506020020135600c600060055481526020019081526020016000206000828254611a829190613ce5565b90915550611aff9050858583818110611aab57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611ac09190613394565b600554858585818110611ae357634e487b7160e01b600052603260045260246000fd5b90506020020135604051806020016040528060008152506128d9565b80611b0981613d9a565b9150506119d1565b6015546301000000900460ff16611b5d5760405162461bcd60e51b815260206004820152601060248201526f1194915157d352539517d0d313d4d15160821b6044820152606401610b78565b60155460ff1680611b755750601554610100900460ff165b611b915760405162461bcd60e51b8152600401610b7890613b4e565b6005546000908152600f6020908152604080832033845290915290205460ff16611bed5760405162461bcd60e51b815260206004820152600d60248201526c1393d517d45550531251925151609a1b6044820152606401610b78565b6006546005546000908152600c602052604090205410611c1f5760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c6020526040902054611c3f908390613ce5565b1115611c5d5760405162461bcd60e51b8152600401610b7890613a75565b6005546000818152601260209081526040808320338085529083528184205494845260138352818420908452909152902054611c9a908390613ce5565b1115611cdc5760405162461bcd60e51b815260206004820152601160248201527022ac21a2a2a22fa0a62627a1a0aa24a7a760791b6044820152606401610b78565b6005546000908152600c602052604081208054839290611cfd908490613ce5565b9091555050600554600090815260136020908152604080832033845290915281208054839290611d2e908490613ce5565b925050819055506110023360055483604051806020016040528060008152506128d9565b6004546001600160a01b03163314611d7c5760405162461bcd60e51b8152600401610b7890613c45565b6015805461ff001981166101009182900460ff1615909102179055565b6004546001600160a01b03163314611dc35760405162461bcd60e51b8152600401610b7890613c45565b6015805462ff0000198116620100009182900460ff1615909102179055565b6004546001600160a01b03163314611e0c5760405162461bcd60e51b8152600401610b7890613c45565b8051611e1f9060189060208401906131bb565b5050565b60178054610c0690613d33565b60008111611e725760405162461bcd60e51b815260206004820152600f60248201526e145550539512551657d39151511151608a1b6044820152606401610b78565b60155460ff16158015611e8c5750601554610100900460ff165b611ea85760405162461bcd60e51b8152600401610b7890613b4e565b6006546005546000908152600c602052604090205410611eda5760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c6020526040902054611efa908390613ce5565b1115611f185760405162461bcd60e51b8152600401610b7890613a75565b600854811115611f605760405162461bcd60e51b81526020600482015260136024820152724558434545445f4d41585f505552434841534560681b6044820152606401610b78565b3481600754611f6f9190613cfd565b1115611fb05760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610b78565b6005546000908152600c602052604081208054839290611d2e908490613ce5565b336001600160a01b038316141561203c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b78565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146120d25760405162461bcd60e51b8152600401610b7890613c45565b60005b81811015610e8b5760008383838181106120ff57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121149190613394565b6001600160a01b0316141561213b5760405162461bcd60e51b8152600401610b7890613a4f565b6005546000908152600e602052604081209084848481811061216d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121829190613394565b6001600160a01b0316815260208082019290925260409081016000908120805460ff19169055600554815260109092528120908484848181106121d557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121ea9190613394565b6001600160a01b0316815260208101919091526040016000908120558061221081613d9a565b9150506120d5565b6000811161225a5760405162461bcd60e51b815260206004820152600f60248201526e145550539512551657d39151511151608a1b6044820152606401610b78565b60155460ff1680156122745750601554610100900460ff16155b6122b15760405162461bcd60e51b815260206004820152600e60248201526d14149154d0531157d0d313d4d15160921b6044820152606401610b78565b6005546000908152600e6020908152604080832033845290915290205460ff1661230d5760405162461bcd60e51b815260206004820152600d60248201526c1393d517d45550531251925151609a1b6044820152606401610b78565b6006546005546000908152600c60205260409020541061233f5760405162461bcd60e51b8152600401610b7890613b28565b6006546005546000908152600c602052604090205461235f908390613ce5565b111561237d5760405162461bcd60e51b8152600401610b7890613a75565b6009546005546000908152600d602052604090205461239d908390613ce5565b11156123dc5760405162461bcd60e51b815260206004820152600e60248201526d4558434545445f50524553414c4560901b6044820152606401610b78565b6005546000818152601060209081526040808320338085529083528184205494845260118352818420908452909152902054612419908390613ce5565b111561245b5760405162461bcd60e51b815260206004820152601160248201527022ac21a2a2a22fa0a62627a1a0aa24a7a760791b6044820152606401610b78565b3481600a5461246a9190613cfd565b11156124ab5760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610b78565b6005546000908152600c6020526040812080548392906124cc908490613ce5565b90915550506005546000908152600d6020526040812080548392906124f2908490613ce5565b9091555050600554600090815260116020908152604080832033845290915281208054839290611d2e908490613ce5565b6004546001600160a01b0316331461254d5760405162461bcd60e51b8152600401610b7890613c45565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60606018805461257e90613d33565b80601f01602080910402602001604051908101604052809291908181526020018280546125aa90613d33565b80156125f75780601f106125cc576101008083540402835291602001916125f7565b820191906000526020600020905b8154815290600101906020018083116125da57829003601f168201915b5050505050905090565b6001600160a01b03851633148061261d575061261d8533610a82565b6126395760405162461bcd60e51b8152600401610b7890613adf565b610f67858585858561295b565b6004546001600160a01b031633146126705760405162461bcd60e51b8152600401610b7890613c45565b6001600160a01b0381166126d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b78565b61100281612909565b6001600160a01b0383163314806126fa57506126fa8333610a82565b6127165760405162461bcd60e51b8152600401610b7890613adf565b610e8b838383612a81565b81518351146127425760405162461bcd60e51b8152600401610b7890613c7a565b6001600160a01b0384166127685760405162461bcd60e51b8152600401610b7890613b73565b3360005b845181101561286b57600085828151811061279757634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106127c357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156128135760405162461bcd60e51b8152600401610b7890613bfb565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612850908490613ce5565b925050819055505050508061286490613d9a565b905061276c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516128bb9291906139c6565b60405180910390a46128d1818787878787612a8c565b505050505050565b6128e584848484612bf7565b50505050565b8051611e1f9060029060208401906131bb565b610e8b838383612c2c565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166129815760405162461bcd60e51b8152600401610b7890613b73565b3361299a81878761299188612cca565b610f6788612cca565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156129db5760405162461bcd60e51b8152600401610b7890613bfb565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612a18908490613ce5565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612a78828888888888612d23565b50505050505050565b610e8b838383612ded565b6001600160a01b0384163b156128d15760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ad09089908990889088908890600401613910565b602060405180830381600087803b158015612aea57600080fd5b505af1925050508015612b1a575060408051601f3d908101601f19168201909252612b17918101906137a4565b60015b612bc757612b26613de1565b806308c379a01415612b605750612b3b613df9565b80612b465750612b62565b8060405162461bcd60e51b8152600401610b7891906139f4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b78565b6001600160e01b0319811663bc197c8160e01b14612a785760405162461bcd60e51b8152600401610b7890613a07565b612c0384848484612e20565b60008381526003602052604081208054849290612c21908490613ce5565b909155505050505050565b612c37838383612f21565b60005b82518110156128e557818181518110612c6357634e487b7160e01b600052603260045260246000fd5b602002602001015160036000858481518110612c8f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612cb49190613d1c565b90915550612cc3905081613d9a565b9050612c3a565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612d1257634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156128d15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612d67908990899088908890889060040161396e565b602060405180830381600087803b158015612d8157600080fd5b505af1925050508015612db1575060408051601f3d908101601f19168201909252612dae918101906137a4565b60015b612dbd57612b26613de1565b6001600160e01b0319811663f23a6e6160e01b14612a785760405162461bcd60e51b8152600401610b7890613a07565b612df88383836130b9565b60008281526003602052604081208054839290612e16908490613d1c565b9091555050505050565b6001600160a01b038416612e805760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b78565b33612e918160008761299188612cca565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612ec1908490613ce5565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f6781600087878787612d23565b6001600160a01b038316612f475760405162461bcd60e51b8152600401610b7890613bb8565b8051825114612f685760405162461bcd60e51b8152600401610b7890613c7a565b604080516020810190915260009081905233905b835181101561305a576000848281518110612fa757634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110612fd357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156130235760405162461bcd60e51b8152600401610b7890613a9b565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061305281613d9a565b915050612f7c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516130ab9291906139c6565b60405180910390a450505050565b6001600160a01b0383166130df5760405162461bcd60e51b8152600401610b7890613bb8565b3361310f818560006130f087612cca565b6130f987612cca565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156131505760405162461bcd60e51b8152600401610b7890613a9b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b8280546131c790613d33565b90600052602060002090601f0160209004810192826131e9576000855561322f565b82601f1061320257805160ff191683800117855561322f565b8280016001018555821561322f579182015b8281111561322f578251825591602001919060010190613214565b5061323b92915061323f565b5090565b5b8082111561323b5760008155600101613240565b60006001600160401b0383111561326d5761326d613dcb565b604051613284601f8501601f191660200182613d6e565b80915083815284848401111561329957600080fd5b83836020830137600060208583010152509392505050565b60008083601f8401126132c2578182fd5b5081356001600160401b038111156132d8578182fd5b6020830191508360208260051b85010111156132f357600080fd5b9250929050565b600082601f83011261330a578081fd5b8135602061331782613cc2565b6040516133248282613d6e565b8381528281019150858301600585901b87018401881015613343578586fd5b855b8581101561336157813584529284019290840190600101613345565b5090979650505050505050565b600082601f83011261337e578081fd5b61338d83833560208501613254565b9392505050565b6000602082840312156133a5578081fd5b813561338d81613e82565b6000602082840312156133c1578081fd5b815161338d81613e82565b600080604083850312156133de578081fd5b82356133e981613e82565b915060208301356133f981613e82565b809150509250929050565b600080600080600060a0868803121561341b578081fd5b853561342681613e82565b9450602086013561343681613e82565b935060408601356001600160401b0380821115613451578283fd5b61345d89838a016132fa565b94506060880135915080821115613472578283fd5b61347e89838a016132fa565b93506080880135915080821115613493578283fd5b506134a08882890161336e565b9150509295509295909350565b600080600080600060a086880312156134c4578081fd5b85356134cf81613e82565b945060208601356134df81613e82565b9350604086013592506060860135915060808601356001600160401b03811115613507578182fd5b6134a08882890161336e565b600080600060608486031215613527578283fd5b833561353281613e82565b925060208401356001600160401b038082111561354d578384fd5b613559878388016132fa565b9350604086013591508082111561356e578283fd5b5061357b868287016132fa565b9150509250925092565b60008060408385031215613597578182fd5b82356135a281613e82565b9150602083013580151581146133f9578182fd5b600080604083850312156135c8578182fd5b82356135d381613e82565b946020939093013593505050565b6000806000606084860312156135f5578081fd5b833561360081613e82565b95602085013595506040909401359392505050565b60008060208385031215613627578182fd5b82356001600160401b0381111561363c578283fd5b613648858286016132b1565b90969095509350505050565b60008060008060408587031215613669578182fd5b84356001600160401b038082111561367f578384fd5b61368b888389016132b1565b909650945060208701359150808211156136a3578384fd5b506136b0878288016132b1565b95989497509550505050565b600080604083850312156136ce578182fd5b82356001600160401b03808211156136e4578384fd5b818501915085601f8301126136f7578384fd5b8135602061370482613cc2565b6040516137118282613d6e565b8381528281019150858301600585901b870184018b1015613730578889fd5b8896505b8487101561375b57803561374781613e82565b835260019690960195918301918301613734565b5096505086013592505080821115613771578283fd5b5061377e858286016132fa565b9150509250929050565b600060208284031215613799578081fd5b813561338d81613e97565b6000602082840312156137b5578081fd5b815161338d81613e97565b6000602082840312156137d1578081fd5b81356001600160401b038111156137e6578182fd5b8201601f810184136137f6578182fd5b61380584823560208401613254565b949350505050565b60006020828403121561381e578081fd5b5035919050565b60008060408385031215613837578182fd5b8235915060208301356133f981613e82565b60008060008060008060c08789031215613861578384fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b6000815180845260208085019450808401835b838110156138ba5781518752958201959082019060010161389e565b509495945050505050565b60008151808452815b818110156138ea576020818501810151868301820152016138ce565b818111156138fb5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015260a06040820181905260009061393c9083018661388b565b828103606084015261394e818661388b565b9050828103608084015261396281856138c5565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906139a8908301846138c5565b979650505050505050565b60208152600061338d602083018461388b565b6040815260006139d9604083018561388b565b82810360208401526139eb818561388b565b95945050505050565b60208152600061338d60208301846138c5565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252600c908201526b4e554c4c5f4144445245535360a01b604082015260600190565b6020808252600c908201526b4558434545445f53544f434b60a01b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b6020808252600c908201526b4f55545f4f465f53544f434b60a01b604082015260600190565b6020808252600b908201526a14d0531157d0d313d4d15160aa1b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60006001600160401b03821115613cdb57613cdb613dcb565b5060051b60200190565b60008219821115613cf857613cf8613db5565b500190565b6000816000190483118215151615613d1757613d17613db5565b500290565b600082821015613d2e57613d2e613db5565b500390565b600181811c90821680613d4757607f821691505b60208210811415613d6857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715613d9357613d93613dcb565b6040525050565b6000600019821415613dae57613dae613db5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613df657600481823e5160e01c5b90565b600060443d1015613e075790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e3657505050505090565b8285019150815181811115613e4e5750505050505090565b843d8701016020828501011115613e685750505050505090565b613e7760208286010187613d6e565b509095945050505050565b6001600160a01b038116811461100257600080fd5b6001600160e01b03198116811461100257600080fdfea26469706673582212206e5efa6d8b04cfb0c37458636836cd5dfa81e13e4b879bea0f3a68dac490146964736f6c63430008040033

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.