ETH Price: $3,304.84 (-3.14%)
Gas: 17 Gwei

Token

Moose Vs. Hunger (MOOSE)
 

Overview

Max Total Supply

636 MOOSE

Holders

299

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
brastion.eth
0x31eebd14bda8b42be2966b25d5890d5fe669f5d9
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:
MooseVsHunger

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 15000 runs

Other Settings:
default evmVersion
File 1 of 15 : MooseVsHunger.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import '@openzeppelin/contracts/finance/PaymentSplitter.sol';
import "@openzeppelin/contracts/utils/Counters.sol";
import '@openzeppelin/contracts/utils/Strings.sol';

/// @author no-op (nftlab: https://discord.gg/kH7Gvnr2qp)
/// @title Moose Vs. Hunger
contract MooseVsHunger is ERC1155, Ownable, PaymentSplitter {
  /** Wallets list */
  mapping(address => uint256) public whitelist;

  /** Maximum number of tokens per tx */
  uint256 public constant MAX_TX = 10;
  /** Maximum amount of tokens in collection */
  uint256 public constant MAX_SUPPLY = 10000;
  /** Price per token */
  uint256 public constant COST = 0.055 ether;
  /** Name of collection */
  string public constant name = "Moose Vs. Hunger";
  /** Symbol of collection */
  string public constant symbol = "MOOSE";
  /** URI for the contract metadata */
  string public contractURI;
  
  /** Public sale state */
  bool public saleActive = false;
  /** Presale state */
  bool public presaleActive = false;

  /** Total supply */
  Counters.Counter private _supply;

  /** Notify on sale state change */
  event SaleStateChanged(bool val);
  /** Notify on presale state change */
  event PresaleStateChanged(bool val);
  /** Notify on total supply change */
  event TotalSupplyChanged(uint256 val);

  /** For URI conversions */
  using Strings for uint256;
  /** For supply count */
  using Counters for Counters.Counter;

  constructor(
    string memory _uri, 
    address[] memory shareholders, 
    uint256[] memory shares
  ) ERC1155(_uri) PaymentSplitter(shareholders, shares) {}

  /// @notice Adds addresses to whitelist with a max buy count
  /// @param wallets The wallets to be added to whitelist
  /// @param count The maximum buy count during presale
  function setWhitelist(address[] memory wallets, uint256[] memory count) external onlyOwner {
    for (uint256 i = 0; i < wallets.length; i++) {
      whitelist[wallets[i]] = count[i];
    }
  }

  /// @notice Sets public sale state
  /// @param val The new value
  function setSaleState(bool val) external onlyOwner {
    saleActive = val;
    emit SaleStateChanged(val);
  }

  /// @notice Sets presale state
  /// @param val The new value
  function setPresaleState(bool val) external onlyOwner {
    presaleActive = val;
    emit PresaleStateChanged(val);
  }

  /// @notice Sets the base metadata URI
  /// @param val The new URI
  function setBaseURI(string memory val) external onlyOwner {
    _setURI(val);
  }

  /// @notice Sets the contract metadata URI
  /// @param val The new URI
  function setContractURI(string memory val) external onlyOwner {
    contractURI = val;
  }

  /// @notice Returns the amount of tokens sold
  /// @return supply The number of tokens sold
  function totalSupply() public view returns (uint256) {
    return _supply.current();
  }

  /// @notice Returns the URI for a given token ID
  /// @param id The ID to return URI for
  /// @return Token URI
  function uri(uint256 id) public view override returns (string memory) {
    return string(abi.encodePacked(super.uri(id), id.toString()));
  }

  /// @notice Reserves a set of NFTs for collection owner (giveaways, etc)
  /// @param amt The amount to reserve
  function reserve(uint256 amt) external onlyOwner {
    uint256 _currentSupply = _supply.current();
    for (uint256 i = 0; i < amt; i++) {
      _supply.increment();
      _mint(msg.sender, _currentSupply + i, 1, "0x0000");
    }

    emit TotalSupplyChanged(totalSupply());
  }

  /// @notice Mints a new token in public sale
  /// @param amt The number of tokens to mint
  /// @dev Must send COST * amt in ETH
  function mint(uint256 amt) external payable {
    uint256 _currentSupply = _supply.current();
    require(saleActive, "Sale is not yet active.");
    require(amt <= MAX_TX, "Amount of tokens exceeds transaction limit.");
    require(_currentSupply + amt <= MAX_SUPPLY, "Amount exceeds supply.");
    require(COST * amt <= msg.value, "ETH sent is below cost.");

    for (uint256 i = 0; i < amt; i++) {
      _supply.increment();
      _mint(msg.sender, _currentSupply + i, 1, "0x0000");
    }

    emit TotalSupplyChanged(totalSupply());
  }

  /// @notice Mints a new token in presale
  /// @param amt The number of tokens to mint
  /// @dev Must send COST * amt in ETH
  function preMint(uint256 amt) external payable {
    uint256 _currentSupply = _supply.current();
    require(presaleActive, "Presale is not yet active.");
    require(amt <= whitelist[msg.sender], "Amount of tokens exceeds whitelist limit.");
    require(_currentSupply + amt <= MAX_SUPPLY, "Amount exceeds supply.");
    require(COST * amt <= msg.value, "ETH sent is below cost.");

    for (uint256 i = 0; i < amt; i++) {
      _supply.increment();
      whitelist[msg.sender] -= 1;
      _mint(msg.sender, _currentSupply + i, 1, "0x0000");
    }

    emit TotalSupplyChanged(totalSupply());
  }
}

File 2 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 3 of 15 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 15 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 7 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 9 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

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

File 12 of 15 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

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

File 13 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address[]","name":"shareholders","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":false,"internalType":"bool","name":"val","type":"bool"}],"name":"PresaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"val","type":"bool"}],"name":"SaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"val","type":"uint256"}],"name":"TotalSupplyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"amt","type":"uint256"}],"name":"reserve","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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"val","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"val","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"count","type":"uint256[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600d805461ffff191690553480156200001c57600080fd5b50604051620041f0380380620041f08339810160408190526200003f916200059a565b8181846200004d8162000196565b506200005933620001af565b8051825114620000cb5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200011e5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000c2565b60005b82518110156200018a57620001758382815181106200014457620001446200078b565b60200260200101518383815181106200016157620001616200078b565b60200260200101516200020160201b60201c565b80620001818162000757565b91505062000121565b505050505050620007b7565b8051620001ab906002906020840190620003ef565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200026e5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000c2565b60008111620002c05760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000c2565b6001600160a01b038216600090815260066020526040902054156200033c5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000c2565b60088054600181019091557ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0384169081179091556000908152600660205260409020819055600454620003a6908290620006ff565b600455604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620003fd906200071a565b90600052602060002090601f0160209004810192826200042157600085556200046c565b82601f106200043c57805160ff19168380011785556200046c565b828001600101855582156200046c579182015b828111156200046c5782518255916020019190600101906200044f565b506200047a9291506200047e565b5090565b5b808211156200047a57600081556001016200047f565b600082601f830112620004a757600080fd5b81516020620004c0620004ba83620006d9565b620006a6565b80838252828201915082860187848660051b8901011115620004e157600080fd5b6000805b86811015620005185782516001600160a01b038116811462000505578283fd5b85529385019391850191600101620004e5565b509198975050505050505050565b600082601f8301126200053857600080fd5b815160206200054b620004ba83620006d9565b80838252828201915082860187848660051b89010111156200056c57600080fd5b60005b858110156200058d578151845292840192908401906001016200056f565b5090979650505050505050565b600080600060608486031215620005b057600080fd5b83516001600160401b0380821115620005c857600080fd5b818601915086601f830112620005dd57600080fd5b815181811115620005f257620005f2620007a1565b602062000608601f8301601f19168201620006a6565b82815289828487010111156200061d57600080fd5b60005b838110156200063d57858101830151828201840152820162000620565b838111156200064f5760008385840101525b5090880151909650925050808211156200066857600080fd5b620006768783880162000495565b935060408601519150808211156200068d57600080fd5b506200069c8682870162000526565b9150509250925092565b604051601f8201601f191681016001600160401b0381118282101715620006d157620006d1620007a1565b604052919050565b60006001600160401b03821115620006f557620006f5620007a1565b5060051b60200190565b6000821982111562000715576200071562000775565b500190565b600181811c908216806200072f57607f821691505b602082108114156200075157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200076e576200076e62000775565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613a2980620007c76000396000f3fe6080604052600436106102885760003560e01c80638da5cb5b11610153578063c4e37095116100cb578063e985e9c51161007f578063f242432a11610064578063f242432a1461087c578063f2fde38b1461089c578063f3b2db3f146108bc57600080fd5b8063e985e9c514610806578063f013e0e11461085c57600080fd5b8063d79779b2116100b0578063d79779b214610799578063e33b7de3146107dc578063e8a3d485146107f157600080fd5b8063c4e3709514610736578063ce7c2ac21461075657600080fd5b80639b19251a11610122578063a22cb46511610107578063a22cb465146106db578063bce4d6ae146106fb578063bf8fbbd21461071b57600080fd5b80639b19251a1461069b578063a0712d68146106c857600080fd5b80638da5cb5b146105c4578063938e3d7b146105ef57806395d89b411461060f5780639852595c1461065857600080fd5b8063406072a91161020157806368428a1b116101b5578063819b25ba1161019a578063819b25ba1461054c5780638ad433ac1461056c5780638b83209b1461057f57600080fd5b806368428a1b1461051d578063715018a61461053757600080fd5b80634e1273f4116101e65780634e1273f4146104b157806353135ca0146104de57806355f804b3146104fd57600080fd5b8063406072a91461043e57806348b750441461049157600080fd5b806318160ddd116102585780632eb2c2d61161023d5780632eb2c2d6146103f357806332cb6b0c146104135780633a98ef391461042957600080fd5b806318160ddd146103bc57806319165587146103d157600080fd5b8062fdd58e146102e357806301ffc9a71461031657806306fdde03146103465780630e89341c1461039c57600080fd5b366102de577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770336040805173ffffffffffffffffffffffffffffffffffffffff90921682523460208301520160405180910390a1005b600080fd5b3480156102ef57600080fd5b506103036102fe366004613293565b6108d1565b6040519081526020015b60405180910390f35b34801561032257600080fd5b506103366103313660046133cc565b610994565b604051901515815260200161030d565b34801561035257600080fd5b5061038f6040518060400160405280601081526020017f4d6f6f73652056732e2048756e6765720000000000000000000000000000000081525081565b60405161030d9190613642565b3480156103a857600080fd5b5061038f6103b736600461344f565b610a79565b3480156103c857600080fd5b50610303610ab4565b3480156103dd57600080fd5b506103f16103ec3660046130f8565b610ac4565b005b3480156103ff57600080fd5b506103f161040e36600461314e565b610cd2565b34801561041f57600080fd5b5061030361271081565b34801561043557600080fd5b50600454610303565b34801561044a57600080fd5b50610303610459366004613115565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600a6020908152604080832093909416825291909152205490565b34801561049d57600080fd5b506103f16104ac366004613115565b610d81565b3480156104bd57600080fd5b506104d16104cc3660046132bf565b611089565b60405161030d9190613601565b3480156104ea57600080fd5b50600d5461033690610100900460ff1681565b34801561050957600080fd5b506103f1610518366004613406565b6111c7565b34801561052957600080fd5b50600d546103369060ff1681565b34801561054357600080fd5b506103f161123a565b34801561055857600080fd5b506103f161056736600461344f565b6112ad565b6103f161057a36600461344f565b6113d6565b34801561058b57600080fd5b5061059f61059a36600461344f565b6115da565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161030d565b3480156105d057600080fd5b5060035473ffffffffffffffffffffffffffffffffffffffff1661059f565b3480156105fb57600080fd5b506103f161060a366004613406565b611617565b34801561061b57600080fd5b5061038f6040518060400160405280600581526020017f4d4f4f534500000000000000000000000000000000000000000000000000000081525081565b34801561066457600080fd5b506103036106733660046130f8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b3480156106a757600080fd5b506103036106b63660046130f8565b600b6020526000908152604090205481565b6103f16106d636600461344f565b611695565b3480156106e757600080fd5b506103f16106f6366004613265565b611860565b34801561070757600080fd5b506103f1610716366004613392565b61186b565b34801561072757600080fd5b5061030366c3663566a5800081565b34801561074257600080fd5b506103f1610751366004613392565b611943565b34801561076257600080fd5b506103036107713660046130f8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b3480156107a557600080fd5b506103036107b43660046130f8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205490565b3480156107e857600080fd5b50600554610303565b3480156107fd57600080fd5b5061038f611a09565b34801561081257600080fd5b50610336610821366004613115565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561086857600080fd5b506103f16108773660046132bf565b611a97565b34801561088857600080fd5b506103f16108973660046131fc565b611b98565b3480156108a857600080fd5b506103f16108b73660046130f8565b611c40565b3480156108c857600080fd5b50610303600a81565b600073ffffffffffffffffffffffffffffffffffffffff83166109615760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526020818152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480610a2757507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610a7357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060610a8482611d39565b610a8d83611dcd565b604051602001610a9e929190613522565b6040516020818303038152906040529050919050565b6000610abf600e5490565b905090565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020526040902054610b5c5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610958565b6000610b6760055490565b610b719047613679565b90506000610bab8383610ba68673ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b611f07565b905080610c205760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602052604081208054839290610c55908490613679565b925050819055508060056000828254610c6e9190613679565b90915550610c7e90508382611f5c565b6040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480610cfb5750610cfb8533610821565b610d6d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610958565b610d7a8585858585612082565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020526040902054610e195760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960205260408120546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b158015610ea457600080fd5b505afa158015610eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edc9190613468565b610ee69190613679565b90506000610f2c8383610ba6878773ffffffffffffffffffffffffffffffffffffffff9182166000908152600a6020908152604080832093909416825291909152205490565b905080610fa15760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600a6020908152604080832093871683529290529081208054839290610fe5908490613679565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152600960205260408120805483929061101f908490613679565b90915550611030905084848361236e565b6040805173ffffffffffffffffffffffffffffffffffffffff8581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b606081518351146111025760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610958565b6000835167ffffffffffffffff81111561111e5761111e6138a2565b604051908082528060200260200182016040528015611147578160200160208202803683370190505b50905060005b84518110156111bf5761119285828151811061116b5761116b613873565b602002602001015185838151811061118557611185613873565b60200260200101516108d1565b8282815181106111a4576111a4613873565b60209081029190910101526111b8816137c8565b905061114d565b509392505050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461122e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b611237816123fb565b50565b60035473ffffffffffffffffffffffffffffffffffffffff1633146112a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6112ab600061240e565b565b60035473ffffffffffffffffffffffffffffffffffffffff1633146113145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b600061131f600e5490565b905060005b828110156113975761133a600e80546001019055565b611385336113488385613679565b60016040518060400160405280600681526020017f3078303030300000000000000000000000000000000000000000000000000000815250612485565b8061138f816137c8565b915050611324565b507fc8b17f75f53401f272e9ee7fa431e81ba33779363238896180425a422420c8f76113c1610ab4565b60405190815260200160405180910390a15050565b60006113e1600e5490565b600d54909150610100900460ff1661143b5760405162461bcd60e51b815260206004820152601a60248201527f50726573616c65206973206e6f7420796574206163746976652e0000000000006044820152606401610958565b336000908152600b60205260409020548211156114c05760405162461bcd60e51b815260206004820152602960248201527f416d6f756e74206f6620746f6b656e7320657863656564732077686974656c6960448201527f7374206c696d69742e00000000000000000000000000000000000000000000006064820152608401610958565b6127106114cd8383613679565b111561151b5760405162461bcd60e51b815260206004820152601660248201527f416d6f756e74206578636565647320737570706c792e000000000000000000006044820152606401610958565b3461152d8366c3663566a580006136a5565b111561157b5760405162461bcd60e51b815260206004820152601760248201527f4554482073656e742069732062656c6f7720636f73742e0000000000000000006044820152606401610958565b60005b8281101561139757611594600e80546001019055565b336000908152600b602052604081208054600192906115b49084906136e2565b909155506115c89050336113488385613679565b806115d2816137c8565b91505061157e565b6000600882815481106115ef576115ef613873565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461167e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b805161169190600c906020840190612f4c565b5050565b60006116a0600e5490565b600d5490915060ff166116f55760405162461bcd60e51b815260206004820152601760248201527f53616c65206973206e6f7420796574206163746976652e0000000000000000006044820152606401610958565b600a82111561176c5760405162461bcd60e51b815260206004820152602b60248201527f416d6f756e74206f6620746f6b656e732065786365656473207472616e73616360448201527f74696f6e206c696d69742e0000000000000000000000000000000000000000006064820152608401610958565b6127106117798383613679565b11156117c75760405162461bcd60e51b815260206004820152601660248201527f416d6f756e74206578636565647320737570706c792e000000000000000000006044820152606401610958565b346117d98366c3663566a580006136a5565b11156118275760405162461bcd60e51b815260206004820152601760248201527f4554482073656e742069732062656c6f7720636f73742e0000000000000000006044820152606401610958565b60005b8281101561139757611840600e80546001019055565b61184e336113488385613679565b80611858816137c8565b91505061182a565b6116913383836125d2565b60035473ffffffffffffffffffffffffffffffffffffffff1633146118d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b600d8054821515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091161790556040517f1050112436208e776d9a33d97ca1981ed83303d2a93ccbd8c54f7a774c00f8149061193890831515815260200190565b60405180910390a150565b60035473ffffffffffffffffffffffffffffffffffffffff1633146119aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215159081179091556040519081527fe333f8a36ee86e754548af2d6f50c73ff0d501e22e6c784662123dbbe493c60290602001611938565b600c8054611a1690613729565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4290613729565b8015611a8f5780601f10611a6457610100808354040283529160200191611a8f565b820191906000526020600020905b815481529060010190602001808311611a7257829003601f168201915b505050505081565b60035473ffffffffffffffffffffffffffffffffffffffff163314611afe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b60005b8251811015611b9357818181518110611b1c57611b1c613873565b6020026020010151600b6000858481518110611b3a57611b3a613873565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080611b8b906137c8565b915050611b01565b505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480611bc15750611bc18533610821565b611c335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610958565b610d7a858585858561270c565b60035473ffffffffffffffffffffffffffffffffffffffff163314611ca75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b73ffffffffffffffffffffffffffffffffffffffff8116611d305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610958565b6112378161240e565b606060028054611d4890613729565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7490613729565b8015611dc15780601f10611d9657610100808354040283529160200191611dc1565b820191906000526020600020905b815481529060010190602001808311611da457829003601f168201915b50505050509050919050565b606081611e0d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611e375780611e21816137c8565b9150611e309050600a83613691565b9150611e11565b60008167ffffffffffffffff811115611e5257611e526138a2565b6040519080825280601f01601f191660200182016040528015611e7c576020820181803683370190505b5090505b8415611eff57611e916001836136e2565b9150611e9e600a86613801565b611ea9906030613679565b60f81b818381518110611ebe57611ebe613873565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ef8600a86613691565b9450611e80565b949350505050565b60045473ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604081205490918391611f3e90866136a5565b611f489190613691565b611f5291906136e2565b90505b9392505050565b80471015611fac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610958565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114612006576040519150601f19603f3d011682016040523d82523d6000602084013e61200b565b606091505b5050905080611b935760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610958565b81518351146120f95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff84166121825760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610958565b3360005b84518110156122d95760008582815181106121a3576121a3613873565b6020026020010151905060008583815181106121c1576121c1613873565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e1683529093529190912054909150818110156122745760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610958565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b168252812080548492906122be908490613679565b92505081905550505050806122d2906137c8565b9050612186565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612350929190613614565b60405180910390a4612366818787878787612909565b505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611b93908490612b55565b8051611691906002906020840190612f4c565b6003805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff841661250e5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610958565b336125288160008761251f88612c47565b610d7a88612c47565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8916845290915281208054859290612565908490613679565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d7a81600087878787612c92565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126745760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff84166127955760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610958565b336127a581878761251f88612c47565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902054838110156128495760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610958565b60008581526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b8116855292528083208785039055908816825281208054869290612893908490613679565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612900828888888888612c92565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15612366576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906129809089908990889088908890600401613551565b602060405180830381600087803b15801561299a57600080fd5b505af19250505080156129e8575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526129e5918101906133e9565b60015b612a9e576129f46138d1565b806308c379a01415612a2e5750612a096138ed565b80612a145750612a30565b8060405162461bcd60e51b81526004016109589190613642565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610958565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146129005760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610958565b6000612bb7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612e349092919063ffffffff16565b805190915015611b935780806020019051810190612bd591906133af565b611b935760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610958565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612c8157612c81613873565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b15612366576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e6190612d0990899089908890889088906004016135bc565b602060405180830381600087803b158015612d2357600080fd5b505af1925050508015612d71575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612d6e918101906133e9565b60015b612d7d576129f46138d1565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146129005760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610958565b6060611f52848460008585843b612e8d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610958565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612eb69190613506565b60006040518083038185875af1925050503d8060008114612ef3576040519150601f19603f3d011682016040523d82523d6000602084013e612ef8565b606091505b5091509150612f08828286612f13565b979650505050505050565b60608315612f22575081611f55565b825115612f325782518084602001fd5b8160405162461bcd60e51b81526004016109589190613642565b828054612f5890613729565b90600052602060002090601f016020900481019282612f7a5760008555612fc0565b82601f10612f9357805160ff1916838001178555612fc0565b82800160010185558215612fc0579182015b82811115612fc0578251825591602001919060010190612fa5565b50612fcc929150612fd0565b5090565b5b80821115612fcc5760008155600101612fd1565b600067ffffffffffffffff831115612fff57612fff6138a2565b60405161303460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f870116018261377d565b80915083815284848401111561304957600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261307257600080fd5b8135602061307f82613655565b60405161308c828261377d565b8381528281019150858301600585901b870184018810156130ac57600080fd5b60005b858110156130cb578135845292840192908401906001016130af565b5090979650505050505050565b600082601f8301126130e957600080fd5b611f5583833560208501612fe5565b60006020828403121561310a57600080fd5b8135611f5581613995565b6000806040838503121561312857600080fd5b823561313381613995565b9150602083013561314381613995565b809150509250929050565b600080600080600060a0868803121561316657600080fd5b853561317181613995565b9450602086013561318181613995565b9350604086013567ffffffffffffffff8082111561319e57600080fd5b6131aa89838a01613061565b945060608801359150808211156131c057600080fd5b6131cc89838a01613061565b935060808801359150808211156131e257600080fd5b506131ef888289016130d8565b9150509295509295909350565b600080600080600060a0868803121561321457600080fd5b853561321f81613995565b9450602086013561322f81613995565b93506040860135925060608601359150608086013567ffffffffffffffff81111561325957600080fd5b6131ef888289016130d8565b6000806040838503121561327857600080fd5b823561328381613995565b91506020830135613143816139b7565b600080604083850312156132a657600080fd5b82356132b181613995565b946020939093013593505050565b600080604083850312156132d257600080fd5b823567ffffffffffffffff808211156132ea57600080fd5b818501915085601f8301126132fe57600080fd5b8135602061330b82613655565b604051613318828261377d565b8381528281019150858301600585901b870184018b101561333857600080fd5b600096505b8487101561336457803561335081613995565b83526001969096019591830191830161333d565b509650508601359250508082111561337b57600080fd5b5061338885828601613061565b9150509250929050565b6000602082840312156133a457600080fd5b8135611f55816139b7565b6000602082840312156133c157600080fd5b8151611f55816139b7565b6000602082840312156133de57600080fd5b8135611f55816139c5565b6000602082840312156133fb57600080fd5b8151611f55816139c5565b60006020828403121561341857600080fd5b813567ffffffffffffffff81111561342f57600080fd5b8201601f8101841361344057600080fd5b611eff84823560208401612fe5565b60006020828403121561346157600080fd5b5035919050565b60006020828403121561347a57600080fd5b5051919050565b600081518084526020808501945080840160005b838110156134b157815187529582019590820190600101613495565b509495945050505050565b600081518084526134d48160208601602086016136f9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516135188184602087016136f9565b9190910192915050565b600083516135348184602088016136f9565b8351908301906135488183602088016136f9565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261358a60a0830186613481565b828103606084015261359c8186613481565b905082810360808401526135b081856134bc565b98975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a06080830152612f0860a08301846134bc565b602081526000611f556020830184613481565b6040815260006136276040830185613481565b82810360208401526136398185613481565b95945050505050565b602081526000611f5560208301846134bc565b600067ffffffffffffffff82111561366f5761366f6138a2565b5060051b60200190565b6000821982111561368c5761368c613815565b500190565b6000826136a0576136a0613844565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136dd576136dd613815565b500290565b6000828210156136f4576136f4613815565b500390565b60005b838110156137145781810151838201526020016136fc565b83811115613723576000848401525b50505050565b600181811c9082168061373d57607f821691505b60208210811415613777577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff821117156137c1576137c16138a2565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156137fa576137fa613815565b5060010190565b60008261381057613810613844565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156138ea5760046000803e5060005160e01c5b90565b600060443d10156138fb5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561394957505050505090565b82850191508151818111156139615750505050505090565b843d870101602082850101111561397b5750505050505090565b61398a6020828601018761377d565b509095945050505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461123757600080fd5b801515811461123757600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461123757600080fdfea264697066735822122080b8960c5c172f94f8c052544718232d832810d9f9b217c0309c36846002d1d664736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d565552446a6b3179766d784c7a6f5048455a3235425933746a7571715967447947786d55594b794b6165477a2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006b99d2b10f3cc0ce6b871a9f5f94e1ecd6222f470000000000000000000000005a62d6b94f36fc88b951d627383cfdf40989af86000000000000000000000000f46b076ff8ac8ae163fcd6d9a6e076903845cd090000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000043

Deployed Bytecode

0x6080604052600436106102885760003560e01c80638da5cb5b11610153578063c4e37095116100cb578063e985e9c51161007f578063f242432a11610064578063f242432a1461087c578063f2fde38b1461089c578063f3b2db3f146108bc57600080fd5b8063e985e9c514610806578063f013e0e11461085c57600080fd5b8063d79779b2116100b0578063d79779b214610799578063e33b7de3146107dc578063e8a3d485146107f157600080fd5b8063c4e3709514610736578063ce7c2ac21461075657600080fd5b80639b19251a11610122578063a22cb46511610107578063a22cb465146106db578063bce4d6ae146106fb578063bf8fbbd21461071b57600080fd5b80639b19251a1461069b578063a0712d68146106c857600080fd5b80638da5cb5b146105c4578063938e3d7b146105ef57806395d89b411461060f5780639852595c1461065857600080fd5b8063406072a91161020157806368428a1b116101b5578063819b25ba1161019a578063819b25ba1461054c5780638ad433ac1461056c5780638b83209b1461057f57600080fd5b806368428a1b1461051d578063715018a61461053757600080fd5b80634e1273f4116101e65780634e1273f4146104b157806353135ca0146104de57806355f804b3146104fd57600080fd5b8063406072a91461043e57806348b750441461049157600080fd5b806318160ddd116102585780632eb2c2d61161023d5780632eb2c2d6146103f357806332cb6b0c146104135780633a98ef391461042957600080fd5b806318160ddd146103bc57806319165587146103d157600080fd5b8062fdd58e146102e357806301ffc9a71461031657806306fdde03146103465780630e89341c1461039c57600080fd5b366102de577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770336040805173ffffffffffffffffffffffffffffffffffffffff90921682523460208301520160405180910390a1005b600080fd5b3480156102ef57600080fd5b506103036102fe366004613293565b6108d1565b6040519081526020015b60405180910390f35b34801561032257600080fd5b506103366103313660046133cc565b610994565b604051901515815260200161030d565b34801561035257600080fd5b5061038f6040518060400160405280601081526020017f4d6f6f73652056732e2048756e6765720000000000000000000000000000000081525081565b60405161030d9190613642565b3480156103a857600080fd5b5061038f6103b736600461344f565b610a79565b3480156103c857600080fd5b50610303610ab4565b3480156103dd57600080fd5b506103f16103ec3660046130f8565b610ac4565b005b3480156103ff57600080fd5b506103f161040e36600461314e565b610cd2565b34801561041f57600080fd5b5061030361271081565b34801561043557600080fd5b50600454610303565b34801561044a57600080fd5b50610303610459366004613115565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600a6020908152604080832093909416825291909152205490565b34801561049d57600080fd5b506103f16104ac366004613115565b610d81565b3480156104bd57600080fd5b506104d16104cc3660046132bf565b611089565b60405161030d9190613601565b3480156104ea57600080fd5b50600d5461033690610100900460ff1681565b34801561050957600080fd5b506103f1610518366004613406565b6111c7565b34801561052957600080fd5b50600d546103369060ff1681565b34801561054357600080fd5b506103f161123a565b34801561055857600080fd5b506103f161056736600461344f565b6112ad565b6103f161057a36600461344f565b6113d6565b34801561058b57600080fd5b5061059f61059a36600461344f565b6115da565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161030d565b3480156105d057600080fd5b5060035473ffffffffffffffffffffffffffffffffffffffff1661059f565b3480156105fb57600080fd5b506103f161060a366004613406565b611617565b34801561061b57600080fd5b5061038f6040518060400160405280600581526020017f4d4f4f534500000000000000000000000000000000000000000000000000000081525081565b34801561066457600080fd5b506103036106733660046130f8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b3480156106a757600080fd5b506103036106b63660046130f8565b600b6020526000908152604090205481565b6103f16106d636600461344f565b611695565b3480156106e757600080fd5b506103f16106f6366004613265565b611860565b34801561070757600080fd5b506103f1610716366004613392565b61186b565b34801561072757600080fd5b5061030366c3663566a5800081565b34801561074257600080fd5b506103f1610751366004613392565b611943565b34801561076257600080fd5b506103036107713660046130f8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205490565b3480156107a557600080fd5b506103036107b43660046130f8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205490565b3480156107e857600080fd5b50600554610303565b3480156107fd57600080fd5b5061038f611a09565b34801561081257600080fd5b50610336610821366004613115565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561086857600080fd5b506103f16108773660046132bf565b611a97565b34801561088857600080fd5b506103f16108973660046131fc565b611b98565b3480156108a857600080fd5b506103f16108b73660046130f8565b611c40565b3480156108c857600080fd5b50610303600a81565b600073ffffffffffffffffffffffffffffffffffffffff83166109615760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526020818152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a26000000000000000000000000000000000000000000000000000000001480610a2757507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610a7357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060610a8482611d39565b610a8d83611dcd565b604051602001610a9e929190613522565b6040516020818303038152906040529050919050565b6000610abf600e5490565b905090565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020526040902054610b5c5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610958565b6000610b6760055490565b610b719047613679565b90506000610bab8383610ba68673ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b611f07565b905080610c205760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602052604081208054839290610c55908490613679565b925050819055508060056000828254610c6e9190613679565b90915550610c7e90508382611f5c565b6040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480610cfb5750610cfb8533610821565b610d6d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610958565b610d7a8585858585612082565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020526040902054610e195760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960205260408120546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b158015610ea457600080fd5b505afa158015610eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edc9190613468565b610ee69190613679565b90506000610f2c8383610ba6878773ffffffffffffffffffffffffffffffffffffffff9182166000908152600a6020908152604080832093909416825291909152205490565b905080610fa15760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600a6020908152604080832093871683529290529081208054839290610fe5908490613679565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152600960205260408120805483929061101f908490613679565b90915550611030905084848361236e565b6040805173ffffffffffffffffffffffffffffffffffffffff8581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b606081518351146111025760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610958565b6000835167ffffffffffffffff81111561111e5761111e6138a2565b604051908082528060200260200182016040528015611147578160200160208202803683370190505b50905060005b84518110156111bf5761119285828151811061116b5761116b613873565b602002602001015185838151811061118557611185613873565b60200260200101516108d1565b8282815181106111a4576111a4613873565b60209081029190910101526111b8816137c8565b905061114d565b509392505050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461122e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b611237816123fb565b50565b60035473ffffffffffffffffffffffffffffffffffffffff1633146112a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b6112ab600061240e565b565b60035473ffffffffffffffffffffffffffffffffffffffff1633146113145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b600061131f600e5490565b905060005b828110156113975761133a600e80546001019055565b611385336113488385613679565b60016040518060400160405280600681526020017f3078303030300000000000000000000000000000000000000000000000000000815250612485565b8061138f816137c8565b915050611324565b507fc8b17f75f53401f272e9ee7fa431e81ba33779363238896180425a422420c8f76113c1610ab4565b60405190815260200160405180910390a15050565b60006113e1600e5490565b600d54909150610100900460ff1661143b5760405162461bcd60e51b815260206004820152601a60248201527f50726573616c65206973206e6f7420796574206163746976652e0000000000006044820152606401610958565b336000908152600b60205260409020548211156114c05760405162461bcd60e51b815260206004820152602960248201527f416d6f756e74206f6620746f6b656e7320657863656564732077686974656c6960448201527f7374206c696d69742e00000000000000000000000000000000000000000000006064820152608401610958565b6127106114cd8383613679565b111561151b5760405162461bcd60e51b815260206004820152601660248201527f416d6f756e74206578636565647320737570706c792e000000000000000000006044820152606401610958565b3461152d8366c3663566a580006136a5565b111561157b5760405162461bcd60e51b815260206004820152601760248201527f4554482073656e742069732062656c6f7720636f73742e0000000000000000006044820152606401610958565b60005b8281101561139757611594600e80546001019055565b336000908152600b602052604081208054600192906115b49084906136e2565b909155506115c89050336113488385613679565b806115d2816137c8565b91505061157e565b6000600882815481106115ef576115ef613873565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b60035473ffffffffffffffffffffffffffffffffffffffff16331461167e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b805161169190600c906020840190612f4c565b5050565b60006116a0600e5490565b600d5490915060ff166116f55760405162461bcd60e51b815260206004820152601760248201527f53616c65206973206e6f7420796574206163746976652e0000000000000000006044820152606401610958565b600a82111561176c5760405162461bcd60e51b815260206004820152602b60248201527f416d6f756e74206f6620746f6b656e732065786365656473207472616e73616360448201527f74696f6e206c696d69742e0000000000000000000000000000000000000000006064820152608401610958565b6127106117798383613679565b11156117c75760405162461bcd60e51b815260206004820152601660248201527f416d6f756e74206578636565647320737570706c792e000000000000000000006044820152606401610958565b346117d98366c3663566a580006136a5565b11156118275760405162461bcd60e51b815260206004820152601760248201527f4554482073656e742069732062656c6f7720636f73742e0000000000000000006044820152606401610958565b60005b8281101561139757611840600e80546001019055565b61184e336113488385613679565b80611858816137c8565b91505061182a565b6116913383836125d2565b60035473ffffffffffffffffffffffffffffffffffffffff1633146118d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b600d8054821515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091161790556040517f1050112436208e776d9a33d97ca1981ed83303d2a93ccbd8c54f7a774c00f8149061193890831515815260200190565b60405180910390a150565b60035473ffffffffffffffffffffffffffffffffffffffff1633146119aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215159081179091556040519081527fe333f8a36ee86e754548af2d6f50c73ff0d501e22e6c784662123dbbe493c60290602001611938565b600c8054611a1690613729565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4290613729565b8015611a8f5780601f10611a6457610100808354040283529160200191611a8f565b820191906000526020600020905b815481529060010190602001808311611a7257829003601f168201915b505050505081565b60035473ffffffffffffffffffffffffffffffffffffffff163314611afe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b60005b8251811015611b9357818181518110611b1c57611b1c613873565b6020026020010151600b6000858481518110611b3a57611b3a613873565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080611b8b906137c8565b915050611b01565b505050565b73ffffffffffffffffffffffffffffffffffffffff8516331480611bc15750611bc18533610821565b611c335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610958565b610d7a858585858561270c565b60035473ffffffffffffffffffffffffffffffffffffffff163314611ca75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610958565b73ffffffffffffffffffffffffffffffffffffffff8116611d305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610958565b6112378161240e565b606060028054611d4890613729565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7490613729565b8015611dc15780601f10611d9657610100808354040283529160200191611dc1565b820191906000526020600020905b815481529060010190602001808311611da457829003601f168201915b50505050509050919050565b606081611e0d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611e375780611e21816137c8565b9150611e309050600a83613691565b9150611e11565b60008167ffffffffffffffff811115611e5257611e526138a2565b6040519080825280601f01601f191660200182016040528015611e7c576020820181803683370190505b5090505b8415611eff57611e916001836136e2565b9150611e9e600a86613801565b611ea9906030613679565b60f81b818381518110611ebe57611ebe613873565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611ef8600a86613691565b9450611e80565b949350505050565b60045473ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604081205490918391611f3e90866136a5565b611f489190613691565b611f5291906136e2565b90505b9392505050565b80471015611fac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610958565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114612006576040519150601f19603f3d011682016040523d82523d6000602084013e61200b565b606091505b5050905080611b935760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610958565b81518351146120f95760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff84166121825760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610958565b3360005b84518110156122d95760008582815181106121a3576121a3613873565b6020026020010151905060008583815181106121c1576121c1613873565b6020908102919091018101516000848152808352604080822073ffffffffffffffffffffffffffffffffffffffff8e1683529093529190912054909150818110156122745760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610958565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8e8116855292528083208585039055908b168252812080548492906122be908490613679565b92505081905550505050806122d2906137c8565b9050612186565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612350929190613614565b60405180910390a4612366818787878787612909565b505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611b93908490612b55565b8051611691906002906020840190612f4c565b6003805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff841661250e5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610958565b336125288160008761251f88612c47565b610d7a88612c47565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8916845290915281208054859290612565908490613679565b9091555050604080518581526020810185905273ffffffffffffffffffffffffffffffffffffffff80881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d7a81600087878787612c92565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126745760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610958565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff84166127955760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610958565b336127a581878761251f88612c47565b60008481526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902054838110156128495760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610958565b60008581526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b8116855292528083208785039055908816825281208054869290612893908490613679565b9091555050604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612900828888888888612c92565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15612366576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c81906129809089908990889088908890600401613551565b602060405180830381600087803b15801561299a57600080fd5b505af19250505080156129e8575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526129e5918101906133e9565b60015b612a9e576129f46138d1565b806308c379a01415612a2e5750612a096138ed565b80612a145750612a30565b8060405162461bcd60e51b81526004016109589190613642565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610958565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146129005760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610958565b6000612bb7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612e349092919063ffffffff16565b805190915015611b935780806020019051810190612bd591906133af565b611b935760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610958565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612c8157612c81613873565b602090810291909101015292915050565b73ffffffffffffffffffffffffffffffffffffffff84163b15612366576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e6190612d0990899089908890889088906004016135bc565b602060405180830381600087803b158015612d2357600080fd5b505af1925050508015612d71575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612d6e918101906133e9565b60015b612d7d576129f46138d1565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146129005760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610958565b6060611f52848460008585843b612e8d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610958565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612eb69190613506565b60006040518083038185875af1925050503d8060008114612ef3576040519150601f19603f3d011682016040523d82523d6000602084013e612ef8565b606091505b5091509150612f08828286612f13565b979650505050505050565b60608315612f22575081611f55565b825115612f325782518084602001fd5b8160405162461bcd60e51b81526004016109589190613642565b828054612f5890613729565b90600052602060002090601f016020900481019282612f7a5760008555612fc0565b82601f10612f9357805160ff1916838001178555612fc0565b82800160010185558215612fc0579182015b82811115612fc0578251825591602001919060010190612fa5565b50612fcc929150612fd0565b5090565b5b80821115612fcc5760008155600101612fd1565b600067ffffffffffffffff831115612fff57612fff6138a2565b60405161303460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f870116018261377d565b80915083815284848401111561304957600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261307257600080fd5b8135602061307f82613655565b60405161308c828261377d565b8381528281019150858301600585901b870184018810156130ac57600080fd5b60005b858110156130cb578135845292840192908401906001016130af565b5090979650505050505050565b600082601f8301126130e957600080fd5b611f5583833560208501612fe5565b60006020828403121561310a57600080fd5b8135611f5581613995565b6000806040838503121561312857600080fd5b823561313381613995565b9150602083013561314381613995565b809150509250929050565b600080600080600060a0868803121561316657600080fd5b853561317181613995565b9450602086013561318181613995565b9350604086013567ffffffffffffffff8082111561319e57600080fd5b6131aa89838a01613061565b945060608801359150808211156131c057600080fd5b6131cc89838a01613061565b935060808801359150808211156131e257600080fd5b506131ef888289016130d8565b9150509295509295909350565b600080600080600060a0868803121561321457600080fd5b853561321f81613995565b9450602086013561322f81613995565b93506040860135925060608601359150608086013567ffffffffffffffff81111561325957600080fd5b6131ef888289016130d8565b6000806040838503121561327857600080fd5b823561328381613995565b91506020830135613143816139b7565b600080604083850312156132a657600080fd5b82356132b181613995565b946020939093013593505050565b600080604083850312156132d257600080fd5b823567ffffffffffffffff808211156132ea57600080fd5b818501915085601f8301126132fe57600080fd5b8135602061330b82613655565b604051613318828261377d565b8381528281019150858301600585901b870184018b101561333857600080fd5b600096505b8487101561336457803561335081613995565b83526001969096019591830191830161333d565b509650508601359250508082111561337b57600080fd5b5061338885828601613061565b9150509250929050565b6000602082840312156133a457600080fd5b8135611f55816139b7565b6000602082840312156133c157600080fd5b8151611f55816139b7565b6000602082840312156133de57600080fd5b8135611f55816139c5565b6000602082840312156133fb57600080fd5b8151611f55816139c5565b60006020828403121561341857600080fd5b813567ffffffffffffffff81111561342f57600080fd5b8201601f8101841361344057600080fd5b611eff84823560208401612fe5565b60006020828403121561346157600080fd5b5035919050565b60006020828403121561347a57600080fd5b5051919050565b600081518084526020808501945080840160005b838110156134b157815187529582019590820190600101613495565b509495945050505050565b600081518084526134d48160208601602086016136f9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516135188184602087016136f9565b9190910192915050565b600083516135348184602088016136f9565b8351908301906135488183602088016136f9565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525060a0604083015261358a60a0830186613481565b828103606084015261359c8186613481565b905082810360808401526135b081856134bc565b98975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a06080830152612f0860a08301846134bc565b602081526000611f556020830184613481565b6040815260006136276040830185613481565b82810360208401526136398185613481565b95945050505050565b602081526000611f5560208301846134bc565b600067ffffffffffffffff82111561366f5761366f6138a2565b5060051b60200190565b6000821982111561368c5761368c613815565b500190565b6000826136a0576136a0613844565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136dd576136dd613815565b500290565b6000828210156136f4576136f4613815565b500390565b60005b838110156137145781810151838201526020016136fc565b83811115613723576000848401525b50505050565b600181811c9082168061373d57607f821691505b60208210811415613777577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff821117156137c1576137c16138a2565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156137fa576137fa613815565b5060010190565b60008261381057613810613844565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156138ea5760046000803e5060005160e01c5b90565b600060443d10156138fb5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561394957505050505090565b82850191508151818111156139615750505050505090565b843d870101602082850101111561397b5750505050505090565b61398a6020828601018761377d565b509095945050505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461123757600080fd5b801515811461123757600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461123757600080fdfea264697066735822122080b8960c5c172f94f8c052544718232d832810d9f9b217c0309c36846002d1d664736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d565552446a6b3179766d784c7a6f5048455a3235425933746a7571715967447947786d55594b794b6165477a2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006b99d2b10f3cc0ce6b871a9f5f94e1ecd6222f470000000000000000000000005a62d6b94f36fc88b951d627383cfdf40989af86000000000000000000000000f46b076ff8ac8ae163fcd6d9a6e076903845cd090000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000043

-----Decoded View---------------
Arg [0] : _uri (string): ipfs://QmVURDjk1yvmxLzoPHEZ25BY3tjuqqYgDyGxmUYKyKaeGz/
Arg [1] : shareholders (address[]): 0x6B99D2B10f3Cc0CE6b871A9F5f94e1ECD6222f47,0x5a62D6b94F36Fc88b951d627383CfdF40989af86,0xF46B076FF8AC8AE163Fcd6D9A6e076903845Cd09
Arg [2] : shares (uint256[]): 8,25,67

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d565552446a6b3179766d784c7a6f5048455a3235425933
Arg [5] : 746a7571715967447947786d55594b794b6165477a2f00000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 0000000000000000000000006b99d2b10f3cc0ce6b871a9f5f94e1ecd6222f47
Arg [8] : 0000000000000000000000005a62d6b94f36fc88b951d627383cfdf40989af86
Arg [9] : 000000000000000000000000f46b076ff8ac8ae163fcd6d9a6e076903845cd09
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000043


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.