ETH Price: $3,387.74 (+1.24%)

Token

 

Overview

Max Total Supply

5,250

Holders

1,045

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0xa5e6ecee703d6ee327c4a75a8b3fa2cf0ff675f7
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:
VSPxEightBitMe

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : VSPxEightBitMe.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ERC1155 } from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import { ECDSA }   from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { PaymentSplitter } from "@openzeppelin/contracts/finance/PaymentSplitter.sol";

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%##*+=======-+#%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%#**+=======+**#%%%%%%%%*-=%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#**+======++*##%@@@@@@@@@@%%%%%%%%%%%==%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@%#**++++=+++**#%%@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%#.%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@#*+======+*#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%:#%%%%%%%%%%%%%%
@@@@@@@@@@@%==*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%==%%%%%%%%%%%%%%
@@@@@@@@@@%:%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%#.%%%%%%%%%%%%%%
@@@@@@@@@@=+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@%%%%%%%%%:#%%%%%%%%%%%%%
@@@@@@@@@@*-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#***%@@+:.     -%@@@@@@@%%%%%%%%+=%%%%%%%%%%%%%
@@@@@@@@@@@.@@@@@@@@@@@@@@@@@@@@@@@@#=-*@+      :%*   =+-  :@@@@@@@@%%%%%%%#.%%%%%%%%%%%%%
@@@@@@@@@@@-#@@@@@@@@@@@@@@@@+. -@@@+  =%   *#-  =@   *@%   #@@@@@@@%%%%%%%%:#%%%%%%%%%%%%
@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@...*@@+  =%   #@%*#%@-  :@@:  +@@@@@@@@%%%%%%%==%%%%%%%%%%%%
@@@@@@@@@@@@.@@@@@@@@@@@@@@@@@#..:@@*..=@+...-*%@@@*   =-   *@@@@@@@@@%%%%%%#.%%%%%%%%%%%%
@@@@@@@@@@@@-#@@@@@@@@@@@@@@@@@=..=@*..=@@%-....-#@@.    .-#@@@@@@@@@@@%%%%%%:#%%%%%%%%%%%
@@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@%::.##..=@@@@%*=...=@-..:@@@@@@@@@@@@@@@@%%%%%==%%%%%%%%%%%
@@@@@@@@@@@@@.@@@@@@@@@@@@@@@@@@*::-#.:=@@#*+%@%:..**...%@@@@@@@@@@@@@@@@%%%%#:%%%%%%%%%%%
@@@@@@@@@@@@@-#@@@@@@@@@@@@@@@@@@=::-::=@@+::-##::.*@...+@@@@@@@@@@@@@@@@@%%%%:#%%%%%%%%%%
@@@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@@%:-:::=@@@=::::::+@@+=+*@@@@@@@@@@@@@@@@@@%%%==%%%%%%%%%%
@@@@@@@@@@@@@@.@@@@@@@@@@@@@@@@@@@*---:=@@@@%#*##@@@@@@@@@@@@@@@@@@@@@@@@@@%%%#:%%%%%%%%%%
@@@@@@@@@@@@@@:#@@@@@@@@@@@@@@@@@@@##%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%.%%%%%%%%%%
@@@@@@@@@@@@@@+=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*-%%%%%%%%%%
@@@@@@@@@@@@@@@.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*-=%%%%%%%%%%%
@@@@@@@@@@@@@@@:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%#*+=======*%%%%%%%%%%%%%
@@@@@@@@@@@@@@@+=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%##*++=====++*##%%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@%.@@@@@@@@@@@@@@@@@@@@@@@@%##*+++++++++*##%@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@*-#@@@@@@@@@@%##*++++++++**#%%@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@*=+++++++++*##%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%
*/

// Contract by: @backseats_eth

// Errors

error BadID();
error CantMintZero();
error ExceedsSupply();
error IDAlreadyUsed();
error InvalidSignature();
error InvalidSlot();
error MintDisabled();
error MissingSystemAddress();
error NoContracts();
error UsedNonce();

interface IVSP {
  function ownerOf(uint256 tokenId) external returns (address);
}

contract VSPxEightBitMe is ERC1155, Ownable, PaymentSplitter {
  using ECDSA for bytes32;
  using Strings for uint256;

  uint256 constant BASEBALL   = 1;
  uint256 constant BASKETBALL = 2;
  uint256 constant ESPORTS    = 3;
  uint256 constant FOOTBALL   = 4;
  uint256 constant GOLF       = 5;
  uint256 constant HOCKEY     = 6;
  uint256 constant MMA        = 7;
  uint256 constant SOCCER     = 8;
  uint256 constant TENNIS     = 9;
  uint256 constant VOLLEYBALL = 10;
  uint256 constant LAVA       = 11;
  uint256 constant GOLD       = 12;
  uint256 constant BUBBLEGUM  = 13;
  uint256 constant DIAMOND    = 14;
  uint256 constant HOLOGRAM   = 15;

  // This is redundant due to a 1:1 claim with each VSP token
  uint256 constant MAX_SUPPLY = 15_555;

  // Not needed but nice to have for good measure
  uint256 public totalSupply;

  // 15_555 1s that we flip to 0s when a particular ID has been used
  uint256[] _usedIdSlots;

  // If the mint is enabled or not
  bool public mintEnabled;

  // The address that correspondings to the private key signing on the server
  address public systemAddress;

  // The baseURI of where metadata is being served from
  string private _baseURI;

  // A mapping of nonces that have been used to mint
  mapping(string => bool) private _usedNonces;

  constructor(address[] memory _payees, uint256[] memory _shares) ERC1155("") PaymentSplitter(_payees, _shares) {}

  /**
  @notice This function allows you to mint various EightBit.Me trophies depending on how
  you have allocated your credits. Requires a signature from the server to ensure token ownership
  */
  function mintMyTrophies(uint256[][] calldata _counts, string calldata _nonce, bytes calldata _signature) external {
    if (msg.sender != tx.origin) revert NoContracts();
    if (!mintEnabled) revert MintDisabled();
    if (!isValidSignature(keccak256(abi.encodePacked(msg.sender, _nonce)), _signature)) revert InvalidSignature();
    if (_usedNonces[_nonce]) revert UsedNonce();

    // A counter to check against total supply before minting
    uint256 totalToMint;

    IVSP vsp = IVSP(0xbcE6D2aa86934AF4317AB8615F89E3F9430914Cb);

    // An array for use after checking if we've used those IDs already
    uint256[] memory tierCountsToMint = new uint256[](15);

    // Loop through the array of arrays
    for(uint256 i; i < _counts.length;) {

      // Run 15 inner loops
      uint256 localCount;
      for(uint256 n; n < _counts[i].length;) {
        // Check each piece hasn't been claimed and that msg.sender owns it
        uint256 id = _counts[i][n];
        if (!hasIdBeenUsed(id) && vsp.ownerOf(id) == msg.sender) {
          // Increment the local count for the tier and the total across all tiers
          unchecked {
            ++localCount;
            ++totalToMint;
          }
          // Flip ID 1 -> 0 to record it was used
          _recordIdUsed(id);
        }

        // Increment inner loop
        unchecked { ++n; }
      }

      // Set the count to mint for that tier in the array
      tierCountsToMint[i] = localCount;

      // Increment outer loop
      unchecked { ++i; }
    }

    if (totalToMint == 0) revert CantMintZero();
    if (totalSupply + totalToMint > MAX_SUPPLY) revert ExceedsSupply();

    // Increment the total supply
    totalSupply += totalToMint;

    // Record the nonce so it's not re-used
    _usedNonces[_nonce] = true;

    mintTiers(tierCountsToMint);
  }

  /**
  @notice Mints various amounts of each tier depending on your allocations
  */
  function mintTiers(uint256[] memory _array) internal {
    for(uint256 i; i < _array.length;) {
      if (_array[i] > 0) {
        // Adds 1 to i because the tiers are base 1-based and the loop is base 0-based
        _mint(msg.sender, (i + 1), _array[i], "");
      }

      unchecked { ++i; }
    }
  }

  // Setters

  /**
  @notice Enables/disables mint
  */
  function setMintEnabled(bool _val) external onlyOwner {
    mintEnabled = _val;
  }

  /**
  @notice Sets the system address corresponding to the private key signing on the server
  */
  function setSystemAddress(address _systemAddress) external onlyOwner {
    systemAddress = _systemAddress;
  }

  /**
  @notice Sets the BaseURI
  */
  function setBaseURI(string calldata baseURI) external onlyOwner {
    _baseURI = baseURI;
  }

  /**
  @notice See {IERC1155MetadataURI-uri}
  */
  function uri(uint256 tokenId) public view virtual override returns (string memory) {
    return bytes(_baseURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenId.toString())) : "";
  }

  /**
  @notice Verifies that the signature sent through is signed by the system address
  */
  function isValidSignature(bytes32 hash, bytes calldata signature) internal view returns (bool) {
    if (systemAddress == address(0)) revert MissingSystemAddress();
    bytes32 signedHash = hash.toEthSignedMessageHash();
    return signedHash.recover(signature) == systemAddress;
  }

  // Storage

  /**
  @notice Returns whether an id has already been used
  */
  function hasIdBeenUsed(uint256 _vspId) public view returns (bool) {
    if (_vspId >= _usedIdSlots.length * 256) revert InvalidSlot();

    uint256 storageOffset; // [][][]
    uint256 localGroup; // [][x][]
    uint256 offsetWithin256; // 0xF[x]FFF

    unchecked {
      storageOffset = _vspId / 256;
      offsetWithin256 = _vspId % 256;
    }
    localGroup = _usedIdSlots[storageOffset];

    return ((localGroup >> offsetWithin256) & uint256(1) != 1);
  }

  /**
  @notice To check if a VSP is being used
  @dev Returns error if id is larger than range or has been used already
  @dev Uses bit manipulation in place of mapping
  @dev https://medium.com/donkeverse/hardcore-gas-savings-in-nft-minting-part-3-save-30-000-in-presale-gas-c945406e89f0
  @param _vspId is the id of the token being used
  */
  function _recordIdUsed(uint256 _vspId) internal {
    if (_vspId >= _usedIdSlots.length * 256) revert InvalidSlot();

    uint256 storageOffset; // [][][]
    uint256 localGroup; // [][x][]
    uint256 offsetWithin256; // 0xF[x]FFF

    unchecked {
      storageOffset = _vspId / 256;
      offsetWithin256 = _vspId % 256;
    }
    localGroup = _usedIdSlots[storageOffset];

    // [][x][] > 0x1111[x]1111 > 1
    if (hasIdBeenUsed(_vspId)) revert IDAlreadyUsed();

    // [][x][] > 0x1111[x]1111 > (1) flip to (0)
    localGroup = localGroup & ~(uint256(1) << offsetWithin256);

    _usedIdSlots[storageOffset] = localGroup;
  }

  /**
  @notice This is a cheaper way of handling which IDs have been used to mint rather than using a mapping
  Thanks xtremetom. Credit Cool Pets Contract: https://www.contractreader.io/contract/0x86c10d10eca1fca9daf87a279abccabe0063f247
  */
  function setUsedSlotLength(uint256 num) external onlyOwner {
    // Prevents over-filling
    if (num > 15_555) revert BadID();

    // Account for solidity rounding down
    uint256 slotCount = (num / 256) + 1;

    // Set each element in the slot to binaries of 1
    uint256 MAX_INT = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

    // Create a temporary array based on number of slots required
    uint256[] memory arr = new uint256[](slotCount);

    // Fill each element with MAX_INT
    for (uint256 i; i < slotCount; i++) {
      arr[i] = MAX_INT;
    }

    _usedIdSlots = arr;
  }

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 16 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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 token 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: caller is not token 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}.
     *
     * 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 _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`
     *
     * Emits a {TransferSingle} event.
     *
     * 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}.
     *
     * Emits a {TransferBatch} event.
     *
     * 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 an {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 `ids` and `amounts` 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 4 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 6 of 16 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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. The distribution of shares is set at the
 * time of contract deployment and can't be updated thereafter.
 *
 * `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 Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

    /**
     * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
     * IERC20 contract.
     */
    function releasable(IERC20 token, address account) public view returns (uint256) {
        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        return _pendingPayment(account, totalReceived, released(token, account));
    }

    /**
     * @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 payment = releasable(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 payment = releasable(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 7 of 16 : 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 8 of 16 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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 9 of 16 : 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 10 of 16 : 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 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 16 : 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 14 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 15 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 16 of 16 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BadID","type":"error"},{"inputs":[],"name":"CantMintZero","type":"error"},{"inputs":[],"name":"ExceedsSupply","type":"error"},{"inputs":[],"name":"IDAlreadyUsed","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidSlot","type":"error"},{"inputs":[],"name":"MintDisabled","type":"error"},{"inputs":[],"name":"MissingSystemAddress","type":"error"},{"inputs":[],"name":"NoContracts","type":"error"},{"inputs":[],"name":"UsedNonce","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":"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vspId","type":"uint256"}],"name":"hasIdBeenUsed","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":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"_counts","type":"uint256[][]"},{"internalType":"string","name":"_nonce","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintMyTrophies","outputs":[],"stateMutability":"nonpayable","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","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_systemAddress","type":"address"}],"name":"setSystemAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"setUsedSlotLength","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":"systemAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"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":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200685f3803806200685f833981810160405281019062000037919062000855565b8181604051806020016040528060008152506200005a816200018360201b60201c565b506200007b6200006f6200019f60201b60201c565b620001a760201b60201c565b8051825114620000c2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000b99062000961565b60405180910390fd5b600082511162000109576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200010090620009d3565b60405180910390fd5b60005b825181101562000178576200016283828151811062000130576200012f620009f5565b5b60200260200101518383815181106200014e576200014d620009f5565b5b60200260200101516200026d60201b60201c565b80806200016f9062000a53565b9150506200010c565b505050505062000d52565b80600290805190602001906200019b929190620004a6565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002df576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002d69062000b16565b60405180910390fd5b6000811162000325576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200031c9062000b88565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414620003aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003a19062000c20565b60405180910390fd5b6008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508060045462000461919062000c42565b6004819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516200049a92919062000cc1565b60405180910390a15050565b828054620004b49062000d1d565b90600052602060002090601f016020900481019282620004d8576000855562000524565b82601f10620004f357805160ff191683800117855562000524565b8280016001018555821562000524579182015b828111156200052357825182559160200191906001019062000506565b5b50905062000533919062000537565b5090565b5b808211156200055257600081600090555060010162000538565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005ba826200056f565b810181811067ffffffffffffffff82111715620005dc57620005db62000580565b5b80604052505050565b6000620005f162000556565b9050620005ff8282620005af565b919050565b600067ffffffffffffffff82111562000622576200062162000580565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006658262000638565b9050919050565b620006778162000658565b81146200068357600080fd5b50565b60008151905062000697816200066c565b92915050565b6000620006b4620006ae8462000604565b620005e5565b90508083825260208201905060208402830185811115620006da57620006d962000633565b5b835b81811015620007075780620006f2888262000686565b845260208401935050602081019050620006dc565b5050509392505050565b600082601f8301126200072957620007286200056a565b5b81516200073b8482602086016200069d565b91505092915050565b600067ffffffffffffffff82111562000762576200076162000580565b5b602082029050602081019050919050565b6000819050919050565b620007888162000773565b81146200079457600080fd5b50565b600081519050620007a8816200077d565b92915050565b6000620007c5620007bf8462000744565b620005e5565b90508083825260208201905060208402830185811115620007eb57620007ea62000633565b5b835b8181101562000818578062000803888262000797565b845260208401935050602081019050620007ed565b5050509392505050565b600082601f8301126200083a57620008396200056a565b5b81516200084c848260208601620007ae565b91505092915050565b600080604083850312156200086f576200086e62000560565b5b600083015167ffffffffffffffff81111562000890576200088f62000565565b5b6200089e8582860162000711565b925050602083015167ffffffffffffffff811115620008c257620008c162000565565b5b620008d08582860162000822565b9150509250929050565b600082825260208201905092915050565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b600062000949603283620008da565b91506200095682620008eb565b604082019050919050565b600060208201905081810360008301526200097c816200093a565b9050919050565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b6000620009bb601a83620008da565b9150620009c88262000983565b602082019050919050565b60006020820190508181036000830152620009ee81620009ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000a608262000773565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000a955762000a9462000a24565b5b600182019050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b600062000afe602c83620008da565b915062000b0b8262000aa0565b604082019050919050565b6000602082019050818103600083015262000b318162000aef565b9050919050565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b600062000b70601d83620008da565b915062000b7d8262000b38565b602082019050919050565b6000602082019050818103600083015262000ba38162000b61565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b600062000c08602b83620008da565b915062000c158262000baa565b604082019050919050565b6000602082019050818103600083015262000c3b8162000bf9565b9050919050565b600062000c4f8262000773565b915062000c5c8362000773565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000c945762000c9362000a24565b5b828201905092915050565b62000caa8162000658565b82525050565b62000cbb8162000773565b82525050565b600060408201905062000cd8600083018562000c9f565b62000ce7602083018462000cb0565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000d3657607f821691505b60208210810362000d4c5762000d4b62000cee565b5b50919050565b615afd8062000d626000396000f3fe6080604052600436106101db5760003560e01c806379659cc511610102578063d123973011610095578063e985e9c511610064578063e985e9c514610764578063f242432a146107a1578063f2fde38b146107ca578063f46a04eb146107f357610222565b8063d1239730146106a6578063d3e848f1146106d1578063d79779b2146106fc578063e33b7de31461073957610222565b8063a22cb465116100d1578063a22cb465146105c6578063a3f8eace146105ef578063c45ac0501461062c578063ce7c2ac21461066957610222565b806379659cc5146104e45780638b83209b146105215780638da5cb5b1461055e5780639852595c1461058957610222565b80633a98ef391161017a57806355f804b31161014957806355f804b3146104525780636591cb141461047b57806366a09e36146104a4578063715018a6146104cd57610222565b80633a98ef3914610384578063406072a9146103af57806348b75044146103ec5780634e1273f41461041557610222565b80630e89341c116101b65780630e89341c146102ca57806318160ddd1461030757806319165587146103325780632eb2c2d61461035b57610222565b8062fdd58e1461022757806301ffc9a71461026457806306210197146102a157610222565b36610222577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061020961081c565b346040516102189291906137f6565b60405180910390a1005b600080fd5b34801561023357600080fd5b5061024e6004803603810190610249919061388b565b610824565b60405161025b91906138cb565b60405180910390f35b34801561027057600080fd5b5061028b6004803603810190610286919061393e565b6108ec565b6040516102989190613986565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c391906139a1565b6109ce565b005b3480156102d657600080fd5b506102f160048036038101906102ec91906139ce565b610a1a565b6040516102fe9190613a94565b60405180910390f35b34801561031357600080fd5b5061031c610a7a565b60405161032991906138cb565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190613af4565b610a80565b005b34801561036757600080fd5b50610382600480360381019061037d9190613d1e565b610c08565b005b34801561039057600080fd5b50610399610ca9565b6040516103a691906138cb565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d19190613e2b565b610cb3565b6040516103e391906138cb565b60405180910390f35b3480156103f857600080fd5b50610413600480360381019061040e9190613e2b565b610d3a565b005b34801561042157600080fd5b5061043c60048036038101906104379190613f2e565b610f56565b6040516104499190614064565b60405180910390f35b34801561045e57600080fd5b50610479600480360381019061047491906140e1565b61106f565b005b34801561048757600080fd5b506104a2600480360381019061049d91906141da565b61108d565b005b3480156104b057600080fd5b506104cb60048036038101906104c691906139ce565b6114eb565b005b3480156104d957600080fd5b506104e261161b565b005b3480156104f057600080fd5b5061050b600480360381019061050691906139ce565b61162f565b6040516105189190613986565b60405180910390f35b34801561052d57600080fd5b50610548600480360381019061054391906139ce565b6116e0565b604051610555919061428e565b60405180910390f35b34801561056a57600080fd5b50610573611728565b604051610580919061428e565b60405180910390f35b34801561059557600080fd5b506105b060048036038101906105ab91906139a1565b611752565b6040516105bd91906138cb565b60405180910390f35b3480156105d257600080fd5b506105ed60048036038101906105e891906142d5565b61179b565b005b3480156105fb57600080fd5b50610616600480360381019061061191906139a1565b6117b1565b60405161062391906138cb565b60405180910390f35b34801561063857600080fd5b50610653600480360381019061064e9190613e2b565b6117e4565b60405161066091906138cb565b60405180910390f35b34801561067557600080fd5b50610690600480360381019061068b91906139a1565b611893565b60405161069d91906138cb565b60405180910390f35b3480156106b257600080fd5b506106bb6118dc565b6040516106c89190613986565b60405180910390f35b3480156106dd57600080fd5b506106e66118ef565b6040516106f3919061428e565b60405180910390f35b34801561070857600080fd5b50610723600480360381019061071e9190614315565b611915565b60405161073091906138cb565b60405180910390f35b34801561074557600080fd5b5061074e61195e565b60405161075b91906138cb565b60405180910390f35b34801561077057600080fd5b5061078b60048036038101906107869190614342565b611968565b6040516107989190613986565b60405180910390f35b3480156107ad57600080fd5b506107c860048036038101906107c39190614382565b6119fc565b005b3480156107d657600080fd5b506107f160048036038101906107ec91906139a1565b611a9d565b005b3480156107ff57600080fd5b5061081a60048036038101906108159190614419565b611b20565b005b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b906144b8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109b757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c757506109c682611b45565b5b9050919050565b6109d6611baf565b80600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000600e8054610a2b90614507565b905011610a475760405180602001604052806000815250610a73565b600e610a5283611c2d565b604051602001610a63929190614608565b6040516020818303038152906040525b9050919050565b600b5481565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af99061469e565b60405180910390fd5b6000610b0d826117b1565b905060008103610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4990614730565b60405180910390fd5b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610ba1919061477f565b925050819055508060056000828254610bba919061477f565b92505081905550610bcb8282611d8d565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610bfc929190614834565b60405180910390a15050565b610c1061081c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c565750610c5585610c5061081c565b611968565b5b610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c906148cf565b60405180910390fd5b610ca28585858585611e81565b5050505050565b6000600454905090565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db39061469e565b60405180910390fd5b6000610dc883836117e4565b905060008103610e0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0490614730565b60405180910390fd5b80600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e99919061477f565b9250508190555080600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610eef919061477f565b92505081905550610f018383836121a2565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8383604051610f499291906137f6565b60405180910390a2505050565b60608151835114610f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9390614961565b60405180910390fd5b6000835167ffffffffffffffff811115610fb957610fb8613b26565b5b604051908082528060200260200182016040528015610fe75781602001602082028036833780820191505090505b50905060005b84518110156110645761103485828151811061100c5761100b614981565b5b602002602001015185838151811061102757611026614981565b5b6020026020010151610824565b82828151811061104757611046614981565b5b6020026020010181815250508061105d906149b0565b9050610fed565b508091505092915050565b611077611baf565b8181600e91906110889291906136ac565b505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110f2576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a900460ff16611138576040517f17efbd6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61116d33858560405160200161115093929190614a65565b604051602081830303815290604052805190602001208383612228565b6111a3576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f84846040516111b5929190614a8f565b908152602001604051809103902060009054906101000a900460ff1615611208576040517fa4c7910c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008073bce6d2aa86934af4317ab8615f89e3f9430914cb90506000600f67ffffffffffffffff81111561123f5761123e613b26565b5b60405190808252806020026020018201604052801561126d5781602001602082028036833780820191505090505b50905060005b89899050811015611401576000805b8b8b8481811061129557611294614981565b5b90506020028101906112a79190614ab7565b90508110156113d45760008c8c858181106112c5576112c4614981565b5b90506020028101906112d79190614ab7565b838181106112e8576112e7614981565b5b9050602002013590506112fa8161162f565b1580156113ad57503373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161135291906138cb565b6020604051808303816000875af1158015611371573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113959190614b2f565b73ffffffffffffffffffffffffffffffffffffffff16145b156113c8578260010192508660010196506113c78161236f565b5b81600101915050611282565b50808383815181106113e9576113e8614981565b5b60200260200101818152505081600101915050611273565b506000830361143c576040517f1880b78200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613cc383600b5461144d919061477f565b1115611485576040517f2d573a5500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600b6000828254611497919061477f565b925050819055506001600f88886040516114b2929190614a8f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506114e08161247d565b505050505050505050565b6114f3611baf565b613cc381111561152f576040517f766620dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001610100836115419190614b8b565b61154b919061477f565b905060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905060008267ffffffffffffffff81111561158e5761158d613b26565b5b6040519080825280602002602001820160405280156115bc5781602001602082028036833780820191505090505b50905060005b838110156115fd57828282815181106115de576115dd614981565b5b60200260200101818152505080806115f5906149b0565b9150506115c2565b5080600c9080519060200190611614929190613732565b5050505050565b611623611baf565b61162d60006124fd565b565b6000610100600c805490506116449190614bbc565b821061167c576040517f1258e44300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806000610100858161169357611692614b5c565b5b04925061010085816116a8576116a7614b5c565b5b069050600c83815481106116bf576116be614981565b5b906000526020600020015491506001808284901c1614159350505050919050565b6000600882815481106116f6576116f5614981565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6117ad6117a661081c565b83836125c3565b5050565b6000806117bc61195e565b476117c7919061477f565b90506117dc83826117d786611752565b61272f565b915050919050565b6000806117f084611915565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611829919061428e565b602060405180830381865afa158015611846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186a9190614c2b565b611874919061477f565b905061188a83826118858787610cb3565b61272f565b91505092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600d60009054906101000a900460ff1681565b600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600554905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a0461081c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a4a5750611a4985611a4461081c565b611968565b5b611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a80906148cf565b60405180910390fd5b611a96858585858561279d565b5050505050565b611aa5611baf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0b90614cca565b60405180910390fd5b611b1d816124fd565b50565b611b28611baf565b80600d60006101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611bb761081c565b73ffffffffffffffffffffffffffffffffffffffff16611bd5611728565b73ffffffffffffffffffffffffffffffffffffffff1614611c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2290614d36565b60405180910390fd5b565b606060008203611c74576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d88565b600082905060005b60008214611ca6578080611c8f906149b0565b915050600a82611c9f9190614b8b565b9150611c7c565b60008167ffffffffffffffff811115611cc257611cc1613b26565b5b6040519080825280601f01601f191660200182016040528015611cf45781602001600182028036833780820191505090505b5090505b60008514611d8157600182611d0d9190614d56565b9150600a85611d1c9190614d8a565b6030611d28919061477f565b60f81b818381518110611d3e57611d3d614981565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d7a9190614b8b565b9450611cf8565b8093505050505b919050565b80471015611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc790614e07565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611df690614e58565b60006040518083038185875af1925050503d8060008114611e33576040519150601f19603f3d011682016040523d82523d6000602084013e611e38565b606091505b5050905080611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7390614edf565b60405180910390fd5b505050565b8151835114611ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebc90614f71565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611f34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2b90615003565b60405180910390fd5b6000611f3e61081c565b9050611f4e818787878787612a38565b60005b84518110156120ff576000858281518110611f6f57611f6e614981565b5b602002602001015190506000858381518110611f8e57611f8d614981565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561202f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202690615095565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120e4919061477f565b92505081905550505050806120f8906149b0565b9050611f51565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516121769291906150b5565b60405180910390a461218c818787878787612a40565b61219a818787878787612a48565b505050505050565b6122238363a9059cbb60e01b84846040516024016121c19291906137f6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612c1f565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036122b1576040517f07b1849d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006122bc85612ce6565b9050600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661234e85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505083612d1690919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b610100600c805490506123829190614bbc565b81106123ba576040517f1258e44300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600061010084816123d1576123d0614b5c565b5b04925061010084816123e6576123e5614b5c565b5b069050600c83815481106123fd576123fc614981565b5b906000526020600020015491506124138461162f565b1561244a576040517f23512d4900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001901b198216915081600c848154811061246957612468614981565b5b906000526020600020018190555050505050565b60005b81518110156124f957600082828151811061249e5761249d614981565b5b602002602001015111156124ee576124ed336001836124bd919061477f565b8484815181106124d0576124cf614981565b5b602002602001015160405180602001604052806000815250612d3d565b5b806001019050612480565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126289061515e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127229190613986565b60405180910390a3505050565b600081600454600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856127809190614bbc565b61278a9190614b8b565b6127949190614d56565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361280c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280390615003565b60405180910390fd5b600061281661081c565b9050600061282385612eed565b9050600061283085612eed565b9050612840838989858589612a38565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156128d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ce90615095565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461298c919061477f565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612a0992919061517e565b60405180910390a4612a1f848a8a86868a612a40565b612a2d848a8a8a8a8a612f67565b505050505050505050565b505050505050565b505050505050565b612a678473ffffffffffffffffffffffffffffffffffffffff1661313e565b15612c17578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612aad9594939291906151fc565b6020604051808303816000875af1925050508015612ae957506040513d601f19601f82011682018060405250810190612ae69190615279565b60015b612b8e57612af56152b3565b806308c379a003612b515750612b096152d5565b80612b145750612b53565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b489190613a94565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b85906153d7565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0c90615469565b60405180910390fd5b505b505050505050565b6000612c81826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131619092919063ffffffff16565b9050600081511115612ce15780806020019051810190612ca1919061549e565b612ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd79061553d565b60405180910390fd5b5b505050565b600081604051602001612cf991906155d4565b604051602081830303815290604052805190602001209050919050565b6000806000612d258585613179565b91509150612d32816131fa565b819250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da39061566c565b60405180910390fd5b6000612db661081c565b90506000612dc385612eed565b90506000612dd085612eed565b9050612de183600089858589612a38565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e40919061477f565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612ebe92919061517e565b60405180910390a4612ed583600089858589612a40565b612ee483600089898989612f67565b50505050505050565b60606000600167ffffffffffffffff811115612f0c57612f0b613b26565b5b604051908082528060200260200182016040528015612f3a5781602001602082028036833780820191505090505b5090508281600081518110612f5257612f51614981565b5b60200260200101818152505080915050919050565b612f868473ffffffffffffffffffffffffffffffffffffffff1661313e565b15613136578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612fcc95949392919061568c565b6020604051808303816000875af192505050801561300857506040513d601f19601f820116820180604052508101906130059190615279565b60015b6130ad576130146152b3565b806308c379a00361307057506130286152d5565b806130335750613072565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130679190613a94565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a4906153d7565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312b90615469565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606061317084846000856133c6565b90509392505050565b60008060418351036131ba5760008060006020860151925060408601519150606086015160001a90506131ae878285856134da565b945094505050506131f3565b60408351036131ea5760008060208501519150604085015190506131df8683836135e6565b9350935050506131f3565b60006002915091505b9250929050565b6000600481111561320e5761320d6156e6565b5b816004811115613221576132206156e6565b5b03156133c3576001600481111561323b5761323a6156e6565b5b81600481111561324e5761324d6156e6565b5b0361328e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328590615761565b60405180910390fd5b600260048111156132a2576132a16156e6565b5b8160048111156132b5576132b46156e6565b5b036132f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ec906157cd565b60405180910390fd5b60036004811115613309576133086156e6565b5b81600481111561331c5761331b6156e6565b5b0361335c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133539061585f565b60405180910390fd5b60048081111561336f5761336e6156e6565b5b816004811115613382576133816156e6565b5b036133c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b9906158f1565b60405180910390fd5b5b50565b60608247101561340b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340290615983565b60405180910390fd5b6134148561313e565b613453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344a906159ef565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161347c9190615a40565b60006040518083038185875af1925050503d80600081146134b9576040519150601f19603f3d011682016040523d82523d6000602084013e6134be565b606091505b50915091506134ce828286613645565b92505050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135155760006003915091506135dd565b601b8560ff161415801561352d5750601c8560ff1614155b1561353f5760006004915091506135dd565b6000600187878787604051600081526020016040526040516135649493929190615a82565b6020604051602081039080840390855afa158015613586573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036135d4576000600192509250506135dd565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613629919061477f565b9050613637878288856134da565b935093505050935093915050565b60608315613655578290506136a5565b6000835111156136685782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369c9190613a94565b60405180910390fd5b9392505050565b8280546136b890614507565b90600052602060002090601f0160209004810192826136da5760008555613721565b82601f106136f357803560ff1916838001178555613721565b82800160010185558215613721579182015b82811115613720578235825591602001919060010190613705565b5b50905061372e919061377f565b5090565b82805482825590600052602060002090810192821561376e579160200282015b8281111561376d578251825591602001919060010190613752565b5b50905061377b919061377f565b5090565b5b80821115613798576000816000905550600101613780565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137c78261379c565b9050919050565b6137d7816137bc565b82525050565b6000819050919050565b6137f0816137dd565b82525050565b600060408201905061380b60008301856137ce565b61381860208301846137e7565b9392505050565b6000604051905090565b600080fd5b600080fd5b61383c816137bc565b811461384757600080fd5b50565b60008135905061385981613833565b92915050565b613868816137dd565b811461387357600080fd5b50565b6000813590506138858161385f565b92915050565b600080604083850312156138a2576138a1613829565b5b60006138b08582860161384a565b92505060206138c185828601613876565b9150509250929050565b60006020820190506138e060008301846137e7565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61391b816138e6565b811461392657600080fd5b50565b60008135905061393881613912565b92915050565b60006020828403121561395457613953613829565b5b600061396284828501613929565b91505092915050565b60008115159050919050565b6139808161396b565b82525050565b600060208201905061399b6000830184613977565b92915050565b6000602082840312156139b7576139b6613829565b5b60006139c58482850161384a565b91505092915050565b6000602082840312156139e4576139e3613829565b5b60006139f284828501613876565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a35578082015181840152602081019050613a1a565b83811115613a44576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a66826139fb565b613a708185613a06565b9350613a80818560208601613a17565b613a8981613a4a565b840191505092915050565b60006020820190508181036000830152613aae8184613a5b565b905092915050565b6000613ac18261379c565b9050919050565b613ad181613ab6565b8114613adc57600080fd5b50565b600081359050613aee81613ac8565b92915050565b600060208284031215613b0a57613b09613829565b5b6000613b1884828501613adf565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b5e82613a4a565b810181811067ffffffffffffffff82111715613b7d57613b7c613b26565b5b80604052505050565b6000613b9061381f565b9050613b9c8282613b55565b919050565b600067ffffffffffffffff821115613bbc57613bbb613b26565b5b602082029050602081019050919050565b600080fd5b6000613be5613be084613ba1565b613b86565b90508083825260208201905060208402830185811115613c0857613c07613bcd565b5b835b81811015613c315780613c1d8882613876565b845260208401935050602081019050613c0a565b5050509392505050565b600082601f830112613c5057613c4f613b21565b5b8135613c60848260208601613bd2565b91505092915050565b600080fd5b600067ffffffffffffffff821115613c8957613c88613b26565b5b613c9282613a4a565b9050602081019050919050565b82818337600083830152505050565b6000613cc1613cbc84613c6e565b613b86565b905082815260208101848484011115613cdd57613cdc613c69565b5b613ce8848285613c9f565b509392505050565b600082601f830112613d0557613d04613b21565b5b8135613d15848260208601613cae565b91505092915050565b600080600080600060a08688031215613d3a57613d39613829565b5b6000613d488882890161384a565b9550506020613d598882890161384a565b945050604086013567ffffffffffffffff811115613d7a57613d7961382e565b5b613d8688828901613c3b565b935050606086013567ffffffffffffffff811115613da757613da661382e565b5b613db388828901613c3b565b925050608086013567ffffffffffffffff811115613dd457613dd361382e565b5b613de088828901613cf0565b9150509295509295909350565b6000613df8826137bc565b9050919050565b613e0881613ded565b8114613e1357600080fd5b50565b600081359050613e2581613dff565b92915050565b60008060408385031215613e4257613e41613829565b5b6000613e5085828601613e16565b9250506020613e618582860161384a565b9150509250929050565b600067ffffffffffffffff821115613e8657613e85613b26565b5b602082029050602081019050919050565b6000613eaa613ea584613e6b565b613b86565b90508083825260208201905060208402830185811115613ecd57613ecc613bcd565b5b835b81811015613ef65780613ee2888261384a565b845260208401935050602081019050613ecf565b5050509392505050565b600082601f830112613f1557613f14613b21565b5b8135613f25848260208601613e97565b91505092915050565b60008060408385031215613f4557613f44613829565b5b600083013567ffffffffffffffff811115613f6357613f6261382e565b5b613f6f85828601613f00565b925050602083013567ffffffffffffffff811115613f9057613f8f61382e565b5b613f9c85828601613c3b565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fdb816137dd565b82525050565b6000613fed8383613fd2565b60208301905092915050565b6000602082019050919050565b600061401182613fa6565b61401b8185613fb1565b935061402683613fc2565b8060005b8381101561405757815161403e8882613fe1565b975061404983613ff9565b92505060018101905061402a565b5085935050505092915050565b6000602082019050818103600083015261407e8184614006565b905092915050565b600080fd5b60008083601f8401126140a1576140a0613b21565b5b8235905067ffffffffffffffff8111156140be576140bd614086565b5b6020830191508360018202830111156140da576140d9613bcd565b5b9250929050565b600080602083850312156140f8576140f7613829565b5b600083013567ffffffffffffffff8111156141165761411561382e565b5b6141228582860161408b565b92509250509250929050565b60008083601f84011261414457614143613b21565b5b8235905067ffffffffffffffff81111561416157614160614086565b5b60208301915083602082028301111561417d5761417c613bcd565b5b9250929050565b60008083601f84011261419a57614199613b21565b5b8235905067ffffffffffffffff8111156141b7576141b6614086565b5b6020830191508360018202830111156141d3576141d2613bcd565b5b9250929050565b600080600080600080606087890312156141f7576141f6613829565b5b600087013567ffffffffffffffff8111156142155761421461382e565b5b61422189828a0161412e565b9650965050602087013567ffffffffffffffff8111156142445761424361382e565b5b61425089828a0161408b565b9450945050604087013567ffffffffffffffff8111156142735761427261382e565b5b61427f89828a01614184565b92509250509295509295509295565b60006020820190506142a360008301846137ce565b92915050565b6142b28161396b565b81146142bd57600080fd5b50565b6000813590506142cf816142a9565b92915050565b600080604083850312156142ec576142eb613829565b5b60006142fa8582860161384a565b925050602061430b858286016142c0565b9150509250929050565b60006020828403121561432b5761432a613829565b5b600061433984828501613e16565b91505092915050565b6000806040838503121561435957614358613829565b5b60006143678582860161384a565b92505060206143788582860161384a565b9150509250929050565b600080600080600060a0868803121561439e5761439d613829565b5b60006143ac8882890161384a565b95505060206143bd8882890161384a565b94505060406143ce88828901613876565b93505060606143df88828901613876565b925050608086013567ffffffffffffffff811115614400576143ff61382e565b5b61440c88828901613cf0565b9150509295509295909350565b60006020828403121561442f5761442e613829565b5b600061443d848285016142c0565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006144a2602a83613a06565b91506144ad82614446565b604082019050919050565b600060208201905081810360008301526144d181614495565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061451f57607f821691505b602082108103614532576145316144d8565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461456581614507565b61456f8186614538565b9450600182166000811461458a576001811461459b576145ce565b60ff198316865281860193506145ce565b6145a485614543565b60005b838110156145c6578154818901526001820191506020810190506145a7565b838801955050505b50505092915050565b60006145e2826139fb565b6145ec8185614538565b93506145fc818560208601613a17565b80840191505092915050565b60006146148285614558565b915061462082846145d7565b91508190509392505050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b6000614688602683613a06565b91506146938261462c565b604082019050919050565b600060208201905081810360008301526146b78161467b565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b600061471a602b83613a06565b9150614725826146be565b604082019050919050565b600060208201905081810360008301526147498161470d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061478a826137dd565b9150614795836137dd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147ca576147c9614750565b5b828201905092915050565b6000819050919050565b60006147fa6147f56147f08461379c565b6147d5565b61379c565b9050919050565b600061480c826147df565b9050919050565b600061481e82614801565b9050919050565b61482e81614813565b82525050565b60006040820190506148496000830185614825565b61485660208301846137e7565b9392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006148b9602f83613a06565b91506148c48261485d565b604082019050919050565b600060208201905081810360008301526148e8816148ac565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061494b602983613a06565b9150614956826148ef565b604082019050919050565b6000602082019050818103600083015261497a8161493e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149bb826137dd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036149ed576149ec614750565b5b600182019050919050565b60008160601b9050919050565b6000614a10826149f8565b9050919050565b6000614a2282614a05565b9050919050565b614a3a614a35826137bc565b614a17565b82525050565b6000614a4c8385614538565b9350614a59838584613c9f565b82840190509392505050565b6000614a718286614a29565b601482019150614a82828486614a40565b9150819050949350505050565b6000614a9c828486614a40565b91508190509392505050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112614ad457614ad3614aa8565b5b80840192508235915067ffffffffffffffff821115614af657614af5614aad565b5b602083019250602082023603831315614b1257614b11614ab2565b5b509250929050565b600081519050614b2981613833565b92915050565b600060208284031215614b4557614b44613829565b5b6000614b5384828501614b1a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b96826137dd565b9150614ba1836137dd565b925082614bb157614bb0614b5c565b5b828204905092915050565b6000614bc7826137dd565b9150614bd2836137dd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c0b57614c0a614750565b5b828202905092915050565b600081519050614c258161385f565b92915050565b600060208284031215614c4157614c40613829565b5b6000614c4f84828501614c16565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cb4602683613a06565b9150614cbf82614c58565b604082019050919050565b60006020820190508181036000830152614ce381614ca7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d20602083613a06565b9150614d2b82614cea565b602082019050919050565b60006020820190508181036000830152614d4f81614d13565b9050919050565b6000614d61826137dd565b9150614d6c836137dd565b925082821015614d7f57614d7e614750565b5b828203905092915050565b6000614d95826137dd565b9150614da0836137dd565b925082614db057614daf614b5c565b5b828206905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614df1601d83613a06565b9150614dfc82614dbb565b602082019050919050565b60006020820190508181036000830152614e2081614de4565b9050919050565b600081905092915050565b50565b6000614e42600083614e27565b9150614e4d82614e32565b600082019050919050565b6000614e6382614e35565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614ec9603a83613a06565b9150614ed482614e6d565b604082019050919050565b60006020820190508181036000830152614ef881614ebc565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614f5b602883613a06565b9150614f6682614eff565b604082019050919050565b60006020820190508181036000830152614f8a81614f4e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614fed602583613a06565b9150614ff882614f91565b604082019050919050565b6000602082019050818103600083015261501c81614fe0565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061507f602a83613a06565b915061508a82615023565b604082019050919050565b600060208201905081810360008301526150ae81615072565b9050919050565b600060408201905081810360008301526150cf8185614006565b905081810360208301526150e38184614006565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000615148602983613a06565b9150615153826150ec565b604082019050919050565b600060208201905081810360008301526151778161513b565b9050919050565b600060408201905061519360008301856137e7565b6151a060208301846137e7565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006151ce826151a7565b6151d881856151b2565b93506151e8818560208601613a17565b6151f181613a4a565b840191505092915050565b600060a08201905061521160008301886137ce565b61521e60208301876137ce565b81810360408301526152308186614006565b905081810360608301526152448185614006565b9050818103608083015261525881846151c3565b90509695505050505050565b60008151905061527381613912565b92915050565b60006020828403121561528f5761528e613829565b5b600061529d84828501615264565b91505092915050565b60008160e01c9050919050565b600060033d11156152d25760046000803e6152cf6000516152a6565b90505b90565b600060443d10615362576152e761381f565b60043d036004823e80513d602482011167ffffffffffffffff8211171561530f575050615362565b808201805167ffffffffffffffff81111561532d5750505050615362565b80602083010160043d03850181111561534a575050505050615362565b61535982602001850186613b55565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006153c1603483613a06565b91506153cc82615365565b604082019050919050565b600060208201905081810360008301526153f0816153b4565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615453602883613a06565b915061545e826153f7565b604082019050919050565b6000602082019050818103600083015261548281615446565b9050919050565b600081519050615498816142a9565b92915050565b6000602082840312156154b4576154b3613829565b5b60006154c284828501615489565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615527602a83613a06565b9150615532826154cb565b604082019050919050565b600060208201905081810360008301526155568161551a565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615593601c83614538565b915061559e8261555d565b601c82019050919050565b6000819050919050565b6000819050919050565b6155ce6155c9826155a9565b6155b3565b82525050565b60006155df82615586565b91506155eb82846155bd565b60208201915081905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615656602183613a06565b9150615661826155fa565b604082019050919050565b6000602082019050818103600083015261568581615649565b9050919050565b600060a0820190506156a160008301886137ce565b6156ae60208301876137ce565b6156bb60408301866137e7565b6156c860608301856137e7565b81810360808301526156da81846151c3565b90509695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061574b601883613a06565b915061575682615715565b602082019050919050565b6000602082019050818103600083015261577a8161573e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006157b7601f83613a06565b91506157c282615781565b602082019050919050565b600060208201905081810360008301526157e6816157aa565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615849602283613a06565b9150615854826157ed565b604082019050919050565b600060208201905081810360008301526158788161583c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006158db602283613a06565b91506158e68261587f565b604082019050919050565b6000602082019050818103600083015261590a816158ce565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061596d602683613a06565b915061597882615911565b604082019050919050565b6000602082019050818103600083015261599c81615960565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006159d9601d83613a06565b91506159e4826159a3565b602082019050919050565b60006020820190508181036000830152615a08816159cc565b9050919050565b6000615a1a826151a7565b615a248185614e27565b9350615a34818560208601613a17565b80840191505092915050565b6000615a4c8284615a0f565b915081905092915050565b615a60816155a9565b82525050565b600060ff82169050919050565b615a7c81615a66565b82525050565b6000608082019050615a976000830187615a57565b615aa46020830186615a73565b615ab16040830185615a57565b615abe6060830184615a57565b9594505050505056fea2646970667358221220987556634634695322de9b4e8260d10fe93ab8944811e54168c900d8c3c8782864736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d4c993969da7c5402de3d9c1226e4865da481ee200000000000000000000000005d50f9dc6f7f09ab77b1fb93a2a20c16c6f965f000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032

Deployed Bytecode

0x6080604052600436106101db5760003560e01c806379659cc511610102578063d123973011610095578063e985e9c511610064578063e985e9c514610764578063f242432a146107a1578063f2fde38b146107ca578063f46a04eb146107f357610222565b8063d1239730146106a6578063d3e848f1146106d1578063d79779b2146106fc578063e33b7de31461073957610222565b8063a22cb465116100d1578063a22cb465146105c6578063a3f8eace146105ef578063c45ac0501461062c578063ce7c2ac21461066957610222565b806379659cc5146104e45780638b83209b146105215780638da5cb5b1461055e5780639852595c1461058957610222565b80633a98ef391161017a57806355f804b31161014957806355f804b3146104525780636591cb141461047b57806366a09e36146104a4578063715018a6146104cd57610222565b80633a98ef3914610384578063406072a9146103af57806348b75044146103ec5780634e1273f41461041557610222565b80630e89341c116101b65780630e89341c146102ca57806318160ddd1461030757806319165587146103325780632eb2c2d61461035b57610222565b8062fdd58e1461022757806301ffc9a71461026457806306210197146102a157610222565b36610222577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061020961081c565b346040516102189291906137f6565b60405180910390a1005b600080fd5b34801561023357600080fd5b5061024e6004803603810190610249919061388b565b610824565b60405161025b91906138cb565b60405180910390f35b34801561027057600080fd5b5061028b6004803603810190610286919061393e565b6108ec565b6040516102989190613986565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c391906139a1565b6109ce565b005b3480156102d657600080fd5b506102f160048036038101906102ec91906139ce565b610a1a565b6040516102fe9190613a94565b60405180910390f35b34801561031357600080fd5b5061031c610a7a565b60405161032991906138cb565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190613af4565b610a80565b005b34801561036757600080fd5b50610382600480360381019061037d9190613d1e565b610c08565b005b34801561039057600080fd5b50610399610ca9565b6040516103a691906138cb565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d19190613e2b565b610cb3565b6040516103e391906138cb565b60405180910390f35b3480156103f857600080fd5b50610413600480360381019061040e9190613e2b565b610d3a565b005b34801561042157600080fd5b5061043c60048036038101906104379190613f2e565b610f56565b6040516104499190614064565b60405180910390f35b34801561045e57600080fd5b50610479600480360381019061047491906140e1565b61106f565b005b34801561048757600080fd5b506104a2600480360381019061049d91906141da565b61108d565b005b3480156104b057600080fd5b506104cb60048036038101906104c691906139ce565b6114eb565b005b3480156104d957600080fd5b506104e261161b565b005b3480156104f057600080fd5b5061050b600480360381019061050691906139ce565b61162f565b6040516105189190613986565b60405180910390f35b34801561052d57600080fd5b50610548600480360381019061054391906139ce565b6116e0565b604051610555919061428e565b60405180910390f35b34801561056a57600080fd5b50610573611728565b604051610580919061428e565b60405180910390f35b34801561059557600080fd5b506105b060048036038101906105ab91906139a1565b611752565b6040516105bd91906138cb565b60405180910390f35b3480156105d257600080fd5b506105ed60048036038101906105e891906142d5565b61179b565b005b3480156105fb57600080fd5b50610616600480360381019061061191906139a1565b6117b1565b60405161062391906138cb565b60405180910390f35b34801561063857600080fd5b50610653600480360381019061064e9190613e2b565b6117e4565b60405161066091906138cb565b60405180910390f35b34801561067557600080fd5b50610690600480360381019061068b91906139a1565b611893565b60405161069d91906138cb565b60405180910390f35b3480156106b257600080fd5b506106bb6118dc565b6040516106c89190613986565b60405180910390f35b3480156106dd57600080fd5b506106e66118ef565b6040516106f3919061428e565b60405180910390f35b34801561070857600080fd5b50610723600480360381019061071e9190614315565b611915565b60405161073091906138cb565b60405180910390f35b34801561074557600080fd5b5061074e61195e565b60405161075b91906138cb565b60405180910390f35b34801561077057600080fd5b5061078b60048036038101906107869190614342565b611968565b6040516107989190613986565b60405180910390f35b3480156107ad57600080fd5b506107c860048036038101906107c39190614382565b6119fc565b005b3480156107d657600080fd5b506107f160048036038101906107ec91906139a1565b611a9d565b005b3480156107ff57600080fd5b5061081a60048036038101906108159190614419565b611b20565b005b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b906144b8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109b757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c757506109c682611b45565b5b9050919050565b6109d6611baf565b80600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000600e8054610a2b90614507565b905011610a475760405180602001604052806000815250610a73565b600e610a5283611c2d565b604051602001610a63929190614608565b6040516020818303038152906040525b9050919050565b600b5481565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af99061469e565b60405180910390fd5b6000610b0d826117b1565b905060008103610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4990614730565b60405180910390fd5b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610ba1919061477f565b925050819055508060056000828254610bba919061477f565b92505081905550610bcb8282611d8d565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610bfc929190614834565b60405180910390a15050565b610c1061081c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c565750610c5585610c5061081c565b611968565b5b610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8c906148cf565b60405180910390fd5b610ca28585858585611e81565b5050505050565b6000600454905090565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db39061469e565b60405180910390fd5b6000610dc883836117e4565b905060008103610e0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0490614730565b60405180910390fd5b80600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e99919061477f565b9250508190555080600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610eef919061477f565b92505081905550610f018383836121a2565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8383604051610f499291906137f6565b60405180910390a2505050565b60608151835114610f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9390614961565b60405180910390fd5b6000835167ffffffffffffffff811115610fb957610fb8613b26565b5b604051908082528060200260200182016040528015610fe75781602001602082028036833780820191505090505b50905060005b84518110156110645761103485828151811061100c5761100b614981565b5b602002602001015185838151811061102757611026614981565b5b6020026020010151610824565b82828151811061104757611046614981565b5b6020026020010181815250508061105d906149b0565b9050610fed565b508091505092915050565b611077611baf565b8181600e91906110889291906136ac565b505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110f2576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d60009054906101000a900460ff16611138576040517f17efbd6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61116d33858560405160200161115093929190614a65565b604051602081830303815290604052805190602001208383612228565b6111a3576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f84846040516111b5929190614a8f565b908152602001604051809103902060009054906101000a900460ff1615611208576040517fa4c7910c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008073bce6d2aa86934af4317ab8615f89e3f9430914cb90506000600f67ffffffffffffffff81111561123f5761123e613b26565b5b60405190808252806020026020018201604052801561126d5781602001602082028036833780820191505090505b50905060005b89899050811015611401576000805b8b8b8481811061129557611294614981565b5b90506020028101906112a79190614ab7565b90508110156113d45760008c8c858181106112c5576112c4614981565b5b90506020028101906112d79190614ab7565b838181106112e8576112e7614981565b5b9050602002013590506112fa8161162f565b1580156113ad57503373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161135291906138cb565b6020604051808303816000875af1158015611371573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113959190614b2f565b73ffffffffffffffffffffffffffffffffffffffff16145b156113c8578260010192508660010196506113c78161236f565b5b81600101915050611282565b50808383815181106113e9576113e8614981565b5b60200260200101818152505081600101915050611273565b506000830361143c576040517f1880b78200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613cc383600b5461144d919061477f565b1115611485576040517f2d573a5500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600b6000828254611497919061477f565b925050819055506001600f88886040516114b2929190614a8f565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506114e08161247d565b505050505050505050565b6114f3611baf565b613cc381111561152f576040517f766620dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001610100836115419190614b8b565b61154b919061477f565b905060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905060008267ffffffffffffffff81111561158e5761158d613b26565b5b6040519080825280602002602001820160405280156115bc5781602001602082028036833780820191505090505b50905060005b838110156115fd57828282815181106115de576115dd614981565b5b60200260200101818152505080806115f5906149b0565b9150506115c2565b5080600c9080519060200190611614929190613732565b5050505050565b611623611baf565b61162d60006124fd565b565b6000610100600c805490506116449190614bbc565b821061167c576040517f1258e44300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806000610100858161169357611692614b5c565b5b04925061010085816116a8576116a7614b5c565b5b069050600c83815481106116bf576116be614981565b5b906000526020600020015491506001808284901c1614159350505050919050565b6000600882815481106116f6576116f5614981565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6117ad6117a661081c565b83836125c3565b5050565b6000806117bc61195e565b476117c7919061477f565b90506117dc83826117d786611752565b61272f565b915050919050565b6000806117f084611915565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611829919061428e565b602060405180830381865afa158015611846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186a9190614c2b565b611874919061477f565b905061188a83826118858787610cb3565b61272f565b91505092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600d60009054906101000a900460ff1681565b600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600554905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a0461081c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a4a5750611a4985611a4461081c565b611968565b5b611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a80906148cf565b60405180910390fd5b611a96858585858561279d565b5050505050565b611aa5611baf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0b90614cca565b60405180910390fd5b611b1d816124fd565b50565b611b28611baf565b80600d60006101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611bb761081c565b73ffffffffffffffffffffffffffffffffffffffff16611bd5611728565b73ffffffffffffffffffffffffffffffffffffffff1614611c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2290614d36565b60405180910390fd5b565b606060008203611c74576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d88565b600082905060005b60008214611ca6578080611c8f906149b0565b915050600a82611c9f9190614b8b565b9150611c7c565b60008167ffffffffffffffff811115611cc257611cc1613b26565b5b6040519080825280601f01601f191660200182016040528015611cf45781602001600182028036833780820191505090505b5090505b60008514611d8157600182611d0d9190614d56565b9150600a85611d1c9190614d8a565b6030611d28919061477f565b60f81b818381518110611d3e57611d3d614981565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d7a9190614b8b565b9450611cf8565b8093505050505b919050565b80471015611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc790614e07565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611df690614e58565b60006040518083038185875af1925050503d8060008114611e33576040519150601f19603f3d011682016040523d82523d6000602084013e611e38565b606091505b5050905080611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7390614edf565b60405180910390fd5b505050565b8151835114611ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebc90614f71565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611f34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2b90615003565b60405180910390fd5b6000611f3e61081c565b9050611f4e818787878787612a38565b60005b84518110156120ff576000858281518110611f6f57611f6e614981565b5b602002602001015190506000858381518110611f8e57611f8d614981565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561202f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202690615095565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120e4919061477f565b92505081905550505050806120f8906149b0565b9050611f51565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516121769291906150b5565b60405180910390a461218c818787878787612a40565b61219a818787878787612a48565b505050505050565b6122238363a9059cbb60e01b84846040516024016121c19291906137f6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612c1f565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036122b1576040517f07b1849d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006122bc85612ce6565b9050600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661234e85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505083612d1690919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16149150509392505050565b610100600c805490506123829190614bbc565b81106123ba576040517f1258e44300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080600061010084816123d1576123d0614b5c565b5b04925061010084816123e6576123e5614b5c565b5b069050600c83815481106123fd576123fc614981565b5b906000526020600020015491506124138461162f565b1561244a576040517f23512d4900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001901b198216915081600c848154811061246957612468614981565b5b906000526020600020018190555050505050565b60005b81518110156124f957600082828151811061249e5761249d614981565b5b602002602001015111156124ee576124ed336001836124bd919061477f565b8484815181106124d0576124cf614981565b5b602002602001015160405180602001604052806000815250612d3d565b5b806001019050612480565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612631576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126289061515e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127229190613986565b60405180910390a3505050565b600081600454600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856127809190614bbc565b61278a9190614b8b565b6127949190614d56565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361280c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280390615003565b60405180910390fd5b600061281661081c565b9050600061282385612eed565b9050600061283085612eed565b9050612840838989858589612a38565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156128d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ce90615095565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461298c919061477f565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612a0992919061517e565b60405180910390a4612a1f848a8a86868a612a40565b612a2d848a8a8a8a8a612f67565b505050505050505050565b505050505050565b505050505050565b612a678473ffffffffffffffffffffffffffffffffffffffff1661313e565b15612c17578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612aad9594939291906151fc565b6020604051808303816000875af1925050508015612ae957506040513d601f19601f82011682018060405250810190612ae69190615279565b60015b612b8e57612af56152b3565b806308c379a003612b515750612b096152d5565b80612b145750612b53565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b489190613a94565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b85906153d7565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0c90615469565b60405180910390fd5b505b505050505050565b6000612c81826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131619092919063ffffffff16565b9050600081511115612ce15780806020019051810190612ca1919061549e565b612ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd79061553d565b60405180910390fd5b5b505050565b600081604051602001612cf991906155d4565b604051602081830303815290604052805190602001209050919050565b6000806000612d258585613179565b91509150612d32816131fa565b819250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da39061566c565b60405180910390fd5b6000612db661081c565b90506000612dc385612eed565b90506000612dd085612eed565b9050612de183600089858589612a38565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e40919061477f565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612ebe92919061517e565b60405180910390a4612ed583600089858589612a40565b612ee483600089898989612f67565b50505050505050565b60606000600167ffffffffffffffff811115612f0c57612f0b613b26565b5b604051908082528060200260200182016040528015612f3a5781602001602082028036833780820191505090505b5090508281600081518110612f5257612f51614981565b5b60200260200101818152505080915050919050565b612f868473ffffffffffffffffffffffffffffffffffffffff1661313e565b15613136578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612fcc95949392919061568c565b6020604051808303816000875af192505050801561300857506040513d601f19601f820116820180604052508101906130059190615279565b60015b6130ad576130146152b3565b806308c379a00361307057506130286152d5565b806130335750613072565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130679190613a94565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a4906153d7565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312b90615469565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606061317084846000856133c6565b90509392505050565b60008060418351036131ba5760008060006020860151925060408601519150606086015160001a90506131ae878285856134da565b945094505050506131f3565b60408351036131ea5760008060208501519150604085015190506131df8683836135e6565b9350935050506131f3565b60006002915091505b9250929050565b6000600481111561320e5761320d6156e6565b5b816004811115613221576132206156e6565b5b03156133c3576001600481111561323b5761323a6156e6565b5b81600481111561324e5761324d6156e6565b5b0361328e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328590615761565b60405180910390fd5b600260048111156132a2576132a16156e6565b5b8160048111156132b5576132b46156e6565b5b036132f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ec906157cd565b60405180910390fd5b60036004811115613309576133086156e6565b5b81600481111561331c5761331b6156e6565b5b0361335c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133539061585f565b60405180910390fd5b60048081111561336f5761336e6156e6565b5b816004811115613382576133816156e6565b5b036133c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b9906158f1565b60405180910390fd5b5b50565b60608247101561340b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340290615983565b60405180910390fd5b6134148561313e565b613453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344a906159ef565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161347c9190615a40565b60006040518083038185875af1925050503d80600081146134b9576040519150601f19603f3d011682016040523d82523d6000602084013e6134be565b606091505b50915091506134ce828286613645565b92505050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135155760006003915091506135dd565b601b8560ff161415801561352d5750601c8560ff1614155b1561353f5760006004915091506135dd565b6000600187878787604051600081526020016040526040516135649493929190615a82565b6020604051602081039080840390855afa158015613586573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036135d4576000600192509250506135dd565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613629919061477f565b9050613637878288856134da565b935093505050935093915050565b60608315613655578290506136a5565b6000835111156136685782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369c9190613a94565b60405180910390fd5b9392505050565b8280546136b890614507565b90600052602060002090601f0160209004810192826136da5760008555613721565b82601f106136f357803560ff1916838001178555613721565b82800160010185558215613721579182015b82811115613720578235825591602001919060010190613705565b5b50905061372e919061377f565b5090565b82805482825590600052602060002090810192821561376e579160200282015b8281111561376d578251825591602001919060010190613752565b5b50905061377b919061377f565b5090565b5b80821115613798576000816000905550600101613780565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137c78261379c565b9050919050565b6137d7816137bc565b82525050565b6000819050919050565b6137f0816137dd565b82525050565b600060408201905061380b60008301856137ce565b61381860208301846137e7565b9392505050565b6000604051905090565b600080fd5b600080fd5b61383c816137bc565b811461384757600080fd5b50565b60008135905061385981613833565b92915050565b613868816137dd565b811461387357600080fd5b50565b6000813590506138858161385f565b92915050565b600080604083850312156138a2576138a1613829565b5b60006138b08582860161384a565b92505060206138c185828601613876565b9150509250929050565b60006020820190506138e060008301846137e7565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61391b816138e6565b811461392657600080fd5b50565b60008135905061393881613912565b92915050565b60006020828403121561395457613953613829565b5b600061396284828501613929565b91505092915050565b60008115159050919050565b6139808161396b565b82525050565b600060208201905061399b6000830184613977565b92915050565b6000602082840312156139b7576139b6613829565b5b60006139c58482850161384a565b91505092915050565b6000602082840312156139e4576139e3613829565b5b60006139f284828501613876565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a35578082015181840152602081019050613a1a565b83811115613a44576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a66826139fb565b613a708185613a06565b9350613a80818560208601613a17565b613a8981613a4a565b840191505092915050565b60006020820190508181036000830152613aae8184613a5b565b905092915050565b6000613ac18261379c565b9050919050565b613ad181613ab6565b8114613adc57600080fd5b50565b600081359050613aee81613ac8565b92915050565b600060208284031215613b0a57613b09613829565b5b6000613b1884828501613adf565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b5e82613a4a565b810181811067ffffffffffffffff82111715613b7d57613b7c613b26565b5b80604052505050565b6000613b9061381f565b9050613b9c8282613b55565b919050565b600067ffffffffffffffff821115613bbc57613bbb613b26565b5b602082029050602081019050919050565b600080fd5b6000613be5613be084613ba1565b613b86565b90508083825260208201905060208402830185811115613c0857613c07613bcd565b5b835b81811015613c315780613c1d8882613876565b845260208401935050602081019050613c0a565b5050509392505050565b600082601f830112613c5057613c4f613b21565b5b8135613c60848260208601613bd2565b91505092915050565b600080fd5b600067ffffffffffffffff821115613c8957613c88613b26565b5b613c9282613a4a565b9050602081019050919050565b82818337600083830152505050565b6000613cc1613cbc84613c6e565b613b86565b905082815260208101848484011115613cdd57613cdc613c69565b5b613ce8848285613c9f565b509392505050565b600082601f830112613d0557613d04613b21565b5b8135613d15848260208601613cae565b91505092915050565b600080600080600060a08688031215613d3a57613d39613829565b5b6000613d488882890161384a565b9550506020613d598882890161384a565b945050604086013567ffffffffffffffff811115613d7a57613d7961382e565b5b613d8688828901613c3b565b935050606086013567ffffffffffffffff811115613da757613da661382e565b5b613db388828901613c3b565b925050608086013567ffffffffffffffff811115613dd457613dd361382e565b5b613de088828901613cf0565b9150509295509295909350565b6000613df8826137bc565b9050919050565b613e0881613ded565b8114613e1357600080fd5b50565b600081359050613e2581613dff565b92915050565b60008060408385031215613e4257613e41613829565b5b6000613e5085828601613e16565b9250506020613e618582860161384a565b9150509250929050565b600067ffffffffffffffff821115613e8657613e85613b26565b5b602082029050602081019050919050565b6000613eaa613ea584613e6b565b613b86565b90508083825260208201905060208402830185811115613ecd57613ecc613bcd565b5b835b81811015613ef65780613ee2888261384a565b845260208401935050602081019050613ecf565b5050509392505050565b600082601f830112613f1557613f14613b21565b5b8135613f25848260208601613e97565b91505092915050565b60008060408385031215613f4557613f44613829565b5b600083013567ffffffffffffffff811115613f6357613f6261382e565b5b613f6f85828601613f00565b925050602083013567ffffffffffffffff811115613f9057613f8f61382e565b5b613f9c85828601613c3b565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fdb816137dd565b82525050565b6000613fed8383613fd2565b60208301905092915050565b6000602082019050919050565b600061401182613fa6565b61401b8185613fb1565b935061402683613fc2565b8060005b8381101561405757815161403e8882613fe1565b975061404983613ff9565b92505060018101905061402a565b5085935050505092915050565b6000602082019050818103600083015261407e8184614006565b905092915050565b600080fd5b60008083601f8401126140a1576140a0613b21565b5b8235905067ffffffffffffffff8111156140be576140bd614086565b5b6020830191508360018202830111156140da576140d9613bcd565b5b9250929050565b600080602083850312156140f8576140f7613829565b5b600083013567ffffffffffffffff8111156141165761411561382e565b5b6141228582860161408b565b92509250509250929050565b60008083601f84011261414457614143613b21565b5b8235905067ffffffffffffffff81111561416157614160614086565b5b60208301915083602082028301111561417d5761417c613bcd565b5b9250929050565b60008083601f84011261419a57614199613b21565b5b8235905067ffffffffffffffff8111156141b7576141b6614086565b5b6020830191508360018202830111156141d3576141d2613bcd565b5b9250929050565b600080600080600080606087890312156141f7576141f6613829565b5b600087013567ffffffffffffffff8111156142155761421461382e565b5b61422189828a0161412e565b9650965050602087013567ffffffffffffffff8111156142445761424361382e565b5b61425089828a0161408b565b9450945050604087013567ffffffffffffffff8111156142735761427261382e565b5b61427f89828a01614184565b92509250509295509295509295565b60006020820190506142a360008301846137ce565b92915050565b6142b28161396b565b81146142bd57600080fd5b50565b6000813590506142cf816142a9565b92915050565b600080604083850312156142ec576142eb613829565b5b60006142fa8582860161384a565b925050602061430b858286016142c0565b9150509250929050565b60006020828403121561432b5761432a613829565b5b600061433984828501613e16565b91505092915050565b6000806040838503121561435957614358613829565b5b60006143678582860161384a565b92505060206143788582860161384a565b9150509250929050565b600080600080600060a0868803121561439e5761439d613829565b5b60006143ac8882890161384a565b95505060206143bd8882890161384a565b94505060406143ce88828901613876565b93505060606143df88828901613876565b925050608086013567ffffffffffffffff811115614400576143ff61382e565b5b61440c88828901613cf0565b9150509295509295909350565b60006020828403121561442f5761442e613829565b5b600061443d848285016142c0565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006144a2602a83613a06565b91506144ad82614446565b604082019050919050565b600060208201905081810360008301526144d181614495565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061451f57607f821691505b602082108103614532576145316144d8565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461456581614507565b61456f8186614538565b9450600182166000811461458a576001811461459b576145ce565b60ff198316865281860193506145ce565b6145a485614543565b60005b838110156145c6578154818901526001820191506020810190506145a7565b838801955050505b50505092915050565b60006145e2826139fb565b6145ec8185614538565b93506145fc818560208601613a17565b80840191505092915050565b60006146148285614558565b915061462082846145d7565b91508190509392505050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b6000614688602683613a06565b91506146938261462c565b604082019050919050565b600060208201905081810360008301526146b78161467b565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b600061471a602b83613a06565b9150614725826146be565b604082019050919050565b600060208201905081810360008301526147498161470d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061478a826137dd565b9150614795836137dd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147ca576147c9614750565b5b828201905092915050565b6000819050919050565b60006147fa6147f56147f08461379c565b6147d5565b61379c565b9050919050565b600061480c826147df565b9050919050565b600061481e82614801565b9050919050565b61482e81614813565b82525050565b60006040820190506148496000830185614825565b61485660208301846137e7565b9392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006148b9602f83613a06565b91506148c48261485d565b604082019050919050565b600060208201905081810360008301526148e8816148ac565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061494b602983613a06565b9150614956826148ef565b604082019050919050565b6000602082019050818103600083015261497a8161493e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149bb826137dd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036149ed576149ec614750565b5b600182019050919050565b60008160601b9050919050565b6000614a10826149f8565b9050919050565b6000614a2282614a05565b9050919050565b614a3a614a35826137bc565b614a17565b82525050565b6000614a4c8385614538565b9350614a59838584613c9f565b82840190509392505050565b6000614a718286614a29565b601482019150614a82828486614a40565b9150819050949350505050565b6000614a9c828486614a40565b91508190509392505050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112614ad457614ad3614aa8565b5b80840192508235915067ffffffffffffffff821115614af657614af5614aad565b5b602083019250602082023603831315614b1257614b11614ab2565b5b509250929050565b600081519050614b2981613833565b92915050565b600060208284031215614b4557614b44613829565b5b6000614b5384828501614b1a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b96826137dd565b9150614ba1836137dd565b925082614bb157614bb0614b5c565b5b828204905092915050565b6000614bc7826137dd565b9150614bd2836137dd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c0b57614c0a614750565b5b828202905092915050565b600081519050614c258161385f565b92915050565b600060208284031215614c4157614c40613829565b5b6000614c4f84828501614c16565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cb4602683613a06565b9150614cbf82614c58565b604082019050919050565b60006020820190508181036000830152614ce381614ca7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d20602083613a06565b9150614d2b82614cea565b602082019050919050565b60006020820190508181036000830152614d4f81614d13565b9050919050565b6000614d61826137dd565b9150614d6c836137dd565b925082821015614d7f57614d7e614750565b5b828203905092915050565b6000614d95826137dd565b9150614da0836137dd565b925082614db057614daf614b5c565b5b828206905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614df1601d83613a06565b9150614dfc82614dbb565b602082019050919050565b60006020820190508181036000830152614e2081614de4565b9050919050565b600081905092915050565b50565b6000614e42600083614e27565b9150614e4d82614e32565b600082019050919050565b6000614e6382614e35565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614ec9603a83613a06565b9150614ed482614e6d565b604082019050919050565b60006020820190508181036000830152614ef881614ebc565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614f5b602883613a06565b9150614f6682614eff565b604082019050919050565b60006020820190508181036000830152614f8a81614f4e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614fed602583613a06565b9150614ff882614f91565b604082019050919050565b6000602082019050818103600083015261501c81614fe0565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061507f602a83613a06565b915061508a82615023565b604082019050919050565b600060208201905081810360008301526150ae81615072565b9050919050565b600060408201905081810360008301526150cf8185614006565b905081810360208301526150e38184614006565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000615148602983613a06565b9150615153826150ec565b604082019050919050565b600060208201905081810360008301526151778161513b565b9050919050565b600060408201905061519360008301856137e7565b6151a060208301846137e7565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006151ce826151a7565b6151d881856151b2565b93506151e8818560208601613a17565b6151f181613a4a565b840191505092915050565b600060a08201905061521160008301886137ce565b61521e60208301876137ce565b81810360408301526152308186614006565b905081810360608301526152448185614006565b9050818103608083015261525881846151c3565b90509695505050505050565b60008151905061527381613912565b92915050565b60006020828403121561528f5761528e613829565b5b600061529d84828501615264565b91505092915050565b60008160e01c9050919050565b600060033d11156152d25760046000803e6152cf6000516152a6565b90505b90565b600060443d10615362576152e761381f565b60043d036004823e80513d602482011167ffffffffffffffff8211171561530f575050615362565b808201805167ffffffffffffffff81111561532d5750505050615362565b80602083010160043d03850181111561534a575050505050615362565b61535982602001850186613b55565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006153c1603483613a06565b91506153cc82615365565b604082019050919050565b600060208201905081810360008301526153f0816153b4565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615453602883613a06565b915061545e826153f7565b604082019050919050565b6000602082019050818103600083015261548281615446565b9050919050565b600081519050615498816142a9565b92915050565b6000602082840312156154b4576154b3613829565b5b60006154c284828501615489565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615527602a83613a06565b9150615532826154cb565b604082019050919050565b600060208201905081810360008301526155568161551a565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615593601c83614538565b915061559e8261555d565b601c82019050919050565b6000819050919050565b6000819050919050565b6155ce6155c9826155a9565b6155b3565b82525050565b60006155df82615586565b91506155eb82846155bd565b60208201915081905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615656602183613a06565b9150615661826155fa565b604082019050919050565b6000602082019050818103600083015261568581615649565b9050919050565b600060a0820190506156a160008301886137ce565b6156ae60208301876137ce565b6156bb60408301866137e7565b6156c860608301856137e7565b81810360808301526156da81846151c3565b90509695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061574b601883613a06565b915061575682615715565b602082019050919050565b6000602082019050818103600083015261577a8161573e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006157b7601f83613a06565b91506157c282615781565b602082019050919050565b600060208201905081810360008301526157e6816157aa565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615849602283613a06565b9150615854826157ed565b604082019050919050565b600060208201905081810360008301526158788161583c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006158db602283613a06565b91506158e68261587f565b604082019050919050565b6000602082019050818103600083015261590a816158ce565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061596d602683613a06565b915061597882615911565b604082019050919050565b6000602082019050818103600083015261599c81615960565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006159d9601d83613a06565b91506159e4826159a3565b602082019050919050565b60006020820190508181036000830152615a08816159cc565b9050919050565b6000615a1a826151a7565b615a248185614e27565b9350615a34818560208601613a17565b80840191505092915050565b6000615a4c8284615a0f565b915081905092915050565b615a60816155a9565b82525050565b600060ff82169050919050565b615a7c81615a66565b82525050565b6000608082019050615a976000830187615a57565b615aa46020830186615a73565b615ab16040830185615a57565b615abe6060830184615a57565b9594505050505056fea2646970667358221220987556634634695322de9b4e8260d10fe93ab8944811e54168c900d8c3c8782864736f6c634300080e0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d4c993969da7c5402de3d9c1226e4865da481ee200000000000000000000000005d50f9dc6f7f09ab77b1fb93a2a20c16c6f965f000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032

-----Decoded View---------------
Arg [0] : _payees (address[]): 0xD4C993969DA7c5402De3D9C1226E4865dA481ee2,0x05d50f9dC6F7F09aB77B1Fb93A2A20c16C6f965f
Arg [1] : _shares (uint256[]): 50,50

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 000000000000000000000000d4c993969da7c5402de3d9c1226e4865da481ee2
Arg [4] : 00000000000000000000000005d50f9dc6f7f09ab77b1fb93a2a20c16c6f965f
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000032


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.