ETH Price: $3,315.45 (-3.59%)

Token

The Somethings - A Deed To The Realm (TSADTTR)
 

Overview

Max Total Supply

3,333 TSADTTR

Holders

3,040

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x83f6cda11e74c75a5f0fef8be0e1693ecc314f35
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:
MintPass

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 15000 runs

Other Settings:
default evmVersion
File 1 of 19 : MintPass.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;

import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/finance/PaymentSplitter.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';

interface PresaleContract721Interface {
  function balanceOf(address owner) external view returns (uint256 balance);
}

interface PresaleContract1155Interface {
  function balanceOf(address _owner, uint256 _id)
    external
    view
    returns (uint256);

  function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
    external
    view
    returns (uint256[] memory);
}

error TokenNonexistent();
error NotEnoughEther();
error InputLengthsNotMatching();
error AmountCannotBeZero();
error ExceededMaxSupply();
error ExceededMaxPurchaseable();
error ExceededPresaleMintLimit();
error PresaleNotEligible();

struct MintPassInfo {
  uint256 maxSupply;
  uint256 currentSupply;
  uint256 mintPrice;
  uint256 mintLimit; // mint limit per tx. 0 works as pause.
}

struct PresaleContract {
  address contractAddress;
  uint256[] tokenIds;
}

contract MintPass is
  ERC1155,
  ERC1155Burnable,
  ERC1155Supply,
  AccessControl,
  PaymentSplitter,
  Ownable,
  ReentrancyGuard
{
  uint256 public constant MAX_PRESALE_MINTING = 1;
  string public name;
  string public symbol;

  string internal _baseURI;
  uint256 private _tokenIdCounter = 1;
  bool private _isPresale = true;

  mapping(uint256 => MintPassInfo) public mintPasses;

  PresaleContract[] private _presaleContracts;
  mapping(address => uint256) private _presaleMintedAddresses;

  uint256 private _numberOfPayees;

  constructor(
    address[] memory payees,
    uint256[] memory shares,
    address owner_,
    string memory name_,
    string memory symbol_,
    string memory baseUri
  ) ERC1155('') PaymentSplitter(payees, shares) {
    _transferOwnership(owner_);
    _grantRole(DEFAULT_ADMIN_ROLE, owner_);

    _numberOfPayees = payees.length;

    name = name_;
    symbol = symbol_;

    _baseURI = baseUri;
  }

  /*** Presale ***/

  modifier whenNotExceededMaxPresaleMintLimit(
    address sender,
    uint256 numberOfTokens
  ) {
    if (
      _isPresale &&
      _presaleMintedAddresses[sender] + numberOfTokens > MAX_PRESALE_MINTING
    ) {
      revert ExceededPresaleMintLimit();
    }

    _;
  }

  modifier whenPresale(address sender) {
    if (_isPresale) {
      bool isEligible = false;
      for (uint256 i = 0; i < _presaleContracts.length; i++) {
        // check if presale address is a contract
        if (!(_presaleContracts[i].contractAddress.code.length > 0)) {
          break;
        }

        if (
          // ERC721 presale
          _presaleContracts[i].tokenIds.length == 0 &&
          PresaleContract721Interface(_presaleContracts[i].contractAddress)
            .balanceOf(sender) >
          0
        ) {
          isEligible = true;
          break;
        } else if (_presaleContracts[i].tokenIds.length > 0) {
          // ERC1155
          // compile the array of addresses for the batch call
          address[] memory addresses = new address[](
            _presaleContracts[i].tokenIds.length
          );
          for (uint256 j = 0; j < addresses.length; j++) {
            addresses[j] = sender;
          }

          // check balances of tokens for user
          uint256[] memory balances = PresaleContract1155Interface(
            _presaleContracts[i].contractAddress
          ).balanceOfBatch(addresses, _presaleContracts[i].tokenIds);

          for (uint256 k = 0; k < balances.length; k++) {
            if (balances[k] > 0) {
              isEligible = true;
              break;
            }
          }
        }
      }

      if (!isEligible) revert PresaleNotEligible();
    }

    _;
  }

  function endPresale() external onlyRole(DEFAULT_ADMIN_ROLE) {
    require(_isPresale, 'Presale already ended');
    _isPresale = false;
  }

  function isPresale() external view virtual returns (bool) {
    return _isPresale;
  }

  function addPresaleContract(
    address contractAddress,
    uint256[] memory tokenIds
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    _presaleContracts.push(
      PresaleContract({ contractAddress: contractAddress, tokenIds: tokenIds })
    );
  }

  function clearPresaleContracts() external onlyRole(DEFAULT_ADMIN_ROLE) {
    // reset the presale contracts array
    delete _presaleContracts;
  }

  function getPresaleContracts()
    external
    view
    returns (PresaleContract[] memory)
  {
    return _presaleContracts;
  }

  /*** Minting ***/

  /**
   * @notice Adds new mint pass.
   */
  function addMintPass(
    uint256[] calldata maxSupplies,
    uint256[] calldata mintPrices
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    if (maxSupplies.length != mintPrices.length) {
      revert InputLengthsNotMatching();
    }

    for (uint256 i = 0; i < maxSupplies.length; i++) {
      uint256 tokenId = _tokenIdCounter;
      unchecked {
        ++_tokenIdCounter;
      }

      mintPasses[tokenId] = MintPassInfo({
        maxSupply: maxSupplies[i],
        currentSupply: 0,
        mintPrice: mintPrices[i],
        mintLimit: 0 // default to 0 or pause state
      });
    }
  }

  /**
   * @notice Sets `mintLimit` of `tokenIds`.
   *
   * Setting `mintLimit` from 0 is equivalent to pausing mint for specified token ID.
   */
  function setMintLimit(
    uint256[] calldata tokenIds,
    uint256[] calldata mintLimits
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    require(
      tokenIds.length == mintLimits.length,
      'input array lengths must be the same'
    );

    for (uint256 i = 0; i < tokenIds.length; i++) {
      uint256 tokenId = tokenIds[i];
      if (tokenId >= _tokenIdCounter) {
        revert TokenNonexistent();
      }

      mintPasses[tokenId].mintLimit = mintLimits[i];
    }
  }

  /**
   * @notice Mints ignoring the mint limit and price.
   */
  function devMint(
    address account,
    uint256 id,
    uint256 amount
  ) external nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) {
    if (id >= _tokenIdCounter) {
      revert TokenNonexistent();
    }

    MintPassInfo storage mintPassInfo = mintPasses[id];
    uint256 newSupply = mintPassInfo.currentSupply + amount;

    if (newSupply > mintPassInfo.maxSupply) {
      revert ExceededMaxSupply();
    }

    mintPassInfo.currentSupply = newSupply;

    _mint(account, id, amount, '');
  }

  /**
   * @dev Mint Passes.
   */
  function mint(
    address account,
    uint256 id,
    uint256 amount
  )
    external
    payable
    nonReentrant
    whenNotExceededMaxPresaleMintLimit(msg.sender, amount)
    whenPresale(msg.sender)
  {
    if (amount == 0) {
      revert AmountCannotBeZero();
    }

    if (id >= _tokenIdCounter) {
      revert TokenNonexistent();
    }

    MintPassInfo storage mintPassInfo = mintPasses[id];

    // can only mint up to mint limit set per tier of NFT per tx
    // admin can mint more than limit per tx
    if (
      amount > mintPassInfo.mintLimit &&
      !hasRole(DEFAULT_ADMIN_ROLE, _msgSender())
    ) {
      revert ExceededMaxPurchaseable();
    }

    if (msg.value < mintPassInfo.mintPrice * amount) {
      revert NotEnoughEther();
    }

    uint256 newSupply = mintPassInfo.currentSupply + amount;
    if (newSupply > mintPassInfo.maxSupply) {
      revert ExceededMaxSupply();
    }

    mintPassInfo.currentSupply = newSupply;

    _mint(account, id, amount, '');

    // keep track of who has minted in presale to limit presale minting
    if (_isPresale) {
      _presaleMintedAddresses[msg.sender] += amount;
    }
  }

  /*** Token URI setter and getter ***/

  function setURI(string memory newuri) external onlyRole(DEFAULT_ADMIN_ROLE) {
    _baseURI = newuri;
  }

  function baseURI() external view virtual returns (string memory) {
    return _baseURI;
  }

  function uri(uint256 _id) public view override returns (string memory) {
    require(_id < _tokenIdCounter, 'Nonexistent token');

    return string(abi.encodePacked(_baseURI, Strings.toString(_id)));
  }

  /*** The following functions are overrides required by Solidity ***/

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

  function supportsInterface(bytes4 interfaceId)
    public
    view
    override(ERC1155, AccessControl)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  /// @notice Withdraw the contract's fund and split the payment amongst the list of payees. Admin only.
  /// @dev Loops through all of the payees and release funding based on the payee's share
  function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
    for (uint256 i = 0; i < _numberOfPayees; i++) {
      release(payable(payee(i)));
    }
  }

  receive() external payable override(PaymentSplitter) {
    emit PaymentReceived(_msgSender(), msg.value);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

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

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

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

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

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 4 of 19 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

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 5 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

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 whether 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-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 8 of 19 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 9 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 17 of 19 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 18 of 19 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountCannotBeZero","type":"error"},{"inputs":[],"name":"ExceededMaxPurchaseable","type":"error"},{"inputs":[],"name":"ExceededMaxSupply","type":"error"},{"inputs":[],"name":"ExceededPresaleMintLimit","type":"error"},{"inputs":[],"name":"InputLengthsNotMatching","type":"error"},{"inputs":[],"name":"NotEnoughEther","type":"error"},{"inputs":[],"name":"PresaleNotEligible","type":"error"},{"inputs":[],"name":"TokenNonexistent","type":"error"},{"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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINTING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"maxSupplies","type":"uint256[]"},{"internalType":"uint256[]","name":"mintPrices","type":"uint256[]"}],"name":"addMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"addPresaleContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"clearPresaleContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleContracts","outputs":[{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"internalType":"struct PresaleContract[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPasses","outputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"currentSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"mintLimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"mintLimits","type":"uint256[]"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234620000e85762005974803803806200001d8162000133565b92833981019060c081830312620000e85780516001600160401b039290838111620000e857816200005091840162000198565b916020810151848111620000e857826200006c91830162000205565b6200007a6040830162000183565b906060830151868111620000e857846200009691850162000262565b926080810151878111620000e85785620000b291830162000262565b9460a0820151978811620000e857620000d897620000d1920162000262565b946200074a565b604051614c45908162000d2f8239f35b600080fd5b50634e487b7160e01b600052604160045260246000fd5b60405190602082016001600160401b038111838210176200012457604052565b6200012e620000ed565b604052565b6040519190601f01601f191682016001600160401b038111838210176200012457604052565b6020906001600160401b03811162000173575b60051b0190565b6200017d620000ed565b6200016c565b51906001600160a01b0382168203620000e857565b9080601f83011215620000e857815190620001bd620001b78362000159565b62000133565b9182938184526020808095019260051b820101928311620000e8578301905b828210620001eb575050505090565b838091620001f98462000183565b815201910190620001dc565b9080601f83011215620000e85781519062000224620001b78362000159565b9182938184526020808095019260051b820101928311620000e8578301905b82821062000252575050505090565b8151815290830190830162000243565b81601f82011215620000e8578051906001600160401b038211620002e6575b60209062000298601f8401601f1916830162000133565b93838552828483010111620000e85782906000905b83838310620002cd57505011620002c357505090565b6000918301015290565b81935082819392010151828288010152018391620002ad565b620002f0620000ed565b62000281565b90600182811c9216801562000328575b60208310146200031257565b634e487b7160e01b600052602260045260246000fd5b91607f169162000306565b601f811162000340575050565b600090600e825260208220906020601f850160051c8301941062000381575b601f0160051c01915b8281106200037557505050565b81815560010162000368565b90925082906200035f565b601f811162000399575050565b600090600f825260208220906020601f850160051c83019410620003da575b601f0160051c01915b828110620003ce57505050565b818155600101620003c1565b9092508290620003b8565b601f8111620003f2575050565b6000906010825260208220906020601f850160051c8301941062000433575b601f0160051c01915b8281106200042757505050565b8181556001016200041a565b909250829062000411565b80519091906001600160401b03811162000532575b6200046b8162000465600e54620002f6565b62000333565b602080601f8311600114620004aa57508192936000926200049e575b50508160011b916000199060031b1c191617600e55565b01519050388062000487565b600e600052601f198316949091907fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd926000905b87821062000519575050836001959610620004ff575b505050811b01600e55565b015160001960f88460031b161c19169055388080620004f4565b80600185968294968601518155019501930190620004de565b6200053c620000ed565b62000453565b80519091906001600160401b03811162000636575b6200056f8162000569600f54620002f6565b6200038c565b602080601f8311600114620005ae5750819293600092620005a2575b50508160011b916000199060031b1c191617600f55565b0151905038806200058b565b600f600052601f198316949091907f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802926000905b8782106200061d57505083600195961062000603575b505050811b01600f55565b015160001960f88460031b161c19169055388080620005f8565b80600185968294968601518155019501930190620005e2565b62000640620000ed565b62000557565b80519091906001600160401b0381116200073a575b62000673816200066d601054620002f6565b620003e5565b602080601f8311600114620006b25750819293600092620006a6575b50508160011b916000199060031b1c191617601055565b0151905038806200068f565b6010600052601f198316949091907f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672926000905b8782106200072157505083600195961062000707575b505050811b01601055565b015160001960f88460031b161c19169055388080620006fc565b80600185968294968601518155019501930190620006e6565b62000744620000ed565b6200065b565b939095929491946000806200075e62000104565b526200076c600254620002f6565b601f811162000863575b50806002556200078a8651895114620008ae565b620007988651151562000916565b8551811015620007e85780620007dc620007c8620007bb620007e2948a620009b0565b516001600160a01b031690565b620007d4838c620009b0565b519062000c15565b6200097a565b62000798565b506200085b9396506200084f620008559293956200084962000861986200080f3362000a7f565b6200081a6001600d55565b620008256001601155565b62000838600160ff196012541617601255565b620008438162000a7f565b620009d6565b51601655565b6200043e565b62000542565b62000646565b565b60028252601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b818110620008a2575062000776565b82815560010162000893565b15620008b657565b60405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b6064820152608490fd5b156200091e57565b60405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606490fd5b50634e487b7160e01b600052601160045260246000fd5b60019060001981146200098b570190565b6200099562000963565b0190565b50634e487b7160e01b600052603260045260246000fd5b6020918151811015620009c6575b60051b010190565b620009d062000999565b620009be565b6001600160a01b03811660009081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec602052604081205460ff161562000a1b575050565b8080526004602090815260408083206001600160a01b038516600090815292529020805460ff1916600117905560405133926001600160a01b031691907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d908290a4565b600c80546001600160a01b039283166001600160a01b031982168117909255604051919216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3565b1562000ad557565b60405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606490fd5b1562000b2257565b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608490fd5b6009546801000000000000000081101562000bf8575b600181018060095581101562000be8575b60096000527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03909216919091179055565b62000bf262000999565b62000ba2565b62000c02620000ed565b62000b91565b811981116200098b570190565b906001600160a01b0382161562000cd4577f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9162000c5582151562000acd565b6001600160a01b038116600090815260076020526040902062000c7a90541562000b1a565b62000c858162000b7b565b6001600160a01b038116600090815260076020526040902082905562000cb762000cb28360055462000c08565b600555565b604080516001600160a01b039290921682526020820192909252a1565b60405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608490fdfe60806040526004361015610023575b361561001957600080fd5b610021614bd7565b005b60003560e01c8062fdd58e146103ba57806301ffc9a7146103b157806302fe5305146103a857806306fdde031461039f5780630e89341c14610396578063156e29f61461038d5780631916558714610384578063248a9ca31461037b5780632eb2c2d6146103725780632f2ff15d1461036957806336568abe1461036057806337075b04146103575780633a98ef391461034e5780633ccfd60b14610345578063406072a91461033c57806348b75044146103335780634c1964461461032a5780634e1273f4146103215780634f558e79146103185780636b20c4541461030f5780636c0360eb14610306578063715018a6146102fd5780637617e8b9146102f45780638b83209b146102eb5780638da5cb5b146102e257806391d14854146102d957806395364a84146102d057806395d89b41146102c7578063972d7b33146102be5780639852595c146102b5578063a217fddf146102ac578063a22cb465146102a3578063a43be57b1461029a578063af95f9fb14610291578063b95121b314610288578063bd85b0391461027f578063cc7feda614610276578063ce7c2ac21461026d578063d4dc69b014610264578063d547741f1461025b578063d79779b214610252578063e33b7de314610249578063e985e9c514610240578063f242432a14610237578063f2fde38b1461022e5763f5298aca0361000e576102296128d7565b61000e565b5061022961281b565b5061022961259d565b50610229612524565b50610229612505565b506102296124b9565b50610229612476565b506102296123ae565b506102296122b9565b5061022961229c565b5061022961226f565b506102296121b7565b50610229612168565b506102296120d7565b50610229611f90565b50610229611f69565b50610229611f1d565b50610229611dd6565b50610229611d2e565b50610229611d0a565b50610229611ca5565b50610229611c70565b50610229611c33565b50610229611b54565b50610229611acb565b50610229611a23565b5061022961187c565b5061022961184d565b50610229611790565b50610229611668565b506102296113b1565b5061022961134c565b506102296112d0565b506102296112b1565b506102296111e3565b50610229611132565b50610229611015565b50610229610f8e565b50610229610ebe565b50610229610e98565b50610229610b35565b506102296109c4565b506102296108c9565b50610229610664565b50610229610444565b506102296103e6565b73ffffffffffffffffffffffffffffffffffffffff8116036103e157565b600080fd5b50346103e15760406003193601126103e1576020610412600435610409816103c3565b60243590613393565b604051908152f35b7fffffffff000000000000000000000000000000000000000000000000000000008116036103e157565b50346103e15760206003193601126103e15760207fffffffff000000000000000000000000000000000000000000000000000000006004356104858161041a565b167f7965db0b0000000000000000000000000000000000000000000000000000000081149081156104bc575b506040519015158152f35b7fd9b67a2600000000000000000000000000000000000000000000000000000000811491508115610520575b81156104f6575b50386104b1565b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014386104ef565b7f0e89341c00000000000000000000000000000000000000000000000000000000811491506104e8565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff82111761059657604052565b61059e61054a565b604052565b6020810190811067ffffffffffffffff82111761059657604052565b90601f601f19910116810190811067ffffffffffffffff82111761059657604052565b604051906080820182811067ffffffffffffffff82111761059657604052565b601f19601f60209267ffffffffffffffff8111610620575b01160190565b61062861054a565b61061a565b92919261063982610602565b9161064760405193846105bf565b8294818452818301116103e1578281602093846000960137010152565b50346103e1576020806003193601126103e15767ffffffffffffffff6004358181116103e157366023820112156103e1576106a990369060248160040135910161062d565b916106b2612a79565b82519182116107cb575b6106d0826106cb601054610808565b6148ca565b80601f83116001146107265750819260009261071b575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8260011b9260031b1c191617601055005b0151905038806106e7565b90601f1983169361075960106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67290565b926000905b8682106107b3575050836001951061077c575b505050811b01601055005b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055388080610771565b8060018596829496860151815501950193019061075e565b6107d361054a565b6106bc565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b90600182811c92168015610851575b602083101461082257565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691610817565b918091926000905b82821061087b575011610874575050565b6000910152565b91508060209183015181860152018291610863565b90601f19601f6020936108ae8151809281875287808801910161085b565b0116010190565b9060206108c6928181520190610890565b90565b50346103e1576000806003193601126109c1576040519080600e546108ed81610808565b808552916001918083169081156109825750600114610927575b61092385610917818703826105bf565b604051918291826108b5565b0390f35b9250600e83527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b82841061096a57505050810160200161091782610923610907565b8054602085870181019190915290930192810161094f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016602087015250506040840192506109179150839050610923610907565b80fd5b50346103e1576020806003193601126103e157600435601154811015610ace576109ed9061492b565b60405190600092601054610a0081610808565b90600190818116908115610a955750600114610a37575b6109238561091781610a298a89612d97565b03601f1981018352826105bf565b9091945060106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672906000915b838310610a825750505082019092019181610a29610917610a17565b8054868401880152918601918101610a66565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016848701525050830101925081610a29610917610a17565b6064826040519062461bcd60e51b82526004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152fd5b60031960609101126103e157600435610b2a816103c3565b906024359060443590565b50610b3f36610b12565b90610b4f6002600d5414156144f8565b6002600d5560125460ff168080610e77575b610e4d57610b7d575b610b739261474d565b6100216001600d55565b6000806014545b808310610bbd575b509050610b6a5760046040517f2abac27e000000000000000000000000000000000000000000000000000000008152fd5b610bec610be7610bcc856143d9565b505473ffffffffffffffffffffffffffffffffffffffff1690565b3b1590565b610e4857610bf9836143d9565b50926001809401541580610da8575b15610c17575050508038610b8c565b90919280610c24836143d9565b500154610c3d575b50610c3690613484565b9190610b84565b610c5281610c4a846143d9565b500154613453565b816000815b610d62575b50506000610cd291610c8f610c76610c76610bcc886143d9565b73ffffffffffffffffffffffffffffffffffffffff1690565b84610c99876143d9565b50604051958694859384937f4e1273f40000000000000000000000000000000000000000000000000000000085520190600484016146ea565b03915afa908115610d55575b600091610d34575b506000825b610cf7575b5050610c2c565b8151811015610d2f57610d0a81836134b2565b51610d1f57610d198391613484565b90610ceb565b50909350610c3690503880610cf0565b610cf0565b610d4f913d8091833e610d4781836105bf565b810190614670565b38610ce6565b610d5d6132c9565b610cde565b8251811015610da357610d9d90610d9833610d7d83876134b2565b9073ffffffffffffffffffffffffffffffffffffffff169052565b613484565b81610c57565b610c5c565b50610dbb610c76610c76610bcc846143d9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526020918290829060249082905afa918215610e3b575b600092610e0e575b50501515610c08565b610e2d9250803d10610e34575b610e2581836105bf565b8101906132ba565b3880610e05565b503d610e1b565b610e436132c9565b610dfd565b610b8c565b60046040517f7e3b77b8000000000000000000000000000000000000000000000000000000008152fd5b503360005260156020526001610e9284604060002054613092565b11610b61565b50346103e15760206003193601126103e157610021600435610eb9816103c3565b613117565b50346103e15760206003193601126103e15760043560005260046020526020600160406000200154604051908152f35b60209067ffffffffffffffff8111610f08575b60051b0190565b610f1061054a565b610f01565b81601f820112156103e157803591610f2c83610eee565b92610f3a60405194856105bf565b808452602092838086019260051b8201019283116103e1578301905b828210610f64575050505090565b81358152908301908301610f56565b9080601f830112156103e1578160206108c69335910161062d565b50346103e15760a06003193601126103e157600435610fac816103c3565b60243590610fb9826103c3565b67ffffffffffffffff916044358381116103e157610fdb903690600401610f15565b6064358481116103e157610ff3903690600401610f15565b916084359485116103e15761100f610021953690600401610f73565b9361362d565b50346103e1576040806003193601126103e15760043590602435611038816103c3565b600092808452600460205261105260018486200154612cc4565b808452600460205260ff611088838587209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54161561109457505051f35b80845260046020526110c8828486209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d858551a451f35b50346103e15760406003193601126103e157602435611150816103c3565b3373ffffffffffffffffffffffffffffffffffffffff8216036111795761002190600435612dae565b608460405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b50346103e1576111f236610b12565b6112046002600d9493945414156144f8565b6002600d55611211612a79565b60115483101561128757826000526013602052604060002092600184019361123a838654613092565b9054811161125d57610b73945560405192611254846105a3565b60008452614543565b60046040517ffb88d215000000000000000000000000000000000000000000000000000000008152fd5b60046040517f72ec2530000000000000000000000000000000000000000000000000000000008152fd5b50346103e15760006003193601126103e1576020600554604051908152f35b50346103e15760006003193601126103e1576112ea612bf7565b60005b6016548110156100215780610d9873ffffffffffffffffffffffffffffffffffffffff61131c61132294612f7a565b16613117565b6112ed565b60031960409101126103e15760043561133f816103c3565b906024356108c6816103c3565b50346103e15760206113a873ffffffffffffffffffffffffffffffffffffffff61137536611327565b9116600052600b835260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54604051908152f35b50346103e1577f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a6113e136611327565b6114196114118294939473ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b541515612fd4565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff84169382916115979190611512906114b7906020816024818c5afa9081156115df575b6000916115c1575b506114b08473ffffffffffffffffffffffffffffffffffffffff16600052600a602052604060002090565b5490613092565b61150a856114e58573ffffffffffffffffffffffffffffffffffffffff16600052600b602052604060002090565b9073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b549085613313565b9384916115208315156130a6565b61154e826114e58373ffffffffffffffffffffffffffffffffffffffff16600052600b602052604060002090565b611559848254613092565b90556115858173ffffffffffffffffffffffffffffffffffffffff16600052600a602052604060002090565b611590848254613092565b9055614002565b6040805173ffffffffffffffffffffffffffffffffffffffff9290921682526020820192909252a2005b6115d9915060203d8111610e3457610e2581836105bf565b38611485565b6115e76132c9565b61147d565b9181601f840112156103e15782359167ffffffffffffffff83116103e1576020808501948460051b0101116103e157565b60406003198201126103e15767ffffffffffffffff916004358381116103e1578261164a916004016115ec565b939093926024359182116103e157611664916004016115ec565b9091565b50346103e1576116773661161d565b92611680612a79565b83830361172157600093845b8481106116995785604051f35b61171c90610d986011546116af60018201601155565b6116f76116bd848a896144e0565b35916116ca85888b6144e0565b356116d36105e2565b9384528b602085015260408401528a60608401526000526013602052604060002090565b9060606003918051845560208101516001850155604081015160028501550151910155565b61168c565b60046040517fb34890cb000000000000000000000000000000000000000000000000000000008152fd5b90815180825260208080930193019160005b82811061176b575050505090565b83518552938101939281019260010161175d565b9060206108c692818152019061174b565b50346103e15760406003193601126103e15760043567ffffffffffffffff8082116103e157366023830112156103e15781600401356117ce81610eee565b926117dc60405194856105bf565b81845260209160248386019160051b830101913683116103e157602401905b82821061183457856024358681116103e15761092391611822611828923690600401610f15565b906134d4565b6040519182918261177f565b8380918335611842816103c3565b8152019101906117fb565b50346103e15760206003193601126103e157600435600052600360205260206040600020541515604051908152f35b50346103e15760606003193601126103e15760043561189a816103c3565b67ffffffffffffffff906024358281116103e1576118bc903690600401610f15565b916044359081116103e1576118d5903690600401610f15565b73ffffffffffffffffffffffffffffffffffffffff82169133831480156119dd575b611900906135bc565b61190b831515613eef565b61191884518351146138dd565b611920613f60565b5061192c828583614ac7565b60005b845181101561199b578061194661199692876134b2565b51611990846114e561195885896134b2565b51611971836114e5876000526000602052604060002090565b5461197e82821015613f92565b03936000526000602052604060002090565b55613484565b61192f565b600084867f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb6119d28760405191829133958361394e565b0390a4610021613f60565b5082600052600160205261190060ff611a1a3360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b541690506118f7565b50346103e1576000806003193601126109c1576040519080601054611a4781610808565b808552916001918083169081156109825750600114611a705761092385610917818703826105bf565b9250601083527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6725b828410611ab357505050810160200161091782610923610907565b80546020858701810191909152909301928101611a98565b50346103e1576000806003193601126109c157600c547fffffffffffffffffffffffff000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff821691611b25338414612e90565b16600c5581604051917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b50346103e157611b633661161d565b909291611b6e612a79565b818103611bca5760005b818110611b8157005b611b8c8183866144e0565b359060115482101561128757611bc5916003611bbe611bac84888b6144e0565b35926000526013602052604060002090565b0155613484565b611b78565b608460405162461bcd60e51b8152602060048201526024808201527f696e707574206172726179206c656e67746873206d757374206265207468652060448201527f73616d65000000000000000000000000000000000000000000000000000000006064820152fd5b50346103e15760206003193601126103e1576020611c52600435612f7a565b73ffffffffffffffffffffffffffffffffffffffff60405191168152f35b50346103e15760006003193601126103e157602073ffffffffffffffffffffffffffffffffffffffff600c5416604051908152f35b50346103e15760406003193601126103e157602060ff611cfe602435611cca816103c3565b6004356000526004845260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54166040519015158152f35b50346103e15760006003193601126103e157602060ff601254166040519015158152f35b50346103e1576000806003193601126109c1576040519080600f54611d5281610808565b808552916001918083169081156109825750600114611d7b5761092385610917818703826105bf565b9250600f83527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b828410611dbe57505050810160200161091782610923610907565b80546020858701810191909152909301928101611da3565b50346103e15760406003193601126103e157600435611df4816103c3565b6024359067ffffffffffffffff82116103e157611e18611e79923690600401610f15565b611e20612a79565b60405191611e2d8361057a565b73ffffffffffffffffffffffffffffffffffffffff8091168352602092838101928352611ec76014549268010000000000000000841015611f10575b60019684888096016014556143d9565b939093611f03575b9594955116829073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b0191519181835193611ed9858461445c565b019060005281600020916000915b848310611ef057005b8051845592850192918501918101611ee7565b611f0b6107d8565b611e81565b611f1861054a565b611e69565b50346103e15760206003193601126103e15773ffffffffffffffffffffffffffffffffffffffff600435611f50816103c3565b1660005260086020526020604060002054604051908152f35b50346103e15760006003193601126103e157602060405160008152f35b801515036103e157565b50346103e15760406003193601126103e157600435611fae816103c3565b602435611fba81611f86565b73ffffffffffffffffffffffffffffffffffffffff82169182331461206d578161200b61203b926114e53373ffffffffffffffffffffffffffffffffffffffff166000526001602052604060002090565b9060ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b608460405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152fd5b50346103e15760006003193601126103e1576120f1612bf7565b60125460ff811615612124577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016601255005b606460405162461bcd60e51b815260206004820152601560248201527f50726573616c6520616c726561647920656e64656400000000000000000000006044820152fd5b50346103e15760206003193601126103e1576004356000526013602052608060406000208054906001810154906003600282015491015491604051938452602084015260408301526060820152f35b50346103e1576000806003193601126109c1576121d2612bf7565b60145481601455806121e5575b50604051f35b60017f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82118116612262575b601483527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec91811b8201915b82811061224b5750506121df565b80846002925561225c838201614438565b0161223d565b61226a613045565b612211565b50346103e15760206003193601126103e15760043560005260036020526020604060002054604051908152f35b50346103e15760006003193601126103e157602060405160018152f35b50346103e15760206003193601126103e15773ffffffffffffffffffffffffffffffffffffffff6004356122ec816103c3565b1660005260076020526020604060002054604051908152f35b602080820190808352835180925260409283810182858560051b8401019601946000925b85841061233a575050505050505090565b90919293949596858061239d837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0866001960301885286838d5173ffffffffffffffffffffffffffffffffffffffff81511684520151918185820152019061174b565b990194019401929594939190612329565b50346103e15760006003193601126103e1576014546123cc81610eee565b6040916123db835192836105bf565b8082526014600090815260207fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec8185015b848410612420578651806109238882612305565b60028360019289516124318161057a565b73ffffffffffffffffffffffffffffffffffffffff86541681528a516124648161245d81898b016144a3565b03826105bf565b8382015281520192019301929061240c565b50346103e15760406003193601126103e15761002160243560043561249a826103c3565b8060005260046020526124b4600160406000200154612cc4565b612dae565b50346103e15760206003193601126103e15773ffffffffffffffffffffffffffffffffffffffff6004356124ec816103c3565b16600052600a6020526020604060002054604051908152f35b50346103e15760006003193601126103e1576020600654604051908152f35b50346103e15760406003193601126103e157602060ff611cfe600435612549816103c3565b73ffffffffffffffffffffffffffffffffffffffff6024359161256b836103c3565b166000526001845260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b50346103e15760a06003193601126103e1576004356125bb816103c3565b6024356125c7816103c3565b60643560443560843567ffffffffffffffff81116103e1576125ed903690600401610f73565b9273ffffffffffffffffffffffffffffffffffffffff948581169533871480156127d5575b61261b906135bc565b821680159661262a88156137fb565b61263385613ebe565b9761263d87613ebe565b90821561276a575b6126ee575b50610021975085612669846114e5886000526000602052604060002090565b546126768282101561386c565b0361268f846114e5886000526000602052604060002090565b556126a8846114e5876000526000602052604060002090565b6126b3878254613092565b9055604080518681526020810188905233917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a433613c92565b959391600097959391975b89518110156127575780612710612752928c6134b2565b5161199061271e838c6134b2565b51612733836000526003602052604060002090565b5461274082821015614a56565b03916000526003602052604060002090565b6126f9565b509193955091939561002197503861264a565b9896939095926000989592985b88518110156127c55780896127b96127b16127a0846127996127c0978f6134b2565b51946134b2565b516000526003602052604060002090565b918254613092565b9055613484565b612777565b5092959093969897919497612645565b5086600052600160205261261b60ff6128123360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54169050612612565b50346103e15760206003193601126103e157600435612839816103c3565b73ffffffffffffffffffffffffffffffffffffffff61285d81600c54163314612e90565b81161561286d5761002190612edb565b608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b50346103e1576128e636610b12565b919073ffffffffffffffffffffffffffffffffffffffff82163381148015612a33575b612912906135bc565b80159161291f8315613eef565b61292881613ebe565b9461293281613ebe565b936000604051612941816105a3565b526129f7575b60005b8651811015612974578061296161296f92896134b2565b5161199061271e83896134b2565b61294a565b600084847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f626119d2868b6129dd826129ba836114e5896000526000602052604060002090565b546129c782821015613f92565b03916114e5876000526000602052604060002090565b556040805194855260208501919091523393918291820190565b93919060005b8651811015612a2a5780612a14612a2592876134b2565b516127b96127b16127a0848c6134b2565b6129fd565b50909193612947565b5080600052600160205261291260ff612a703360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54169050612909565b3360009081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec602052604090205460049060ff1615612ab65750565b612abf33614317565b906000612aca614220565b906030612ad68361425a565b536078612ae283614270565b5360415b60018111612b9d575092612b72612b8092612b03604896156142cc565b6040519586937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152612b4381518092602060378901910161085b565b84017f206973206d697373696e6720726f6c652000000000000000000000000000000060378201520190612d97565b03601f1981018452836105bf565b612b9960405192839262461bcd60e51b845283016108b5565b0390fd5b90807f3031323334353637383961626364656600000000000000000000000000000000600f612be593166010811015612bea575b1a612bdc8486614281565b53841c916142a0565b612ae6565b612bf2612f4a565b612bd1565b3360009081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec602052604090205460049060ff1615612c345750565b612c3d33614317565b906000612c48614220565b906030612c548361425a565b536078612c6083614270565b5360415b60018111612c81575092612b72612b8092612b03604896156142cc565b90807f3031323334353637383961626364656600000000000000000000000000000000600f612cbf93166010811015612bea571a612bdc8486614281565b612c64565b8060005260048060205260ff612cfe3360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b541615612d09575050565b612d1233614317565b91612d1b614220565b906030612d278361425a565b536078612d3383614270565b5360415b60018111612d54575092612b72612b8092612b03604896156142cc565b90807f3031323334353637383961626364656600000000000000000000000000000000600f612d9293166010811015612bea571a612bdc8486614281565b612d37565b90612daa6020928281519485920161085b565b0190565b80600052600460205260ff612de78360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b5416612df1575050565b806000526004602052612e288260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6000604051a4565b15612e9757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600c549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600c55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a3565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff90600954811015612fc7575b60096000527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01541690565b612fcf612f4a565b612f9b565b15612fdb57565b608460405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8019603011613085575b60300190565b61308d613045565b61307f565b8119811161309e570190565b612daa613045565b156130ad57565b608460405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff8216600092818452600760205260409361314b858220541515612fd4565b61316e61315b4760065490613092565b8483526008602052868320549085613313565b9261317a8415156130a6565b8082526008602052858220613190858254613092565b905561319e84600654613092565b60065583471061327757818091858851915af16131b96141b0565b501561320e57925173ffffffffffffffffffffffffffffffffffffffff90931683526020830152907fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569080604081015b0390a1565b6084845162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b6064865162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b908160209103126103e1575190565b506040513d6000823e3d90fd5b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821181151516613307570290565b61330f613045565b0290565b9073ffffffffffffffffffffffffffffffffffffffff61334292166000526007602052604060002054906132d6565b6005549081156133645704818110613358570390565b613360613045565b0390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116156133e9576133e591600052600060205260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b5490565b608460405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152fd5b9061345d82610eee565b61346a60405191826105bf565b828152601f1961347a8294610eee565b0190602036910137565b6001907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461309e570190565b60209181518110156134c7575b60051b010190565b6134cf612f4a565b6134bf565b9190918051835103613552576134ea8151613453565b9060005b815181101561354b578061353661352561350b61354694866134b2565b5173ffffffffffffffffffffffffffffffffffffffff1690565b61352f83896134b2565b5190613393565b61354082866134b2565b52613484565b6134ee565b5090925050565b608460405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152fd5b156135c357565b608460405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152fd5b93949291909273ffffffffffffffffffffffffffffffffffffffff958686169633881480156137ba575b156137505761366984518651146138dd565b85166136768115156137fb565b6136828585888a614b50565b60005b845181101561370a5780886127b96127b18a6114e58b6136b3876136ac6137059a8f6134b2565b51926134b2565b51956136f4876136d1836114e5866000526000602052604060002090565b546136de8282101561386c565b03916114e5846000526000602052604060002090565b556000526000602052604060002090565b613685565b5061374e96919592976040517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806137458a8a8361394e565b0390a433613e56565b565b608460405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152fd5b5087600052600160205260ff6137f43360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b5416613657565b1561380257565b608460405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b1561387357565b608460405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152fd5b156138e457565b608460405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152fd5b90916139656108c69360408452604084019061174b565b91602081840391015261174b565b908160209103126103e157516108c68161041a565b909260a09273ffffffffffffffffffffffffffffffffffffffff6108c6969516835260006020840152604083015260608201528160808201520190610890565b91926108c695949160a09473ffffffffffffffffffffffffffffffffffffffff8092168552166020840152604083015260608201528160808201520190610890565b60009060033d11613a1757565b905060046000803e60005160e01c90565b600060443d106108c65760405160031991823d016004833e815167ffffffffffffffff918282113d602484011117613a8657818401948551938411613a8e573d85010160208487010111613a8657506108c6929101602001906105bf565b949350505050565b50949350505050565b9390803b613aa7575b5050505050565b613afd93600073ffffffffffffffffffffffffffffffffffffffff602095604051978896879586937ff23a6e61000000000000000000000000000000000000000000000000000000009c8d865260048601613988565b0393165af160009181613c62575b50613bd05750506001613b1c613a0a565b6308c379a014613ba1575b613b36575b3880808080613aa0565b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608490fd5b613ba9613a28565b80613bb45750613b27565b612b999060405191829162461bcd60e51b8352600483016108b5565b7fffffffff000000000000000000000000000000000000000000000000000000001614613b2c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608490fd5b613c8491925060203d8111613c8b575b613c7c81836105bf565b810190613973565b9038613b0b565b503d613c72565b9493919092813b613ca6575b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff602095613cfb604051988997889687947ff23a6e61000000000000000000000000000000000000000000000000000000009d8e8752600487016139c8565b0393165af160009181613dda575b50613d485750506001613d1a613a0a565b6308c379a014613d35575b613b36575b388080808080613c9e565b613d3d613a28565b80613bb45750613d25565b7fffffffff000000000000000000000000000000000000000000000000000000001614613d2a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608490fd5b613df391925060203d8111613c8b57613c7c81836105bf565b9038613d09565b93906108c69593613e3a91613e489473ffffffffffffffffffffffffffffffffffffffff809216885216602087015260a0604087015260a086019061174b565b90848203606086015261174b565b916080818403910152610890565b9493919092813b613e6957505050505050565b600073ffffffffffffffffffffffffffffffffffffffff602095613cfb604051988997889687947fbc197c81000000000000000000000000000000000000000000000000000000009d8e875260048701613dfa565b60405190613ecb8261057a565b60018252602082016020368237825115613ee3575290565b613eeb612f4a565b5290565b15613ef657565b608460405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b604051906020820182811067ffffffffffffffff821117613f85575b60405260008252565b613f8d61054a565b613f7c565b15613f9957565b608460405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602080830191825273ffffffffffffffffffffffffffffffffffffffff9485166024840152604480840196909652948252909290916140666064856105bf565b1690604051926140758461057a565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b156140e6576140c1939260009283809351925af16140bb6141b0565b906141e0565b805190816140ce57505050565b8261374e936140e193830101910161412a565b61413f565b6064856040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b908160209103126103e157516108c681611f86565b1561414657565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b3d156141db573d906141c182610602565b916141cf60405193846105bf565b82523d6000602084013e565b606090565b909190156141ec575090565b8151156141fc5750805190602001fd5b612b999060405191829162461bcd60e51b8352602060048401526024830190610890565b604051906080820182811067ffffffffffffffff82111761424d575b604052604282526060366020840137565b61425561054a565b61423c565b602090805115614268570190565b612daa612f4a565b602190805160011015614268570190565b90602091805182101561429357010190565b61429b612f4a565b010190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90801561309e570190565b156142d357565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff8211176143cc575b604052602a82526040366020840137603061434d8361425a565b53607861435983614270565b536029905b60018211614371576108c69150156142cc565b807f3031323334353637383961626364656600000000000000000000000000000000600f6143b9931660108110156143bf575b1a6143af8486614281565b5360041c916142a0565b9061435e565b6143c7612f4a565b6143a4565b6143d461054a565b614333565b601454811015614414575b601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0190600090565b61441c612f4a565b6143e4565b81811061442c575050565b60008155600101614421565b80546000825580614447575050565b61374e91600052602060002090810190614421565b90680100000000000000008111614496575b81549080835581811061448057505050565b61374e9260005260206000209182019101614421565b61449e61054a565b61446e565b90815480825260208092019260005281600020916000905b8282106144c9575050505090565b8354855293840193600193840193909101906144bb565b91908110156144f05760051b0190565b610f10612f4a565b156144ff57565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b9390919273ffffffffffffffffffffffffffffffffffffffff85169384156146065761456e84613ebe565b9361457882613ebe565b9660005b86518110156145985780612a14614593928b6134b2565b61457c565b509193965091935061374e946145bc826114e5856000526000602052604060002090565b6145c7858254613092565b9055604080518481526020810186905260009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629190a433613a97565b608460405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b60209081818403126103e15780519067ffffffffffffffff82116103e157019180601f840112156103e15782516146a681610eee565b936146b460405195866105bf565b818552838086019260051b8201019283116103e1578301905b8282106146db575050505090565b815181529083019083016146cd565b9092916040820191604081528451809352606081019260208096019060005b818110614723575050506108c693948184039101526144a3565b825173ffffffffffffffffffffffffffffffffffffffff1686529487019491870191600101614709565b82156148a05760115482101561128757614771826000526013602052604060002090565b916003830154841180614856575b61482c576147918460028501546132d6565b34106148025760018301906147a7858354613092565b9354841161125d576147c4938592556147be613f60565b92614543565b60125460ff166147d15750565b6147fe6127b13373ffffffffffffffffffffffffffffffffffffffff166000526015602052604060002090565b9055565b60046040517f8a0d3779000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb637d13b000000000000000000000000000000000000000000000000000000008152fd5b5060008052600460205261489b614897614890337f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec6114e5565b5460ff1690565b1590565b61477f565b60046040517fd11b25af000000000000000000000000000000000000000000000000000000008152fd5b90601f82116148d7575050565b61374e9160106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672906020601f840160051c83019310614921575b601f0160051c0190614421565b9091508190614914565b8015614a1c57806000908282935b614a08575061494783610602565b9261495560405194856105bf565b80845281601f1961496583610602565b013660208701375b6149775750505090565b8060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff92106149fb575b0190600a906149e66149be6149b8848406613075565b60ff1690565b60f81b7fff000000000000000000000000000000000000000000000000000000000000001690565b841a6149f28487614281565b5304908161496d565b614a03613045565b6149a2565b92614a14600a91613484565b930480614939565b50604051614a298161057a565b600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b15614a5d57565b608460405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152fd5b9092919073ffffffffffffffffffffffffffffffffffffffff1615614b1a575b60005b8351811015614b145780614b01614b0f92866134b2565b5161199061271e83866134b2565b614aea565b50509050565b60005b8351811015614b4a5780614b34614b4592846134b2565b516127b96127b16127a084896134b2565b614b1d565b50614ae7565b909392919373ffffffffffffffffffffffffffffffffffffffff80921615614b9d575b1615614b7e57509050565b60005b8351811015614b145780614b01614b9892866134b2565b614b81565b929060005b8551811015614bcf5780614bb9614bca92866134b2565b516127b96127b16127a0848b6134b2565b614ba2565b509092614b73565b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770918190810161320956fea264697066735822122045c2fa5f2ae90f237cb4c74c21530106cfd13247dc76b2ffbbe8784eedb27c5864736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000c8652dd4d40479d4b29de7b5bf3aa7aeedd38e84000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c8652dd4d40479d4b29de7b5bf3aa7aeedd38e840000000000000000000000001eccc24854d97281edaedf9ac7bc36c313c1394b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000002454686520536f6d657468696e6773202d2041204465656420546f20546865205265616c6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075453414454545200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d68747470733a2f2f6170692e6d6f6f6e77616c6b2e636f6d2f76312f6d657461646174612f6d696e74706173732f3632616662373335333136656431303031313261376234302f746f6b656e2f00000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361015610023575b361561001957600080fd5b610021614bd7565b005b60003560e01c8062fdd58e146103ba57806301ffc9a7146103b157806302fe5305146103a857806306fdde031461039f5780630e89341c14610396578063156e29f61461038d5780631916558714610384578063248a9ca31461037b5780632eb2c2d6146103725780632f2ff15d1461036957806336568abe1461036057806337075b04146103575780633a98ef391461034e5780633ccfd60b14610345578063406072a91461033c57806348b75044146103335780634c1964461461032a5780634e1273f4146103215780634f558e79146103185780636b20c4541461030f5780636c0360eb14610306578063715018a6146102fd5780637617e8b9146102f45780638b83209b146102eb5780638da5cb5b146102e257806391d14854146102d957806395364a84146102d057806395d89b41146102c7578063972d7b33146102be5780639852595c146102b5578063a217fddf146102ac578063a22cb465146102a3578063a43be57b1461029a578063af95f9fb14610291578063b95121b314610288578063bd85b0391461027f578063cc7feda614610276578063ce7c2ac21461026d578063d4dc69b014610264578063d547741f1461025b578063d79779b214610252578063e33b7de314610249578063e985e9c514610240578063f242432a14610237578063f2fde38b1461022e5763f5298aca0361000e576102296128d7565b61000e565b5061022961281b565b5061022961259d565b50610229612524565b50610229612505565b506102296124b9565b50610229612476565b506102296123ae565b506102296122b9565b5061022961229c565b5061022961226f565b506102296121b7565b50610229612168565b506102296120d7565b50610229611f90565b50610229611f69565b50610229611f1d565b50610229611dd6565b50610229611d2e565b50610229611d0a565b50610229611ca5565b50610229611c70565b50610229611c33565b50610229611b54565b50610229611acb565b50610229611a23565b5061022961187c565b5061022961184d565b50610229611790565b50610229611668565b506102296113b1565b5061022961134c565b506102296112d0565b506102296112b1565b506102296111e3565b50610229611132565b50610229611015565b50610229610f8e565b50610229610ebe565b50610229610e98565b50610229610b35565b506102296109c4565b506102296108c9565b50610229610664565b50610229610444565b506102296103e6565b73ffffffffffffffffffffffffffffffffffffffff8116036103e157565b600080fd5b50346103e15760406003193601126103e1576020610412600435610409816103c3565b60243590613393565b604051908152f35b7fffffffff000000000000000000000000000000000000000000000000000000008116036103e157565b50346103e15760206003193601126103e15760207fffffffff000000000000000000000000000000000000000000000000000000006004356104858161041a565b167f7965db0b0000000000000000000000000000000000000000000000000000000081149081156104bc575b506040519015158152f35b7fd9b67a2600000000000000000000000000000000000000000000000000000000811491508115610520575b81156104f6575b50386104b1565b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014386104ef565b7f0e89341c00000000000000000000000000000000000000000000000000000000811491506104e8565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff82111761059657604052565b61059e61054a565b604052565b6020810190811067ffffffffffffffff82111761059657604052565b90601f601f19910116810190811067ffffffffffffffff82111761059657604052565b604051906080820182811067ffffffffffffffff82111761059657604052565b601f19601f60209267ffffffffffffffff8111610620575b01160190565b61062861054a565b61061a565b92919261063982610602565b9161064760405193846105bf565b8294818452818301116103e1578281602093846000960137010152565b50346103e1576020806003193601126103e15767ffffffffffffffff6004358181116103e157366023820112156103e1576106a990369060248160040135910161062d565b916106b2612a79565b82519182116107cb575b6106d0826106cb601054610808565b6148ca565b80601f83116001146107265750819260009261071b575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8260011b9260031b1c191617601055005b0151905038806106e7565b90601f1983169361075960106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67290565b926000905b8682106107b3575050836001951061077c575b505050811b01601055005b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055388080610771565b8060018596829496860151815501950193019061075e565b6107d361054a565b6106bc565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b90600182811c92168015610851575b602083101461082257565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691610817565b918091926000905b82821061087b575011610874575050565b6000910152565b91508060209183015181860152018291610863565b90601f19601f6020936108ae8151809281875287808801910161085b565b0116010190565b9060206108c6928181520190610890565b90565b50346103e1576000806003193601126109c1576040519080600e546108ed81610808565b808552916001918083169081156109825750600114610927575b61092385610917818703826105bf565b604051918291826108b5565b0390f35b9250600e83527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b82841061096a57505050810160200161091782610923610907565b8054602085870181019190915290930192810161094f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016602087015250506040840192506109179150839050610923610907565b80fd5b50346103e1576020806003193601126103e157600435601154811015610ace576109ed9061492b565b60405190600092601054610a0081610808565b90600190818116908115610a955750600114610a37575b6109238561091781610a298a89612d97565b03601f1981018352826105bf565b9091945060106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672906000915b838310610a825750505082019092019181610a29610917610a17565b8054868401880152918601918101610a66565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016848701525050830101925081610a29610917610a17565b6064826040519062461bcd60e51b82526004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152fd5b60031960609101126103e157600435610b2a816103c3565b906024359060443590565b50610b3f36610b12565b90610b4f6002600d5414156144f8565b6002600d5560125460ff168080610e77575b610e4d57610b7d575b610b739261474d565b6100216001600d55565b6000806014545b808310610bbd575b509050610b6a5760046040517f2abac27e000000000000000000000000000000000000000000000000000000008152fd5b610bec610be7610bcc856143d9565b505473ffffffffffffffffffffffffffffffffffffffff1690565b3b1590565b610e4857610bf9836143d9565b50926001809401541580610da8575b15610c17575050508038610b8c565b90919280610c24836143d9565b500154610c3d575b50610c3690613484565b9190610b84565b610c5281610c4a846143d9565b500154613453565b816000815b610d62575b50506000610cd291610c8f610c76610c76610bcc886143d9565b73ffffffffffffffffffffffffffffffffffffffff1690565b84610c99876143d9565b50604051958694859384937f4e1273f40000000000000000000000000000000000000000000000000000000085520190600484016146ea565b03915afa908115610d55575b600091610d34575b506000825b610cf7575b5050610c2c565b8151811015610d2f57610d0a81836134b2565b51610d1f57610d198391613484565b90610ceb565b50909350610c3690503880610cf0565b610cf0565b610d4f913d8091833e610d4781836105bf565b810190614670565b38610ce6565b610d5d6132c9565b610cde565b8251811015610da357610d9d90610d9833610d7d83876134b2565b9073ffffffffffffffffffffffffffffffffffffffff169052565b613484565b81610c57565b610c5c565b50610dbb610c76610c76610bcc846143d9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526020918290829060249082905afa918215610e3b575b600092610e0e575b50501515610c08565b610e2d9250803d10610e34575b610e2581836105bf565b8101906132ba565b3880610e05565b503d610e1b565b610e436132c9565b610dfd565b610b8c565b60046040517f7e3b77b8000000000000000000000000000000000000000000000000000000008152fd5b503360005260156020526001610e9284604060002054613092565b11610b61565b50346103e15760206003193601126103e157610021600435610eb9816103c3565b613117565b50346103e15760206003193601126103e15760043560005260046020526020600160406000200154604051908152f35b60209067ffffffffffffffff8111610f08575b60051b0190565b610f1061054a565b610f01565b81601f820112156103e157803591610f2c83610eee565b92610f3a60405194856105bf565b808452602092838086019260051b8201019283116103e1578301905b828210610f64575050505090565b81358152908301908301610f56565b9080601f830112156103e1578160206108c69335910161062d565b50346103e15760a06003193601126103e157600435610fac816103c3565b60243590610fb9826103c3565b67ffffffffffffffff916044358381116103e157610fdb903690600401610f15565b6064358481116103e157610ff3903690600401610f15565b916084359485116103e15761100f610021953690600401610f73565b9361362d565b50346103e1576040806003193601126103e15760043590602435611038816103c3565b600092808452600460205261105260018486200154612cc4565b808452600460205260ff611088838587209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54161561109457505051f35b80845260046020526110c8828486209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d858551a451f35b50346103e15760406003193601126103e157602435611150816103c3565b3373ffffffffffffffffffffffffffffffffffffffff8216036111795761002190600435612dae565b608460405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b50346103e1576111f236610b12565b6112046002600d9493945414156144f8565b6002600d55611211612a79565b60115483101561128757826000526013602052604060002092600184019361123a838654613092565b9054811161125d57610b73945560405192611254846105a3565b60008452614543565b60046040517ffb88d215000000000000000000000000000000000000000000000000000000008152fd5b60046040517f72ec2530000000000000000000000000000000000000000000000000000000008152fd5b50346103e15760006003193601126103e1576020600554604051908152f35b50346103e15760006003193601126103e1576112ea612bf7565b60005b6016548110156100215780610d9873ffffffffffffffffffffffffffffffffffffffff61131c61132294612f7a565b16613117565b6112ed565b60031960409101126103e15760043561133f816103c3565b906024356108c6816103c3565b50346103e15760206113a873ffffffffffffffffffffffffffffffffffffffff61137536611327565b9116600052600b835260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54604051908152f35b50346103e1577f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a6113e136611327565b6114196114118294939473ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b541515612fd4565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff84169382916115979190611512906114b7906020816024818c5afa9081156115df575b6000916115c1575b506114b08473ffffffffffffffffffffffffffffffffffffffff16600052600a602052604060002090565b5490613092565b61150a856114e58573ffffffffffffffffffffffffffffffffffffffff16600052600b602052604060002090565b9073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b549085613313565b9384916115208315156130a6565b61154e826114e58373ffffffffffffffffffffffffffffffffffffffff16600052600b602052604060002090565b611559848254613092565b90556115858173ffffffffffffffffffffffffffffffffffffffff16600052600a602052604060002090565b611590848254613092565b9055614002565b6040805173ffffffffffffffffffffffffffffffffffffffff9290921682526020820192909252a2005b6115d9915060203d8111610e3457610e2581836105bf565b38611485565b6115e76132c9565b61147d565b9181601f840112156103e15782359167ffffffffffffffff83116103e1576020808501948460051b0101116103e157565b60406003198201126103e15767ffffffffffffffff916004358381116103e1578261164a916004016115ec565b939093926024359182116103e157611664916004016115ec565b9091565b50346103e1576116773661161d565b92611680612a79565b83830361172157600093845b8481106116995785604051f35b61171c90610d986011546116af60018201601155565b6116f76116bd848a896144e0565b35916116ca85888b6144e0565b356116d36105e2565b9384528b602085015260408401528a60608401526000526013602052604060002090565b9060606003918051845560208101516001850155604081015160028501550151910155565b61168c565b60046040517fb34890cb000000000000000000000000000000000000000000000000000000008152fd5b90815180825260208080930193019160005b82811061176b575050505090565b83518552938101939281019260010161175d565b9060206108c692818152019061174b565b50346103e15760406003193601126103e15760043567ffffffffffffffff8082116103e157366023830112156103e15781600401356117ce81610eee565b926117dc60405194856105bf565b81845260209160248386019160051b830101913683116103e157602401905b82821061183457856024358681116103e15761092391611822611828923690600401610f15565b906134d4565b6040519182918261177f565b8380918335611842816103c3565b8152019101906117fb565b50346103e15760206003193601126103e157600435600052600360205260206040600020541515604051908152f35b50346103e15760606003193601126103e15760043561189a816103c3565b67ffffffffffffffff906024358281116103e1576118bc903690600401610f15565b916044359081116103e1576118d5903690600401610f15565b73ffffffffffffffffffffffffffffffffffffffff82169133831480156119dd575b611900906135bc565b61190b831515613eef565b61191884518351146138dd565b611920613f60565b5061192c828583614ac7565b60005b845181101561199b578061194661199692876134b2565b51611990846114e561195885896134b2565b51611971836114e5876000526000602052604060002090565b5461197e82821015613f92565b03936000526000602052604060002090565b55613484565b61192f565b600084867f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb6119d28760405191829133958361394e565b0390a4610021613f60565b5082600052600160205261190060ff611a1a3360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b541690506118f7565b50346103e1576000806003193601126109c1576040519080601054611a4781610808565b808552916001918083169081156109825750600114611a705761092385610917818703826105bf565b9250601083527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6725b828410611ab357505050810160200161091782610923610907565b80546020858701810191909152909301928101611a98565b50346103e1576000806003193601126109c157600c547fffffffffffffffffffffffff000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff821691611b25338414612e90565b16600c5581604051917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b50346103e157611b633661161d565b909291611b6e612a79565b818103611bca5760005b818110611b8157005b611b8c8183866144e0565b359060115482101561128757611bc5916003611bbe611bac84888b6144e0565b35926000526013602052604060002090565b0155613484565b611b78565b608460405162461bcd60e51b8152602060048201526024808201527f696e707574206172726179206c656e67746873206d757374206265207468652060448201527f73616d65000000000000000000000000000000000000000000000000000000006064820152fd5b50346103e15760206003193601126103e1576020611c52600435612f7a565b73ffffffffffffffffffffffffffffffffffffffff60405191168152f35b50346103e15760006003193601126103e157602073ffffffffffffffffffffffffffffffffffffffff600c5416604051908152f35b50346103e15760406003193601126103e157602060ff611cfe602435611cca816103c3565b6004356000526004845260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54166040519015158152f35b50346103e15760006003193601126103e157602060ff601254166040519015158152f35b50346103e1576000806003193601126109c1576040519080600f54611d5281610808565b808552916001918083169081156109825750600114611d7b5761092385610917818703826105bf565b9250600f83527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b828410611dbe57505050810160200161091782610923610907565b80546020858701810191909152909301928101611da3565b50346103e15760406003193601126103e157600435611df4816103c3565b6024359067ffffffffffffffff82116103e157611e18611e79923690600401610f15565b611e20612a79565b60405191611e2d8361057a565b73ffffffffffffffffffffffffffffffffffffffff8091168352602092838101928352611ec76014549268010000000000000000841015611f10575b60019684888096016014556143d9565b939093611f03575b9594955116829073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b0191519181835193611ed9858461445c565b019060005281600020916000915b848310611ef057005b8051845592850192918501918101611ee7565b611f0b6107d8565b611e81565b611f1861054a565b611e69565b50346103e15760206003193601126103e15773ffffffffffffffffffffffffffffffffffffffff600435611f50816103c3565b1660005260086020526020604060002054604051908152f35b50346103e15760006003193601126103e157602060405160008152f35b801515036103e157565b50346103e15760406003193601126103e157600435611fae816103c3565b602435611fba81611f86565b73ffffffffffffffffffffffffffffffffffffffff82169182331461206d578161200b61203b926114e53373ffffffffffffffffffffffffffffffffffffffff166000526001602052604060002090565b9060ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b608460405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152fd5b50346103e15760006003193601126103e1576120f1612bf7565b60125460ff811615612124577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016601255005b606460405162461bcd60e51b815260206004820152601560248201527f50726573616c6520616c726561647920656e64656400000000000000000000006044820152fd5b50346103e15760206003193601126103e1576004356000526013602052608060406000208054906001810154906003600282015491015491604051938452602084015260408301526060820152f35b50346103e1576000806003193601126109c1576121d2612bf7565b60145481601455806121e5575b50604051f35b60017f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82118116612262575b601483527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec91811b8201915b82811061224b5750506121df565b80846002925561225c838201614438565b0161223d565b61226a613045565b612211565b50346103e15760206003193601126103e15760043560005260036020526020604060002054604051908152f35b50346103e15760006003193601126103e157602060405160018152f35b50346103e15760206003193601126103e15773ffffffffffffffffffffffffffffffffffffffff6004356122ec816103c3565b1660005260076020526020604060002054604051908152f35b602080820190808352835180925260409283810182858560051b8401019601946000925b85841061233a575050505050505090565b90919293949596858061239d837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0866001960301885286838d5173ffffffffffffffffffffffffffffffffffffffff81511684520151918185820152019061174b565b990194019401929594939190612329565b50346103e15760006003193601126103e1576014546123cc81610eee565b6040916123db835192836105bf565b8082526014600090815260207fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec8185015b848410612420578651806109238882612305565b60028360019289516124318161057a565b73ffffffffffffffffffffffffffffffffffffffff86541681528a516124648161245d81898b016144a3565b03826105bf565b8382015281520192019301929061240c565b50346103e15760406003193601126103e15761002160243560043561249a826103c3565b8060005260046020526124b4600160406000200154612cc4565b612dae565b50346103e15760206003193601126103e15773ffffffffffffffffffffffffffffffffffffffff6004356124ec816103c3565b16600052600a6020526020604060002054604051908152f35b50346103e15760006003193601126103e1576020600654604051908152f35b50346103e15760406003193601126103e157602060ff611cfe600435612549816103c3565b73ffffffffffffffffffffffffffffffffffffffff6024359161256b836103c3565b166000526001845260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b50346103e15760a06003193601126103e1576004356125bb816103c3565b6024356125c7816103c3565b60643560443560843567ffffffffffffffff81116103e1576125ed903690600401610f73565b9273ffffffffffffffffffffffffffffffffffffffff948581169533871480156127d5575b61261b906135bc565b821680159661262a88156137fb565b61263385613ebe565b9761263d87613ebe565b90821561276a575b6126ee575b50610021975085612669846114e5886000526000602052604060002090565b546126768282101561386c565b0361268f846114e5886000526000602052604060002090565b556126a8846114e5876000526000602052604060002090565b6126b3878254613092565b9055604080518681526020810188905233917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a433613c92565b959391600097959391975b89518110156127575780612710612752928c6134b2565b5161199061271e838c6134b2565b51612733836000526003602052604060002090565b5461274082821015614a56565b03916000526003602052604060002090565b6126f9565b509193955091939561002197503861264a565b9896939095926000989592985b88518110156127c55780896127b96127b16127a0846127996127c0978f6134b2565b51946134b2565b516000526003602052604060002090565b918254613092565b9055613484565b612777565b5092959093969897919497612645565b5086600052600160205261261b60ff6128123360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54169050612612565b50346103e15760206003193601126103e157600435612839816103c3565b73ffffffffffffffffffffffffffffffffffffffff61285d81600c54163314612e90565b81161561286d5761002190612edb565b608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b50346103e1576128e636610b12565b919073ffffffffffffffffffffffffffffffffffffffff82163381148015612a33575b612912906135bc565b80159161291f8315613eef565b61292881613ebe565b9461293281613ebe565b936000604051612941816105a3565b526129f7575b60005b8651811015612974578061296161296f92896134b2565b5161199061271e83896134b2565b61294a565b600084847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f626119d2868b6129dd826129ba836114e5896000526000602052604060002090565b546129c782821015613f92565b03916114e5876000526000602052604060002090565b556040805194855260208501919091523393918291820190565b93919060005b8651811015612a2a5780612a14612a2592876134b2565b516127b96127b16127a0848c6134b2565b6129fd565b50909193612947565b5080600052600160205261291260ff612a703360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b54169050612909565b3360009081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec602052604090205460049060ff1615612ab65750565b612abf33614317565b906000612aca614220565b906030612ad68361425a565b536078612ae283614270565b5360415b60018111612b9d575092612b72612b8092612b03604896156142cc565b6040519586937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152612b4381518092602060378901910161085b565b84017f206973206d697373696e6720726f6c652000000000000000000000000000000060378201520190612d97565b03601f1981018452836105bf565b612b9960405192839262461bcd60e51b845283016108b5565b0390fd5b90807f3031323334353637383961626364656600000000000000000000000000000000600f612be593166010811015612bea575b1a612bdc8486614281565b53841c916142a0565b612ae6565b612bf2612f4a565b612bd1565b3360009081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec602052604090205460049060ff1615612c345750565b612c3d33614317565b906000612c48614220565b906030612c548361425a565b536078612c6083614270565b5360415b60018111612c81575092612b72612b8092612b03604896156142cc565b90807f3031323334353637383961626364656600000000000000000000000000000000600f612cbf93166010811015612bea571a612bdc8486614281565b612c64565b8060005260048060205260ff612cfe3360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b541615612d09575050565b612d1233614317565b91612d1b614220565b906030612d278361425a565b536078612d3383614270565b5360415b60018111612d54575092612b72612b8092612b03604896156142cc565b90807f3031323334353637383961626364656600000000000000000000000000000000600f612d9293166010811015612bea571a612bdc8486614281565b612d37565b90612daa6020928281519485920161085b565b0190565b80600052600460205260ff612de78360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b5416612df1575050565b806000526004602052612e288260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6000604051a4565b15612e9757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600c549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600c55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a3565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff90600954811015612fc7575b60096000527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01541690565b612fcf612f4a565b612f9b565b15612fdb57565b608460405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8019603011613085575b60300190565b61308d613045565b61307f565b8119811161309e570190565b612daa613045565b156130ad57565b608460405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff8216600092818452600760205260409361314b858220541515612fd4565b61316e61315b4760065490613092565b8483526008602052868320549085613313565b9261317a8415156130a6565b8082526008602052858220613190858254613092565b905561319e84600654613092565b60065583471061327757818091858851915af16131b96141b0565b501561320e57925173ffffffffffffffffffffffffffffffffffffffff90931683526020830152907fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569080604081015b0390a1565b6084845162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b6064865162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b908160209103126103e1575190565b506040513d6000823e3d90fd5b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821181151516613307570290565b61330f613045565b0290565b9073ffffffffffffffffffffffffffffffffffffffff61334292166000526007602052604060002054906132d6565b6005549081156133645704818110613358570390565b613360613045565b0390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116156133e9576133e591600052600060205260406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b5490565b608460405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152fd5b9061345d82610eee565b61346a60405191826105bf565b828152601f1961347a8294610eee565b0190602036910137565b6001907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461309e570190565b60209181518110156134c7575b60051b010190565b6134cf612f4a565b6134bf565b9190918051835103613552576134ea8151613453565b9060005b815181101561354b578061353661352561350b61354694866134b2565b5173ffffffffffffffffffffffffffffffffffffffff1690565b61352f83896134b2565b5190613393565b61354082866134b2565b52613484565b6134ee565b5090925050565b608460405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152fd5b156135c357565b608460405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152fd5b93949291909273ffffffffffffffffffffffffffffffffffffffff958686169633881480156137ba575b156137505761366984518651146138dd565b85166136768115156137fb565b6136828585888a614b50565b60005b845181101561370a5780886127b96127b18a6114e58b6136b3876136ac6137059a8f6134b2565b51926134b2565b51956136f4876136d1836114e5866000526000602052604060002090565b546136de8282101561386c565b03916114e5846000526000602052604060002090565b556000526000602052604060002090565b613685565b5061374e96919592976040517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806137458a8a8361394e565b0390a433613e56565b565b608460405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152fd5b5087600052600160205260ff6137f43360406000209073ffffffffffffffffffffffffffffffffffffffff16600052602052604060002090565b5416613657565b1561380257565b608460405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b1561387357565b608460405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152fd5b156138e457565b608460405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152fd5b90916139656108c69360408452604084019061174b565b91602081840391015261174b565b908160209103126103e157516108c68161041a565b909260a09273ffffffffffffffffffffffffffffffffffffffff6108c6969516835260006020840152604083015260608201528160808201520190610890565b91926108c695949160a09473ffffffffffffffffffffffffffffffffffffffff8092168552166020840152604083015260608201528160808201520190610890565b60009060033d11613a1757565b905060046000803e60005160e01c90565b600060443d106108c65760405160031991823d016004833e815167ffffffffffffffff918282113d602484011117613a8657818401948551938411613a8e573d85010160208487010111613a8657506108c6929101602001906105bf565b949350505050565b50949350505050565b9390803b613aa7575b5050505050565b613afd93600073ffffffffffffffffffffffffffffffffffffffff602095604051978896879586937ff23a6e61000000000000000000000000000000000000000000000000000000009c8d865260048601613988565b0393165af160009181613c62575b50613bd05750506001613b1c613a0a565b6308c379a014613ba1575b613b36575b3880808080613aa0565b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608490fd5b613ba9613a28565b80613bb45750613b27565b612b999060405191829162461bcd60e51b8352600483016108b5565b7fffffffff000000000000000000000000000000000000000000000000000000001614613b2c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608490fd5b613c8491925060203d8111613c8b575b613c7c81836105bf565b810190613973565b9038613b0b565b503d613c72565b9493919092813b613ca6575b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff602095613cfb604051988997889687947ff23a6e61000000000000000000000000000000000000000000000000000000009d8e8752600487016139c8565b0393165af160009181613dda575b50613d485750506001613d1a613a0a565b6308c379a014613d35575b613b36575b388080808080613c9e565b613d3d613a28565b80613bb45750613d25565b7fffffffff000000000000000000000000000000000000000000000000000000001614613d2a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608490fd5b613df391925060203d8111613c8b57613c7c81836105bf565b9038613d09565b93906108c69593613e3a91613e489473ffffffffffffffffffffffffffffffffffffffff809216885216602087015260a0604087015260a086019061174b565b90848203606086015261174b565b916080818403910152610890565b9493919092813b613e6957505050505050565b600073ffffffffffffffffffffffffffffffffffffffff602095613cfb604051988997889687947fbc197c81000000000000000000000000000000000000000000000000000000009d8e875260048701613dfa565b60405190613ecb8261057a565b60018252602082016020368237825115613ee3575290565b613eeb612f4a565b5290565b15613ef657565b608460405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b604051906020820182811067ffffffffffffffff821117613f85575b60405260008252565b613f8d61054a565b613f7c565b15613f9957565b608460405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602080830191825273ffffffffffffffffffffffffffffffffffffffff9485166024840152604480840196909652948252909290916140666064856105bf565b1690604051926140758461057a565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b156140e6576140c1939260009283809351925af16140bb6141b0565b906141e0565b805190816140ce57505050565b8261374e936140e193830101910161412a565b61413f565b6064856040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b908160209103126103e157516108c681611f86565b1561414657565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b3d156141db573d906141c182610602565b916141cf60405193846105bf565b82523d6000602084013e565b606090565b909190156141ec575090565b8151156141fc5750805190602001fd5b612b999060405191829162461bcd60e51b8352602060048401526024830190610890565b604051906080820182811067ffffffffffffffff82111761424d575b604052604282526060366020840137565b61425561054a565b61423c565b602090805115614268570190565b612daa612f4a565b602190805160011015614268570190565b90602091805182101561429357010190565b61429b612f4a565b010190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90801561309e570190565b156142d357565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff8211176143cc575b604052602a82526040366020840137603061434d8361425a565b53607861435983614270565b536029905b60018211614371576108c69150156142cc565b807f3031323334353637383961626364656600000000000000000000000000000000600f6143b9931660108110156143bf575b1a6143af8486614281565b5360041c916142a0565b9061435e565b6143c7612f4a565b6143a4565b6143d461054a565b614333565b601454811015614414575b601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0190600090565b61441c612f4a565b6143e4565b81811061442c575050565b60008155600101614421565b80546000825580614447575050565b61374e91600052602060002090810190614421565b90680100000000000000008111614496575b81549080835581811061448057505050565b61374e9260005260206000209182019101614421565b61449e61054a565b61446e565b90815480825260208092019260005281600020916000905b8282106144c9575050505090565b8354855293840193600193840193909101906144bb565b91908110156144f05760051b0190565b610f10612f4a565b156144ff57565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b9390919273ffffffffffffffffffffffffffffffffffffffff85169384156146065761456e84613ebe565b9361457882613ebe565b9660005b86518110156145985780612a14614593928b6134b2565b61457c565b509193965091935061374e946145bc826114e5856000526000602052604060002090565b6145c7858254613092565b9055604080518481526020810186905260009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629190a433613a97565b608460405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b60209081818403126103e15780519067ffffffffffffffff82116103e157019180601f840112156103e15782516146a681610eee565b936146b460405195866105bf565b818552838086019260051b8201019283116103e1578301905b8282106146db575050505090565b815181529083019083016146cd565b9092916040820191604081528451809352606081019260208096019060005b818110614723575050506108c693948184039101526144a3565b825173ffffffffffffffffffffffffffffffffffffffff1686529487019491870191600101614709565b82156148a05760115482101561128757614771826000526013602052604060002090565b916003830154841180614856575b61482c576147918460028501546132d6565b34106148025760018301906147a7858354613092565b9354841161125d576147c4938592556147be613f60565b92614543565b60125460ff166147d15750565b6147fe6127b13373ffffffffffffffffffffffffffffffffffffffff166000526015602052604060002090565b9055565b60046040517f8a0d3779000000000000000000000000000000000000000000000000000000008152fd5b60046040517fb637d13b000000000000000000000000000000000000000000000000000000008152fd5b5060008052600460205261489b614897614890337f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec6114e5565b5460ff1690565b1590565b61477f565b60046040517fd11b25af000000000000000000000000000000000000000000000000000000008152fd5b90601f82116148d7575050565b61374e9160106000527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672906020601f840160051c83019310614921575b601f0160051c0190614421565b9091508190614914565b8015614a1c57806000908282935b614a08575061494783610602565b9261495560405194856105bf565b80845281601f1961496583610602565b013660208701375b6149775750505090565b8060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff92106149fb575b0190600a906149e66149be6149b8848406613075565b60ff1690565b60f81b7fff000000000000000000000000000000000000000000000000000000000000001690565b841a6149f28487614281565b5304908161496d565b614a03613045565b6149a2565b92614a14600a91613484565b930480614939565b50604051614a298161057a565b600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b15614a5d57565b608460405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152fd5b9092919073ffffffffffffffffffffffffffffffffffffffff1615614b1a575b60005b8351811015614b145780614b01614b0f92866134b2565b5161199061271e83866134b2565b614aea565b50509050565b60005b8351811015614b4a5780614b34614b4592846134b2565b516127b96127b16127a084896134b2565b614b1d565b50614ae7565b909392919373ffffffffffffffffffffffffffffffffffffffff80921615614b9d575b1615614b7e57509050565b60005b8351811015614b145780614b01614b9892866134b2565b614b81565b929060005b8551811015614bcf5780614bb9614bca92866134b2565b516127b96127b16127a0848b6134b2565b614ba2565b509092614b73565b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770918190810161320956fea264697066735822122045c2fa5f2ae90f237cb4c74c21530106cfd13247dc76b2ffbbe8784eedb27c5864736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000c8652dd4d40479d4b29de7b5bf3aa7aeedd38e84000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c8652dd4d40479d4b29de7b5bf3aa7aeedd38e840000000000000000000000001eccc24854d97281edaedf9ac7bc36c313c1394b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000002454686520536f6d657468696e6773202d2041204465656420546f20546865205265616c6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075453414454545200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d68747470733a2f2f6170692e6d6f6f6e77616c6b2e636f6d2f76312f6d657461646174612f6d696e74706173732f3632616662373335333136656431303031313261376234302f746f6b656e2f00000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : payees (address[]): 0xc8652dd4D40479D4B29de7b5bf3Aa7aeEDD38E84,0x1Eccc24854d97281EDaedF9AC7bC36C313C1394b
Arg [1] : shares (uint256[]): 10,90
Arg [2] : owner_ (address): 0xc8652dd4D40479D4B29de7b5bf3Aa7aeEDD38E84
Arg [3] : name_ (string): The Somethings - A Deed To The Realm
Arg [4] : symbol_ (string): TSADTTR
Arg [5] : baseUri (string): https://api.moonwalk.com/v1/metadata/mintpass/62afb735316ed100112a7b40/token/

-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000c8652dd4d40479d4b29de7b5bf3aa7aeedd38e84
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 000000000000000000000000c8652dd4d40479d4b29de7b5bf3aa7aeedd38e84
Arg [8] : 0000000000000000000000001eccc24854d97281edaedf9ac7bc36c313c1394b
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [13] : 54686520536f6d657468696e6773202d2041204465656420546f205468652052
Arg [14] : 65616c6d00000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [16] : 5453414454545200000000000000000000000000000000000000000000000000
Arg [17] : 000000000000000000000000000000000000000000000000000000000000004d
Arg [18] : 68747470733a2f2f6170692e6d6f6f6e77616c6b2e636f6d2f76312f6d657461
Arg [19] : 646174612f6d696e74706173732f363261666237333533313665643130303131
Arg [20] : 3261376234302f746f6b656e2f00000000000000000000000000000000000000


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.