Contract 0xedee132fcf90fe3157c389706b30c6a1c7a6c88d

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4f14765f517c5477f2362f2ca941f231327b2bd90701285e769852b7d303d14aSafe Transfer Fr...146929672022-01-26 4:36:011 hr 9 mins ago0xa872ba646f450dee7c1d263f7fb7ca3643ede8e5 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201625
0xa36b54e7971fb727bc0543e024b8fa598999761ecfa5e13dc2d02237fa70699aSafe Transfer Fr...146927752022-01-26 4:26:251 hr 18 mins ago0xa47076d9c3b64bc38f5a5487a322cbff103dc42d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000241806
0xc2f030469b9b3ebfec0c014a2137ddd51312036dd037b48f8ee6bf0ae9d5e324Set Approval For...146923262022-01-26 4:03:581 hr 41 mins ago0xf1bacb82d69094024040cdb670ea1d067d2be21e IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0x0c39df175627693928c48f875b83e6521ffb73a9b2288e81e053ed667d3d33fbSafe Transfer Fr...146923042022-01-26 4:02:521 hr 42 mins ago0x32c570a8eabe22679ee1a3854d93de3247744e43 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000126625
0x52f2a94858787f92453633a41adda13bfd2940041f935656d81175d01a857c66Set Approval For...146921942022-01-26 3:57:221 hr 47 mins ago0xf1bacb82d69094024040cdb670ea1d067d2be21e IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0xa75046b26d6770f56ad9d01867e45f1758d0237f8e91c1370aaf5db73b61aaedSet Approval For...146921162022-01-26 3:53:281 hr 51 mins ago0xf1bacb82d69094024040cdb670ea1d067d2be21e IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0x98fecb68f5484278e9d601a085e9e233082be238cdc5149c4f50379f68c36a41Set Approval For...146919862022-01-26 3:46:581 hr 58 mins ago0x666415a0a4352595d2cca07df6541808d4e3dcd6 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0xfd10944cb8ca0cbab9c5552cc4b06ee44d747d1f9222419d5cac8411e0b82130Safe Transfer Fr...146918992022-01-26 3:42:372 hrs 2 mins ago0xa47076d9c3b64bc38f5a5487a322cbff103dc42d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000126625
0xcd475dbdbb8b232feb818eb3139e8bdffc8580cae42be0a1d53095cd2b692a2eSet Approval For...146918952022-01-26 3:42:252 hrs 2 mins ago0x666415a0a4352595d2cca07df6541808d4e3dcd6 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224305
0xeae6769d07c59f48e7ca343216e763cf542716ad5d7f40410db54f7e9aee3cf4Safe Transfer Fr...146918842022-01-26 3:41:522 hrs 3 mins ago0xa47076d9c3b64bc38f5a5487a322cbff103dc42d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201565
0x7617273d8290ba3420208797a9586764d0224a92d3524718d870552b03e6fb76Safe Transfer Fr...146914442022-01-26 3:19:522 hrs 25 mins ago0xa47076d9c3b64bc38f5a5487a322cbff103dc42d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201625
0xd10aea16041b6d9173eb31a96a2ef9bc3b8b0aa86947898ad5ee4ed9c4428496Safe Transfer Fr...146887532022-01-26 1:05:194 hrs 39 mins ago0xa872ba646f450dee7c1d263f7fb7ca3643ede8e5 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000276625
0x8d85e004d5a6fcd4516db107d4f85c252eaeff192272bce6ca86a095e6b05468Safe Transfer Fr...146883382022-01-26 0:44:335 hrs ago0xa872ba646f450dee7c1d263f7fb7ca3643ede8e5 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201625
0x58afbaaaa583806290573479ac3d1adaeb190bf0b4917e1af147a257fe345ea4Safe Transfer Fr...146883312022-01-26 0:44:125 hrs ago0xa872ba646f450dee7c1d263f7fb7ca3643ede8e5 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201625
0xbc0feeaea6af5d4b04458c53948f2db1c57d4809977aeb7ba4ca49853162aa86Set Approval For...146794212022-01-25 17:18:4212 hrs 26 mins ago0xdc06976a16c24e74dec7cbb55867f208538bf47a IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0x01244f7c1ee8c0d657c513c19d610ea273d36a2516891fedd0b1c03d72204760Set Approval For...146794022022-01-25 17:17:4512 hrs 27 mins ago0xdc06976a16c24e74dec7cbb55867f208538bf47a IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0x6a3ad95f63f4e45142ff53c5b19085d20abc7a3b11f62e2769a7f25738d5e88aSet Approval For...146780902022-01-25 16:11:0313 hrs 34 mins ago0xee1e6169da7dc7bfbe1a3ca3b747c88445fef6e6 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0xa0a68f3bad0eb9bfbd2add4ee4fdf5184d1089a1b594d10e4cb7af412c583a57Set Approval For...146773472022-01-25 15:33:4914 hrs 11 mins ago0xe8cd4cb68dd4c79d118368f36d8564f3134c180d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0x017e570a159cd7a079ff8faf107b46ceacc77d6c40f892e07e4e2b85ee3704f8Set Approval For...146771842022-01-25 15:25:4014 hrs 19 mins ago0xe8cd4cb68dd4c79d118368f36d8564f3134c180d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224305
0xb8308eecdd7dbb588c8ceef90fba54d6964c3d67a749f022a18b1c2cd6b1bafdSafe Transfer Fr...146766032022-01-25 14:56:2914 hrs 48 mins ago0x542ef3fdbd1bdb94f12df8c4d92bb3eda732ca17 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201625
0x644c5553d99b09b15cc5b8a4f23b4d51aac45e5e0c1f7e04eeee362bfc1a21d1Safe Transfer Fr...146765902022-01-25 14:55:4614 hrs 49 mins ago0x542ef3fdbd1bdb94f12df8c4d92bb3eda732ca17 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000126565
0x6070fcb3c73360bd5370b4c49be2a315607edb905738a55880237e4980317211Safe Transfer Fr...146765262022-01-25 14:52:1214 hrs 52 mins ago0xe8cd4cb68dd4c79d118368f36d8564f3134c180d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000201625
0x0d1e4d622fce4ba8794ba3fcaa1b64492a21db9b019acdd20edf28f89846a345Safe Transfer Fr...146765052022-01-25 14:51:0914 hrs 53 mins ago0xe8cd4cb68dd4c79d118368f36d8564f3134c180d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000276565
0x62c5d4fc2447b58aff22be6de31a5981def7bc52be51e7bef62c84d598550e78Set Approval For...146759942022-01-25 14:25:3615 hrs 19 mins ago0xe8cd4cb68dd4c79d118368f36d8564f3134c180d IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
0x1ff299b3c70a92d44ac48fe3f02e6fb78f5e88d02adccf95a3a8240f4a92869dSet Approval For...146756262022-01-25 14:07:1215 hrs 37 mins ago0x1944bb07311ce46c7f27d9a711cca586213d1ba1 IN  0xedee132fcf90fe3157c389706b30c6a1c7a6c88d0 BNB0.000224365
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Materials

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 17: Materials.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./SafeMath.sol";
import "./Ownable.sol";
import "./Context.sol";
import "./MinterRole.sol";
import "./Pausable.sol";
import "./ERC1155.sol";
import "./IMaterials.sol";


contract Materials is Context, Ownable, MinterRole, ERC1155, Pausable, IMaterials {
    using SafeMath for uint256;


    // id => amount
    mapping(uint256 => uint256) private _totalSupply;
    // id => material's name
    mapping(uint256 => string) private _materialName;


    constructor () public {
        _setMaterialName(0, "licence");
        _setMaterialName(1, "soil");
        _setMaterialName(2, "wood");
        _setMaterialName(3, "rock");
        _setMaterialName(4, "quartz");
        _setMaterialName(5, "iron");
        _setMaterialName(6, "brick");
        _setMaterialName(7, "timber");
        _setMaterialName(8, "stone");
        _setMaterialName(9, "glass");
        _setMaterialName(10, "steel");
        _setMaterialName(11, "nftLevel1");
        _setMaterialName(12, "nftLevel2");
        _setMaterialName(13, "nftLevel3");
        _setMaterialName(14, "nftLevel4");
        _setMaterialName(15, "nftLevel5");
        _setMaterialName(16, "nftLevel6");
        _setMaterialName(17, "insurancePoints");
        _setMaterialName(18, "collectionCard");
    }
    

    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function setMaterialName(uint256 id, string memory name) public onlyOwner {
        _setMaterialName(id, name);
    }

    function materialName(uint256 id) public override view returns (string memory) {
        return _materialName[id];
    }

    function totalSupply(uint256 id) public override view returns (uint256) {
        return _totalSupply[id];
    }

    function exists(uint256 id) public override view returns (bool) {
        return totalSupply(id) > 0 ? true : false;
    }

    function mint(address account, uint256 id, uint256 amount, bytes memory data) public override onlyMinter {
        _mint(account, id, amount, data);
        _totalSupply[id] = _totalSupply[id].add(amount);
    }

    function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public override onlyMinter {
        _mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] = _totalSupply[ids[i]].add(amounts[i]);
        }
    }

    function burn(address account, uint256 id, uint256 amount) public override {
        require(account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: Caller is not owner nor approved");
        _burn(account, id, amount);
        _totalSupply[id] = _totalSupply[id].sub(amount);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) public override {
        require(account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: Caller is not owner nor approved");
        _burnBatch(account, ids, amounts);
        for(uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] = _totalSupply[ids[i]].sub(amounts[i]);
        }
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    )
        internal virtual override
    {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }

    function _setMaterialName(uint256 id, string memory name) private {
        _materialName[id] = name;
    }

}

File 2 of 17: Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 17: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 4 of 17: Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./SafeMath.sol";

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

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

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

File 5 of 17: EnumerableMap.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

File 6 of 17: ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC1155.sol";
import "./IERC1155MetadataURI.sol";
import "./IERC1155Receiver.sol";
import "./Context.sol";
import "./ERC165.sol";
import "./SafeMath.sol";
import "./Address.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 SafeMath for uint256;
    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 substition, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /*
     *     bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
     *     bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
     *     bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
     *
     *     => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
     *        0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
     */
    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;

    /*
     *     bytes4(keccak256('uri(uint256)')) == 0x0e89341c
     */
    bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;

    /**
     * @dev See {_setURI}.
     */
    constructor () public {
        // _setURI(uri);

        // register the supported interfaces to conform to ERC1155 via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155);

        // register the supported interfaces to conform to ERC1155MetadataURI via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substituion 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) external view 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 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
        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) {
            require(accounts[i] != address(0), "ERC1155: batch balance query for the zero address");
            batchBalances[i] = _balances[ids[i]][accounts[i]];
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view 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(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        address operator = _msgSender();

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

        _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer");
        _balances[id][to] = _balances[id][to].add(amount);

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

        _doSafeTransferAcceptanceCheck(operator, 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(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );

        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];

            _balances[id][from] = _balances[id][from].sub(
                amount,
                "ERC1155: insufficient balance for transfer"
            );
            _balances[id][to] = _balances[id][to].add(amount);
        }

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].sub(
            amount,
            "ERC1155: burn amount exceeds balance"
        );

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

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

        address operator = _msgSender();

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

        for (uint i = 0; i < ids.length; i++) {
            _balances[ids[i]][account] = _balances[ids[i]][account].sub(
                amounts[i],
                "ERC1155: burn amount exceeds balance"
            );
        }

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

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

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    )
        private
    {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).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(to).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 17: ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 8 of 17: IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

import "./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 transfered 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 9 of 17: IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

import "./IERC1155.sol";

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

File 10 of 17: IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC165.sol";

/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

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

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

File 11 of 17: IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

File 12 of 17: IMaterials.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

interface IMaterials {
    
    function materialName(uint256 id) external view returns (string memory);

    function totalSupply(uint256 id) external view returns (uint256);

    function exists(uint256 id) external view returns (bool);

    function mint(address account, uint256 id, uint256 amount, bytes memory data) external;

    function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) external;

    function burn(address account, uint256 id, uint256 amount) external;

    function burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) external;
}

File 13 of 17: MinterRole.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "./Context.sol";
import "./Roles.sol";
import "./Ownable.sol";

contract MinterRole is Context, Ownable {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(_msgSender());
    }

    modifier onlyMinter() {
        require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public virtual onlyOwner {
        _addMinter(account);
    }

    function renounceMinter() public virtual {
        _removeMinter(_msgSender());
    }

    function _addMinter(address account) internal virtual {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal virtual {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

File 14 of 17: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./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.
 *
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 15 of 17: Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./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.
 */
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 () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view 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 16 of 17: Roles.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

File 17 of 17: SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","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":"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":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"materialName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setMaterialName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","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":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060006200001e62000477565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200007c6200007662000477565b6200047b565b6200008e6301ffc9a760e01b620004cd565b620000a0636cdb3d1360e11b620004cd565b620000b26303a24d0760e21b620004cd565b6006805460ff191690556040805180820190915260078152666c6963656e636560c81b6020820152620000e89060009062000552565b620001176001604051806040016040528060048152602001631cdbda5b60e21b8152506200055260201b60201c565b620001466002604051806040016040528060048152602001631ddbdbd960e21b8152506200055260201b60201c565b62000175600360405180604001604052806004815260200163726f636b60e01b8152506200055260201b60201c565b620001a660046040518060400160405280600681526020016538bab0b93a3d60d11b8152506200055260201b60201c565b620001d560056040518060400160405280600481526020016334b937b760e11b8152506200055260201b60201c565b62000205600660405180604001604052806005815260200164627269636b60d81b8152506200055260201b60201c565b620002366007604051806040016040528060068152602001653a34b6b132b960d11b8152506200055260201b60201c565b6200026660086040518060400160405280600581526020016473746f6e6560d81b8152506200055260201b60201c565b62000296600960405180604001604052806005815260200164676c61737360d81b8152506200055260201b60201c565b620002c6600a604051806040016040528060058152602001641cdd19595b60da1b8152506200055260201b60201c565b620002fa600b604051806040016040528060098152602001686e66744c6576656c3160b81b8152506200055260201b60201c565b6200032e600c6040518060400160405280600981526020016837333a2632bb32b61960b91b8152506200055260201b60201c565b62000362600d604051806040016040528060098152602001686e66744c6576656c3360b81b8152506200055260201b60201c565b62000396600e604051806040016040528060098152602001681b999d13195d995b0d60ba1b8152506200055260201b60201c565b620003ca600f604051806040016040528060098152602001686e66744c6576656c3560b81b8152506200055260201b60201c565b620003fe60106040518060400160405280600981526020016837333a2632bb32b61b60b91b8152506200055260201b60201c565b6200043860116040518060400160405280600f81526020016e696e737572616e6365506f696e747360881b8152506200055260201b60201c565b6200047160126040518060400160405280600e81526020016d18dbdb1b1958dd1a5bdb90d85c9960921b8152506200055260201b60201c565b62000701565b3390565b620004968160016200057860201b62001d3b1790919060201c565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6001600160e01b031980821614156200052d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600260205260409020805460ff19166001179055565b60008281526008602090815260409091208251620005739284019062000665565b505050565b620005848282620005fc565b15620005d7576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620006455760405162461bcd60e51b81526004018080602001828103825260228152602001806200392b6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006a857805160ff1916838001178555620006d8565b82800160010185558215620006d8579182015b82811115620006d8578251825591602001919060010190620006bb565b50620006e6929150620006ea565b5090565b5b80821115620006e65760008155600101620006eb565b61321a80620007116000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c8063731133e9116100de578063a22cb46511610097578063e985e9c511610071578063e985e9c514610bea578063f242432a14610c18578063f2fde38b14610ce1578063f5298aca14610d075761018d565b8063a22cb46514610b79578063aa271e1a14610ba7578063bd85b03914610bcd5761018d565b8063731133e9146109b45780638456cb5914610a745780638da5cb5b14610a7c578063983b2d5614610aa05780639865027514610ac6578063a05fd0b214610ace5761018d565b80633f4ba83a1161014b5780634f558e79116101255780634f558e79146108545780635c975abb146108715780636b20c45414610879578063715018a6146109ac5761018d565b80633f4ba83a146106bc5780634bf6ad23146106c45780634e1273f4146106e15761018d565b8062fdd58e1461019257806301ffc9a7146101d057806302fe53051461020b5780630e89341c146102b15780631f7fdffa146103435780632eb2c2d6146104fb575b600080fd5b6101be600480360360408110156101a857600080fd5b506001600160a01b038135169060200135610d39565b60408051918252519081900360200190f35b6101f7600480360360208110156101e657600080fd5b50356001600160e01b031916610da8565b604080519115158252519081900360200190f35b6102af6004803603602081101561022157600080fd5b810190602081018135600160201b81111561023b57600080fd5b82018360208201111561024d57600080fd5b803590602001918460018302840111600160201b8311171561026e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dc7945050505050565b005b6102ce600480360360208110156102c757600080fd5b5035610e2b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103085781810151838201526020016102f0565b50505050905090810190601f1680156103355780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102af6004803603608081101561035957600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561038357600080fd5b82018360208201111561039557600080fd5b803590602001918460208302840111600160201b831117156103b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040557600080fd5b82018360208201111561041757600080fd5b803590602001918460208302840111600160201b8311171561043857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561048757600080fd5b82018360208201111561049957600080fd5b803590602001918460018302840111600160201b831117156104ba57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ec3945050505050565b6102af600480360360a081101561051157600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561054457600080fd5b82018360208201111561055657600080fd5b803590602001918460208302840111600160201b8311171561057757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105c657600080fd5b8201836020820111156105d857600080fd5b803590602001918460208302840111600160201b831117156105f957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561064857600080fd5b82018360208201111561065a57600080fd5b803590602001918460018302840111600160201b8311171561067b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fae945050505050565b6102af6112b1565b6102ce600480360360208110156106da57600080fd5b5035611313565b610804600480360360408110156106f757600080fd5b810190602081018135600160201b81111561071157600080fd5b82018360208201111561072357600080fd5b803590602001918460208302840111600160201b8311171561074457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561079357600080fd5b8201836020820111156107a557600080fd5b803590602001918460208302840111600160201b831117156107c657600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061137d945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610840578181015183820152602001610828565b505050509050019250505060405180910390f35b6101f76004803603602081101561086a57600080fd5b50356114fb565b6101f761151c565b6102af6004803603606081101561088f57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156108b957600080fd5b8201836020820111156108cb57600080fd5b803590602001918460208302840111600160201b831117156108ec57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561093b57600080fd5b82018360208201111561094d57600080fd5b803590602001918460208302840111600160201b8311171561096e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611526945050505050565b6102af61162d565b6102af600480360360808110156109ca57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b811115610a0057600080fd5b820183602082011115610a1257600080fd5b803590602001918460018302840111600160201b83111715610a3357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116cf945050505050565b6102af611752565b610a846117b2565b604080516001600160a01b039092168252519081900360200190f35b6102af60048036036020811015610ab657600080fd5b50356001600160a01b03166117c1565b6102af611822565b6102af60048036036040811015610ae457600080fd5b81359190810190604081016020820135600160201b811115610b0557600080fd5b820183602082011115610b1757600080fd5b803590602001918460018302840111600160201b83111715610b3857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611832945050505050565b6102af60048036036040811015610b8f57600080fd5b506001600160a01b0381351690602001351515611898565b6101f760048036036020811015610bbd57600080fd5b50356001600160a01b0316611987565b6101be60048036036020811015610be357600080fd5b5035611994565b6101f760048036036040811015610c0057600080fd5b506001600160a01b03813581169160200135166119a6565b6102af600480360360a0811015610c2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610c6d57600080fd5b820183602082011115610c7f57600080fd5b803590602001918460018302840111600160201b83111715610ca057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506119d4945050505050565b6102af60048036036020811015610cf757600080fd5b50356001600160a01b0316611b9f565b6102af60048036036060811015610d1d57600080fd5b506001600160a01b038135169060208101359060400135611c97565b60006001600160a01b038316610d805760405162461bcd60e51b815260040180806020018281038252602b815260200180612eef602b913960400191505060405180910390fd5b5060009081526003602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526002602052604090205460ff1690565b610dcf611dbc565b6000546001600160a01b03908116911614610e1f576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b610e2881611dc0565b50565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610eb75780601f10610e8c57610100808354040283529160200191610eb7565b820191906000526020600020905b815481529060010190602001808311610e9a57829003601f168201915b50505050509050919050565b610ed3610ece611dbc565b611987565b610f0e5760405162461bcd60e51b81526004018080602001828103825260308152602001806130416030913960400191505060405180910390fd5b610f1a84848484611dd3565b60005b8351811015610fa757610f72838281518110610f3557fe5b602002602001015160076000878581518110610f4d57fe5b602002602001015181526020019081526020016000205461202190919063ffffffff16565b60076000868481518110610f8257fe5b6020026020010151815260200190815260200160002081905550806001019050610f1d565b5050505050565b8151835114610fee5760405162461bcd60e51b815260040180806020018281038252602881526020018061319c6028913960400191505060405180910390fd5b6001600160a01b0384166110335760405162461bcd60e51b8152600401808060200182810382526025815260200180612fea6025913960400191505060405180910390fd5b61103b611dbc565b6001600160a01b0316856001600160a01b03161480611066575061106685611061611dbc565b6119a6565b6110a15760405162461bcd60e51b815260040180806020018281038252603281526020018061300f6032913960400191505060405180910390fd5b60006110ab611dbc565b90506110bb818787878787612082565b60005b84518110156111c15760008582815181106110d557fe5b6020026020010151905060008583815181106110ed57fe5b6020026020010151905061115a816040518060600160405280602a81526020016130b5602a91396003600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546120d49092919063ffffffff16565b60008381526003602090815260408083206001600160a01b038e811685529252808320939093558a16815220546111919082612021565b60009283526003602090815260408085206001600160a01b038c16865290915290922091909155506001016110be565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561124757818101518382015260200161122f565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561128657818101518382015260200161126e565b5050505090500194505050505060405180910390a46112a981878787878761216b565b505050505050565b6112b9611dbc565b6000546001600160a01b03908116911614611309576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b6113116123ea565b565b60008181526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610eb75780601f10610e8c57610100808354040283529160200191610eb7565b606081518351146113bf5760405162461bcd60e51b81526004018080602001828103825260298152602001806131736029913960400191505060405180910390fd5b6060835167ffffffffffffffff811180156113d957600080fd5b50604051908082528060200260200182016040528015611403578160200160208202803683370190505b50905060005b84518110156114f35760006001600160a01b031685828151811061142957fe5b60200260200101516001600160a01b031614156114775760405162461bcd60e51b8152600401808060200182810382526031815260200180612f1a6031913960400191505060405180910390fd5b6003600085838151811061148757fe5b6020026020010151815260200190815260200160002060008683815181106114ab57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106114e057fe5b6020908102919091010152600101611409565b509392505050565b60008061150783611994565b11611513576000611516565b60015b92915050565b60065460ff165b90565b61152e611dbc565b6001600160a01b0316836001600160a01b03161480611554575061155483611061611dbc565b61158f5760405162461bcd60e51b81526004018080602001828103825260298152602001806130df6029913960400191505060405180910390fd5b61159a838383612488565b60005b8251811015611627576115f28282815181106115b557fe5b6020026020010151600760008685815181106115cd57fe5b60200260200101518152602001908152602001600020546126f690919063ffffffff16565b6007600085848151811061160257fe5b602002602001015181526020019081526020016000208190555080600101905061159d565b50505050565b611635611dbc565b6000546001600160a01b03908116911614611685576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6116da610ece611dbc565b6117155760405162461bcd60e51b81526004018080602001828103825260308152602001806130416030913960400191505060405180910390fd5b61172184848484612738565b60008381526007602052604090205461173a9083612021565b60009384526007602052604090932092909255505050565b61175a611dbc565b6000546001600160a01b039081169116146117aa576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b611311612839565b6000546001600160a01b031690565b6117c9611dbc565b6000546001600160a01b03908116911614611819576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b610e28816128ba565b61131161182d611dbc565b6128fc565b61183a611dbc565b6000546001600160a01b0390811691161461188a576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b611894828261293e565b5050565b816001600160a01b03166118aa611dbc565b6001600160a01b031614156118f05760405162461bcd60e51b815260040180806020018281038252602981526020018061314a6029913960400191505060405180910390fd5b80600460006118fd611dbc565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611941611dbc565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000611516600183612962565b60009081526007602052604090205490565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416611a195760405162461bcd60e51b8152600401808060200182810382526025815260200180612fea6025913960400191505060405180910390fd5b611a21611dbc565b6001600160a01b0316856001600160a01b03161480611a475750611a4785611061611dbc565b611a825760405162461bcd60e51b8152600401808060200182810382526029815260200180612fc16029913960400191505060405180910390fd5b6000611a8c611dbc565b9050611aac818787611a9d886129c9565b611aa6886129c9565b87612082565b611af3836040518060600160405280602a81526020016130b5602a913960008781526003602090815260408083206001600160a01b038d16845290915290205491906120d4565b60008581526003602090815260408083206001600160a01b038b81168552925280832093909355871681522054611b2a9084612021565b60008581526003602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46112a9818787878787612a0d565b611ba7611dbc565b6000546001600160a01b03908116911614611bf7576040805162461bcd60e51b81526020600482018190526024820152600080516020613108833981519152604482015290519081900360640190fd5b6001600160a01b038116611c3c5760405162461bcd60e51b8152600401808060200182810382526026815260200180612f4b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611c9f611dbc565b6001600160a01b0316836001600160a01b03161480611cc55750611cc583611061611dbc565b611d005760405162461bcd60e51b81526004018080602001828103825260298152602001806130df6029913960400191505060405180910390fd5b611d0b838383612b7e565b600082815260076020526040902054611d2490826126f6565b600092835260076020526040909220919091555050565b611d458282612962565b15611d97576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b3390565b8051611894906005906020840190612d54565b6001600160a01b038416611e185760405162461bcd60e51b81526004018080602001828103825260218152602001806131c46021913960400191505060405180910390fd5b8151835114611e585760405162461bcd60e51b815260040180806020018281038252602881526020018061319c6028913960400191505060405180910390fd5b6000611e62611dbc565b9050611e7381600087878787612082565b60005b8451811015611f3757611eee60036000878481518110611e9257fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611ed857fe5b602002602001015161202190919063ffffffff16565b60036000878481518110611efe57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611e76565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611fbe578181015183820152602001611fa6565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611ffd578181015183820152602001611fe5565b5050505090500194505050505060405180910390a4610fa78160008787878761216b565b60008282018381101561207b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6120908686868686866112a9565b61209861151c565b156112a95760405162461bcd60e51b815260040180806020018281038252602c815260200180612f95602c913960400191505060405180910390fd5b600081848411156121635760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612128578181015183820152602001612110565b50505050905090810190601f1680156121555780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b61217d846001600160a01b0316612cb1565b156112a957836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561220b5781810151838201526020016121f3565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561224a578181015183820152602001612232565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561228657818101518382015260200161226e565b50505050905090810190601f1680156122b35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156122d857600080fd5b505af19250505080156122fd57506040513d60208110156122f857600080fd5b505160015b61239257612309612ded565b80612314575061235b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315612128578181015183820152602001612110565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612e936034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146123e15760405162461bcd60e51b8152600401808060200182810382526028815260200180612ec76028913960400191505060405180910390fd5b50505050505050565b60065460ff16612438576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61246b611dbc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166124cd5760405162461bcd60e51b81526004018080602001828103825260238152602001806130926023913960400191505060405180910390fd5b805182511461250d5760405162461bcd60e51b815260040180806020018281038252602881526020018061319c6028913960400191505060405180910390fd5b6000612517611dbc565b905061253781856000868660405180602001604052806000815250612082565b60005b8351811015612615576125cc83828151811061255257fe5b6020026020010151604051806060016040528060248152602001612f71602491396003600088868151811061258357fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546120d49092919063ffffffff16565b600360008684815181106125dc57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161253a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561269c578181015183820152602001612684565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156126db5781810151838201526020016126c3565b5050505090500194505050505060405180910390a450505050565b600061207b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120d4565b6001600160a01b03841661277d5760405162461bcd60e51b81526004018080602001828103825260218152602001806131c46021913960400191505060405180910390fd5b6000612787611dbc565b905061279981600087611a9d886129c9565b60008481526003602090815260408083206001600160a01b03891684529091529020546127c69084612021565b60008581526003602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610fa781600087878787612a0d565b60065460ff1615612884576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861246b611dbc565b6128c5600182611d3b565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b612907600182612ced565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6000828152600860209081526040909120825161295d92840190612d54565b505050565b60006001600160a01b0382166129a95760405162461bcd60e51b81526004018080602001828103825260228152602001806131286022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106129fc57fe5b602090810291909101015292915050565b612a1f846001600160a01b0316612cb1565b156112a957836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612aae578181015183820152602001612a96565b50505050905090810190601f168015612adb5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015612afe57600080fd5b505af1925050508015612b2357506040513d6020811015612b1e57600080fd5b505160015b612b2f57612309612ded565b6001600160e01b0319811663f23a6e6160e01b146123e15760405162461bcd60e51b8152600401808060200182810382526028815260200180612ec76028913960400191505060405180910390fd5b6001600160a01b038316612bc35760405162461bcd60e51b81526004018080602001828103825260238152602001806130926023913960400191505060405180910390fd5b6000612bcd611dbc565b9050612bfd81856000612bdf876129c9565b612be8876129c9565b60405180602001604052806000815250612082565b612c4482604051806060016040528060248152602001612f716024913960008681526003602090815260408083206001600160a01b038b16845290915290205491906120d4565b60008481526003602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612ce557508115155b949350505050565b612cf78282612962565b612d325760405162461bcd60e51b81526004018080602001828103825260218152602001806130716021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d9557805160ff1916838001178555612dc2565b82800160010185558215612dc2579182015b82811115612dc2578251825591602001919060010190612da7565b50612dce929150612dd2565b5090565b5b80821115612dce5760008155600101612dd3565b60e01c90565b600060443d1015612dfd57611523565b600481823e6308c379a0612e118251612de7565b14612e1b57611523565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612e4b5750505050611523565b82840192508251915080821115612e655750505050611523565b503d83016020828401011115612e7d57505050611523565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2043616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212208d2bbc453fcc54362676eb3ea482a2e1f19fce2de732471cbcbeeb24fb1c7de464736f6c634300060c0033526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373

Deployed ByteCode Sourcemap

236:3730:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2894:220:3;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2894:220:3;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;948:140:4;;;;;;;;;;;;;;;;-1:-1:-1;948:140:4;-1:-1:-1;;;;;;948:140:4;;:::i;:::-;;;;;;;;;;;;;;;;;;1331:87:11;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1331:87:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1331:87:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1331:87:11;;-1:-1:-1;1331:87:11;;-1:-1:-1;;;;;1331:87:11:i;:::-;;2655:97:3;;;;;;;;;;;;;;;;-1:-1:-1;2655:97:3;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2270:310:11;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2270:310:11;;;;;;;;;;;;;;;-1:-1:-1;;;2270:310:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2270:310:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2270:310:11;;;;;;;;-1:-1:-1;2270:310:11;;-1:-1:-1;;;;;2270:310:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2270:310:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2270:310:11;;;;;;;;-1:-1:-1;2270:310:11;;-1:-1:-1;;;;;2270:310:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2270:310:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2270:310:11;;-1:-1:-1;2270:310:11;;-1:-1:-1;;;;;2270:310:11:i;5521:1184:3:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5521:1184:3;;;;;;;;-1:-1:-1;5521:1184:3;;-1:-1:-1;;;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5521:1184:3;;;;;;;;-1:-1:-1;5521:1184:3;;-1:-1:-1;;;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5521:1184:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5521:1184:3;;-1:-1:-1;5521:1184:3;;-1:-1:-1;;;;;5521:1184:3:i;1489:63:11:-;;;:::i;1681:120::-;;;;;;;;;;;;;;;;-1:-1:-1;1681:120:11;;:::i;3271:615:3:-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3271:615:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3271:615:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3271:615:3;;;;;;;;-1:-1:-1;3271:615:3;;-1:-1:-1;;;;;3271:615:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3271:615:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3271:615:3;;-1:-1:-1;3271:615:3;;-1:-1:-1;;;;;3271:615:3:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1925:122:11;;;;;;;;;;;;;;;;-1:-1:-1;1925:122:11;;:::i;1035:76:14:-;;;:::i;2897:413:11:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2897:413:11;;;;;;;;;;;;;;;-1:-1:-1;;;2897:413:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2897:413:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2897:413:11;;;;;;;;-1:-1:-1;2897:413:11;;-1:-1:-1;;;;;2897:413:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2897:413:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2897:413:11;;-1:-1:-1;2897:413:11;;-1:-1:-1;;;;;2897:413:11:i;1376:145:13:-;;;:::i;2053:211:11:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2053:211:11;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2053:211:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2053:211:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2053:211:11;;-1:-1:-1;2053:211:11;;-1:-1:-1;;;;;2053:211:11:i;1424:59::-;;;:::i;753:77:13:-;;;:::i;:::-;;;;-1:-1:-1;;;;;753:77:13;;;;;;;;;;;;;;663:97:12;;;;;;;;;;;;;;;;-1:-1:-1;663:97:12;-1:-1:-1;;;;;663:97:12;;:::i;766:85::-;;;:::i;1558:117:11:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1558:117:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1558:117:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1558:117:11;;-1:-1:-1;1558:117:11;;-1:-1:-1;;;;;1558:117:11:i;3954:306:3:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3954:306:3;;;;;;;;;;:::i;550:107:12:-;;;;;;;;;;;;;;;;-1:-1:-1;550:107:12;-1:-1:-1;;;;;550:107:12;;:::i;1807:112:11:-;;;;;;;;;;;;;;;;-1:-1:-1;1807:112:11;;:::i;4327:158:3:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4327:158:3;;;;;;;;;;:::i;4552:897::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4552:897:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4552:897:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4552:897:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4552:897:3;;-1:-1:-1;4552:897:3;;-1:-1:-1;;;;;4552:897:3:i;1670:240:13:-;;;;;;;;;;;;;;;;-1:-1:-1;1670:240:13;-1:-1:-1;;;;;1670:240:13;;:::i;2586:305:11:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2586:305:11;;;;;;;;;;;;;:::i;2894:220:3:-;2972:7;-1:-1:-1;;;;;2999:21:3;;2991:77;;;;-1:-1:-1;;;2991:77:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3085:13:3;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;3085:22:3;;;;;;;;;;;;2894:220::o;948:140:4:-;-1:-1:-1;;;;;;1048:33:4;1025:4;1048:33;;;:20;:33;;;;;;;;;948:140::o;1331:87:11:-;967:12:13;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;1396:15:11::1;1404:6;1396:7;:15::i;:::-;1331:87:::0;:::o;2655:97:3:-;2741:4;2734:11;;;;;;;;-1:-1:-1;;2734:11:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2709:13;;2734:11;;2741:4;;2734:11;;2741:4;2734:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2655:97;;;:::o;2270:310:11:-;451:22:12;460:12;:10;:12::i;:::-;451:8;:22::i;:::-;443:83;;;;-1:-1:-1;;;443:83:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2405:34:11::1;2416:2;2420:3;2425:7;2434:4;2405:10;:34::i;:::-;2454:9;2449:125;2473:3;:10;2469:1;:14;2449:125;;;2527:36;2552:7;2560:1;2552:10;;;;;;;;;;;;;;2527:12;:20;2540:3;2544:1;2540:6;;;;;;;;;;;;;;2527:20;;;;;;;;;;;;:24;;:36;;;;:::i;:::-;2504:12;:20;2517:3;2521:1;2517:6;;;;;;;;;;;;;;2504:20;;;;;;;;;;;:59;;;;2485:3;;;;;2449:125;;;;2270:310:::0;;;;:::o;5521:1184:3:-;5775:7;:14;5761:3;:10;:28;5753:81;;;;-1:-1:-1;;;5753:81:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5852:16:3;;5844:66;;;;-1:-1:-1;;;5844:66:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5949:12;:10;:12::i;:::-;-1:-1:-1;;;;;5941:20:3;:4;-1:-1:-1;;;;;5941:20:3;;:60;;;;5965:36;5982:4;5988:12;:10;:12::i;:::-;5965:16;:36::i;:::-;5920:157;;;;-1:-1:-1;;;5920:157:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6088:16;6107:12;:10;:12::i;:::-;6088:31;;6130:60;6151:8;6161:4;6167:2;6171:3;6176:7;6185:4;6130:20;:60::i;:::-;6206:9;6201:349;6225:3;:10;6221:1;:14;6201:349;;;6256:10;6269:3;6273:1;6269:6;;;;;;;;;;;;;;6256:19;;6289:14;6306:7;6314:1;6306:10;;;;;;;;;;;;;;6289:27;;6353:123;6394:6;6353:123;;;;;;;;;;;;;;;;;:9;:13;6363:2;6353:13;;;;;;;;;;;:19;6367:4;-1:-1:-1;;;;;6353:19:3;-1:-1:-1;;;;;6353:19:3;;;;;;;;;;;;;:23;;:123;;;;;:::i;:::-;6331:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;6331:19:3;;;;;;;;;;:145;;;;6510:17;;;;;;:29;;6532:6;6510:21;:29::i;:::-;6490:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;6490:17:3;;;;;;;;;;:49;;;;-1:-1:-1;6237:3:3;;6201:349;;;;6595:2;-1:-1:-1;;;;;6565:47:3;6589:4;-1:-1:-1;;;;;6565:47:3;6579:8;-1:-1:-1;;;;;6565:47:3;;6599:3;6604:7;6565:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6623:75;6659:8;6669:4;6675:2;6679:3;6684:7;6693:4;6623:35;:75::i;:::-;5521:1184;;;;;;:::o;1489:63:11:-;967:12:13;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;1535:10:11::1;:8;:10::i;:::-;1489:63::o:0;1681:120::-;1777:17;;;;:13;:17;;;;;;;;;1770:24;;;;;;-1:-1:-1;;1770:24:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1745:13;;1770:24;;;1777:17;1770:24;;;;;;;;;;;;;;;;;;;;;;;;3271:615:3;3428:16;3487:3;:10;3468:8;:15;:29;3460:83;;;;-1:-1:-1;;;3460:83:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3554:30;3601:8;:15;3587:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3587:30:3;;3554:63;;3633:9;3628:221;3652:8;:15;3648:1;:19;3628:221;;;3719:1;-1:-1:-1;;;;;3696:25:3;:8;3705:1;3696:11;;;;;;;;;;;;;;-1:-1:-1;;;;;3696:25:3;;;3688:87;;;;-1:-1:-1;;;3688:87:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3808:9;:17;3818:3;3822:1;3818:6;;;;;;;;;;;;;;3808:17;;;;;;;;;;;:30;3826:8;3835:1;3826:11;;;;;;;;;;;;;;-1:-1:-1;;;;;3808:30:3;-1:-1:-1;;;;;3808:30:3;;;;;;;;;;;;;3789:13;3803:1;3789:16;;;;;;;;;;;;;;;;;:49;3669:3;;3628:221;;;-1:-1:-1;3866:13:3;3271:615;-1:-1:-1;;;3271:615:3:o;1925:122:11:-;1983:4;2024:1;2006:15;2018:2;2006:11;:15::i;:::-;:19;:34;;2035:5;2006:34;;;2028:4;2006:34;1999:41;1925:122;-1:-1:-1;;1925:122:11:o;1035:76:14:-;1097:7;;;;1035:76;;:::o;2897:413:11:-;3026:12;:10;:12::i;:::-;-1:-1:-1;;;;;3015:23:11;:7;-1:-1:-1;;;;;3015:23:11;;:66;;;;3042:39;3059:7;3068:12;:10;:12::i;3042:39::-;3007:120;;;;-1:-1:-1;;;3007:120:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3137:33;3148:7;3157:3;3162:7;3137:10;:33::i;:::-;3184:9;3180:124;3203:3;:10;3199:1;:14;3180:124;;;3257:36;3282:7;3290:1;3282:10;;;;;;;;;;;;;;3257:12;:20;3270:3;3274:1;3270:6;;;;;;;;;;;;;;3257:20;;;;;;;;;;;;:24;;:36;;;;:::i;:::-;3234:12;:20;3247:3;3251:1;3247:6;;;;;;;;;;;;;;3234:20;;;;;;;;;;;:59;;;;3215:3;;;;;3180:124;;;;2897:413;;;:::o;1376:145:13:-;967:12;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;1482:1:::1;1466:6:::0;;1445:40:::1;::::0;-1:-1:-1;;;;;1466:6:13;;::::1;::::0;1445:40:::1;::::0;1482:1;;1445:40:::1;1512:1;1495:19:::0;;-1:-1:-1;;;;;;1495:19:13::1;::::0;;1376:145::o;2053:211:11:-;451:22:12;460:12;:10;:12::i;451:22::-;443:83;;;;-1:-1:-1;;;443:83:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2168:32:11::1;2174:7;2183:2;2187:6;2195:4;2168:5;:32::i;:::-;2229:16;::::0;;;:12:::1;:16;::::0;;;;;:28:::1;::::0;2250:6;2229:20:::1;:28::i;:::-;2210:16;::::0;;;:12:::1;:16;::::0;;;;;:47;;;;-1:-1:-1;;;2053:211:11:o;1424:59::-;967:12:13;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;1468:8:11::1;:6;:8::i;753:77:13:-:0;791:7;817:6;-1:-1:-1;;;;;817:6:13;753:77;:::o;663:97:12:-;967:12:13;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;734:19:12::1;745:7;734:10;:19::i;766:85::-:0;817:27;831:12;:10;:12::i;:::-;817:13;:27::i;1558:117:11:-;967:12:13;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;1642:26:11::1;1659:2;1663:4;1642:16;:26::i;:::-;1558:117:::0;;:::o;3954:306:3:-;4072:8;-1:-1:-1;;;;;4056:24:3;:12;:10;:12::i;:::-;-1:-1:-1;;;;;4056:24:3;;;4048:78;;;;-1:-1:-1;;;4048:78:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4182:8;4137:18;:32;4156:12;:10;:12::i;:::-;-1:-1:-1;;;;;4137:32:3;;;;;;;;;;;;;;;;;-1:-1:-1;4137:32:3;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;4137:53:3;;;;;;;;;;;4220:12;:10;:12::i;:::-;-1:-1:-1;;;;;4205:48:3;;4244:8;4205:48;;;;;;;;;;;;;;;;;;;;3954:306;;:::o;550:107:12:-;606:4;629:21;:8;642:7;629:12;:21::i;1807:112:11:-;1870:7;1896:16;;;:12;:16;;;;;;;1807:112::o;4327:158:3:-;-1:-1:-1;;;;;4441:27:3;;;4418:4;4441:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;4327:158::o;4552:897::-;-1:-1:-1;;;;;4767:16:3;;4759:66;;;;-1:-1:-1;;;4759:66:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4864:12;:10;:12::i;:::-;-1:-1:-1;;;;;4856:20:3;:4;-1:-1:-1;;;;;4856:20:3;;:60;;;;4880:36;4897:4;4903:12;:10;:12::i;4880:36::-;4835:148;;;;-1:-1:-1;;;4835:148:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4994:16;5013:12;:10;:12::i;:::-;4994:31;;5036:96;5057:8;5067:4;5073:2;5077:21;5095:2;5077:17;:21::i;:::-;5100:25;5118:6;5100:17;:25::i;:::-;5127:4;5036:20;:96::i;:::-;5165:77;5189:6;5165:77;;;;;;;;;;;;;;;;;:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;5165:19:3;;;;;;;;;;;:77;:23;:77::i;:::-;5143:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;5143:19:3;;;;;;;;;;:99;;;;5272:17;;;;;;:29;;5294:6;5272:21;:29::i;:::-;5252:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;5252:17:3;;;;;;;;;;;;;:49;;;;5317:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5374:68;5405:8;5415:4;5421:2;5425;5429:6;5437:4;5374:30;:68::i;1670:240:13:-;967:12;:10;:12::i;:::-;957:6;;-1:-1:-1;;;;;957:6:13;;;:22;;;949:67;;;;;-1:-1:-1;;;949:67:13;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;949:67:13;;;;;;;;;;;;;;;-1:-1:-1;;;;;1758:22:13;::::1;1750:73;;;;-1:-1:-1::0;;;1750:73:13::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1859:6;::::0;;1838:38:::1;::::0;-1:-1:-1;;;;;1838:38:13;;::::1;::::0;1859:6;::::1;::::0;1838:38:::1;::::0;::::1;1886:6;:17:::0;;-1:-1:-1;;;;;;1886:17:13::1;-1:-1:-1::0;;;;;1886:17:13;;;::::1;::::0;;;::::1;::::0;;1670:240::o;2586:305:11:-;2690:12;:10;:12::i;:::-;-1:-1:-1;;;;;2679:23:11;:7;-1:-1:-1;;;;;2679:23:11;;:66;;;;2706:39;2723:7;2732:12;:10;:12::i;2706:39::-;2671:120;;;;-1:-1:-1;;;2671:120:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2801:26;2807:7;2816:2;2820:6;2801:5;:26::i;:::-;2856:16;;;;:12;:16;;;;;;:28;;2877:6;2856:20;:28::i;:::-;2837:16;;;;:12;:16;;;;;;:47;;;;-1:-1:-1;;2586:305:11:o;292:175:15:-;369:18;373:4;379:7;369:3;:18::i;:::-;368:19;360:63;;;;;-1:-1:-1;;;360:63:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;433:20:15;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;433:27:15;456:4;433:27;;;292:175::o;590:104:1:-;677:10;590:104;:::o;7526:86:3:-;7592:13;;;;:4;;:13;;;;;:::i;8912:700::-;-1:-1:-1;;;;;9046:16:3;;9038:62;;;;-1:-1:-1;;;9038:62:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9132:7;:14;9118:3;:10;:28;9110:81;;;;-1:-1:-1;;;9110:81:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9202:16;9221:12;:10;:12::i;:::-;9202:31;;9244:66;9265:8;9283:1;9287:2;9291:3;9296:7;9305:4;9244:20;:66::i;:::-;9326:6;9321:124;9342:3;:10;9338:1;:14;9321:124;;;9397:37;9412:9;:17;9422:3;9426:1;9422:6;;;;;;;;;;;;;;9412:17;;;;;;;;;;;:21;9430:2;-1:-1:-1;;;;;9412:21:3;-1:-1:-1;;;;;9412:21:3;;;;;;;;;;;;;9397:7;9405:1;9397:10;;;;;;;;;;;;;;:14;;:37;;;;:::i;:::-;9373:9;:17;9383:3;9387:1;9383:6;;;;;;;;;;;;;;;;;;;9373:17;;;;;;;;;;;;;-1:-1:-1;9373:17:3;;;-1:-1:-1;;;;;9373:21:3;;;;;;;;;:61;9354:3;;9321:124;;;;9496:2;-1:-1:-1;;;;;9460:53:3;9492:1;-1:-1:-1;;;;;9460:53:3;9474:8;-1:-1:-1;;;;;9460:53:3;;9500:3;9505:7;9460:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9524:81;9560:8;9578:1;9582:2;9586:3;9591:7;9600:4;9524:35;:81::i;874:176:16:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:16:o;3457:393:11:-;3700:66;3727:8;3737:4;3743:2;3747:3;3752:7;3761:4;3700:26;:66::i;:::-;3786:8;:6;:8::i;:::-;3785:9;3777:66;;;;-1:-1:-1;;;3777:66:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1746:187:16;1832:7;1867:12;1859:6;;;;1851:29;;;;-1:-1:-1;;;1851:29:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1902:5:16;;;1746:187::o;13212:778:3:-;13456:15;:2;-1:-1:-1;;;;;13456:13:3;;:15::i;:::-;13452:532;;;13508:2;-1:-1:-1;;;;;13491:43:3;;13535:8;13545:4;13551:3;13556:7;13565:4;13491:79;;;;;;;;;;;;;-1:-1:-1;;;;;13491:79:3;;;;;;-1:-1:-1;;;;;13491:79:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13491:79:3;;;13487:487;;;;:::i;:::-;;;;;;;;13843:14;;-1:-1:-1;;;13843:14:3;;;;;;;;;;;;;;;;;13850:6;;13843:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13487:487;13897:62;;-1:-1:-1;;;13897:62:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13487:487;-1:-1:-1;;;;;;13619:64:3;;-1:-1:-1;;;13619:64:3;13615:161;;13707:50;;-1:-1:-1;;;13707:50:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13615:161;13571:219;13212:778;;;;;;:::o;2037:117:14:-;1605:7;;;;1597:40;;;;;-1:-1:-1;;;1597:40:14;;;;;;;;;;;;-1:-1:-1;;;1597:40:14;;;;;;;;;;;;;;;2095:7:::1;:15:::0;;-1:-1:-1;;2095:15:14::1;::::0;;2125:22:::1;2134:12;:10;:12::i;:::-;2125:22;::::0;;-1:-1:-1;;;;;2125:22:14;;::::1;::::0;;;;;;;::::1;::::0;;::::1;2037:117::o:0;10593:705:3:-;-1:-1:-1;;;;;10713:21:3;;10705:69;;;;-1:-1:-1;;;10705:69:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10806:7;:14;10792:3;:10;:28;10784:81;;;;-1:-1:-1;;;10784:81:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10876:16;10895:12;:10;:12::i;:::-;10876:31;;10918:69;10939:8;10949:7;10966:1;10970:3;10975:7;10918:69;;;;;;;;;;;;:20;:69::i;:::-;11003:6;10998:220;11019:3;:10;11015:1;:14;10998:220;;;11079:128;11127:7;11135:1;11127:10;;;;;;;;;;;;;;11079:128;;;;;;;;;;;;;;;;;:9;:17;11089:3;11093:1;11089:6;;;;;;;;;;;;;;11079:17;;;;;;;;;;;:26;11097:7;-1:-1:-1;;;;;11079:26:3;-1:-1:-1;;;;;11079:26:3;;;;;;;;;;;;;:30;;:128;;;;;:::i;:::-;11050:9;:17;11060:3;11064:1;11060:6;;;;;;;;;;;;;;;;;;;11050:17;;;;;;;;;;;;;-1:-1:-1;11050:17:3;;;-1:-1:-1;;;;;11050:26:3;;;;;;;;;:157;11031:3;;10998:220;;;;11274:1;-1:-1:-1;;;;;11233:58:3;11257:7;-1:-1:-1;;;;;11233:58:3;11247:8;-1:-1:-1;;;;;11233:58:3;;11278:3;11283:7;11233:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10593:705;;;;:::o;1321:134:16:-;1379:7;1405:43;1409:1;1412;1405:43;;;;;;;;;;;;;;;;;:3;:43::i;7995:572:3:-;-1:-1:-1;;;;;8109:21:3;;8101:67;;;;-1:-1:-1;;;8101:67:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8179:16;8198:12;:10;:12::i;:::-;8179:31;;8221:107;8242:8;8260:1;8264:7;8273:21;8291:2;8273:17;:21::i;8221:107::-;8364:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;8364:22:3;;;;;;;;;;:34;;8391:6;8364:26;:34::i;:::-;8339:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;8339:22:3;;;;;;;;;;;;:59;;;;8413:57;;;;;;;;;;;;;8339:22;;8413:57;;;;;;;;;;;;8481:79;8512:8;8530:1;8534:7;8543:2;8547:6;8555:4;8481:30;:79::i;1790:115:14:-;1341:7;;;;1340:8;1332:37;;;;;-1:-1:-1;;;1332:37:14;;;;;;;;;;;;-1:-1:-1;;;1332:37:14;;;;;;;;;;;;;;;1849:7:::1;:14:::0;;-1:-1:-1;;1849:14:14::1;1859:4;1849:14;::::0;;1878:20:::1;1885:12;:10;:12::i;857:127:12:-:0;921:21;:8;934:7;921:12;:21::i;:::-;957:20;;-1:-1:-1;;;;;957:20:12;;;;;;;;857:127;:::o;990:135::-;1057:24;:8;1073:7;1057:15;:24::i;:::-;1096:22;;-1:-1:-1;;;;;1096:22:12;;;;;;;;990:135;:::o;3856:107:11:-;3932:17;;;;:13;:17;;;;;;;;:24;;;;;;;;:::i;:::-;;3856:107;;:::o;811:200:15:-;883:4;-1:-1:-1;;;;;907:21:15;;899:68;;;;-1:-1:-1;;;899:68:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;984:20:15;:11;:20;;;;;;;;;;;;;;;811:200::o;13996:193:3:-;14115:16;;;14129:1;14115:16;;;;;;;;;14062;;;;14115;;;;;;;;;;;;-1:-1:-1;14115:16:3;14090:41;;14152:7;14141:5;14147:1;14141:8;;;;;;;;;;;;;;;;;:18;14177:5;13996:193;-1:-1:-1;;13996:193:3:o;12465:741::-;12684:15;:2;-1:-1:-1;;;;;12684:13:3;;:15::i;:::-;12680:520;;;12736:2;-1:-1:-1;;;;;12719:38:3;;12758:8;12768:4;12774:2;12778:6;12786:4;12719:72;;;;;;;;;;;;;-1:-1:-1;;;;;12719:72:3;;;;;;-1:-1:-1;;;;;12719:72:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12719:72:3;;;12715:475;;;;:::i;:::-;-1:-1:-1;;;;;;12840:59:3;;-1:-1:-1;;;12840:59:3;12836:156;;12923:50;;-1:-1:-1;;;12923:50:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9861:538;-1:-1:-1;;;;;9956:21:3;;9948:69;;;;-1:-1:-1;;;9948:69:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10028:16;10047:12;:10;:12::i;:::-;10028:31;;10070:105;10091:8;10101:7;10118:1;10122:21;10140:2;10122:17;:21::i;:::-;10145:25;10163:6;10145:17;:25::i;:::-;10070:105;;;;;;;;;;;;:20;:105::i;:::-;10211:108;10251:6;10211:108;;;;;;;;;;;;;;;;;:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;10211:22:3;;;;;;;;;;;:108;:26;:108::i;:::-;10186:13;;;;:9;:13;;;;;;;;-1:-1:-1;;;;;10186:22:3;;;;;;;;;;;;:133;;;;10335:57;;;;;;;;;;;;;10186:13;;:22;;10335:57;;;;;;;;;;;;;9861:538;;;;:::o;718:610:0:-;778:4;1239:20;;1084:66;1278:23;;;;;;:42;;-1:-1:-1;1305:15:0;;;1278:42;1270:51;718:610;-1:-1:-1;;;;718:610:0:o;542:180:15:-;621:18;625:4;631:7;621:3;:18::i;:::-;613:64;;;;-1:-1:-1;;;613:64:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;687:20:15;710:5;687:20;;;;;;;;;;;:28;;-1:-1:-1;;687:28:15;;;542:180::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;110:106;195:3;191:15;;163:53::o;224:739::-;;297:4;279:16;276:26;273:2;;;305:5;;273:2;339:1;-1:-1;;318:23;414:10;357:34;-1:-1;382:8;357:34;:::i;:::-;406:19;396:2;;429:5;;396:2;460;454:9;496:16;-1:-1;;492:24;339:1;454:9;468:49;543:4;537:11;624:16;576:18;624:16;617:4;609:6;605:17;602:39;576:18;568:6;565:30;556:91;553:2;;;655:5;;;;;;553:2;693:6;687:4;683:17;672:28;;725:3;719:10;705:24;;576:18;740:6;737:30;734:2;;;770:5;;;;;;734:2;;847:16;841:4;837:27;807:4;814:6;802:3;794:27;;829:36;826:2;;;868:5;;;;;826:2;89:7;73:14;-1:-1;;69:28;892:50;;807:4;892:50;460:2;881:62;900:3;-1:-1;;267:696;:::o

Swarm Source

ipfs://8d2bbc453fcc54362676eb3ea482a2e1f19fce2de732471cbcbeeb24fb1c7de4
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.