ETH Price: $3,290.59 (-1.19%)

Token

 

Overview

Max Total Supply

6,993

Holders

2,128

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
Null: 0x000...000
0x0000000000000000000000000000000000000000
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:
MysteriousObjects

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : MysteriousObjects.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "./interfaces/IScales.sol";
import "./interfaces/ITestSamples.sol";

error FunctionLocked();
error InvalidAmount();

/**                                     ..',,;;;;:::;;;,,'..
                                 .';:ccccc:::;;,,,,,;;;:::ccccc:;'.
                            .,:ccc:;'..                      ..';:ccc:,.
                        .':cc:,.                                    .,ccc:'.
                     .,clc,.                                            .,clc,.
                   'clc'                                                    'clc'
                .;ll,.                                                        .;ll;.
              .:ol.                                                              'co:.
             ;oc.                                                                  .co;
           'oo'                                                                      'lo'
         .cd;                                                                          ;dc.
        .ol.                                                                 .,.        .lo.
       ,dc.                                                               'cxKWK;         cd,
      ;d;                                                             .;oONWMMMMXc         ;d;
     ;d;                                                           'cxKWMMMMMMMMMXl.        ;x;
    ,x:            ;dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0NMMMMMMMMMMMMMMNd.        :x,
   .dc           .lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd.        cd.
   ld.          .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXkl'         .dl
  ,x;          .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0d:.             ;x,
  oo.         .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxc'.                .oo
 'x:          .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOo;.                     :x'
 :x.           .xWMMMMMMMMMMM0occcccccccccccccccccccccccccccccccccccc:'                         .x:
 lo.            .oNMMMMMMMMMX;                                                                  .ol
.ol              .lXMMMMMMMWd.  ,dddddddddddddddo;.   .:dddddddddddddo,                          lo.
.dl                cXMMMMMM0,  'OMMMMMMMMMMMMMMNd.   .xWMMMMMMMMMMMMXo.                          ld.
.dl                 ;KMMMMNl   oWMMMMMMMMMMMMMXc.   ,OWMMMMMMMMMMMMK:                            ld.
 oo                  ,OWMMO.  ,KMMMMMMMMMMMMW0;   .cKMMMMMMMMMMMMWO,                             oo
 cd.                  'kWX:  .xWMMMMMMMMMMMWx.  .dKNMMMMMMMMMMMMNd.                             .dc
 ,x,                   .dd.  ;KMMMMMMMMMMMXo.  'kWMMMMMMMMMMMMMXl.                              ,x;
 .dc                     .   .,:loxOKNWMMK:   ;0WMMMMMMMMMMMMW0;                                cd.
  :d.                      ...      ..,:c'  .lXMMMMMMMMMMMMMWk'                                .d:
  .dl                      :OKOxoc:,..     .xNMMMMMMMMMMMMMNo.                                 cd.
   ;x,                      ;0MMMMWWXKOxoclOWMMMMMMMMMMMMMKc                                  ,x;
    cd.                      ,OWMMMMMMMMMMMMMMMMMMMMMMMMWO,                                  .dc
    .oo.                      .kWMMMMMMMMMMMMMMMMMMMMMMNx.                                  .oo.
     .oo.                      .xWMMMMMMMMMMMMMMMMMMMMXl.                                  .oo.
      .lo.                      .oNMMMMMMMMMMMMMMMMMW0;                                   .ol.
       .cd,                      .lXMMMMMMMMMMMMMMMWk'                                   ,dc.
         ;dc.                      :KMMMMMMMMMMMMNKo.                                  .cd;
          .lo,                      ;0WWWWWWWWWWKc.                                   'ol.
            ,ol.                     .,,,,,,,,,,.                                   .lo,
             .;oc.                                                                .co:.
               .;ol'                                                            'lo;.
                  ,ll:.                                                      .:ll,
                    .:ll;.                                                .;ll:.
                       .:ll:,.                                        .,:ll:.
                          .,:ccc;'.                              .';ccc:,.
                              .';cccc::;'...            ...';:ccccc;'.
                                    .',;::cc::cc::::::::::::;,..
                                              ........
 * @title Mysterious Objects
 * @author Augminted Labs, LLC
 * @notice Redeem Test Samples. But something was leftover... what could it be?
 * @notice For more details see: https://medium.com/@AugmintedLabs/kaijukingz-p2e-ecosystem-dc9577ff8773
 */
contract MysteriousObjects is ERC1155, AccessControl, Ownable, Pausable, ReentrancyGuard {
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
    uint256[4] public REWARDS = [500 ether, 250 ether, 100 ether, 50 ether];

    ITestSamples TestSamples;
    IScales Scales;

    mapping(bytes4 => bool) public functionLocked;

    constructor(
        string memory uri,
        address testSamples,
        address scales
    )
        ERC1155(uri)
    {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());

        TestSamples = ITestSamples(testSamples);
        Scales = IScales(scales);

        _pause();
    }

    /**
     * @notice Modifier applied to functions that will be disabled when they're no longer needed
     */
    modifier lockable() {
        if (functionLocked[msg.sig]) revert FunctionLocked();
        _;
    }

    /**
     * @notice Set token URI for all tokens
     * @param uri Token URI to set for all tokens
     */
    function setURI(string calldata uri) external lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        _setURI(uri);
    }

    /**
     * @notice Set $SCALES token address
     * @param scales Address of $SCALES token contract
     */
    function setScales(address scales) external lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        Scales = IScales(scales);
    }

    /**
     * @notice Redeem a specified amount of a specified token
     * @param id Token to redeem
     * @param amount Amount of tokens to redeem
     */
    function redeem(
        uint256 id,
        uint256 amount
    )
        public
        whenNotPaused
        nonReentrant
    {
        if (amount == 0) revert InvalidAmount();

        TestSamples.burn(_msgSender(), id, amount);
        Scales.credit(_msgSender(), amount * REWARDS[id]);
        _mint(_msgSender(), 0, amount, "");
    }

    /**
     * @notice Redeem specified amounts of specified tokens
     * @param ids Tokens to redeem
     * @param amounts Amounts of tokens to redeem
     */
    function redeemBatch(
        uint256[] calldata ids,
        uint256[] calldata amounts
    )
        public
        whenNotPaused
        nonReentrant
    {
        TestSamples.burnBatch(_msgSender(), ids, amounts);

        uint256 rewards;
        uint256 totalAmount;
        for (uint256 i; i < ids.length; ++i) {
            if (amounts[i] == 0) revert InvalidAmount();

            rewards += amounts[i] * REWARDS[ids[i]];
            totalAmount += amounts[i];
        }

        Scales.credit(_msgSender(), rewards);
        _mint(_msgSender(), 0, totalAmount, "");
    }

    /**
     * @notice Burn an amount of tokens from a specified owner
     * @param from Owner to burn from
     * @param amount Amount of tokens to burn
     */
    function burn(
        address from,
        uint256 amount
    )
        public
        lockable
        onlyRole(BURNER_ROLE)
    {
        _burn(from, 0, amount);
    }

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

    /**
     * @notice Flip paused state to temporarily disable minting
     */
    function flipPaused() external lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        paused() ? _unpause() : _pause();
    }

    /**
     * @notice Lock individual functions that are no longer needed
     * @dev Only affects functions with the lockable modifier
     * @param id First 4 bytes of the calldata (i.e. function identifier)
     */
    function lockFunction(bytes4 id) external onlyRole(DEFAULT_ADMIN_ROLE) {
        functionLocked[id] = true;
    }
}

File 2 of 19 : ITestSamples.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.11;

interface ITestSamples {
    function burn(address from, uint256 id, uint256 amount) external;
    function burnBatch(address from, uint256[] calldata ids, uint256[] calldata amounts) external;
}

File 3 of 19 : IScales.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.4;

import "./ISpendable.sol";

interface IScales is ISpendable {
    function getAllOwned(address) external view returns (uint256[] memory);
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 8 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 9 of 19 : ISpendable.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface ISpendable is IERC20 {
    function getSpendable(address) external view returns (uint256);
    function spend(address, uint256) external;
    function credit(address, uint256) external;
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"testSamples","type":"address"},{"internalType":"address","name":"scales","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FunctionLocked","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"functionLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"id","type":"bytes4"}],"name":"lockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"redeemBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"scales","type":"address"}],"name":"setScales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526040518060800160405280681b1ae4d6e2ef50000068ffffffffffffffffff168152602001680d8d726b7177a8000068ffffffffffffffffff16815260200168056bc75e2d6310000068ffffffffffffffffff1681526020016802b5e3af16b188000068ffffffffffffffffff16815250600690600462000087929190620004e6565b503480156200009557600080fd5b506040516200568a3803806200568a8339818101604052810190620000bb9190620007ea565b82620000cd81620001d060201b60201c565b50620000ee620000e2620001ec60201b60201c565b620001f460201b60201c565b6000600460146101000a81548160ff0219169083151502179055506001600581905550620001356000801b62000129620001ec60201b60201c565b620002ba60201b60201c565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001c7620003ac60201b60201c565b5050506200097b565b8060029080519060200190620001e892919062000538565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002cc82826200046460201b60201c565b620003a85760016003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200034d620001ec60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b620003bc620004cf60201b60201c565b15620003ff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003f690620008c6565b60405180910390fd5b6001600460146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200044b620001ec60201b60201c565b6040516200045a9190620008f9565b60405180910390a1565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600460149054906101000a900460ff16905090565b826004810192821562000525579160200282015b8281111562000524578251829068ffffffffffffffffff16905591602001919060010190620004fa565b5b509050620005349190620005c9565b5090565b828054620005469062000945565b90600052602060002090601f0160209004810192826200056a5760008555620005b6565b82601f106200058557805160ff1916838001178555620005b6565b82800160010185558215620005b6579182015b82811115620005b557825182559160200191906001019062000598565b5b509050620005c59190620005c9565b5090565b5b80821115620005e4576000816000905550600101620005ca565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620006518262000606565b810181811067ffffffffffffffff8211171562000673576200067262000617565b5b80604052505050565b600062000688620005e8565b905062000696828262000646565b919050565b600067ffffffffffffffff821115620006b957620006b862000617565b5b620006c48262000606565b9050602081019050919050565b60005b83811015620006f1578082015181840152602081019050620006d4565b8381111562000701576000848401525b50505050565b60006200071e62000718846200069b565b6200067c565b9050828152602081018484840111156200073d576200073c62000601565b5b6200074a848285620006d1565b509392505050565b600082601f8301126200076a5762000769620005fc565b5b81516200077c84826020860162000707565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007b28262000785565b9050919050565b620007c481620007a5565b8114620007d057600080fd5b50565b600081519050620007e481620007b9565b92915050565b600080600060608486031215620008065762000805620005f2565b5b600084015167ffffffffffffffff811115620008275762000826620005f7565b5b620008358682870162000752565b93505060206200084886828701620007d3565b92505060406200085b86828701620007d3565b9150509250925092565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620008ae60108362000865565b9150620008bb8262000876565b602082019050919050565b60006020820190508181036000830152620008e1816200089f565b9050919050565b620008f381620007a5565b82525050565b6000602082019050620009106000830184620008e8565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200095e57607f821691505b6020821081141562000975576200097462000916565b5b50919050565b614cff806200098b6000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c8063715018a6116100f9578063bbadfe7611610097578063d70dc71a11610071578063d70dc71a146104ec578063e985e9c514610508578063f242432a14610538578063f2fde38b14610554576101c3565b8063bbadfe7614610470578063cc91a913146104a0578063d547741f146104d0576101c3565b806391d14854116100d357806391d14854146103ea5780639dc29fac1461041a578063a217fddf14610436578063a22cb46514610454576101c3565b8063715018a6146103a65780637cbc2373146103b05780638da5cb5b146103cc576101c3565b80632f2ff15d1161016657806336568abe1161014057806336568abe146103205780634e1273f41461033c5780635c975abb1461036c578063649117d31461038a576101c3565b80632f2ff15d146102de578063333171bb146102fa5780633453182814610304576101c3565b80630e89341c116101a25780630e89341c14610244578063248a9ca314610274578063282c51f3146102a45780632eb2c2d6146102c2576101c3565b8062fdd58e146101c857806301ffc9a7146101f857806302fe530514610228575b600080fd5b6101e260048036038101906101dd919061308d565b610570565b6040516101ef91906130dc565b60405180910390f35b610212600480360381019061020d919061314f565b610639565b60405161021f9190613197565b60405180910390f35b610242600480360381019061023d9190613217565b61064b565b005b61025e60048036038101906102599190613264565b610763565b60405161026b919061332a565b60405180910390f35b61028e60048036038101906102899190613382565b6107f7565b60405161029b91906133be565b60405180910390f35b6102ac610817565b6040516102b991906133be565b60405180910390f35b6102dc60048036038101906102d791906135cc565b61083b565b005b6102f860048036038101906102f3919061369b565b6108dc565b005b6103026108fd565b005b61031e6004803603810190610319919061314f565b6109e8565b005b61033a6004803603810190610335919061369b565b610a63565b005b6103566004803603810190610351919061379e565b610ae6565b60405161036391906138d4565b60405180910390f35b610374610bff565b6040516103819190613197565b60405180910390f35b6103a4600480360381019061039f919061394c565b610c16565b005b6103ae610f0f565b005b6103ca60048036038101906103c591906139cd565b610f97565b005b6103d46111e5565b6040516103e19190613a1c565b60405180910390f35b61040460048036038101906103ff919061369b565b61120f565b6040516104119190613197565b60405180910390f35b610434600480360381019061042f919061308d565b61127a565b005b61043e61136e565b60405161044b91906133be565b60405180910390f35b61046e60048036038101906104699190613a63565b611375565b005b61048a6004803603810190610485919061314f565b61138b565b6040516104979190613197565b60405180910390f35b6104ba60048036038101906104b59190613264565b6113ab565b6040516104c791906130dc565b60405180910390f35b6104ea60048036038101906104e5919061369b565b6113c6565b005b61050660048036038101906105019190613aa3565b6113e7565b005b610522600480360381019061051d9190613ad0565b6114f2565b60405161052f9190613197565b60405180910390f35b610552600480360381019061054d9190613b10565b611586565b005b61056e60048036038101906105699190613aa3565b611627565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d890613c19565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106448261171f565b9050919050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610704576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b61071181611799565b61075e83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506117ad565b505050565b60606002805461077290613c68565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90613c68565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b50505050509050919050565b600060036000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6108436117c7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108895750610888856108836117c7565b6114f2565b5b6108c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bf90613d0c565b60405180910390fd5b6108d585858585856117cf565b5050505050565b6108e5826107f7565b6108ee81611799565b6108f88383611af1565b505050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156109b6576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b6109c381611799565b6109cb610bff565b6109dc576109d7611bd2565b6109e5565b6109e4611c75565b5b50565b6000801b6109f581611799565b6001600c6000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610a6b6117c7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf90613d9e565b60405180910390fd5b610ae28282611d17565b5050565b60608151835114610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2390613e30565b60405180910390fd5b6000835167ffffffffffffffff811115610b4957610b486133d9565b5b604051908082528060200260200182016040528015610b775781602001602082028036833780820191505090505b50905060005b8451811015610bf457610bc4858281518110610b9c57610b9b613e50565b5b6020026020010151858381518110610bb757610bb6613e50565b5b6020026020010151610570565b828281518110610bd757610bd6613e50565b5b60200260200101818152505080610bed90613eae565b9050610b7d565b508091505092915050565b6000600460149054906101000a900460ff16905090565b610c1e610bff565b15610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5590613f43565b60405180910390fd5b60026005541415610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90613faf565b60405180910390fd5b6002600581905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636b20c454610cf26117c7565b868686866040518663ffffffff1660e01b8152600401610d16959493929190614030565b600060405180830381600087803b158015610d3057600080fd5b505af1158015610d44573d6000803e3d6000fd5b5050505060008060005b86869050811015610e45576000858583818110610d6e57610d6d613e50565b5b905060200201351415610dad576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006878783818110610dc257610dc1613e50565b5b9050602002013560048110610dda57610dd9613e50565b5b0154858583818110610def57610dee613e50565b5b90506020020135610e009190614079565b83610e0b91906140d3565b9250848482818110610e2057610e1f613e50565b5b9050602002013582610e3291906140d3565b915080610e3e90613eae565b9050610d4e565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef6506db610e8c6117c7565b846040518363ffffffff1660e01b8152600401610eaa929190614129565b600060405180830381600087803b158015610ec457600080fd5b505af1158015610ed8573d6000803e3d6000fd5b50505050610eff610ee76117c7565b60008360405180602001604052806000815250611df9565b5050600160058190555050505050565b610f176117c7565b73ffffffffffffffffffffffffffffffffffffffff16610f356111e5565b73ffffffffffffffffffffffffffffffffffffffff1614610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f829061419e565b60405180910390fd5b610f956000611faa565b565b610f9f610bff565b15610fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd690613f43565b60405180910390fd5b60026005541415611025576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101c90613faf565b60405180910390fd5b60026005819055506000811415611068576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5298aca6110ae6117c7565b84846040518463ffffffff1660e01b81526004016110ce939291906141be565b600060405180830381600087803b1580156110e857600080fd5b505af11580156110fc573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef6506db6111466117c7565b6006856004811061115a57611159613e50565b5b0154846111679190614079565b6040518363ffffffff1660e01b8152600401611184929190614129565b600060405180830381600087803b15801561119e57600080fd5b505af11580156111b2573d6000803e3d6000fd5b505050506111d96111c16117c7565b60008360405180602001604052806000815250611df9565b60016005819055505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611333576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84861135d81611799565b61136983600084612070565b505050565b6000801b81565b6113876113806117c7565b83836122b7565b5050565b600c6020528060005260406000206000915054906101000a900460ff1681565b600681600481106113bb57600080fd5b016000915090505481565b6113cf826107f7565b6113d881611799565b6113e28383611d17565b505050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156114a0576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b6114ad81611799565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61158e6117c7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115d457506115d3856115ce6117c7565b6114f2565b5b611613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160a90614267565b60405180910390fd5b6116208585858585612424565b5050505050565b61162f6117c7565b73ffffffffffffffffffffffffffffffffffffffff1661164d6111e5565b73ffffffffffffffffffffffffffffffffffffffff16146116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a9061419e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170a906142f9565b60405180910390fd5b61171c81611faa565b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117925750611791826126c0565b5b9050919050565b6117aa816117a56117c7565b6127a2565b50565b80600290805190602001906117c3929190612f42565b5050565b600033905090565b8151835114611813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180a9061438b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187a9061441d565b60405180910390fd5b600061188d6117c7565b905061189d81878787878761283f565b60005b8451811015611a4e5760008582815181106118be576118bd613e50565b5b6020026020010151905060008583815181106118dd576118dc613e50565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561197e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611975906144af565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a3391906140d3565b9250508190555050505080611a4790613eae565b90506118a0565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ac59291906144cf565b60405180910390a4611adb818787878787612847565b611ae981878787878761284f565b505050505050565b611afb828261120f565b611bce5760016003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b736117c7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611bda610bff565b15611c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1190613f43565b60405180910390fd5b6001600460146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c5e6117c7565b604051611c6b9190613a1c565b60405180910390a1565b611c7d610bff565b611cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb390614552565b60405180910390fd5b6000600460146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d006117c7565b604051611d0d9190613a1c565b60405180910390a1565b611d21828261120f565b15611df55760006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d9a6117c7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e60906145e4565b60405180910390fd5b6000611e736117c7565b90506000611e8085612a27565b90506000611e8d85612a27565b9050611e9e8360008985858961283f565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611efd91906140d3565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611f7b929190614604565b60405180910390a4611f9283600089858589612847565b611fa183600089898989612aa1565b50505050505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d79061469f565b60405180910390fd5b60006120ea6117c7565b905060006120f784612a27565b9050600061210484612a27565b90506121248387600085856040518060200160405280600081525061283f565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156121bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b290614731565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612288929190614604565b60405180910390a46122ae84886000868660405180602001604052806000815250612847565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231d906147c3565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124179190613197565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248b9061441d565b60405180910390fd5b600061249e6117c7565b905060006124ab85612a27565b905060006124b885612a27565b90506124c883898985858961283f565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561255f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612556906144af565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461261491906140d3565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612691929190614604565b60405180910390a46126a7848a8a86868a612847565b6126b5848a8a8a8a8a612aa1565b505050505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061278b57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061279b575061279a82612c79565b5b9050919050565b6127ac828261120f565b61283b576127d18173ffffffffffffffffffffffffffffffffffffffff166014612ce3565b6127df8360001c6020612ce3565b6040516020016127f09291906148b7565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612832919061332a565b60405180910390fd5b5050565b505050505050565b505050505050565b61286e8473ffffffffffffffffffffffffffffffffffffffff16612f1f565b15612a1f578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016128b4959493929190614946565b6020604051808303816000875af19250505080156128f057506040513d601f19601f820116820180604052508101906128ed91906149c3565b60015b612996576128fc6149fd565b806308c379a014156129595750612911614a1f565b8061291c575061295b565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612950919061332a565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298d90614b27565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1490614bb9565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612a4657612a456133d9565b5b604051908082528060200260200182016040528015612a745781602001602082028036833780820191505090505b5090508281600081518110612a8c57612a8b613e50565b5b60200260200101818152505080915050919050565b612ac08473ffffffffffffffffffffffffffffffffffffffff16612f1f565b15612c71578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612b06959493929190614bd9565b6020604051808303816000875af1925050508015612b4257506040513d601f19601f82011682018060405250810190612b3f91906149c3565b60015b612be857612b4e6149fd565b806308c379a01415612bab5750612b63614a1f565b80612b6e5750612bad565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba2919061332a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdf90614b27565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6690614bb9565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b606060006002836002612cf69190614079565b612d0091906140d3565b67ffffffffffffffff811115612d1957612d186133d9565b5b6040519080825280601f01601f191660200182016040528015612d4b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d8357612d82613e50565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612de757612de6613e50565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612e279190614079565b612e3191906140d3565b90505b6001811115612ed1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e7357612e72613e50565b5b1a60f81b828281518110612e8a57612e89613e50565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612eca90614c33565b9050612e34565b5060008414612f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0c90614ca9565b60405180910390fd5b8091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612f4e90613c68565b90600052602060002090601f016020900481019282612f705760008555612fb7565b82601f10612f8957805160ff1916838001178555612fb7565b82800160010185558215612fb7579182015b82811115612fb6578251825591602001919060010190612f9b565b5b509050612fc49190612fc8565b5090565b5b80821115612fe1576000816000905550600101612fc9565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061302482612ff9565b9050919050565b61303481613019565b811461303f57600080fd5b50565b6000813590506130518161302b565b92915050565b6000819050919050565b61306a81613057565b811461307557600080fd5b50565b60008135905061308781613061565b92915050565b600080604083850312156130a4576130a3612fef565b5b60006130b285828601613042565b92505060206130c385828601613078565b9150509250929050565b6130d681613057565b82525050565b60006020820190506130f160008301846130cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61312c816130f7565b811461313757600080fd5b50565b60008135905061314981613123565b92915050565b60006020828403121561316557613164612fef565b5b60006131738482850161313a565b91505092915050565b60008115159050919050565b6131918161317c565b82525050565b60006020820190506131ac6000830184613188565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126131d7576131d66131b2565b5b8235905067ffffffffffffffff8111156131f4576131f36131b7565b5b6020830191508360018202830111156132105761320f6131bc565b5b9250929050565b6000806020838503121561322e5761322d612fef565b5b600083013567ffffffffffffffff81111561324c5761324b612ff4565b5b613258858286016131c1565b92509250509250929050565b60006020828403121561327a57613279612fef565b5b600061328884828501613078565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132cb5780820151818401526020810190506132b0565b838111156132da576000848401525b50505050565b6000601f19601f8301169050919050565b60006132fc82613291565b613306818561329c565b93506133168185602086016132ad565b61331f816132e0565b840191505092915050565b6000602082019050818103600083015261334481846132f1565b905092915050565b6000819050919050565b61335f8161334c565b811461336a57600080fd5b50565b60008135905061337c81613356565b92915050565b60006020828403121561339857613397612fef565b5b60006133a68482850161336d565b91505092915050565b6133b88161334c565b82525050565b60006020820190506133d360008301846133af565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613411826132e0565b810181811067ffffffffffffffff821117156134305761342f6133d9565b5b80604052505050565b6000613443612fe5565b905061344f8282613408565b919050565b600067ffffffffffffffff82111561346f5761346e6133d9565b5b602082029050602081019050919050565b600061349361348e84613454565b613439565b905080838252602082019050602084028301858111156134b6576134b56131bc565b5b835b818110156134df57806134cb8882613078565b8452602084019350506020810190506134b8565b5050509392505050565b600082601f8301126134fe576134fd6131b2565b5b813561350e848260208601613480565b91505092915050565b600080fd5b600067ffffffffffffffff821115613537576135366133d9565b5b613540826132e0565b9050602081019050919050565b82818337600083830152505050565b600061356f61356a8461351c565b613439565b90508281526020810184848401111561358b5761358a613517565b5b61359684828561354d565b509392505050565b600082601f8301126135b3576135b26131b2565b5b81356135c384826020860161355c565b91505092915050565b600080600080600060a086880312156135e8576135e7612fef565b5b60006135f688828901613042565b955050602061360788828901613042565b945050604086013567ffffffffffffffff81111561362857613627612ff4565b5b613634888289016134e9565b935050606086013567ffffffffffffffff81111561365557613654612ff4565b5b613661888289016134e9565b925050608086013567ffffffffffffffff81111561368257613681612ff4565b5b61368e8882890161359e565b9150509295509295909350565b600080604083850312156136b2576136b1612fef565b5b60006136c08582860161336d565b92505060206136d185828601613042565b9150509250929050565b600067ffffffffffffffff8211156136f6576136f56133d9565b5b602082029050602081019050919050565b600061371a613715846136db565b613439565b9050808382526020820190506020840283018581111561373d5761373c6131bc565b5b835b8181101561376657806137528882613042565b84526020840193505060208101905061373f565b5050509392505050565b600082601f830112613785576137846131b2565b5b8135613795848260208601613707565b91505092915050565b600080604083850312156137b5576137b4612fef565b5b600083013567ffffffffffffffff8111156137d3576137d2612ff4565b5b6137df85828601613770565b925050602083013567ffffffffffffffff811115613800576137ff612ff4565b5b61380c858286016134e9565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61384b81613057565b82525050565b600061385d8383613842565b60208301905092915050565b6000602082019050919050565b600061388182613816565b61388b8185613821565b935061389683613832565b8060005b838110156138c75781516138ae8882613851565b97506138b983613869565b92505060018101905061389a565b5085935050505092915050565b600060208201905081810360008301526138ee8184613876565b905092915050565b60008083601f84011261390c5761390b6131b2565b5b8235905067ffffffffffffffff811115613929576139286131b7565b5b602083019150836020820283011115613945576139446131bc565b5b9250929050565b6000806000806040858703121561396657613965612fef565b5b600085013567ffffffffffffffff81111561398457613983612ff4565b5b613990878288016138f6565b9450945050602085013567ffffffffffffffff8111156139b3576139b2612ff4565b5b6139bf878288016138f6565b925092505092959194509250565b600080604083850312156139e4576139e3612fef565b5b60006139f285828601613078565b9250506020613a0385828601613078565b9150509250929050565b613a1681613019565b82525050565b6000602082019050613a316000830184613a0d565b92915050565b613a408161317c565b8114613a4b57600080fd5b50565b600081359050613a5d81613a37565b92915050565b60008060408385031215613a7a57613a79612fef565b5b6000613a8885828601613042565b9250506020613a9985828601613a4e565b9150509250929050565b600060208284031215613ab957613ab8612fef565b5b6000613ac784828501613042565b91505092915050565b60008060408385031215613ae757613ae6612fef565b5b6000613af585828601613042565b9250506020613b0685828601613042565b9150509250929050565b600080600080600060a08688031215613b2c57613b2b612fef565b5b6000613b3a88828901613042565b9550506020613b4b88828901613042565b9450506040613b5c88828901613078565b9350506060613b6d88828901613078565b925050608086013567ffffffffffffffff811115613b8e57613b8d612ff4565b5b613b9a8882890161359e565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613c03602b8361329c565b9150613c0e82613ba7565b604082019050919050565b60006020820190508181036000830152613c3281613bf6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c8057607f821691505b60208210811415613c9457613c93613c39565b5b50919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000613cf660328361329c565b9150613d0182613c9a565b604082019050919050565b60006020820190508181036000830152613d2581613ce9565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613d88602f8361329c565b9150613d9382613d2c565b604082019050919050565b60006020820190508181036000830152613db781613d7b565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613e1a60298361329c565b9150613e2582613dbe565b604082019050919050565b60006020820190508181036000830152613e4981613e0d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613eb982613057565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613eec57613eeb613e7f565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613f2d60108361329c565b9150613f3882613ef7565b602082019050919050565b60006020820190508181036000830152613f5c81613f20565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f99601f8361329c565b9150613fa482613f63565b602082019050919050565b60006020820190508181036000830152613fc881613f8c565b9050919050565b600080fd5b6000613fe08385613821565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561401357614012613fcf565b5b60208302925061402483858461354d565b82840190509392505050565b60006060820190506140456000830188613a0d565b8181036020830152614058818688613fd4565b9050818103604083015261406d818486613fd4565b90509695505050505050565b600061408482613057565b915061408f83613057565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140c8576140c7613e7f565b5b828202905092915050565b60006140de82613057565b91506140e983613057565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561411e5761411d613e7f565b5b828201905092915050565b600060408201905061413e6000830185613a0d565b61414b60208301846130cd565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061418860208361329c565b915061419382614152565b602082019050919050565b600060208201905081810360008301526141b78161417b565b9050919050565b60006060820190506141d36000830186613a0d565b6141e060208301856130cd565b6141ed60408301846130cd565b949350505050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b600061425160298361329c565b915061425c826141f5565b604082019050919050565b6000602082019050818103600083015261428081614244565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142e360268361329c565b91506142ee82614287565b604082019050919050565b60006020820190508181036000830152614312816142d6565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061437560288361329c565b915061438082614319565b604082019050919050565b600060208201905081810360008301526143a481614368565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061440760258361329c565b9150614412826143ab565b604082019050919050565b60006020820190508181036000830152614436816143fa565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614499602a8361329c565b91506144a48261443d565b604082019050919050565b600060208201905081810360008301526144c88161448c565b9050919050565b600060408201905081810360008301526144e98185613876565b905081810360208301526144fd8184613876565b90509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061453c60148361329c565b915061454782614506565b602082019050919050565b6000602082019050818103600083015261456b8161452f565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006145ce60218361329c565b91506145d982614572565b604082019050919050565b600060208201905081810360008301526145fd816145c1565b9050919050565b600060408201905061461960008301856130cd565b61462660208301846130cd565b9392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061468960238361329c565b91506146948261462d565b604082019050919050565b600060208201905081810360008301526146b88161467c565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061471b60248361329c565b9150614726826146bf565b604082019050919050565b6000602082019050818103600083015261474a8161470e565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006147ad60298361329c565b91506147b882614751565b604082019050919050565b600060208201905081810360008301526147dc816147a0565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006148246017836147e3565b915061482f826147ee565b601782019050919050565b600061484582613291565b61484f81856147e3565b935061485f8185602086016132ad565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006148a16011836147e3565b91506148ac8261486b565b601182019050919050565b60006148c282614817565b91506148ce828561483a565b91506148d982614894565b91506148e5828461483a565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614918826148f1565b61492281856148fc565b93506149328185602086016132ad565b61493b816132e0565b840191505092915050565b600060a08201905061495b6000830188613a0d565b6149686020830187613a0d565b818103604083015261497a8186613876565b9050818103606083015261498e8185613876565b905081810360808301526149a2818461490d565b90509695505050505050565b6000815190506149bd81613123565b92915050565b6000602082840312156149d9576149d8612fef565b5b60006149e7848285016149ae565b91505092915050565b60008160e01c9050919050565b600060033d1115614a1c5760046000803e614a196000516149f0565b90505b90565b600060443d1015614a2f57614ab2565b614a37612fe5565b60043d036004823e80513d602482011167ffffffffffffffff82111715614a5f575050614ab2565b808201805167ffffffffffffffff811115614a7d5750505050614ab2565b80602083010160043d038501811115614a9a575050505050614ab2565b614aa982602001850186613408565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614b1160348361329c565b9150614b1c82614ab5565b604082019050919050565b60006020820190508181036000830152614b4081614b04565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614ba360288361329c565b9150614bae82614b47565b604082019050919050565b60006020820190508181036000830152614bd281614b96565b9050919050565b600060a082019050614bee6000830188613a0d565b614bfb6020830187613a0d565b614c0860408301866130cd565b614c1560608301856130cd565b8181036080830152614c27818461490d565b90509695505050505050565b6000614c3e82613057565b91506000821415614c5257614c51613e7f565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614c9360208361329c565b9150614c9e82614c5d565b602082019050919050565b60006020820190508181036000830152614cc281614c86565b905091905056fea26469706673582212205e53cfcdd9efbdc47a876f86e63d4493ea4e05c2836d5a90fa23113d0231603a64736f6c634300080b00330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c8d9b60d79cad803eb165a95ede37fd0d372920c00000000000000000000000027192b750ff796514f039512aaf5a3655a095ea0000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6175676d696e7465642e6d7970696e6174612e636c6f75642f697066732f516d5a5771315670314155594e5268636273334343374642756b4475336e475970736e543253643742634a59454e000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c35760003560e01c8063715018a6116100f9578063bbadfe7611610097578063d70dc71a11610071578063d70dc71a146104ec578063e985e9c514610508578063f242432a14610538578063f2fde38b14610554576101c3565b8063bbadfe7614610470578063cc91a913146104a0578063d547741f146104d0576101c3565b806391d14854116100d357806391d14854146103ea5780639dc29fac1461041a578063a217fddf14610436578063a22cb46514610454576101c3565b8063715018a6146103a65780637cbc2373146103b05780638da5cb5b146103cc576101c3565b80632f2ff15d1161016657806336568abe1161014057806336568abe146103205780634e1273f41461033c5780635c975abb1461036c578063649117d31461038a576101c3565b80632f2ff15d146102de578063333171bb146102fa5780633453182814610304576101c3565b80630e89341c116101a25780630e89341c14610244578063248a9ca314610274578063282c51f3146102a45780632eb2c2d6146102c2576101c3565b8062fdd58e146101c857806301ffc9a7146101f857806302fe530514610228575b600080fd5b6101e260048036038101906101dd919061308d565b610570565b6040516101ef91906130dc565b60405180910390f35b610212600480360381019061020d919061314f565b610639565b60405161021f9190613197565b60405180910390f35b610242600480360381019061023d9190613217565b61064b565b005b61025e60048036038101906102599190613264565b610763565b60405161026b919061332a565b60405180910390f35b61028e60048036038101906102899190613382565b6107f7565b60405161029b91906133be565b60405180910390f35b6102ac610817565b6040516102b991906133be565b60405180910390f35b6102dc60048036038101906102d791906135cc565b61083b565b005b6102f860048036038101906102f3919061369b565b6108dc565b005b6103026108fd565b005b61031e6004803603810190610319919061314f565b6109e8565b005b61033a6004803603810190610335919061369b565b610a63565b005b6103566004803603810190610351919061379e565b610ae6565b60405161036391906138d4565b60405180910390f35b610374610bff565b6040516103819190613197565b60405180910390f35b6103a4600480360381019061039f919061394c565b610c16565b005b6103ae610f0f565b005b6103ca60048036038101906103c591906139cd565b610f97565b005b6103d46111e5565b6040516103e19190613a1c565b60405180910390f35b61040460048036038101906103ff919061369b565b61120f565b6040516104119190613197565b60405180910390f35b610434600480360381019061042f919061308d565b61127a565b005b61043e61136e565b60405161044b91906133be565b60405180910390f35b61046e60048036038101906104699190613a63565b611375565b005b61048a6004803603810190610485919061314f565b61138b565b6040516104979190613197565b60405180910390f35b6104ba60048036038101906104b59190613264565b6113ab565b6040516104c791906130dc565b60405180910390f35b6104ea60048036038101906104e5919061369b565b6113c6565b005b61050660048036038101906105019190613aa3565b6113e7565b005b610522600480360381019061051d9190613ad0565b6114f2565b60405161052f9190613197565b60405180910390f35b610552600480360381019061054d9190613b10565b611586565b005b61056e60048036038101906105699190613aa3565b611627565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d890613c19565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106448261171f565b9050919050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610704576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b61071181611799565b61075e83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506117ad565b505050565b60606002805461077290613c68565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90613c68565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b50505050509050919050565b600060036000838152602001908152602001600020600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6108436117c7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806108895750610888856108836117c7565b6114f2565b5b6108c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bf90613d0c565b60405180910390fd5b6108d585858585856117cf565b5050505050565b6108e5826107f7565b6108ee81611799565b6108f88383611af1565b505050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156109b6576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b6109c381611799565b6109cb610bff565b6109dc576109d7611bd2565b6109e5565b6109e4611c75565b5b50565b6000801b6109f581611799565b6001600c6000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b610a6b6117c7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf90613d9e565b60405180910390fd5b610ae28282611d17565b5050565b60608151835114610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2390613e30565b60405180910390fd5b6000835167ffffffffffffffff811115610b4957610b486133d9565b5b604051908082528060200260200182016040528015610b775781602001602082028036833780820191505090505b50905060005b8451811015610bf457610bc4858281518110610b9c57610b9b613e50565b5b6020026020010151858381518110610bb757610bb6613e50565b5b6020026020010151610570565b828281518110610bd757610bd6613e50565b5b60200260200101818152505080610bed90613eae565b9050610b7d565b508091505092915050565b6000600460149054906101000a900460ff16905090565b610c1e610bff565b15610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5590613f43565b60405180910390fd5b60026005541415610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90613faf565b60405180910390fd5b6002600581905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636b20c454610cf26117c7565b868686866040518663ffffffff1660e01b8152600401610d16959493929190614030565b600060405180830381600087803b158015610d3057600080fd5b505af1158015610d44573d6000803e3d6000fd5b5050505060008060005b86869050811015610e45576000858583818110610d6e57610d6d613e50565b5b905060200201351415610dad576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006878783818110610dc257610dc1613e50565b5b9050602002013560048110610dda57610dd9613e50565b5b0154858583818110610def57610dee613e50565b5b90506020020135610e009190614079565b83610e0b91906140d3565b9250848482818110610e2057610e1f613e50565b5b9050602002013582610e3291906140d3565b915080610e3e90613eae565b9050610d4e565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef6506db610e8c6117c7565b846040518363ffffffff1660e01b8152600401610eaa929190614129565b600060405180830381600087803b158015610ec457600080fd5b505af1158015610ed8573d6000803e3d6000fd5b50505050610eff610ee76117c7565b60008360405180602001604052806000815250611df9565b5050600160058190555050505050565b610f176117c7565b73ffffffffffffffffffffffffffffffffffffffff16610f356111e5565b73ffffffffffffffffffffffffffffffffffffffff1614610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f829061419e565b60405180910390fd5b610f956000611faa565b565b610f9f610bff565b15610fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd690613f43565b60405180910390fd5b60026005541415611025576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101c90613faf565b60405180910390fd5b60026005819055506000811415611068576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5298aca6110ae6117c7565b84846040518463ffffffff1660e01b81526004016110ce939291906141be565b600060405180830381600087803b1580156110e857600080fd5b505af11580156110fc573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef6506db6111466117c7565b6006856004811061115a57611159613e50565b5b0154846111679190614079565b6040518363ffffffff1660e01b8152600401611184929190614129565b600060405180830381600087803b15801561119e57600080fd5b505af11580156111b2573d6000803e3d6000fd5b505050506111d96111c16117c7565b60008360405180602001604052806000815250611df9565b60016005819055505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611333576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84861135d81611799565b61136983600084612070565b505050565b6000801b81565b6113876113806117c7565b83836122b7565b5050565b600c6020528060005260406000206000915054906101000a900460ff1681565b600681600481106113bb57600080fd5b016000915090505481565b6113cf826107f7565b6113d881611799565b6113e28383611d17565b505050565b600c600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156114a0576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b6114ad81611799565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61158e6117c7565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115d457506115d3856115ce6117c7565b6114f2565b5b611613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160a90614267565b60405180910390fd5b6116208585858585612424565b5050505050565b61162f6117c7565b73ffffffffffffffffffffffffffffffffffffffff1661164d6111e5565b73ffffffffffffffffffffffffffffffffffffffff16146116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a9061419e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170a906142f9565b60405180910390fd5b61171c81611faa565b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117925750611791826126c0565b5b9050919050565b6117aa816117a56117c7565b6127a2565b50565b80600290805190602001906117c3929190612f42565b5050565b600033905090565b8151835114611813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180a9061438b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187a9061441d565b60405180910390fd5b600061188d6117c7565b905061189d81878787878761283f565b60005b8451811015611a4e5760008582815181106118be576118bd613e50565b5b6020026020010151905060008583815181106118dd576118dc613e50565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561197e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611975906144af565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a3391906140d3565b9250508190555050505080611a4790613eae565b90506118a0565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ac59291906144cf565b60405180910390a4611adb818787878787612847565b611ae981878787878761284f565b505050505050565b611afb828261120f565b611bce5760016003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b736117c7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611bda610bff565b15611c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1190613f43565b60405180910390fd5b6001600460146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c5e6117c7565b604051611c6b9190613a1c565b60405180910390a1565b611c7d610bff565b611cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb390614552565b60405180910390fd5b6000600460146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d006117c7565b604051611d0d9190613a1c565b60405180910390a1565b611d21828261120f565b15611df55760006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d9a6117c7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e60906145e4565b60405180910390fd5b6000611e736117c7565b90506000611e8085612a27565b90506000611e8d85612a27565b9050611e9e8360008985858961283f565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611efd91906140d3565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611f7b929190614604565b60405180910390a4611f9283600089858589612847565b611fa183600089898989612aa1565b50505050505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d79061469f565b60405180910390fd5b60006120ea6117c7565b905060006120f784612a27565b9050600061210484612a27565b90506121248387600085856040518060200160405280600081525061283f565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156121bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b290614731565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612288929190614604565b60405180910390a46122ae84886000868660405180602001604052806000815250612847565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231d906147c3565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124179190613197565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248b9061441d565b60405180910390fd5b600061249e6117c7565b905060006124ab85612a27565b905060006124b885612a27565b90506124c883898985858961283f565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561255f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612556906144af565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461261491906140d3565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612691929190614604565b60405180910390a46126a7848a8a86868a612847565b6126b5848a8a8a8a8a612aa1565b505050505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061278b57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061279b575061279a82612c79565b5b9050919050565b6127ac828261120f565b61283b576127d18173ffffffffffffffffffffffffffffffffffffffff166014612ce3565b6127df8360001c6020612ce3565b6040516020016127f09291906148b7565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612832919061332a565b60405180910390fd5b5050565b505050505050565b505050505050565b61286e8473ffffffffffffffffffffffffffffffffffffffff16612f1f565b15612a1f578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016128b4959493929190614946565b6020604051808303816000875af19250505080156128f057506040513d601f19601f820116820180604052508101906128ed91906149c3565b60015b612996576128fc6149fd565b806308c379a014156129595750612911614a1f565b8061291c575061295b565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612950919061332a565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298d90614b27565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1490614bb9565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612a4657612a456133d9565b5b604051908082528060200260200182016040528015612a745781602001602082028036833780820191505090505b5090508281600081518110612a8c57612a8b613e50565b5b60200260200101818152505080915050919050565b612ac08473ffffffffffffffffffffffffffffffffffffffff16612f1f565b15612c71578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612b06959493929190614bd9565b6020604051808303816000875af1925050508015612b4257506040513d601f19601f82011682018060405250810190612b3f91906149c3565b60015b612be857612b4e6149fd565b806308c379a01415612bab5750612b63614a1f565b80612b6e5750612bad565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba2919061332a565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdf90614b27565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6690614bb9565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b606060006002836002612cf69190614079565b612d0091906140d3565b67ffffffffffffffff811115612d1957612d186133d9565b5b6040519080825280601f01601f191660200182016040528015612d4b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d8357612d82613e50565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612de757612de6613e50565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612e279190614079565b612e3191906140d3565b90505b6001811115612ed1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e7357612e72613e50565b5b1a60f81b828281518110612e8a57612e89613e50565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612eca90614c33565b9050612e34565b5060008414612f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0c90614ca9565b60405180910390fd5b8091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612f4e90613c68565b90600052602060002090601f016020900481019282612f705760008555612fb7565b82601f10612f8957805160ff1916838001178555612fb7565b82800160010185558215612fb7579182015b82811115612fb6578251825591602001919060010190612f9b565b5b509050612fc49190612fc8565b5090565b5b80821115612fe1576000816000905550600101612fc9565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061302482612ff9565b9050919050565b61303481613019565b811461303f57600080fd5b50565b6000813590506130518161302b565b92915050565b6000819050919050565b61306a81613057565b811461307557600080fd5b50565b60008135905061308781613061565b92915050565b600080604083850312156130a4576130a3612fef565b5b60006130b285828601613042565b92505060206130c385828601613078565b9150509250929050565b6130d681613057565b82525050565b60006020820190506130f160008301846130cd565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61312c816130f7565b811461313757600080fd5b50565b60008135905061314981613123565b92915050565b60006020828403121561316557613164612fef565b5b60006131738482850161313a565b91505092915050565b60008115159050919050565b6131918161317c565b82525050565b60006020820190506131ac6000830184613188565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126131d7576131d66131b2565b5b8235905067ffffffffffffffff8111156131f4576131f36131b7565b5b6020830191508360018202830111156132105761320f6131bc565b5b9250929050565b6000806020838503121561322e5761322d612fef565b5b600083013567ffffffffffffffff81111561324c5761324b612ff4565b5b613258858286016131c1565b92509250509250929050565b60006020828403121561327a57613279612fef565b5b600061328884828501613078565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132cb5780820151818401526020810190506132b0565b838111156132da576000848401525b50505050565b6000601f19601f8301169050919050565b60006132fc82613291565b613306818561329c565b93506133168185602086016132ad565b61331f816132e0565b840191505092915050565b6000602082019050818103600083015261334481846132f1565b905092915050565b6000819050919050565b61335f8161334c565b811461336a57600080fd5b50565b60008135905061337c81613356565b92915050565b60006020828403121561339857613397612fef565b5b60006133a68482850161336d565b91505092915050565b6133b88161334c565b82525050565b60006020820190506133d360008301846133af565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613411826132e0565b810181811067ffffffffffffffff821117156134305761342f6133d9565b5b80604052505050565b6000613443612fe5565b905061344f8282613408565b919050565b600067ffffffffffffffff82111561346f5761346e6133d9565b5b602082029050602081019050919050565b600061349361348e84613454565b613439565b905080838252602082019050602084028301858111156134b6576134b56131bc565b5b835b818110156134df57806134cb8882613078565b8452602084019350506020810190506134b8565b5050509392505050565b600082601f8301126134fe576134fd6131b2565b5b813561350e848260208601613480565b91505092915050565b600080fd5b600067ffffffffffffffff821115613537576135366133d9565b5b613540826132e0565b9050602081019050919050565b82818337600083830152505050565b600061356f61356a8461351c565b613439565b90508281526020810184848401111561358b5761358a613517565b5b61359684828561354d565b509392505050565b600082601f8301126135b3576135b26131b2565b5b81356135c384826020860161355c565b91505092915050565b600080600080600060a086880312156135e8576135e7612fef565b5b60006135f688828901613042565b955050602061360788828901613042565b945050604086013567ffffffffffffffff81111561362857613627612ff4565b5b613634888289016134e9565b935050606086013567ffffffffffffffff81111561365557613654612ff4565b5b613661888289016134e9565b925050608086013567ffffffffffffffff81111561368257613681612ff4565b5b61368e8882890161359e565b9150509295509295909350565b600080604083850312156136b2576136b1612fef565b5b60006136c08582860161336d565b92505060206136d185828601613042565b9150509250929050565b600067ffffffffffffffff8211156136f6576136f56133d9565b5b602082029050602081019050919050565b600061371a613715846136db565b613439565b9050808382526020820190506020840283018581111561373d5761373c6131bc565b5b835b8181101561376657806137528882613042565b84526020840193505060208101905061373f565b5050509392505050565b600082601f830112613785576137846131b2565b5b8135613795848260208601613707565b91505092915050565b600080604083850312156137b5576137b4612fef565b5b600083013567ffffffffffffffff8111156137d3576137d2612ff4565b5b6137df85828601613770565b925050602083013567ffffffffffffffff811115613800576137ff612ff4565b5b61380c858286016134e9565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61384b81613057565b82525050565b600061385d8383613842565b60208301905092915050565b6000602082019050919050565b600061388182613816565b61388b8185613821565b935061389683613832565b8060005b838110156138c75781516138ae8882613851565b97506138b983613869565b92505060018101905061389a565b5085935050505092915050565b600060208201905081810360008301526138ee8184613876565b905092915050565b60008083601f84011261390c5761390b6131b2565b5b8235905067ffffffffffffffff811115613929576139286131b7565b5b602083019150836020820283011115613945576139446131bc565b5b9250929050565b6000806000806040858703121561396657613965612fef565b5b600085013567ffffffffffffffff81111561398457613983612ff4565b5b613990878288016138f6565b9450945050602085013567ffffffffffffffff8111156139b3576139b2612ff4565b5b6139bf878288016138f6565b925092505092959194509250565b600080604083850312156139e4576139e3612fef565b5b60006139f285828601613078565b9250506020613a0385828601613078565b9150509250929050565b613a1681613019565b82525050565b6000602082019050613a316000830184613a0d565b92915050565b613a408161317c565b8114613a4b57600080fd5b50565b600081359050613a5d81613a37565b92915050565b60008060408385031215613a7a57613a79612fef565b5b6000613a8885828601613042565b9250506020613a9985828601613a4e565b9150509250929050565b600060208284031215613ab957613ab8612fef565b5b6000613ac784828501613042565b91505092915050565b60008060408385031215613ae757613ae6612fef565b5b6000613af585828601613042565b9250506020613b0685828601613042565b9150509250929050565b600080600080600060a08688031215613b2c57613b2b612fef565b5b6000613b3a88828901613042565b9550506020613b4b88828901613042565b9450506040613b5c88828901613078565b9350506060613b6d88828901613078565b925050608086013567ffffffffffffffff811115613b8e57613b8d612ff4565b5b613b9a8882890161359e565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613c03602b8361329c565b9150613c0e82613ba7565b604082019050919050565b60006020820190508181036000830152613c3281613bf6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c8057607f821691505b60208210811415613c9457613c93613c39565b5b50919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000613cf660328361329c565b9150613d0182613c9a565b604082019050919050565b60006020820190508181036000830152613d2581613ce9565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613d88602f8361329c565b9150613d9382613d2c565b604082019050919050565b60006020820190508181036000830152613db781613d7b565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613e1a60298361329c565b9150613e2582613dbe565b604082019050919050565b60006020820190508181036000830152613e4981613e0d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613eb982613057565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613eec57613eeb613e7f565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613f2d60108361329c565b9150613f3882613ef7565b602082019050919050565b60006020820190508181036000830152613f5c81613f20565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f99601f8361329c565b9150613fa482613f63565b602082019050919050565b60006020820190508181036000830152613fc881613f8c565b9050919050565b600080fd5b6000613fe08385613821565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561401357614012613fcf565b5b60208302925061402483858461354d565b82840190509392505050565b60006060820190506140456000830188613a0d565b8181036020830152614058818688613fd4565b9050818103604083015261406d818486613fd4565b90509695505050505050565b600061408482613057565b915061408f83613057565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140c8576140c7613e7f565b5b828202905092915050565b60006140de82613057565b91506140e983613057565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561411e5761411d613e7f565b5b828201905092915050565b600060408201905061413e6000830185613a0d565b61414b60208301846130cd565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061418860208361329c565b915061419382614152565b602082019050919050565b600060208201905081810360008301526141b78161417b565b9050919050565b60006060820190506141d36000830186613a0d565b6141e060208301856130cd565b6141ed60408301846130cd565b949350505050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b600061425160298361329c565b915061425c826141f5565b604082019050919050565b6000602082019050818103600083015261428081614244565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142e360268361329c565b91506142ee82614287565b604082019050919050565b60006020820190508181036000830152614312816142d6565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061437560288361329c565b915061438082614319565b604082019050919050565b600060208201905081810360008301526143a481614368565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061440760258361329c565b9150614412826143ab565b604082019050919050565b60006020820190508181036000830152614436816143fa565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614499602a8361329c565b91506144a48261443d565b604082019050919050565b600060208201905081810360008301526144c88161448c565b9050919050565b600060408201905081810360008301526144e98185613876565b905081810360208301526144fd8184613876565b90509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061453c60148361329c565b915061454782614506565b602082019050919050565b6000602082019050818103600083015261456b8161452f565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006145ce60218361329c565b91506145d982614572565b604082019050919050565b600060208201905081810360008301526145fd816145c1565b9050919050565b600060408201905061461960008301856130cd565b61462660208301846130cd565b9392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061468960238361329c565b91506146948261462d565b604082019050919050565b600060208201905081810360008301526146b88161467c565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061471b60248361329c565b9150614726826146bf565b604082019050919050565b6000602082019050818103600083015261474a8161470e565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006147ad60298361329c565b91506147b882614751565b604082019050919050565b600060208201905081810360008301526147dc816147a0565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006148246017836147e3565b915061482f826147ee565b601782019050919050565b600061484582613291565b61484f81856147e3565b935061485f8185602086016132ad565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006148a16011836147e3565b91506148ac8261486b565b601182019050919050565b60006148c282614817565b91506148ce828561483a565b91506148d982614894565b91506148e5828461483a565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614918826148f1565b61492281856148fc565b93506149328185602086016132ad565b61493b816132e0565b840191505092915050565b600060a08201905061495b6000830188613a0d565b6149686020830187613a0d565b818103604083015261497a8186613876565b9050818103606083015261498e8185613876565b905081810360808301526149a2818461490d565b90509695505050505050565b6000815190506149bd81613123565b92915050565b6000602082840312156149d9576149d8612fef565b5b60006149e7848285016149ae565b91505092915050565b60008160e01c9050919050565b600060033d1115614a1c5760046000803e614a196000516149f0565b90505b90565b600060443d1015614a2f57614ab2565b614a37612fe5565b60043d036004823e80513d602482011167ffffffffffffffff82111715614a5f575050614ab2565b808201805167ffffffffffffffff811115614a7d5750505050614ab2565b80602083010160043d038501811115614a9a575050505050614ab2565b614aa982602001850186613408565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614b1160348361329c565b9150614b1c82614ab5565b604082019050919050565b60006020820190508181036000830152614b4081614b04565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614ba360288361329c565b9150614bae82614b47565b604082019050919050565b60006020820190508181036000830152614bd281614b96565b9050919050565b600060a082019050614bee6000830188613a0d565b614bfb6020830187613a0d565b614c0860408301866130cd565b614c1560608301856130cd565b8181036080830152614c27818461490d565b90509695505050505050565b6000614c3e82613057565b91506000821415614c5257614c51613e7f565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614c9360208361329c565b9150614c9e82614c5d565b602082019050919050565b60006020820190508181036000830152614cc281614c86565b905091905056fea26469706673582212205e53cfcdd9efbdc47a876f86e63d4493ea4e05c2836d5a90fa23113d0231603a64736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c8d9b60d79cad803eb165a95ede37fd0d372920c00000000000000000000000027192b750ff796514f039512aaf5a3655a095ea0000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6175676d696e7465642e6d7970696e6174612e636c6f75642f697066732f516d5a5771315670314155594e5268636273334343374642756b4475336e475970736e543253643742634a59454e000000000000000000000000

-----Decoded View---------------
Arg [0] : uri (string): https://augminted.mypinata.cloud/ipfs/QmZWq1Vp1AUYNRhcbs3CC7FBukDu3nGYpsnT2Sd7BcJYEN
Arg [1] : testSamples (address): 0xc8d9B60D79caD803eb165a95Ede37fD0D372920C
Arg [2] : scales (address): 0x27192b750fF796514f039512aaf5A3655a095ea0

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000c8d9b60d79cad803eb165a95ede37fd0d372920c
Arg [2] : 00000000000000000000000027192b750ff796514f039512aaf5a3655a095ea0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [4] : 68747470733a2f2f6175676d696e7465642e6d7970696e6174612e636c6f7564
Arg [5] : 2f697066732f516d5a5771315670314155594e5268636273334343374642756b
Arg [6] : 4475336e475970736e543253643742634a59454e000000000000000000000000


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.