MATIC Price: $0.355177 (-21.25%)
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Add Query602213272024-08-05 11:47:0630 secs ago1722858426IN
0xF994b03D...620baE2c6
0 MATIC0.01581666262.97563154
Add Validation602213242024-08-05 11:47:0036 secs ago1722858420IN
0xF994b03D...620baE2c6
0 MATIC0.07691907262.59772959
Add Validation602213192024-08-05 11:46:5046 secs ago1722858410IN
0xF994b03D...620baE2c6
0 MATIC0.06884197235.02293592
Add Validation602213192024-08-05 11:46:5046 secs ago1722858410IN
0xF994b03D...620baE2c6
0 MATIC0.06884197235.02293592
Add Validation602213192024-08-05 11:46:5046 secs ago1722858410IN
0xF994b03D...620baE2c6
0 MATIC0.07215411246.3405073
Add Validation602213162024-08-05 11:46:4452 secs ago1722858404IN
0xF994b03D...620baE2c6
0 MATIC0.06884197235.02293592
Add Validation602213162024-08-05 11:46:4452 secs ago1722858404IN
0xF994b03D...620baE2c6
0 MATIC0.06884197235.02293592
Add Validation602213142024-08-05 11:46:4056 secs ago1722858400IN
0xF994b03D...620baE2c6
0 MATIC0.07230913233.27934116
Add Validation602213132024-08-05 11:46:3858 secs ago1722858398IN
0xF994b03D...620baE2c6
0 MATIC0.06676184227.92147018
Add Validation602213132024-08-05 11:46:3858 secs ago1722858398IN
0xF994b03D...620baE2c6
0 MATIC0.06676184227.92147018
Add Validation602213082024-08-05 11:46:261 min ago1722858386IN
0xF994b03D...620baE2c6
0 MATIC0.07181758245.18148566
Add Validation602213022024-08-05 11:46:141 min ago1722858374IN
0xF994b03D...620baE2c6
0 MATIC0.08040706259.36424481
Add Query602212972024-08-05 11:46:041 min ago1722858364IN
0xF994b03D...620baE2c6
0 MATIC0.01511203250.75979607
Add Validation602212902024-08-05 11:45:481 min ago1722858348IN
0xF994b03D...620baE2c6
0 MATIC0.07256771247.78299562
Add Validation602212882024-08-05 11:45:441 min ago1722858344IN
0xF994b03D...620baE2c6
0 MATIC0.07309463249.5821945
Add Validation602212852024-08-05 11:45:381 min ago1722858338IN
0xF994b03D...620baE2c6
0 MATIC0.07625319260.36712357
Add Validation602212852024-08-05 11:45:381 min ago1722858338IN
0xF994b03D...620baE2c6
0 MATIC0.07625319260.36712357
Add Validation602212852024-08-05 11:45:381 min ago1722858338IN
0xF994b03D...620baE2c6
0 MATIC0.07518995256.73667528
Add Validation602212842024-08-05 11:45:362 mins ago1722858336IN
0xF994b03D...620baE2c6
0 MATIC0.07518995256.73667528
Add Validation602212822024-08-05 11:45:322 mins ago1722858332IN
0xF994b03D...620baE2c6
0 MATIC0.07489799255.73978297
Add Validation602212812024-08-05 11:45:302 mins ago1722858330IN
0xF994b03D...620baE2c6
0 MATIC0.07489799255.73978297
Add Validation602212732024-08-05 11:45:122 mins ago1722858312IN
0xF994b03D...620baE2c6
0 MATIC0.07463985240.79859744
Add Query602212702024-08-05 11:45:062 mins ago1722858306IN
0xF994b03D...620baE2c6
0 MATIC0.01572046261.4282732
Add Validation602212642024-08-05 11:44:542 mins ago1722858294IN
0xF994b03D...620baE2c6
0 MATIC0.06911406235.97116152
Add Validation602212642024-08-05 11:44:542 mins ago1722858294IN
0xF994b03D...620baE2c6
0 MATIC0.07000326239.00709257
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
602158432024-08-05 8:23:503 hrs ago1722846230
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
602115762024-08-05 5:43:366 hrs ago1722836616
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601947922024-08-04 19:11:5716 hrs ago1722798717
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601909922024-08-04 16:48:5118 hrs ago1722790131
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601829522024-08-04 11:57:2223 hrs ago1722772642
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601733842024-08-04 6:09:0829 hrs ago1722751748
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601649452024-08-04 0:53:3634 hrs ago1722732816
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601555702024-08-03 19:15:0440 hrs ago1722712504
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601544732024-08-03 18:34:3641 hrs ago1722710076
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601537972024-08-03 18:09:0441 hrs ago1722708544
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601488882024-08-03 15:02:1744 hrs ago1722697337
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601426732024-08-03 11:09:232 days ago1722683363
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601425412024-08-03 11:04:092 days ago1722683049
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601421492024-08-03 10:49:452 days ago1722682185
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601419692024-08-03 10:42:512 days ago1722681771
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601417302024-08-03 10:33:512 days ago1722681231
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601415582024-08-03 10:27:452 days ago1722680865
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601407842024-08-03 9:58:452 days ago1722679125
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601407822024-08-03 9:58:392 days ago1722679119
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601406822024-08-03 9:55:072 days ago1722678907
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601336322024-08-03 5:34:042 days ago1722663244
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601220062024-08-02 22:29:242 days ago1722637764
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601164812024-08-02 19:13:442 days ago1722626024
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601102522024-08-02 15:19:102 days ago1722611950
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
601098562024-08-02 15:04:062 days ago1722611046
0xF994b03D...620baE2c6
 Contract Creation0 MATIC
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Master

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-12-07
*/

// SPDX-License-Identifier: MIXED

// File contracts/IMaster.sol
// License-Identifier: UNLICENSED

pragma solidity 0.8.16;

interface IMaster {
  event ValidatorRegistered(
    address validatorAddress,
    address validatorContract,
    uint256 stakedAmount
  );

  event ValidatorNFTMinted(address validatorAddress, uint256 tokenId);

  event PoolRegistered(address poolAddress, string poolName);

  function tokenAddress() external view returns (address);

  function nftAddress() external view returns (address);

  function closeValidator(address _validatorAddress) external;
}

// File @openzeppelin/contracts/utils/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File @openzeppelin/contracts/access/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

// File contracts/Pool.sol
// License-Identifier: UNLICENSED

pragma solidity 0.8.16;

contract Pool is Ownable {
  string public name;

  mapping(string => bool) public queryUrls;
  mapping(string => string[]) public queries;
  mapping(string => mapping(address => string)) private _validatedQueries;

  event QueryAdded(string queryUrl);

  event QueryValidationAdded(string queryUrl, address validator, string validatedQuery);

  constructor(string memory _name) {
    name = _name;
  }

  function addQuery(string memory _queryUrl) external onlyOwner {
    require(!queryUrls[_queryUrl], 'Query URL already exists');

    queryUrls[_queryUrl] = true;

    emit QueryAdded(_queryUrl);
  }

  function addValidation(
    string memory _queryUrl,
    address _validator,
    string memory _validatedQuery
  ) external onlyOwner {
    require(queryUrls[_queryUrl], 'Query URL not exists');

    require(
      bytes(_validatedQueries[_queryUrl][_validator]).length == 0,
      'Validation already exists'
    );

    _validatedQueries[_queryUrl][_validator] = _validatedQuery;
    queries[_queryUrl].push(_validatedQuery);

    emit QueryValidationAdded(_queryUrl, _validator, _validatedQuery);
  }

  function queryValidations(string memory _queryUrl) public view returns (string[] memory) {
    return queries[_queryUrl];
  }

  function queryValidationByValidator(string memory _queryUrl, address _validatorAddress)
    public
    view
    returns (string memory)
  {
    return _validatedQueries[_queryUrl][_validatorAddress];
  }
}

// File @openzeppelin/contracts/token/ERC20/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

// File @openzeppelin/contracts/utils/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC20/utils/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

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

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

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

// File contracts/Validator.sol
// License-Identifier: UNLICENSED

pragma solidity 0.8.16;



contract Validator is Ownable {
  using SafeERC20 for IERC20;

  address public immutable validatorAddress;
  address public immutable masterContractAddress;

  uint256 public stakedAmount;
  uint256 public validatedQueriesCount;
  uint256 public earnings;

  mapping(string => string) private _queries;

  event ValidatorRewarded(address validatorAddress, uint256 amount);
  event ValidatorEarningsWithdrawn(address validatorAddress, uint256 amount);
  event ValidatorClosed(address validatorAddress, uint256 stakedAmount, uint256 earnings);
  event ValidatorValidationAdded(string queryURL, string validatedQuery);

  constructor(
    address _masterContractAddress,
    address _validatorAddress,
    uint256 _stakedAmount
  ) {
    require(_masterContractAddress != address(0), 'Master contract address should not be zero');
    require(_validatorAddress != address(0), 'Validator address should not be zero');

    masterContractAddress = _masterContractAddress;
    validatorAddress = _validatorAddress;
    stakedAmount = _stakedAmount;
  }

  function addValidation(string memory _queryURL, string memory _validatedQuery)
    external
    onlyOwner
  {
    _queries[_queryURL] = _validatedQuery;
    validatedQueriesCount += 1;

    emit ValidatorValidationAdded(_queryURL, _validatedQuery);
  }

  function addEarnings(uint256 _amount) external onlyOwner {
    earnings += _amount;

    emit ValidatorRewarded(validatorAddress, _amount);
  }

  function withdrawEarnings() external onlyOwner {
    IMaster master = IMaster(masterContractAddress);
    IERC20 token = IERC20(master.tokenAddress());

    token.safeTransferFrom(masterContractAddress, validatorAddress, earnings);

    emit ValidatorEarningsWithdrawn(validatorAddress, earnings);

    earnings = 0;
  }

  function close() external onlyOwner {
    IMaster master = IMaster(masterContractAddress);
    IERC20 token = IERC20(master.tokenAddress());

    token.safeTransferFrom(masterContractAddress, validatorAddress, stakedAmount + earnings);

    emit ValidatorClosed(validatorAddress, stakedAmount, earnings);

    stakedAmount = 0;
    earnings = 0;
  }

  function validatedQuery(string memory _queryUrl) public view returns (string memory) {
    return _queries[_queryUrl];
  }
}

// File @openzeppelin/contracts/utils/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

// File @openzeppelin/contracts/utils/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File @openzeppelin/contracts/utils/introspection/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File @openzeppelin/contracts/utils/introspection/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

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

// File @openzeppelin/contracts/token/ERC721/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File @openzeppelin/contracts/token/ERC721/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File @openzeppelin/contracts/token/ERC721/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

// File contracts/NFT.sol
// License-Identifier: UNLICENSED

pragma solidity 0.8.16;





contract NFT is ERC721URIStorage, Ownable {
  using Counters for Counters.Counter;
  Counters.Counter private _tokenIds;

  Counters.Counter private _totalSupply;

  constructor(string memory _nftName, string memory _nftSymbol) ERC721(_nftName, _nftSymbol) {}

  function totalSupply() public view returns (uint256) {
    return _totalSupply.current();
  }

  function createValidatorNFT(address _validatorAddress, address _contractAddress)
    external
    onlyOwner
    returns (uint256)
  {
    _tokenIds.increment();

    uint256 newItemId = _tokenIds.current();
    _mint(_validatorAddress, newItemId);
    _setTokenURI(newItemId, Strings.toHexString(uint160(_contractAddress), 20));

    _totalSupply.increment();

    return newItemId;
  }

  function burn(uint256 _tokenId) external onlyOwner {
    _burn(_tokenId);

    _totalSupply.decrement();
  }
}

// File @openzeppelin/contracts/access/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/access/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;




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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// File contracts/Master.sol
// License-Identifier: UNLICENSED

pragma solidity 0.8.16;









contract Master is IMaster, AccessControl {
  using SafeERC20 for IERC20;

  address public immutable tokenAddress;
  address public immutable nftAddress;

  bytes32 public constant OWNER_ROLE = keccak256('OWNER');
  bytes32 public constant ADMIN_ROLE = keccak256('ADMIN');

  mapping(string => address) private _pools;
  mapping(address => address) private _validators;
  mapping(address => mapping(string => bool)) private _validatorValidatedQueries;

  constructor(
    string memory _nftName,
    string memory _nftSymbol,
    address _tokenContractAddress
  ) {
    require(_tokenContractAddress != address(0), 'Should pass non-zero token address');

    tokenAddress = _tokenContractAddress;

    NFT nft = new NFT(_nftName, _nftSymbol);
    nftAddress = address(nft);

    _grantRole(OWNER_ROLE, msg.sender);
    _setRoleAdmin(OWNER_ROLE, OWNER_ROLE);
    _setRoleAdmin(ADMIN_ROLE, OWNER_ROLE);
  }

  modifier onlyOwner() {
    require(hasRole(OWNER_ROLE, msg.sender), 'Caller is not the owner');
    _;
  }

  modifier onlyAdmin() {
    require(hasRole(ADMIN_ROLE, msg.sender), 'Caller is not the admin');
    _;
  }

  // --- Validators
  modifier existedValidator(address _validatorAddress) {
    require(_validatorAddress != address(0), 'Validator address should be non-zero');
    require(_validators[_validatorAddress] != address(0), 'Validator is not registered');
    _;
  }

  function _createValidatorNFT(address _validatorAddress, address _contractAddress)
    private
    returns (uint256)
  {
    uint256 itemId = NFT(nftAddress).createValidatorNFT(_validatorAddress, _contractAddress);

    emit ValidatorNFTMinted(_validatorAddress, itemId);

    return itemId;
  }

  function registerValidator(address _validatorAddress, uint256 _stakedAmount)
    external
    onlyAdmin
    returns (uint256)
  {
    require(_validatorAddress != address(0), 'Validator address should be non-zero');
    require(_validators[_validatorAddress] == address(0), 'Validator already registered');

    IERC20 token = IERC20(tokenAddress);

    require(
      token.allowance(_validatorAddress, address(this)) >= _stakedAmount,
      'Stacked amount not allowed to be spent'
    );

    Validator validator = new Validator(address(this), _validatorAddress, _stakedAmount);
    _validators[_validatorAddress] = address(validator);

    token.safeTransferFrom(_validatorAddress, address(this), _stakedAmount);
    token.safeIncreaseAllowance(address(validator), _stakedAmount);

    emit ValidatorRegistered(_validatorAddress, address(validator), _stakedAmount);

    return _createValidatorNFT(_validatorAddress, address(validator));
  }

  function rewardValidator(address _validatorAddress, uint256 _amount)
    external
    onlyAdmin
    existedValidator(_validatorAddress)
  {
    require(_amount > 0, 'Amount should be greater than zero');

    IERC20 token = IERC20(tokenAddress);

    require(
      token.allowance(msg.sender, address(this)) >= _amount,
      'Amount not allowed to be spent'
    );

    token.safeTransferFrom(msg.sender, address(this), _amount);
    token.safeIncreaseAllowance(_validators[_validatorAddress], _amount);

    Validator(_validators[_validatorAddress]).addEarnings(_amount);
  }

  function addValidation(
    address _validatorAddress,
    string memory _poolName,
    string memory _queryUrl,
    string memory _validatedQuery
  ) external onlyAdmin existedValidator(_validatorAddress) existedPool(_poolName) {
    require(bytes(_validatedQuery).length != 0, 'Validated Query cannot be empty');
    require(
      !_validatorValidatedQueries[_validatorAddress][_validatedQuery],
      'Cannot add the same Validated Query'
    );

    Pool(_pools[_poolName]).addValidation(_queryUrl, _validatorAddress, _validatedQuery);
    Validator(_validators[_validatorAddress]).addValidation(_queryUrl, _validatedQuery);

    _validatorValidatedQueries[_validatorAddress][_validatedQuery] = true;
  }

  function withdrawValidatorEarnings(address _validatorAddress)
    external
    onlyAdmin
    existedValidator(_validatorAddress)
  {
    Validator(_validators[_validatorAddress]).withdrawEarnings();
  }

  function closeValidator(address _validatorAddress)
    external
    onlyAdmin
    existedValidator(_validatorAddress)
  {
    Validator(_validators[_validatorAddress]).close();

    delete _validators[_validatorAddress];
  }

  function validatorContract(address _validatorAddress) public view returns (address) {
    return _validators[_validatorAddress];
  }

  // --- Pools

  modifier existedPool(string memory _poolName) {
    require(_pools[_poolName] != address(0), 'Pool not registered');
    _;
  }

  function registerPool(string memory _poolName) external onlyAdmin returns (address) {
    require(_pools[_poolName] == address(0), 'Pool already registered');

    Pool pool = new Pool(_poolName);
    _pools[_poolName] = address(pool);

    emit PoolRegistered(address(pool), _poolName);

    return address(pool);
  }

  function addQuery(string memory _poolName, string memory _queryUrl)
    external
    onlyAdmin
    existedPool(_poolName)
  {
    Pool(_pools[_poolName]).addQuery(_queryUrl);
  }

  function poolContract(string memory _poolName) public view returns (address) {
    return _pools[_poolName];
  }

  // --- NFT
  function burnNFT(uint256 _tokenId) external onlyOwner {
    NFT(nftAddress).burn(_tokenId);
  }
}

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File @openzeppelin/contracts/token/ERC20/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File contracts/Token.sol
// License-Identifier: UNLICENSED

// NOTE: mocked token, will not be used in production

pragma solidity 0.8.16;



contract Token is ERC20, ERC20Burnable, Ownable {
  constructor(uint256 initialSupply) ERC20('WrappedToken', 'WT') {
    mint(msg.sender, initialSupply);
  }

  function mint(address to, uint256 amount) public onlyOwner {
    _mint(to, amount);
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_nftName","type":"string"},{"internalType":"string","name":"_nftSymbol","type":"string"},{"internalType":"address","name":"_tokenContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"poolAddress","type":"address"},{"indexed":false,"internalType":"string","name":"poolName","type":"string"}],"name":"PoolRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"validatorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ValidatorNFTMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"validatorAddress","type":"address"},{"indexed":false,"internalType":"address","name":"validatorContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAmount","type":"uint256"}],"name":"ValidatorRegistered","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_poolName","type":"string"},{"internalType":"string","name":"_queryUrl","type":"string"}],"name":"addQuery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_validatorAddress","type":"address"},{"internalType":"string","name":"_poolName","type":"string"},{"internalType":"string","name":"_queryUrl","type":"string"},{"internalType":"string","name":"_validatedQuery","type":"string"}],"name":"addValidation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_validatorAddress","type":"address"}],"name":"closeValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_poolName","type":"string"}],"name":"poolContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_poolName","type":"string"}],"name":"registerPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_validatorAddress","type":"address"},{"internalType":"uint256","name":"_stakedAmount","type":"uint256"}],"name":"registerValidator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_validatorAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rewardValidator","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":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_validatorAddress","type":"address"}],"name":"validatorContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_validatorAddress","type":"address"}],"name":"withdrawValidatorEarnings","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200652538038062006525833981016040819052620000349162000338565b6001600160a01b0381166200009a5760405162461bcd60e51b815260206004820152602260248201527f53686f756c642070617373206e6f6e2d7a65726f20746f6b656e206164647265604482015261737360f01b606482015260840160405180910390fd5b6001600160a01b03811660805260405160009084908490620000bc906200025d565b620000c9929190620003f3565b604051809103906000f080158015620000e6573d6000803e3d6000fd5b506001600160a01b03811660a052905062000111600080516020620065058339815191523362000171565b6200012c600080516020620065058339815191528062000212565b620001677fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec426000805160206200650583398151915262000212565b5050505062000425565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200020e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001cd3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b611e3f80620046c683390190565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200029e57818101518382015260200162000284565b50506000910152565b600082601f830112620002b957600080fd5b81516001600160401b0380821115620002d657620002d66200026b565b604051601f8301601f19908116603f011681019082821181831017156200030157620003016200026b565b816040528381528660208588010111156200031b57600080fd5b6200032e84602083016020890162000281565b9695505050505050565b6000806000606084860312156200034e57600080fd5b83516001600160401b03808211156200036657600080fd5b6200037487838801620002a7565b945060208601519150808211156200038b57600080fd5b506200039a86828701620002a7565b604086015190935090506001600160a01b0381168114620003ba57600080fd5b809150509250925092565b60008151808452620003df81602086016020860162000281565b601f01601f19169290920160200192915050565b604081526000620004086040830185620003c5565b82810360208401526200041c8185620003c5565b95945050505050565b60805160a05161425f62000467600039600081816102620152818161094d015261163701526000818161031501528181610c8f0152610f79015261425f6000f3fe60806040523480156200001157600080fd5b5060043610620001515760003560e01c806375b238fc11620000c7578063a217fddf1162000086578063a217fddf1462000337578063bdbff2f11462000340578063d547741f1462000357578063de93c2ef146200036e578063e58378bb1462000385578063ef5413e114620003ad57600080fd5b806375b238fc146200029b57806391d1485414620002b25780639abee7d014620002c95780639cdd138814620002e05780639d76ea58146200030f57600080fd5b80632890e0d711620001145780632890e0d714620002175780632f2ff15d146200022e57806336568abe14620002455780635bf8633a146200025c57806368117f4e146200028457600080fd5b806301ffc9a7146200015657806304efb9d21462000182578063248a9ca3146200019b5780632587124214620001d0578063271acd9514620001e7575b600080fd5b6200016d6200016736600462001baa565b620003c4565b60405190151581526020015b60405180910390f35b620001996200019336600462001bee565b620003fc565b005b620001c1620001ac36600462001c0c565b60009081526020819052604090206001015490565b60405190815260200162000179565b62000199620001e136600462001cd1565b62000537565b620001fe620001f836600462001d76565b6200088a565b6040516001600160a01b03909116815260200162000179565b620001996200022836600462001c0c565b620008bd565b620001996200023f36600462001daf565b620009b6565b620001996200025636600462001daf565b620009e4565b620001fe7f000000000000000000000000000000000000000000000000000000000000000081565b620001996200029536600462001bee565b62000a66565b620001c16000805160206200420a83398151915281565b6200016d620002c336600462001daf565b62000b72565b620001c1620002da36600462001dde565b62000b9b565b620001fe620002f136600462001bee565b6001600160a01b039081166000908152600260205260409020541690565b620001fe7f000000000000000000000000000000000000000000000000000000000000000081565b620001c1600081565b620001996200035136600462001dde565b62000e63565b620001996200036836600462001daf565b620010fa565b620001996200037f36600462001e0b565b62001123565b620001c17f6270edb7c868f86fda4adedba75108201087268ea345934db8bad688e1feb91b81565b620001fe620003be36600462001d76565b6200125e565b60006001600160e01b03198216637965db0b60e01b1480620003f657506301ffc9a760e01b6001600160e01b03198316145b92915050565b620004176000805160206200420a8339815191523362000b72565b6200043f5760405162461bcd60e51b8152600401620004369062001e76565b60405180910390fd5b806001600160a01b038116620004695760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b0381811660009081526002602052604090205416620004a35760405162461bcd60e51b8152600401620004369062001ef1565b6001600160a01b038083166000908152600260205260408082205481516321eb936b60e11b815291519316926343d726d69260048084019391929182900301818387803b158015620004f457600080fd5b505af115801562000509573d6000803e3d6000fd5b5050506001600160a01b03909216600090815260026020526040902080546001600160a01b03191690555050565b620005526000805160206200420a8339815191523362000b72565b620005715760405162461bcd60e51b8152600401620004369062001e76565b836001600160a01b0381166200059b5760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b0381811660009081526002602052604090205416620005d55760405162461bcd60e51b8152600401620004369062001ef1565b8360006001600160a01b0316600182604051620005f3919062001f4e565b908152604051908190036020019020546001600160a01b031603620006515760405162461bcd60e51b8152602060048201526013602482015272141bdbdb081b9bdd081c9959da5cdd195c9959606a1b604482015260640162000436565b8251600003620006a45760405162461bcd60e51b815260206004820152601f60248201527f56616c6964617465642051756572792063616e6e6f7420626520656d70747900604482015260640162000436565b6001600160a01b038616600090815260036020526040908190209051620006cd90859062001f4e565b9081526040519081900360200190205460ff16156200073b5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420616464207468652073616d652056616c69646174656420517560448201526265727960e81b606482015260840162000436565b6001856040516200074d919062001f4e565b908152604051908190036020018120546305eaf84d60e11b82526001600160a01b031690630bd5f09a906200078b9087908a90889060040162001f9a565b600060405180830381600087803b158015620007a657600080fd5b505af1158015620007bb573d6000803e3d6000fd5b5050506001600160a01b038088166000908152600260205260409081902054905163037e712160e51b815291169150636fce24209062000802908790879060040162001fdc565b600060405180830381600087803b1580156200081d57600080fd5b505af115801562000832573d6000803e3d6000fd5b5050506001600160a01b038716600090815260036020526040908190209051600192506200086290869062001f4e565b908152604051908190036020019020805491151560ff19909216919091179055505050505050565b60006001826040516200089e919062001f4e565b908152604051908190036020019020546001600160a01b031692915050565b620008e97f6270edb7c868f86fda4adedba75108201087268ea345934db8bad688e1feb91b3362000b72565b620009375760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640162000436565b604051630852cd8d60e31b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c6890602401600060405180830381600087803b1580156200099a57600080fd5b505af1158015620009af573d6000803e3d6000fd5b5050505050565b600082815260208190526040902060010154620009d381620013e0565b620009df8383620013ef565b505050565b6001600160a01b038116331462000a565760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840162000436565b62000a62828262001477565b5050565b62000a816000805160206200420a8339815191523362000b72565b62000aa05760405162461bcd60e51b8152600401620004369062001e76565b806001600160a01b03811662000aca5760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b038181166000908152600260205260409020541662000b045760405162461bcd60e51b8152600401620004369062001ef1565b6001600160a01b0380831660009081526002602052604080822054815163b73c6ce960e01b8152915193169263b73c6ce99260048084019391929182900301818387803b15801562000b5557600080fd5b505af115801562000b6a573d6000803e3d6000fd5b505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600062000bb86000805160206200420a8339815191523362000b72565b62000bd75760405162461bcd60e51b8152600401620004369062001e76565b6001600160a01b03831662000c005760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b03838116600090815260026020526040902054161562000c6a5760405162461bcd60e51b815260206004820152601c60248201527f56616c696461746f7220616c7265616479207265676973746572656400000000604482015260640162000436565b604051636eb1769f60e11b81526001600160a01b0384811660048301523060248301527f000000000000000000000000000000000000000000000000000000000000000091849183169063dd62ed3e90604401602060405180830381865afa15801562000cdb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d01919062002005565b101562000d605760405162461bcd60e51b815260206004820152602660248201527f537461636b656420616d6f756e74206e6f7420616c6c6f77656420746f206265604482015265081cdc195b9d60d21b606482015260840162000436565b600030858560405162000d739062001b8e565b6001600160a01b0393841681529290911660208301526040820152606001604051809103906000f08015801562000dae573d6000803e3d6000fd5b506001600160a01b03868116600090815260026020526040902080546001600160a01b03191683831617905590915062000ded908316863087620014df565b62000e036001600160a01b038316828662001552565b604080516001600160a01b038088168252831660208201529081018590527fc1a1f15666b0235d7e5ed7db678cfc0e9451b046c234011592b887be1434fd309060600160405180910390a162000e5a85826200160b565b95945050505050565b62000e7e6000805160206200420a8339815191523362000b72565b62000e9d5760405162461bcd60e51b8152600401620004369062001e76565b816001600160a01b03811662000ec75760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b038181166000908152600260205260409020541662000f015760405162461bcd60e51b8152600401620004369062001ef1565b6000821162000f5e5760405162461bcd60e51b815260206004820152602260248201527f416d6f756e742073686f756c642062652067726561746572207468616e207a65604482015261726f60f01b606482015260840162000436565b604051636eb1769f60e11b81523360048201523060248201527f00000000000000000000000000000000000000000000000000000000000000009083906001600160a01b0383169063dd62ed3e90604401602060405180830381865afa15801562000fcd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000ff3919062002005565b1015620010435760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206e6f7420616c6c6f77656420746f206265207370656e740000604482015260640162000436565b6200105a6001600160a01b038216333086620014df565b6001600160a01b03808516600090815260026020526040902054620010859183811691168562001552565b6001600160a01b038481166000908152600260205260409081902054905163c031eddf60e01b81526004810186905291169063c031eddf90602401600060405180830381600087803b158015620010db57600080fd5b505af1158015620010f0573d6000803e3d6000fd5b5050505050505050565b6000828152602081905260409020600101546200111781620013e0565b620009df838362001477565b6200113e6000805160206200420a8339815191523362000b72565b6200115d5760405162461bcd60e51b8152600401620004369062001e76565b8160006001600160a01b03166001826040516200117b919062001f4e565b908152604051908190036020019020546001600160a01b031603620011d95760405162461bcd60e51b8152602060048201526013602482015272141bdbdb081b9bdd081c9959da5cdd195c9959606a1b604482015260640162000436565b600183604051620011eb919062001f4e565b908152604051908190036020018120546330d529bf60e01b82526001600160a01b0316906330d529bf90620012259085906004016200201f565b600060405180830381600087803b1580156200124057600080fd5b505af115801562001255573d6000803e3d6000fd5b50505050505050565b60006200127b6000805160206200420a8339815191523362000b72565b6200129a5760405162461bcd60e51b8152600401620004369062001e76565b60006001600160a01b0316600183604051620012b7919062001f4e565b908152604051908190036020019020546001600160a01b0316146200131f5760405162461bcd60e51b815260206004820152601760248201527f506f6f6c20616c72656164792072656769737465726564000000000000000000604482015260640162000436565b600082604051620013309062001b9c565b6200133c91906200201f565b604051809103906000f08015801562001359573d6000803e3d6000fd5b509050806001846040516200136f919062001f4e565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557fcf02e2a03b922ab8751dbc612a812205ee68c01ca057be55d405f45a8207211290620013d0908390869062002034565b60405180910390a190505b919050565b620013ec8133620016f3565b50565b620013fb828262000b72565b62000a62576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620014333390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b62001483828262000b72565b1562000a62576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b03808516602483015283166044820152606481018290526200154c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262001762565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015620015a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620015ca919062002005565b620015d6919062002070565b6040516001600160a01b0385166024820152604481018290529091506200154c90859063095ea7b360e01b9060640162001514565b604051630cac1fab60e41b81526001600160a01b038381166004830152828116602483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169063cac1fab0906044016020604051808303816000875af115801562001681573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620016a7919062002005565b604080516001600160a01b0387168152602081018390529192507fa92bb3d2384c48f91dc983b4aec64355133e630ac9859b32a09c85b254191396910160405180910390a19392505050565b620016ff828262000b72565b62000a62576200171a816001600160a01b031660146200183b565b620017278360206200183b565b6040516020016200173a92919062002086565b60408051601f198184030181529082905262461bcd60e51b825262000436916004016200201f565b6000620017b9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620019fc9092919063ffffffff16565b805190915015620009df5780806020019051810190620017da9190620020ff565b620009df5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000436565b606060006200184c83600262002123565b6200185990600262002070565b67ffffffffffffffff81111562001874576200187462001c26565b6040519080825280601f01601f1916602001820160405280156200189f576020820181803683370190505b509050600360fc1b81600081518110620018bd57620018bd62002145565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620018ef57620018ef62002145565b60200101906001600160f81b031916908160001a90535060006200191584600262002123565b6200192290600162002070565b90505b6001811115620019a4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106200195a576200195a62002145565b1a60f81b82828151811062001973576200197362002145565b60200101906001600160f81b031916908160001a90535060049490941c936200199c816200215b565b905062001925565b508315620019f55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000436565b9392505050565b606062001a0d848460008562001a15565b949350505050565b60608247101562001a785760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000436565b6001600160a01b0385163b62001ad15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000436565b600080866001600160a01b0316858760405162001aef919062001f4e565b60006040518083038185875af1925050503d806000811462001b2e576040519150601f19603f3d011682016040523d82523d6000602084013e62001b33565b606091505b509150915062001b4582828662001b50565b979650505050505050565b6060831562001b61575081620019f5565b82511562001b725782518084602001fd5b8160405162461bcd60e51b81526004016200043691906200201f565b6110c8806200217683390190565b610fcc806200323e83390190565b60006020828403121562001bbd57600080fd5b81356001600160e01b031981168114620019f557600080fd5b80356001600160a01b0381168114620013db57600080fd5b60006020828403121562001c0157600080fd5b620019f58262001bd6565b60006020828403121562001c1f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262001c4e57600080fd5b813567ffffffffffffffff8082111562001c6c5762001c6c62001c26565b604051601f8301601f19908116603f0116810190828211818310171562001c975762001c9762001c26565b8160405283815286602085880101111562001cb157600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121562001ce857600080fd5b62001cf38562001bd6565b9350602085013567ffffffffffffffff8082111562001d1157600080fd5b62001d1f8883890162001c3c565b9450604087013591508082111562001d3657600080fd5b62001d448883890162001c3c565b9350606087013591508082111562001d5b57600080fd5b5062001d6a8782880162001c3c565b91505092959194509250565b60006020828403121562001d8957600080fd5b813567ffffffffffffffff81111562001da157600080fd5b62001a0d8482850162001c3c565b6000806040838503121562001dc357600080fd5b8235915062001dd56020840162001bd6565b90509250929050565b6000806040838503121562001df257600080fd5b62001dfd8362001bd6565b946020939093013593505050565b6000806040838503121562001e1f57600080fd5b823567ffffffffffffffff8082111562001e3857600080fd5b62001e468683870162001c3c565b9350602085013591508082111562001e5d57600080fd5b5062001e6c8582860162001c3c565b9150509250929050565b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b60208082526024908201527f56616c696461746f7220616464726573732073686f756c64206265206e6f6e2d6040820152637a65726f60e01b606082015260800190565b6020808252601b908201527f56616c696461746f72206973206e6f7420726567697374657265640000000000604082015260600190565b60005b8381101562001f4557818101518382015260200162001f2b565b50506000910152565b6000825162001f6281846020870162001f28565b9190910192915050565b6000815180845262001f8681602086016020860162001f28565b601f01601f19169290920160200192915050565b60608152600062001faf606083018662001f6c565b6001600160a01b0385166020840152828103604084015262001fd2818562001f6c565b9695505050505050565b60408152600062001ff1604083018562001f6c565b828103602084015262000e5a818562001f6c565b6000602082840312156200201857600080fd5b5051919050565b602081526000620019f5602083018462001f6c565b6001600160a01b038316815260406020820181905260009062001a0d9083018462001f6c565b634e487b7160e01b600052601160045260246000fd5b80820180821115620003f657620003f66200205a565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351620020c081601785016020880162001f28565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351620020f381602884016020880162001f28565b01602801949350505050565b6000602082840312156200211257600080fd5b81518015158114620019f557600080fd5b60008160001904831182151516156200214057620021406200205a565b500290565b634e487b7160e01b600052603260045260246000fd5b6000816200216d576200216d6200205a565b50600019019056fe60c060405234801561001057600080fd5b506040516110c83803806110c883398101604081905261002f9161018f565b61003833610123565b6001600160a01b0383166100a65760405162461bcd60e51b815260206004820152602a60248201527f4d617374657220636f6e747261637420616464726573732073686f756c64206e6044820152696f74206265207a65726f60b01b60648201526084015b60405180910390fd5b6001600160a01b0382166101085760405162461bcd60e51b8152602060048201526024808201527f56616c696461746f7220616464726573732073686f756c64206e6f74206265206044820152637a65726f60e01b606482015260840161009d565b6001600160a01b0392831660a05291166080526001556101cb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461018a57600080fd5b919050565b6000806000606084860312156101a457600080fd5b6101ad84610173565b92506101bb60208501610173565b9150604084015190509250925092565b60805160a051610e9a61022e6000396000818160d9015281816101f8015281816102840152818161040c0152610498015260008181610134015281816102a5015281816102fa015281816104b90152818161050601526105910152610e9a6000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063c031eddf11610066578063c031eddf1461019d578063dc947183146101b0578063f2fde38b146101d0578063f87c89de146101e357600080fd5b80638da5cb5b1461017b57806395d643a81461018c578063b73c6ce91461019557600080fd5b80633471728a146100d4578063373d6132146101185780633fe4676e1461012f57806343d726d6146101565780636fce242014610160578063715018a614610173575b600080fd5b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61012160015481565b60405190815260200161010f565b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b61015e6101ec565b005b61015e61016e366004610b1d565b610362565b61015e6103ec565b6000546001600160a01b03166100fb565b61012160035481565b61015e610400565b61015e6101ab366004610b81565b610564565b6101c36101be366004610b9a565b6105e8565b60405161010f9190610c27565b61015e6101de366004610c4f565b610698565b61012160025481565b6101f4610716565b60007f000000000000000000000000000000000000000000000000000000000000000090506000816001600160a01b0316639d76ea586040518163ffffffff1660e01b8152600401602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d9190610c6c565b90506102e67f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006003546001546102d49190610c89565b6001600160a01b038516929190610770565b600154600354604080516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016815260208101939093528201527feee49ce990a541001544bfe809356f239088e14afc5cf28a75cc60a7e01829d69060600160405180910390a1505060006001819055600355565b61036a610716565b8060048360405161037b9190610cb0565b908152602001604051809103902090816103959190610d54565b506001600260008282546103a99190610c89565b90915550506040517f8ed32f00e34c4dbec58d640a520bbcfd596e7f7d6984c2157d1d6756289b7e42906103e09084908490610e14565b60405180910390a15050565b6103f4610716565b6103fe60006107d0565b565b610408610716565b60007f000000000000000000000000000000000000000000000000000000000000000090506000816001600160a01b0316639d76ea586040518163ffffffff1660e01b8152600401602060405180830381865afa15801561046d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104919190610c6c565b90506104f57f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600354846001600160a01b0316610770909392919063ffffffff16565b600354604080516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016815260208101929092527f1fada0a7d6bca77d14c2d68f2c435b24fae8291e19f5330c9ab7806074194e33910160405180910390a150506000600355565b61056c610716565b806003600082825461057e9190610c89565b9091555050604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602081018390527f38cbdc591b5cf62cc9a88b92dcee4809f0d0ca6cd9bdad9f818d74c38e78bf29910160405180910390a150565b60606004826040516105fa9190610cb0565b9081526020016040518091039020805461061390610ccc565b80601f016020809104026020016040519081016040528092919081815260200182805461063f90610ccc565b801561068c5780601f106106615761010080835404028352916020019161068c565b820191906000526020600020905b81548152906001019060200180831161066f57829003601f168201915b50505050509050919050565b6106a0610716565b6001600160a01b03811661070a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610713816107d0565b50565b6000546001600160a01b031633146103fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610701565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526107ca908590610820565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610875826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108f79092919063ffffffff16565b8051909150156108f257808060200190518101906108939190610e42565b6108f25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610701565b505050565b60606109068484600085610910565b90505b9392505050565b6060824710156109715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610701565b6001600160a01b0385163b6109c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610701565b600080866001600160a01b031685876040516109e49190610cb0565b60006040518083038185875af1925050503d8060008114610a21576040519150601f19603f3d011682016040523d82523d6000602084013e610a26565b606091505b5091509150610a36828286610a41565b979650505050505050565b60608315610a50575081610909565b825115610a605782518084602001fd5b8160405162461bcd60e51b81526004016107019190610c27565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610aa157600080fd5b813567ffffffffffffffff80821115610abc57610abc610a7a565b604051601f8301601f19908116603f01168101908282118183101715610ae457610ae4610a7a565b81604052838152866020858801011115610afd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610b3057600080fd5b823567ffffffffffffffff80821115610b4857600080fd5b610b5486838701610a90565b93506020850135915080821115610b6a57600080fd5b50610b7785828601610a90565b9150509250929050565b600060208284031215610b9357600080fd5b5035919050565b600060208284031215610bac57600080fd5b813567ffffffffffffffff811115610bc357600080fd5b610bcf84828501610a90565b949350505050565b60005b83811015610bf2578181015183820152602001610bda565b50506000910152565b60008151808452610c13816020860160208601610bd7565b601f01601f19169290920160200192915050565b6020815260006109096020830184610bfb565b6001600160a01b038116811461071357600080fd5b600060208284031215610c6157600080fd5b813561090981610c3a565b600060208284031215610c7e57600080fd5b815161090981610c3a565b80820180821115610caa57634e487b7160e01b600052601160045260246000fd5b92915050565b60008251610cc2818460208701610bd7565b9190910192915050565b600181811c90821680610ce057607f821691505b602082108103610d0057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156108f257600081815260208120601f850160051c81016020861015610d2d5750805b601f850160051c820191505b81811015610d4c57828155600101610d39565b505050505050565b815167ffffffffffffffff811115610d6e57610d6e610a7a565b610d8281610d7c8454610ccc565b84610d06565b602080601f831160018114610db75760008415610d9f5750858301515b600019600386901b1c1916600185901b178555610d4c565b600085815260208120601f198616915b82811015610de657888601518255948401946001909101908401610dc7565b5085821015610e045787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000610e276040830185610bfb565b8281036020840152610e398185610bfb565b95945050505050565b600060208284031215610e5457600080fd5b8151801515811461090957600080fdfea26469706673582212202cd81935c8a4a2b1210b3df2f1fb7fee177c78ea1df5210d3088424b097bff0a64736f6c6343000810003360806040523480156200001157600080fd5b5060405162000fcc38038062000fcc8339810160408190526200003491620000bb565b6200003f3362000055565b60016200004d82826200021f565b5050620002eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620000cf57600080fd5b82516001600160401b0380821115620000e757600080fd5b818501915085601f830112620000fc57600080fd5b815181811115620001115762000111620000a5565b604051601f8201601f19908116603f011681019083821181831017156200013c576200013c620000a5565b8160405282815288868487010111156200015557600080fd5b600093505b828410156200017957848401860151818501870152928501926200015a565b600086848301015280965050505050505092915050565b600181811c90821680620001a557607f821691505b602082108103620001c657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021a57600081815260208120601f850160051c81016020861015620001f55750805b601f850160051c820191505b81811015620002165782815560010162000201565b5050505b505050565b81516001600160401b038111156200023b576200023b620000a5565b62000253816200024c845462000190565b84620001cc565b602080601f8311600181146200028b5760008415620002725750858301515b600019600386901b1c1916600185901b17855562000216565b600085815260208120601f198616915b82811015620002bc578886015182559484019460019091019084016200029b565b5085821015620002db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610cd180620002fb6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063c3b50bb311610066578063c3b50bb31461010c578063d44602311461011f578063ede3091b1461013f578063f2fde38b1461017d578063f457f4941461019057600080fd5b806306fdde03146100a35780630bd5f09a146100c157806330d529bf146100d6578063715018a6146100e95780638da5cb5b146100f1575b600080fd5b6100ab6101a3565b6040516100b8919061085e565b60405180910390f35b6100d46100cf366004610937565b610231565b005b6100d46100e43660046109ab565b6103ef565b6100d46104d2565b6000546040516001600160a01b0390911681526020016100b8565b6100ab61011a3660046109e8565b6104e6565b61013261012d3660046109ab565b6105ad565b6040516100b89190610a36565b61016d61014d3660046109ab565b805160208183018101805160028252928201919093012091525460ff1681565b60405190151581526020016100b8565b6100d461018b366004610a98565b6106a4565b6100ab61019e366004610ab3565b61071d565b600180546101b090610af8565b80601f01602080910402602001604051908101604052809291908181526020018280546101dc90610af8565b80156102295780601f106101fe57610100808354040283529160200191610229565b820191906000526020600020905b81548152906001019060200180831161020c57829003601f168201915b505050505081565b610239610764565b6002836040516102499190610b32565b9081526040519081900360200190205460ff166102a45760405162461bcd60e51b815260206004820152601460248201527351756572792055524c206e6f742065786973747360601b60448201526064015b60405180910390fd5b6004836040516102b49190610b32565b90815260408051602092819003830190206001600160a01b03851660009081529252902080546102e390610af8565b1590506103325760405162461bcd60e51b815260206004820152601960248201527f56616c69646174696f6e20616c72656164792065786973747300000000000000604482015260640161029b565b806004846040516103439190610b32565b90815260408051602092819003830190206001600160a01b038616600090815292529020906103729082610b9d565b506003836040516103839190610b32565b9081526040516020918190038201902080546001810182556000918252919020016103ae8282610b9d565b507fc3ca6219ce259bb1a9e53663ef1150da7cfbbfd83d2a6e75cb79935b6fb2c6bc8383836040516103e293929190610c5d565b60405180910390a1505050565b6103f7610764565b6002816040516104079190610b32565b9081526040519081900360200190205460ff16156104675760405162461bcd60e51b815260206004820152601860248201527f51756572792055524c20616c7265616479206578697374730000000000000000604482015260640161029b565b60016002826040516104799190610b32565b908152604051908190036020018120805492151560ff19909316929092179091557f580f8bd14fecc02c20374f7ea2837906015993dcc1fc5c2656daa0e2b08a48d4906104c790839061085e565b60405180910390a150565b6104da610764565b6104e460006107be565b565b60606004836040516104f89190610b32565b90815260408051602092819003830190206001600160a01b038516600090815292529020805461052790610af8565b80601f016020809104026020016040519081016040528092919081815260200182805461055390610af8565b80156105a05780601f10610575576101008083540402835291602001916105a0565b820191906000526020600020905b81548152906001019060200180831161058357829003601f168201915b5050505050905092915050565b60606003826040516105bf9190610b32565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020016000905b8282101561069957838290600052602060002001805461060c90610af8565b80601f016020809104026020016040519081016040528092919081815260200182805461063890610af8565b80156106855780601f1061065a57610100808354040283529160200191610685565b820191906000526020600020905b81548152906001019060200180831161066857829003601f168201915b5050505050815260200190600101906105ed565b505050509050919050565b6106ac610764565b6001600160a01b0381166107115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161029b565b61071a816107be565b50565b8151602081840181018051600382529282019185019190912091905280548290811061074857600080fd5b906000526020600020016000915091505080546101b090610af8565b6000546001600160a01b031633146104e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161029b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b83811015610829578181015183820152602001610811565b50506000910152565b6000815180845261084a81602086016020860161080e565b601f01601f19169290920160200192915050565b6020815260006108716020830184610832565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261089f57600080fd5b813567ffffffffffffffff808211156108ba576108ba610878565b604051601f8301601f19908116603f011681019082821181831017156108e2576108e2610878565b816040528381528660208588010111156108fb57600080fd5b836020870160208301376000602085830101528094505050505092915050565b80356001600160a01b038116811461093257600080fd5b919050565b60008060006060848603121561094c57600080fd5b833567ffffffffffffffff8082111561096457600080fd5b6109708783880161088e565b945061097e6020870161091b565b9350604086013591508082111561099457600080fd5b506109a18682870161088e565b9150509250925092565b6000602082840312156109bd57600080fd5b813567ffffffffffffffff8111156109d457600080fd5b6109e08482850161088e565b949350505050565b600080604083850312156109fb57600080fd5b823567ffffffffffffffff811115610a1257600080fd5b610a1e8582860161088e565b925050610a2d6020840161091b565b90509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015610a8b57603f19888603018452610a79858351610832565b94509285019290850190600101610a5d565b5092979650505050505050565b600060208284031215610aaa57600080fd5b6108718261091b565b60008060408385031215610ac657600080fd5b823567ffffffffffffffff811115610add57600080fd5b610ae98582860161088e565b95602094909401359450505050565b600181811c90821680610b0c57607f821691505b602082108103610b2c57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251610b4481846020870161080e565b9190910192915050565b601f821115610b9857600081815260208120601f850160051c81016020861015610b755750805b601f850160051c820191505b81811015610b9457828155600101610b81565b5050505b505050565b815167ffffffffffffffff811115610bb757610bb7610878565b610bcb81610bc58454610af8565b84610b4e565b602080601f831160018114610c005760008415610be85750858301515b600019600386901b1c1916600185901b178555610b94565b600085815260208120601f198616915b82811015610c2f57888601518255948401946001909101908401610c10565b5085821015610c4d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b606081526000610c706060830186610832565b6001600160a01b03851660208401528281036040840152610c918185610832565b969550505050505056fea2646970667358221220fee7ed9d03f8d19d179fcf5f83f661209c391c80e2255729a8e7a845512aaf0b64736f6c63430008100033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a26469706673582212209e2701b756c9b1962f492a8aa7dad78ffef5e85b36dbeef7f17489d619f899c564736f6c6343000810003360806040523480156200001157600080fd5b5060405162001e3f38038062001e3f833981016040819052620000349162000193565b818160006200004483826200028c565b5060016200005382826200028c565b505050620000706200006a6200007860201b60201c565b6200007c565b505062000358565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000f657600080fd5b81516001600160401b0380821115620001135762000113620000ce565b604051601f8301601f19908116603f011681019082821181831017156200013e576200013e620000ce565b816040528381526020925086838588010111156200015b57600080fd5b600091505b838210156200017f578582018301518183018401529082019062000160565b600093810190920192909252949350505050565b60008060408385031215620001a757600080fd5b82516001600160401b0380821115620001bf57600080fd5b620001cd86838701620000e4565b93506020850151915080821115620001e457600080fd5b50620001f385828601620000e4565b9150509250929050565b600181811c908216806200021257607f821691505b6020821081036200023357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028757600081815260208120601f850160051c81016020861015620002625750805b601f850160051c820191505b8181101562000283578281556001016200026e565b5050505b505050565b81516001600160401b03811115620002a857620002a8620000ce565b620002c081620002b98454620001fd565b8462000239565b602080601f831160018114620002f85760008415620002df5750858301515b600019600386901b1c1916600185901b17855562000283565b600085815260208120601f198616915b82811015620003295788860151825594840194600190910190840162000308565b5085821015620003485787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611ad780620003686000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063b88d4fde11610071578063b88d4fde1461024c578063c87b56dd1461025f578063cac1fab014610272578063e985e9c514610285578063f2fde38b146102c157600080fd5b806370a0823114610205578063715018a6146102185780638da5cb5b1461022057806395d89b4114610231578063a22cb4651461023957600080fd5b806318160ddd116100f457806318160ddd146101a357806323b872dd146101b957806342842e0e146101cc57806342966c68146101df5780636352211e146101f257600080fd5b806301ffc9a71461012657806306fdde031461014e578063081812fc14610163578063095ea7b31461018e575b600080fd5b6101396101343660046114ba565b6102d4565b60405190151581526020015b60405180910390f35b610156610326565b6040516101459190611527565b61017661017136600461153a565b6103b8565b6040516001600160a01b039091168152602001610145565b6101a161019c36600461156f565b6103df565b005b6101ab6104f9565b604051908152602001610145565b6101a16101c7366004611599565b610509565b6101a16101da366004611599565b61053a565b6101a16101ed36600461153a565b610555565b61017661020036600461153a565b610573565b6101ab6102133660046115d5565b6105d3565b6101a1610659565b6007546001600160a01b0316610176565b61015661066d565b6101a16102473660046115f0565b61067c565b6101a161025a366004611642565b61068b565b61015661026d36600461153a565b6106c3565b6101ab61028036600461171e565b6107d3565b61013961029336600461171e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101a16102cf3660046115d5565b610834565b60006001600160e01b031982166380ac58cd60e01b148061030557506001600160e01b03198216635b5e139f60e01b145b8061032057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461033590611751565b80601f016020809104026020016040519081016040528092919081815260200182805461036190611751565b80156103ae5780601f10610383576101008083540402835291602001916103ae565b820191906000526020600020905b81548152906001019060200180831161039157829003601f168201915b5050505050905090565b60006103c3826108aa565b506000908152600460205260409020546001600160a01b031690565b60006103ea82610573565b9050806001600160a01b0316836001600160a01b03160361045c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061047857506104788133610293565b6104ea5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610453565b6104f48383610909565b505050565b600061050460095490565b905090565b6105133382610977565b61052f5760405162461bcd60e51b81526004016104539061178b565b6104f48383836109f5565b6104f48383836040518060200160405280600081525061068b565b61055d610b91565b61056681610beb565b6105706009610c2b565b50565b6000818152600260205260408120546001600160a01b0316806103205760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610453565b60006001600160a01b03821661063d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610453565b506001600160a01b031660009081526003602052604090205490565b610661610b91565b61066b6000610c82565b565b60606001805461033590611751565b610687338383610cd4565b5050565b6106953383610977565b6106b15760405162461bcd60e51b81526004016104539061178b565b6106bd84848484610da2565b50505050565b60606106ce826108aa565b600082815260066020526040812080546106e790611751565b80601f016020809104026020016040519081016040528092919081815260200182805461071390611751565b80156107605780601f1061073557610100808354040283529160200191610760565b820191906000526020600020905b81548152906001019060200180831161074357829003601f168201915b50505050509050600061077e60408051602081019091526000815290565b90508051600003610790575092915050565b8151156107c25780826040516020016107aa9291906117d9565b60405160208183030381529060405292505050919050565b6107cb84610dd5565b949350505050565b60006107dd610b91565b6107eb600880546001019055565b60006107f660085490565b90506108028482610e48565b61081f8161081a856001600160a01b03166014610f8a565b611126565b61082d600980546001019055565b9392505050565b61083c610b91565b6001600160a01b0381166108a15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610453565b61057081610c82565b6000818152600260205260409020546001600160a01b03166105705760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610453565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061093e82610573565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061098383610573565b9050806001600160a01b0316846001600160a01b031614806109ca57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806107cb5750836001600160a01b03166109e3846103b8565b6001600160a01b031614949350505050565b826001600160a01b0316610a0882610573565b6001600160a01b031614610a6c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610453565b6001600160a01b038216610ace5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610453565b610ad9600082610909565b6001600160a01b0383166000908152600360205260408120805460019290610b0290849061181e565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b30908490611831565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6007546001600160a01b0316331461066b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610453565b610bf4816111b9565b60008181526006602052604090208054610c0d90611751565b15905061057057600081815260066020526040812061057091611456565b805480610c7a5760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610453565b600019019055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610d355760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610453565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610dad8484846109f5565b610db984848484611254565b6106bd5760405162461bcd60e51b815260040161045390611844565b6060610de0826108aa565b6000610df760408051602081019091526000815290565b90506000815111610e17576040518060200160405280600081525061082d565b80610e2184611355565b604051602001610e329291906117d9565b6040516020818303038152906040529392505050565b6001600160a01b038216610e9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610453565b6000818152600260205260409020546001600160a01b031615610f035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610453565b6001600160a01b0382166000908152600360205260408120805460019290610f2c908490611831565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60606000610f99836002611896565b610fa4906002611831565b67ffffffffffffffff811115610fbc57610fbc61162c565b6040519080825280601f01601f191660200182016040528015610fe6576020820181803683370190505b509050600360fc1b81600081518110611001576110016118b5565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611030576110306118b5565b60200101906001600160f81b031916908160001a9053506000611054846002611896565b61105f906001611831565b90505b60018111156110d7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611093576110936118b5565b1a60f81b8282815181106110a9576110a96118b5565b60200101906001600160f81b031916908160001a90535060049490941c936110d0816118cb565b9050611062565b50831561082d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610453565b6000828152600260205260409020546001600160a01b03166111a15760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610453565b60008281526006602052604090206104f48282611930565b60006111c482610573565b90506111d1600083610909565b6001600160a01b03811660009081526003602052604081208054600192906111fa90849061181e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561134a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906112989033908990889088906004016119f0565b6020604051808303816000875af19250505080156112d3575060408051601f3d908101601f191682019092526112d091810190611a2d565b60015b611330573d808015611301576040519150601f19603f3d011682016040523d82523d6000602084013e611306565b606091505b5080516000036113285760405162461bcd60e51b815260040161045390611844565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506107cb565b506001949350505050565b60608160000361137c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113a6578061139081611a4a565b915061139f9050600a83611a79565b9150611380565b60008167ffffffffffffffff8111156113c1576113c161162c565b6040519080825280601f01601f1916602001820160405280156113eb576020820181803683370190505b5090505b84156107cb5761140060018361181e565b915061140d600a86611a8d565b611418906030611831565b60f81b81838151811061142d5761142d6118b5565b60200101906001600160f81b031916908160001a90535061144f600a86611a79565b94506113ef565b50805461146290611751565b6000825580601f10611472575050565b601f01602090049060005260206000209081019061057091905b808211156114a0576000815560010161148c565b5090565b6001600160e01b03198116811461057057600080fd5b6000602082840312156114cc57600080fd5b813561082d816114a4565b60005b838110156114f25781810151838201526020016114da565b50506000910152565b600081518084526115138160208601602086016114d7565b601f01601f19169290920160200192915050565b60208152600061082d60208301846114fb565b60006020828403121561154c57600080fd5b5035919050565b80356001600160a01b038116811461156a57600080fd5b919050565b6000806040838503121561158257600080fd5b61158b83611553565b946020939093013593505050565b6000806000606084860312156115ae57600080fd5b6115b784611553565b92506115c560208501611553565b9150604084013590509250925092565b6000602082840312156115e757600080fd5b61082d82611553565b6000806040838503121561160357600080fd5b61160c83611553565b91506020830135801515811461162157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561165857600080fd5b61166185611553565b935061166f60208601611553565b925060408501359150606085013567ffffffffffffffff8082111561169357600080fd5b818701915087601f8301126116a757600080fd5b8135818111156116b9576116b961162c565b604051601f8201601f19908116603f011681019083821181831017156116e1576116e161162c565b816040528281528a60208487010111156116fa57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561173157600080fd5b61173a83611553565b915061174860208401611553565b90509250929050565b600181811c9082168061176557607f821691505b60208210810361178557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600083516117eb8184602088016114d7565b8351908301906117ff8183602088016114d7565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561032057610320611808565b8082018082111561032057610320611808565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008160001904831182151516156118b0576118b0611808565b500290565b634e487b7160e01b600052603260045260246000fd5b6000816118da576118da611808565b506000190190565b601f8211156104f457600081815260208120601f850160051c810160208610156119095750805b601f850160051c820191505b8181101561192857828155600101611915565b505050505050565b815167ffffffffffffffff81111561194a5761194a61162c565b61195e816119588454611751565b846118e2565b602080601f831160018114611993576000841561197b5750858301515b600019600386901b1c1916600185901b178555611928565b600085815260208120601f198616915b828110156119c2578886015182559484019460019091019084016119a3565b50858210156119e05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a23908301846114fb565b9695505050505050565b600060208284031215611a3f57600080fd5b815161082d816114a4565b600060018201611a5c57611a5c611808565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611a8857611a88611a63565b500490565b600082611a9c57611a9c611a63565b50069056fea2646970667358221220d574644821bb949bfd822202de75e14f25d04a5297b0945f97294b4e9c00b38a64736f6c634300081000336270edb7c868f86fda4adedba75108201087268ea345934db8bad688e1feb91b000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000003c59798620e5fec0ae6df1a19c6454094572ab9200000000000000000000000000000000000000000000000000000000000000194d6f7270686575732e4e6574776f726b2054727573744d4e57000000000000000000000000000000000000000000000000000000000000000000000000000004544d4e5700000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040523480156200001157600080fd5b5060043610620001515760003560e01c806375b238fc11620000c7578063a217fddf1162000086578063a217fddf1462000337578063bdbff2f11462000340578063d547741f1462000357578063de93c2ef146200036e578063e58378bb1462000385578063ef5413e114620003ad57600080fd5b806375b238fc146200029b57806391d1485414620002b25780639abee7d014620002c95780639cdd138814620002e05780639d76ea58146200030f57600080fd5b80632890e0d711620001145780632890e0d714620002175780632f2ff15d146200022e57806336568abe14620002455780635bf8633a146200025c57806368117f4e146200028457600080fd5b806301ffc9a7146200015657806304efb9d21462000182578063248a9ca3146200019b5780632587124214620001d0578063271acd9514620001e7575b600080fd5b6200016d6200016736600462001baa565b620003c4565b60405190151581526020015b60405180910390f35b620001996200019336600462001bee565b620003fc565b005b620001c1620001ac36600462001c0c565b60009081526020819052604090206001015490565b60405190815260200162000179565b62000199620001e136600462001cd1565b62000537565b620001fe620001f836600462001d76565b6200088a565b6040516001600160a01b03909116815260200162000179565b620001996200022836600462001c0c565b620008bd565b620001996200023f36600462001daf565b620009b6565b620001996200025636600462001daf565b620009e4565b620001fe7f000000000000000000000000d510c6480f061ecb46e1b4da9786a02e91a8d00881565b620001996200029536600462001bee565b62000a66565b620001c16000805160206200420a83398151915281565b6200016d620002c336600462001daf565b62000b72565b620001c1620002da36600462001dde565b62000b9b565b620001fe620002f136600462001bee565b6001600160a01b039081166000908152600260205260409020541690565b620001fe7f0000000000000000000000003c59798620e5fec0ae6df1a19c6454094572ab9281565b620001c1600081565b620001996200035136600462001dde565b62000e63565b620001996200036836600462001daf565b620010fa565b620001996200037f36600462001e0b565b62001123565b620001c17f6270edb7c868f86fda4adedba75108201087268ea345934db8bad688e1feb91b81565b620001fe620003be36600462001d76565b6200125e565b60006001600160e01b03198216637965db0b60e01b1480620003f657506301ffc9a760e01b6001600160e01b03198316145b92915050565b620004176000805160206200420a8339815191523362000b72565b6200043f5760405162461bcd60e51b8152600401620004369062001e76565b60405180910390fd5b806001600160a01b038116620004695760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b0381811660009081526002602052604090205416620004a35760405162461bcd60e51b8152600401620004369062001ef1565b6001600160a01b038083166000908152600260205260408082205481516321eb936b60e11b815291519316926343d726d69260048084019391929182900301818387803b158015620004f457600080fd5b505af115801562000509573d6000803e3d6000fd5b5050506001600160a01b03909216600090815260026020526040902080546001600160a01b03191690555050565b620005526000805160206200420a8339815191523362000b72565b620005715760405162461bcd60e51b8152600401620004369062001e76565b836001600160a01b0381166200059b5760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b0381811660009081526002602052604090205416620005d55760405162461bcd60e51b8152600401620004369062001ef1565b8360006001600160a01b0316600182604051620005f3919062001f4e565b908152604051908190036020019020546001600160a01b031603620006515760405162461bcd60e51b8152602060048201526013602482015272141bdbdb081b9bdd081c9959da5cdd195c9959606a1b604482015260640162000436565b8251600003620006a45760405162461bcd60e51b815260206004820152601f60248201527f56616c6964617465642051756572792063616e6e6f7420626520656d70747900604482015260640162000436565b6001600160a01b038616600090815260036020526040908190209051620006cd90859062001f4e565b9081526040519081900360200190205460ff16156200073b5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420616464207468652073616d652056616c69646174656420517560448201526265727960e81b606482015260840162000436565b6001856040516200074d919062001f4e565b908152604051908190036020018120546305eaf84d60e11b82526001600160a01b031690630bd5f09a906200078b9087908a90889060040162001f9a565b600060405180830381600087803b158015620007a657600080fd5b505af1158015620007bb573d6000803e3d6000fd5b5050506001600160a01b038088166000908152600260205260409081902054905163037e712160e51b815291169150636fce24209062000802908790879060040162001fdc565b600060405180830381600087803b1580156200081d57600080fd5b505af115801562000832573d6000803e3d6000fd5b5050506001600160a01b038716600090815260036020526040908190209051600192506200086290869062001f4e565b908152604051908190036020019020805491151560ff19909216919091179055505050505050565b60006001826040516200089e919062001f4e565b908152604051908190036020019020546001600160a01b031692915050565b620008e97f6270edb7c868f86fda4adedba75108201087268ea345934db8bad688e1feb91b3362000b72565b620009375760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640162000436565b604051630852cd8d60e31b8152600481018290527f000000000000000000000000d510c6480f061ecb46e1b4da9786a02e91a8d0086001600160a01b0316906342966c6890602401600060405180830381600087803b1580156200099a57600080fd5b505af1158015620009af573d6000803e3d6000fd5b5050505050565b600082815260208190526040902060010154620009d381620013e0565b620009df8383620013ef565b505050565b6001600160a01b038116331462000a565760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840162000436565b62000a62828262001477565b5050565b62000a816000805160206200420a8339815191523362000b72565b62000aa05760405162461bcd60e51b8152600401620004369062001e76565b806001600160a01b03811662000aca5760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b038181166000908152600260205260409020541662000b045760405162461bcd60e51b8152600401620004369062001ef1565b6001600160a01b0380831660009081526002602052604080822054815163b73c6ce960e01b8152915193169263b73c6ce99260048084019391929182900301818387803b15801562000b5557600080fd5b505af115801562000b6a573d6000803e3d6000fd5b505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600062000bb86000805160206200420a8339815191523362000b72565b62000bd75760405162461bcd60e51b8152600401620004369062001e76565b6001600160a01b03831662000c005760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b03838116600090815260026020526040902054161562000c6a5760405162461bcd60e51b815260206004820152601c60248201527f56616c696461746f7220616c7265616479207265676973746572656400000000604482015260640162000436565b604051636eb1769f60e11b81526001600160a01b0384811660048301523060248301527f0000000000000000000000003c59798620e5fec0ae6df1a19c6454094572ab9291849183169063dd62ed3e90604401602060405180830381865afa15801562000cdb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d01919062002005565b101562000d605760405162461bcd60e51b815260206004820152602660248201527f537461636b656420616d6f756e74206e6f7420616c6c6f77656420746f206265604482015265081cdc195b9d60d21b606482015260840162000436565b600030858560405162000d739062001b8e565b6001600160a01b0393841681529290911660208301526040820152606001604051809103906000f08015801562000dae573d6000803e3d6000fd5b506001600160a01b03868116600090815260026020526040902080546001600160a01b03191683831617905590915062000ded908316863087620014df565b62000e036001600160a01b038316828662001552565b604080516001600160a01b038088168252831660208201529081018590527fc1a1f15666b0235d7e5ed7db678cfc0e9451b046c234011592b887be1434fd309060600160405180910390a162000e5a85826200160b565b95945050505050565b62000e7e6000805160206200420a8339815191523362000b72565b62000e9d5760405162461bcd60e51b8152600401620004369062001e76565b816001600160a01b03811662000ec75760405162461bcd60e51b8152600401620004369062001ead565b6001600160a01b038181166000908152600260205260409020541662000f015760405162461bcd60e51b8152600401620004369062001ef1565b6000821162000f5e5760405162461bcd60e51b815260206004820152602260248201527f416d6f756e742073686f756c642062652067726561746572207468616e207a65604482015261726f60f01b606482015260840162000436565b604051636eb1769f60e11b81523360048201523060248201527f0000000000000000000000003c59798620e5fec0ae6df1a19c6454094572ab929083906001600160a01b0383169063dd62ed3e90604401602060405180830381865afa15801562000fcd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000ff3919062002005565b1015620010435760405162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206e6f7420616c6c6f77656420746f206265207370656e740000604482015260640162000436565b6200105a6001600160a01b038216333086620014df565b6001600160a01b03808516600090815260026020526040902054620010859183811691168562001552565b6001600160a01b038481166000908152600260205260409081902054905163c031eddf60e01b81526004810186905291169063c031eddf90602401600060405180830381600087803b158015620010db57600080fd5b505af1158015620010f0573d6000803e3d6000fd5b5050505050505050565b6000828152602081905260409020600101546200111781620013e0565b620009df838362001477565b6200113e6000805160206200420a8339815191523362000b72565b6200115d5760405162461bcd60e51b8152600401620004369062001e76565b8160006001600160a01b03166001826040516200117b919062001f4e565b908152604051908190036020019020546001600160a01b031603620011d95760405162461bcd60e51b8152602060048201526013602482015272141bdbdb081b9bdd081c9959da5cdd195c9959606a1b604482015260640162000436565b600183604051620011eb919062001f4e565b908152604051908190036020018120546330d529bf60e01b82526001600160a01b0316906330d529bf90620012259085906004016200201f565b600060405180830381600087803b1580156200124057600080fd5b505af115801562001255573d6000803e3d6000fd5b50505050505050565b60006200127b6000805160206200420a8339815191523362000b72565b6200129a5760405162461bcd60e51b8152600401620004369062001e76565b60006001600160a01b0316600183604051620012b7919062001f4e565b908152604051908190036020019020546001600160a01b0316146200131f5760405162461bcd60e51b815260206004820152601760248201527f506f6f6c20616c72656164792072656769737465726564000000000000000000604482015260640162000436565b600082604051620013309062001b9c565b6200133c91906200201f565b604051809103906000f08015801562001359573d6000803e3d6000fd5b509050806001846040516200136f919062001f4e565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557fcf02e2a03b922ab8751dbc612a812205ee68c01ca057be55d405f45a8207211290620013d0908390869062002034565b60405180910390a190505b919050565b620013ec8133620016f3565b50565b620013fb828262000b72565b62000a62576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620014333390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b62001483828262000b72565b1562000a62576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b03808516602483015283166044820152606481018290526200154c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262001762565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015620015a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620015ca919062002005565b620015d6919062002070565b6040516001600160a01b0385166024820152604481018290529091506200154c90859063095ea7b360e01b9060640162001514565b604051630cac1fab60e41b81526001600160a01b038381166004830152828116602483015260009182917f000000000000000000000000d510c6480f061ecb46e1b4da9786a02e91a8d008169063cac1fab0906044016020604051808303816000875af115801562001681573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620016a7919062002005565b604080516001600160a01b0387168152602081018390529192507fa92bb3d2384c48f91dc983b4aec64355133e630ac9859b32a09c85b254191396910160405180910390a19392505050565b620016ff828262000b72565b62000a62576200171a816001600160a01b031660146200183b565b620017278360206200183b565b6040516020016200173a92919062002086565b60408051601f198184030181529082905262461bcd60e51b825262000436916004016200201f565b6000620017b9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620019fc9092919063ffffffff16565b805190915015620009df5780806020019051810190620017da9190620020ff565b620009df5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000436565b606060006200184c83600262002123565b6200185990600262002070565b67ffffffffffffffff81111562001874576200187462001c26565b6040519080825280601f01601f1916602001820160405280156200189f576020820181803683370190505b509050600360fc1b81600081518110620018bd57620018bd62002145565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620018ef57620018ef62002145565b60200101906001600160f81b031916908160001a90535060006200191584600262002123565b6200192290600162002070565b90505b6001811115620019a4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106200195a576200195a62002145565b1a60f81b82828151811062001973576200197362002145565b60200101906001600160f81b031916908160001a90535060049490941c936200199c816200215b565b905062001925565b508315620019f55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000436565b9392505050565b606062001a0d848460008562001a15565b949350505050565b60608247101562001a785760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000436565b6001600160a01b0385163b62001ad15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000436565b600080866001600160a01b0316858760405162001aef919062001f4e565b60006040518083038185875af1925050503d806000811462001b2e576040519150601f19603f3d011682016040523d82523d6000602084013e62001b33565b606091505b509150915062001b4582828662001b50565b979650505050505050565b6060831562001b61575081620019f5565b82511562001b725782518084602001fd5b8160405162461bcd60e51b81526004016200043691906200201f565b6110c8806200217683390190565b610fcc806200323e83390190565b60006020828403121562001bbd57600080fd5b81356001600160e01b031981168114620019f557600080fd5b80356001600160a01b0381168114620013db57600080fd5b60006020828403121562001c0157600080fd5b620019f58262001bd6565b60006020828403121562001c1f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262001c4e57600080fd5b813567ffffffffffffffff8082111562001c6c5762001c6c62001c26565b604051601f8301601f19908116603f0116810190828211818310171562001c975762001c9762001c26565b8160405283815286602085880101111562001cb157600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121562001ce857600080fd5b62001cf38562001bd6565b9350602085013567ffffffffffffffff8082111562001d1157600080fd5b62001d1f8883890162001c3c565b9450604087013591508082111562001d3657600080fd5b62001d448883890162001c3c565b9350606087013591508082111562001d5b57600080fd5b5062001d6a8782880162001c3c565b91505092959194509250565b60006020828403121562001d8957600080fd5b813567ffffffffffffffff81111562001da157600080fd5b62001a0d8482850162001c3c565b6000806040838503121562001dc357600080fd5b8235915062001dd56020840162001bd6565b90509250929050565b6000806040838503121562001df257600080fd5b62001dfd8362001bd6565b946020939093013593505050565b6000806040838503121562001e1f57600080fd5b823567ffffffffffffffff8082111562001e3857600080fd5b62001e468683870162001c3c565b9350602085013591508082111562001e5d57600080fd5b5062001e6c8582860162001c3c565b9150509250929050565b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b60208082526024908201527f56616c696461746f7220616464726573732073686f756c64206265206e6f6e2d6040820152637a65726f60e01b606082015260800190565b6020808252601b908201527f56616c696461746f72206973206e6f7420726567697374657265640000000000604082015260600190565b60005b8381101562001f4557818101518382015260200162001f2b565b50506000910152565b6000825162001f6281846020870162001f28565b9190910192915050565b6000815180845262001f8681602086016020860162001f28565b601f01601f19169290920160200192915050565b60608152600062001faf606083018662001f6c565b6001600160a01b0385166020840152828103604084015262001fd2818562001f6c565b9695505050505050565b60408152600062001ff1604083018562001f6c565b828103602084015262000e5a818562001f6c565b6000602082840312156200201857600080fd5b5051919050565b602081526000620019f5602083018462001f6c565b6001600160a01b038316815260406020820181905260009062001a0d9083018462001f6c565b634e487b7160e01b600052601160045260246000fd5b80820180821115620003f657620003f66200205a565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351620020c081601785016020880162001f28565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351620020f381602884016020880162001f28565b01602801949350505050565b6000602082840312156200211257600080fd5b81518015158114620019f557600080fd5b60008160001904831182151516156200214057620021406200205a565b500290565b634e487b7160e01b600052603260045260246000fd5b6000816200216d576200216d6200205a565b50600019019056fe60c060405234801561001057600080fd5b506040516110c83803806110c883398101604081905261002f9161018f565b61003833610123565b6001600160a01b0383166100a65760405162461bcd60e51b815260206004820152602a60248201527f4d617374657220636f6e747261637420616464726573732073686f756c64206e6044820152696f74206265207a65726f60b01b60648201526084015b60405180910390fd5b6001600160a01b0382166101085760405162461bcd60e51b8152602060048201526024808201527f56616c696461746f7220616464726573732073686f756c64206e6f74206265206044820152637a65726f60e01b606482015260840161009d565b6001600160a01b0392831660a05291166080526001556101cb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461018a57600080fd5b919050565b6000806000606084860312156101a457600080fd5b6101ad84610173565b92506101bb60208501610173565b9150604084015190509250925092565b60805160a051610e9a61022e6000396000818160d9015281816101f8015281816102840152818161040c0152610498015260008181610134015281816102a5015281816102fa015281816104b90152818161050601526105910152610e9a6000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063c031eddf11610066578063c031eddf1461019d578063dc947183146101b0578063f2fde38b146101d0578063f87c89de146101e357600080fd5b80638da5cb5b1461017b57806395d643a81461018c578063b73c6ce91461019557600080fd5b80633471728a146100d4578063373d6132146101185780633fe4676e1461012f57806343d726d6146101565780636fce242014610160578063715018a614610173575b600080fd5b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61012160015481565b60405190815260200161010f565b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b61015e6101ec565b005b61015e61016e366004610b1d565b610362565b61015e6103ec565b6000546001600160a01b03166100fb565b61012160035481565b61015e610400565b61015e6101ab366004610b81565b610564565b6101c36101be366004610b9a565b6105e8565b60405161010f9190610c27565b61015e6101de366004610c4f565b610698565b61012160025481565b6101f4610716565b60007f000000000000000000000000000000000000000000000000000000000000000090506000816001600160a01b0316639d76ea586040518163ffffffff1660e01b8152600401602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d9190610c6c565b90506102e67f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006003546001546102d49190610c89565b6001600160a01b038516929190610770565b600154600354604080516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016815260208101939093528201527feee49ce990a541001544bfe809356f239088e14afc5cf28a75cc60a7e01829d69060600160405180910390a1505060006001819055600355565b61036a610716565b8060048360405161037b9190610cb0565b908152602001604051809103902090816103959190610d54565b506001600260008282546103a99190610c89565b90915550506040517f8ed32f00e34c4dbec58d640a520bbcfd596e7f7d6984c2157d1d6756289b7e42906103e09084908490610e14565b60405180910390a15050565b6103f4610716565b6103fe60006107d0565b565b610408610716565b60007f000000000000000000000000000000000000000000000000000000000000000090506000816001600160a01b0316639d76ea586040518163ffffffff1660e01b8152600401602060405180830381865afa15801561046d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104919190610c6c565b90506104f57f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600354846001600160a01b0316610770909392919063ffffffff16565b600354604080516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016815260208101929092527f1fada0a7d6bca77d14c2d68f2c435b24fae8291e19f5330c9ab7806074194e33910160405180910390a150506000600355565b61056c610716565b806003600082825461057e9190610c89565b9091555050604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602081018390527f38cbdc591b5cf62cc9a88b92dcee4809f0d0ca6cd9bdad9f818d74c38e78bf29910160405180910390a150565b60606004826040516105fa9190610cb0565b9081526020016040518091039020805461061390610ccc565b80601f016020809104026020016040519081016040528092919081815260200182805461063f90610ccc565b801561068c5780601f106106615761010080835404028352916020019161068c565b820191906000526020600020905b81548152906001019060200180831161066f57829003601f168201915b50505050509050919050565b6106a0610716565b6001600160a01b03811661070a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610713816107d0565b50565b6000546001600160a01b031633146103fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610701565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526107ca908590610820565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610875826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108f79092919063ffffffff16565b8051909150156108f257808060200190518101906108939190610e42565b6108f25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610701565b505050565b60606109068484600085610910565b90505b9392505050565b6060824710156109715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610701565b6001600160a01b0385163b6109c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610701565b600080866001600160a01b031685876040516109e49190610cb0565b60006040518083038185875af1925050503d8060008114610a21576040519150601f19603f3d011682016040523d82523d6000602084013e610a26565b606091505b5091509150610a36828286610a41565b979650505050505050565b60608315610a50575081610909565b825115610a605782518084602001fd5b8160405162461bcd60e51b81526004016107019190610c27565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610aa157600080fd5b813567ffffffffffffffff80821115610abc57610abc610a7a565b604051601f8301601f19908116603f01168101908282118183101715610ae457610ae4610a7a565b81604052838152866020858801011115610afd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215610b3057600080fd5b823567ffffffffffffffff80821115610b4857600080fd5b610b5486838701610a90565b93506020850135915080821115610b6a57600080fd5b50610b7785828601610a90565b9150509250929050565b600060208284031215610b9357600080fd5b5035919050565b600060208284031215610bac57600080fd5b813567ffffffffffffffff811115610bc357600080fd5b610bcf84828501610a90565b949350505050565b60005b83811015610bf2578181015183820152602001610bda565b50506000910152565b60008151808452610c13816020860160208601610bd7565b601f01601f19169290920160200192915050565b6020815260006109096020830184610bfb565b6001600160a01b038116811461071357600080fd5b600060208284031215610c6157600080fd5b813561090981610c3a565b600060208284031215610c7e57600080fd5b815161090981610c3a565b80820180821115610caa57634e487b7160e01b600052601160045260246000fd5b92915050565b60008251610cc2818460208701610bd7565b9190910192915050565b600181811c90821680610ce057607f821691505b602082108103610d0057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156108f257600081815260208120601f850160051c81016020861015610d2d5750805b601f850160051c820191505b81811015610d4c57828155600101610d39565b505050505050565b815167ffffffffffffffff811115610d6e57610d6e610a7a565b610d8281610d7c8454610ccc565b84610d06565b602080601f831160018114610db75760008415610d9f5750858301515b600019600386901b1c1916600185901b178555610d4c565b600085815260208120601f198616915b82811015610de657888601518255948401946001909101908401610dc7565b5085821015610e045787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000610e276040830185610bfb565b8281036020840152610e398185610bfb565b95945050505050565b600060208284031215610e5457600080fd5b8151801515811461090957600080fdfea26469706673582212202cd81935c8a4a2b1210b3df2f1fb7fee177c78ea1df5210d3088424b097bff0a64736f6c6343000810003360806040523480156200001157600080fd5b5060405162000fcc38038062000fcc8339810160408190526200003491620000bb565b6200003f3362000055565b60016200004d82826200021f565b5050620002eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620000cf57600080fd5b82516001600160401b0380821115620000e757600080fd5b818501915085601f830112620000fc57600080fd5b815181811115620001115762000111620000a5565b604051601f8201601f19908116603f011681019083821181831017156200013c576200013c620000a5565b8160405282815288868487010111156200015557600080fd5b600093505b828410156200017957848401860151818501870152928501926200015a565b600086848301015280965050505050505092915050565b600181811c90821680620001a557607f821691505b602082108103620001c657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021a57600081815260208120601f850160051c81016020861015620001f55750805b601f850160051c820191505b81811015620002165782815560010162000201565b5050505b505050565b81516001600160401b038111156200023b576200023b620000a5565b62000253816200024c845462000190565b84620001cc565b602080601f8311600181146200028b5760008415620002725750858301515b600019600386901b1c1916600185901b17855562000216565b600085815260208120601f198616915b82811015620002bc578886015182559484019460019091019084016200029b565b5085821015620002db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610cd180620002fb6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063c3b50bb311610066578063c3b50bb31461010c578063d44602311461011f578063ede3091b1461013f578063f2fde38b1461017d578063f457f4941461019057600080fd5b806306fdde03146100a35780630bd5f09a146100c157806330d529bf146100d6578063715018a6146100e95780638da5cb5b146100f1575b600080fd5b6100ab6101a3565b6040516100b8919061085e565b60405180910390f35b6100d46100cf366004610937565b610231565b005b6100d46100e43660046109ab565b6103ef565b6100d46104d2565b6000546040516001600160a01b0390911681526020016100b8565b6100ab61011a3660046109e8565b6104e6565b61013261012d3660046109ab565b6105ad565b6040516100b89190610a36565b61016d61014d3660046109ab565b805160208183018101805160028252928201919093012091525460ff1681565b60405190151581526020016100b8565b6100d461018b366004610a98565b6106a4565b6100ab61019e366004610ab3565b61071d565b600180546101b090610af8565b80601f01602080910402602001604051908101604052809291908181526020018280546101dc90610af8565b80156102295780601f106101fe57610100808354040283529160200191610229565b820191906000526020600020905b81548152906001019060200180831161020c57829003601f168201915b505050505081565b610239610764565b6002836040516102499190610b32565b9081526040519081900360200190205460ff166102a45760405162461bcd60e51b815260206004820152601460248201527351756572792055524c206e6f742065786973747360601b60448201526064015b60405180910390fd5b6004836040516102b49190610b32565b90815260408051602092819003830190206001600160a01b03851660009081529252902080546102e390610af8565b1590506103325760405162461bcd60e51b815260206004820152601960248201527f56616c69646174696f6e20616c72656164792065786973747300000000000000604482015260640161029b565b806004846040516103439190610b32565b90815260408051602092819003830190206001600160a01b038616600090815292529020906103729082610b9d565b506003836040516103839190610b32565b9081526040516020918190038201902080546001810182556000918252919020016103ae8282610b9d565b507fc3ca6219ce259bb1a9e53663ef1150da7cfbbfd83d2a6e75cb79935b6fb2c6bc8383836040516103e293929190610c5d565b60405180910390a1505050565b6103f7610764565b6002816040516104079190610b32565b9081526040519081900360200190205460ff16156104675760405162461bcd60e51b815260206004820152601860248201527f51756572792055524c20616c7265616479206578697374730000000000000000604482015260640161029b565b60016002826040516104799190610b32565b908152604051908190036020018120805492151560ff19909316929092179091557f580f8bd14fecc02c20374f7ea2837906015993dcc1fc5c2656daa0e2b08a48d4906104c790839061085e565b60405180910390a150565b6104da610764565b6104e460006107be565b565b60606004836040516104f89190610b32565b90815260408051602092819003830190206001600160a01b038516600090815292529020805461052790610af8565b80601f016020809104026020016040519081016040528092919081815260200182805461055390610af8565b80156105a05780601f10610575576101008083540402835291602001916105a0565b820191906000526020600020905b81548152906001019060200180831161058357829003601f168201915b5050505050905092915050565b60606003826040516105bf9190610b32565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020016000905b8282101561069957838290600052602060002001805461060c90610af8565b80601f016020809104026020016040519081016040528092919081815260200182805461063890610af8565b80156106855780601f1061065a57610100808354040283529160200191610685565b820191906000526020600020905b81548152906001019060200180831161066857829003601f168201915b5050505050815260200190600101906105ed565b505050509050919050565b6106ac610764565b6001600160a01b0381166107115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161029b565b61071a816107be565b50565b8151602081840181018051600382529282019185019190912091905280548290811061074857600080fd5b906000526020600020016000915091505080546101b090610af8565b6000546001600160a01b031633146104e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161029b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b83811015610829578181015183820152602001610811565b50506000910152565b6000815180845261084a81602086016020860161080e565b601f01601f19169290920160200192915050565b6020815260006108716020830184610832565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261089f57600080fd5b813567ffffffffffffffff808211156108ba576108ba610878565b604051601f8301601f19908116603f011681019082821181831017156108e2576108e2610878565b816040528381528660208588010111156108fb57600080fd5b836020870160208301376000602085830101528094505050505092915050565b80356001600160a01b038116811461093257600080fd5b919050565b60008060006060848603121561094c57600080fd5b833567ffffffffffffffff8082111561096457600080fd5b6109708783880161088e565b945061097e6020870161091b565b9350604086013591508082111561099457600080fd5b506109a18682870161088e565b9150509250925092565b6000602082840312156109bd57600080fd5b813567ffffffffffffffff8111156109d457600080fd5b6109e08482850161088e565b949350505050565b600080604083850312156109fb57600080fd5b823567ffffffffffffffff811115610a1257600080fd5b610a1e8582860161088e565b925050610a2d6020840161091b565b90509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015610a8b57603f19888603018452610a79858351610832565b94509285019290850190600101610a5d565b5092979650505050505050565b600060208284031215610aaa57600080fd5b6108718261091b565b60008060408385031215610ac657600080fd5b823567ffffffffffffffff811115610add57600080fd5b610ae98582860161088e565b95602094909401359450505050565b600181811c90821680610b0c57607f821691505b602082108103610b2c57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251610b4481846020870161080e565b9190910192915050565b601f821115610b9857600081815260208120601f850160051c81016020861015610b755750805b601f850160051c820191505b81811015610b9457828155600101610b81565b5050505b505050565b815167ffffffffffffffff811115610bb757610bb7610878565b610bcb81610bc58454610af8565b84610b4e565b602080601f831160018114610c005760008415610be85750858301515b600019600386901b1c1916600185901b178555610b94565b600085815260208120601f198616915b82811015610c2f57888601518255948401946001909101908401610c10565b5085821015610c4d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b606081526000610c706060830186610832565b6001600160a01b03851660208401528281036040840152610c918185610832565b969550505050505056fea2646970667358221220fee7ed9d03f8d19d179fcf5f83f661209c391c80e2255729a8e7a845512aaf0b64736f6c63430008100033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a26469706673582212209e2701b756c9b1962f492a8aa7dad78ffef5e85b36dbeef7f17489d619f899c564736f6c63430008100033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000003c59798620e5fec0ae6df1a19c6454094572ab9200000000000000000000000000000000000000000000000000000000000000194d6f7270686575732e4e6574776f726b2054727573744d4e57000000000000000000000000000000000000000000000000000000000000000000000000000004544d4e5700000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _nftName (string): Morpheus.Network TrustMNW
Arg [1] : _nftSymbol (string): TMNW
Arg [2] : _tokenContractAddress (address): 0x3c59798620e5fEC0Ae6dF1A19c6454094572Ab92

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000003c59798620e5fec0ae6df1a19c6454094572ab92
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [4] : 4d6f7270686575732e4e6574776f726b2054727573744d4e5700000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 544d4e5700000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

68632:5561:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62840:204;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;62840:204:0;;;;;;;;72904:232;;;;;;:::i;:::-;;:::i;:::-;;64676:131;;;;;;:::i;:::-;64750:7;64777:12;;;;;;;;;;:22;;;;64676:131;;;;1197:25:1;;;1185:2;1170:18;64676:131:0;1051:177:1;71959:725:0;;;;;;:::i;:::-;;:::i;73959:114::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3403:32:1;;;3385:51;;3373:2;3358:18;73959:114:0;3239:203:1;74093:97:0;;;;;;:::i;:::-;;:::i;65117:147::-;;;;;;:::i;:::-;;:::i;66261:218::-;;;;;;:::i;:::-;;:::i;68754:35::-;;;;;72690:208;;;;;;:::i;:::-;;:::i;68856:55::-;;-1:-1:-1;;;;;;;;;;;68856:55:0;;63136:147;;;;;;:::i;:::-;;:::i;70382:969::-;;;;;;:::i;:::-;;:::i;73142:134::-;;;;;;:::i;:::-;-1:-1:-1;;;;;73240:30:0;;;73217:7;73240:30;;;:11;:30;;;;;;;;73142:134;68712:37;;;;;62241:49;;62286:4;62241:49;;71357:596;;;;;;:::i;:::-;;:::i;65557:149::-;;;;;;:::i;:::-;;:::i;73769:184::-;;;;;;:::i;:::-;;:::i;68796:55::-;;68833:18;68796:55;;73436:327;;;;;;:::i;:::-;;:::i;62840:204::-;62925:4;-1:-1:-1;;;;;;62949:47:0;;-1:-1:-1;;;62949:47:0;;:87;;-1:-1:-1;;;;;;;;;;32680:40:0;;;63000:36;62942:94;62840:204;-1:-1:-1;;62840:204:0:o;72904:232::-;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;;;;;;;;;73006:17;-1:-1:-1;;;;;69890:31:0;::::1;69882:80;;;;-1:-1:-1::0;;;69882:80:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;69977:30:0;;::::1;70019:1;69977:30:::0;;;:11:::1;:30;::::0;;;;;::::1;69969:84;;;;-1:-1:-1::0;;;69969:84:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;73045:30:0;;::::2;;::::0;;;:11:::2;:30;::::0;;;;;;73035:49;;-1:-1:-1;;;73035:49:0;;;;73045:30;::::2;::::0;73035:47:::2;::::0;:49:::2;::::0;;::::2;::::0;73045:30;;73035:49;;;;;;73045:30;;73035:49;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;;;;;;;73100:30:0;;::::2;;::::0;;;:11:::2;:30;::::0;;;;73093:37;;-1:-1:-1;;;;;;73093:37:0::2;::::0;;-1:-1:-1;;72904:232:0:o;71959:725::-;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;72151:17;-1:-1:-1;;;;;69890:31:0;::::1;69882:80;;;;-1:-1:-1::0;;;69882:80:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;69977:30:0;;::::1;70019:1;69977:30:::0;;;:11:::1;:30;::::0;;;;;::::1;69969:84;;;;-1:-1:-1::0;;;69969:84:0::1;;;;;;;:::i;:::-;72182:9:::2;73390:1;-1:-1:-1::0;;;;;73361:31:0::2;:6;73368:9;73361:17;;;;;;:::i;:::-;::::0;;;::::2;::::0;;;;;::::2;::::0;;;;-1:-1:-1;;;;;73361:17:0::2;:31:::0;73353:63:::2;;;::::0;-1:-1:-1;;;73353:63:0;;6744:2:1;73353:63:0::2;::::0;::::2;6726:21:1::0;6783:2;6763:18;;;6756:30;-1:-1:-1;;;6802:18:1;;;6795:49;6861:18;;73353:63:0::2;6542:343:1::0;73353:63:0::2;72214:15:::3;72208:29;72241:1;72208:34:::0;72200:78:::3;;;::::0;-1:-1:-1;;;72200:78:0;;7092:2:1;72200:78:0::3;::::0;::::3;7074:21:1::0;7131:2;7111:18;;;7104:30;7170:33;7150:18;;;7143:61;7221:18;;72200:78:0::3;6890:355:1::0;72200:78:0::3;-1:-1:-1::0;;;;;72302:45:0;::::3;;::::0;;;:26:::3;:45;::::0;;;;;;:62;;::::3;::::0;72348:15;;72302:62:::3;:::i;:::-;::::0;;;::::3;::::0;;;;;::::3;::::0;;;;::::3;;72301:63;72285:132;;;::::0;-1:-1:-1;;;72285:132:0;;7452:2:1;72285:132:0::3;::::0;::::3;7434:21:1::0;7491:2;7471:18;;;7464:30;7530:34;7510:18;;;7503:62;-1:-1:-1;;;7581:18:1;;;7574:33;7624:19;;72285:132:0::3;7250:399:1::0;72285:132:0::3;72431:6;72438:9;72431:17;;;;;;:::i;:::-;::::0;;;::::3;::::0;;;;;::::3;::::0;;;;-1:-1:-1;;;72426:84:0;;-1:-1:-1;;;;;72431:17:0::3;::::0;72426:37:::3;::::0;:84:::3;::::0;72464:9;;72475:17;;72494:15;;72426:84:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;;;;;;;72527:30:0;;::::3;;::::0;;;:11:::3;:30;::::0;;;;;;;72517:83;;-1:-1:-1;;;72517:83:0;;72527:30;::::3;::::0;-1:-1:-1;72517:55:0::3;::::0;:83:::3;::::0;72573:9;;72584:15;;72517:83:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;;;;;;;72609:45:0;::::3;;::::0;;;:26:::3;:45;::::0;;;;;;:62;;72674:4:::3;::::0;-1:-1:-1;72609:62:0::3;::::0;72655:15;;72609:62:::3;:::i;:::-;::::0;;;::::3;::::0;;;;;::::3;::::0;;;:69;;;::::3;;-1:-1:-1::0;;72609:69:0;;::::3;::::0;;;::::3;::::0;;-1:-1:-1;;;;;;71959:725:0:o;73959:114::-;74027:7;74050:6;74057:9;74050:17;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;;;;74050:17:0;;73959:114;-1:-1:-1;;73959:114:0:o;74093:97::-;69607:31;68833:18;69627:10;69607:7;:31::i;:::-;69599:67;;;;-1:-1:-1;;;69599:67:0;;9005:2:1;69599:67:0;;;8987:21:1;9044:2;9024:18;;;9017:30;9083:25;9063:18;;;9056:53;9126:18;;69599:67:0;8803:347:1;69599:67:0;74154:30:::1;::::0;-1:-1:-1;;;74154:30:0;;::::1;::::0;::::1;1197:25:1::0;;;74158:10:0::1;-1:-1:-1::0;;;;;74154:20:0::1;::::0;::::1;::::0;1170:18:1;;74154:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;74093:97:::0;:::o;65117:147::-;64750:7;64777:12;;;;;;;;;;:22;;;62732:16;62743:4;62732:10;:16::i;:::-;65231:25:::1;65242:4;65248:7;65231:10;:25::i;:::-;65117:147:::0;;;:::o;66261:218::-;-1:-1:-1;;;;;66357:23:0;;1399:10;66357:23;66349:83;;;;-1:-1:-1;;;66349:83:0;;9357:2:1;66349:83:0;;;9339:21:1;9396:2;9376:18;;;9369:30;9435:34;9415:18;;;9408:62;-1:-1:-1;;;9486:18:1;;;9479:45;9541:19;;66349:83:0;9155:411:1;66349:83:0;66445:26;66457:4;66463:7;66445:11;:26::i;:::-;66261:218;;:::o;72690:208::-;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;72803:17;-1:-1:-1;;;;;69890:31:0;::::1;69882:80;;;;-1:-1:-1::0;;;69882:80:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;69977:30:0;;::::1;70019:1;69977:30:::0;;;:11:::1;:30;::::0;;;;;::::1;69969:84;;;;-1:-1:-1::0;;;69969:84:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;72842:30:0;;::::2;;::::0;;;:11:::2;:30;::::0;;;;;;72832:60;;-1:-1:-1;;;72832:60:0;;;;72842:30;::::2;::::0;72832:58:::2;::::0;:60:::2;::::0;;::::2;::::0;72842:30;;72832:60;;;;;;72842:30;;72832:60;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;69788:1:::1;72690:208:::0;:::o;63136:147::-;63222:4;63246:12;;;;;;;;;;;-1:-1:-1;;;;;63246:29:0;;;;;;;;;;;;;;;63136:147::o;70382:969::-;70502:7;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;70529:31:0;::::1;70521:80;;;;-1:-1:-1::0;;;70521:80:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;70616:30:0;;::::1;70658:1;70616:30:::0;;;:11:::1;:30;::::0;;;;;::::1;:44:::0;70608:85:::1;;;::::0;-1:-1:-1;;;70608:85:0;;9773:2:1;70608:85:0::1;::::0;::::1;9755:21:1::0;9812:2;9792:18;;;9785:30;9851;9831:18;;;9824:58;9899:18;;70608:85:0::1;9571:352:1::0;70608:85:0::1;70762:49;::::0;-1:-1:-1;;;70762:49:0;;-1:-1:-1;;;;;10158:15:1;;;70762:49:0::1;::::0;::::1;10140:34:1::0;70805:4:0::1;10190:18:1::0;;;10183:43;70724:12:0::1;::::0;70815:13;;70762:15;::::1;::::0;::::1;::::0;10075:18:1;;70762:49:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:66;;70746:138;;;::::0;-1:-1:-1;;;70746:138:0;;10628:2:1;70746:138:0::1;::::0;::::1;10610:21:1::0;10667:2;10647:18;;;10640:30;10706:34;10686:18;;;10679:62;-1:-1:-1;;;10757:18:1;;;10750:36;10803:19;;70746:138:0::1;10426:402:1::0;70746:138:0::1;70893:19;70937:4;70944:17;70963:13;70915:62;;;;;:::i;:::-;-1:-1:-1::0;;;;;11091:15:1;;;11073:34;;11143:15;;;;11138:2;11123:18;;11116:43;11190:2;11175:18;;11168:34;11023:2;11008:18;70915:62:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;;;70984:30:0;;::::1;;::::0;;;:11:::1;:30;::::0;;;;:51;;-1:-1:-1;;;;;;70984:51:0::1;::::0;;::::1;;::::0;;;;-1:-1:-1;71044:71:0::1;::::0;:22;::::1;70984:30:::0;71094:4:::1;71101:13:::0;71044:22:::1;:71::i;:::-;71122:62;-1:-1:-1::0;;;;;71122:27:0;::::1;71158:9:::0;71170:13;71122:27:::1;:62::i;:::-;71198:73;::::0;;-1:-1:-1;;;;;11091:15:1;;;11073:34;;11143:15;;11138:2;11123:18;;11116:43;11175:18;;;11168:34;;;71198:73:0::1;::::0;11023:2:1;11008:18;71198:73:0::1;;;;;;;71287:58;71307:17;71334:9;71287:19;:58::i;:::-;71280:65:::0;70382:969;-1:-1:-1;;;;;70382:969:0:o;71357:596::-;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;71477:17;-1:-1:-1;;;;;69890:31:0;::::1;69882:80;;;;-1:-1:-1::0;;;69882:80:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;69977:30:0;;::::1;70019:1;69977:30:::0;;;:11:::1;:30;::::0;;;;;::::1;69969:84;;;;-1:-1:-1::0;;;69969:84:0::1;;;;;;;:::i;:::-;71524:1:::2;71514:7;:11;71506:58;;;::::0;-1:-1:-1;;;71506:58:0;;11415:2:1;71506:58:0::2;::::0;::::2;11397:21:1::0;11454:2;11434:18;;;11427:30;11493:34;11473:18;;;11466:62;-1:-1:-1;;;11544:18:1;;;11537:32;11586:19;;71506:58:0::2;11213:398:1::0;71506:58:0::2;71633:42;::::0;-1:-1:-1;;;71633:42:0;;71649:10:::2;71633:42;::::0;::::2;10140:34:1::0;71669:4:0::2;10190:18:1::0;;;10183:43;71595:12:0::2;::::0;71679:7;;-1:-1:-1;;;;;71633:15:0;::::2;::::0;::::2;::::0;10075:18:1;;71633:42:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;71617:117;;;::::0;-1:-1:-1;;;71617:117:0;;11818:2:1;71617:117:0::2;::::0;::::2;11800:21:1::0;11857:2;11837:18;;;11830:30;11896:32;11876:18;;;11869:60;11946:18;;71617:117:0::2;11616:354:1::0;71617:117:0::2;71743:58;-1:-1:-1::0;;;;;71743:22:0;::::2;71766:10;71786:4;71793:7:::0;71743:22:::2;:58::i;:::-;-1:-1:-1::0;;;;;71836:30:0;;::::2;;::::0;;;:11:::2;:30;::::0;;;;;71808:68:::2;::::0;:27;;::::2;::::0;71836:30:::2;71868:7:::0;71808:27:::2;:68::i;:::-;-1:-1:-1::0;;;;;71895:30:0;;::::2;;::::0;;;:11:::2;:30;::::0;;;;;;;71885:62;;-1:-1:-1;;;71885:62:0;;::::2;::::0;::::2;1197:25:1::0;;;71895:30:0;::::2;::::0;71885:53:::2;::::0;1170:18:1;;71885:62:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;71499:454;69788:1:::1;71357:596:::0;;:::o;65557:149::-;64750:7;64777:12;;;;;;;;;;:22;;;62732:16;62743:4;62732:10;:16::i;:::-;65672:26:::1;65684:4;65690:7;65672:11;:26::i;73769:184::-:0;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;73883:9:::1;73390:1;-1:-1:-1::0;;;;;73361:31:0::1;:6;73368:9;73361:17;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;-1:-1:-1;;;;;73361:17:0::1;:31:::0;73353:63:::1;;;::::0;-1:-1:-1;;;73353:63:0;;6744:2:1;73353:63:0::1;::::0;::::1;6726:21:1::0;6783:2;6763:18;;;6756:30;-1:-1:-1;;;6802:18:1;;;6795:49;6861:18;;73353:63:0::1;6542:343:1::0;73353:63:0::1;73909:6:::2;73916:9;73909:17;;;;;;:::i;:::-;::::0;;;::::2;::::0;;;;;::::2;::::0;;;;-1:-1:-1;;;73904:43:0;;-1:-1:-1;;;;;73909:17:0::2;::::0;73904:32:::2;::::0;:43:::2;::::0;73937:9;;73904:43:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;69788:1:::1;73769:184:::0;;:::o;73436:327::-;73511:7;69722:31;-1:-1:-1;;;;;;;;;;;69742:10:0;69722:7;:31::i;:::-;69714:67;;;;-1:-1:-1;;;69714:67:0;;;;;;;:::i;:::-;73564:1:::1;-1:-1:-1::0;;;;;73535:31:0::1;:6;73542:9;73535:17;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;-1:-1:-1;;;;;73535:17:0::1;:31;73527:67;;;::::0;-1:-1:-1;;;73527:67:0;;12402:2:1;73527:67:0::1;::::0;::::1;12384:21:1::0;12441:2;12421:18;;;12414:30;12480:25;12460:18;;;12453:53;12523:18;;73527:67:0::1;12200:347:1::0;73527:67:0::1;73603:9;73624;73615:19;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;73603:31;;73669:4;73641:6;73648:9;73641:17;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;:33;;-1:-1:-1;;;;;73641:33:0;;;::::1;-1:-1:-1::0;;;;;;73641:33:0;;::::1;::::0;;;::::1;::::0;;;73688:40:::1;::::0;::::1;::::0;73711:4;;73718:9;;73688:40:::1;:::i;:::-;;;;;;;;73752:4:::0;-1:-1:-1;69788:1:0::1;73436:327:::0;;;:::o;63587:105::-;63654:30;63665:4;1399:10;63654;:30::i;:::-;63587:105;:::o;67858:238::-;67942:22;67950:4;67956:7;67942;:22::i;:::-;67937:152;;67981:6;:12;;;;;;;;;;;-1:-1:-1;;;;;67981:29:0;;;;;;;;;:36;;-1:-1:-1;;67981:36:0;68013:4;67981:36;;;68064:12;1399:10;;1319:98;68064:12;-1:-1:-1;;;;;68037:40:0;68055:7;-1:-1:-1;;;;;68037:40:0;68049:4;68037:40;;;;;;;;;;67858:238;;:::o;68276:239::-;68360:22;68368:4;68374:7;68360;:22::i;:::-;68356:152;;;68431:5;68399:12;;;;;;;;;;;-1:-1:-1;;;;;68399:29:0;;;;;;;;;;:37;;-1:-1:-1;;68399:37:0;;;68456:40;1399:10;;68399:12;;68456:40;;68431:5;68456:40;68276:239;;:::o;20706:248::-;20877:68;;-1:-1:-1;;;;;11091:15:1;;;20877:68:0;;;11073:34:1;11143:15;;11123:18;;;11116:43;11175:18;;;11168:34;;;20850:96:0;;20870:5;;-1:-1:-1;;;20900:27:0;11008:18:1;;20877:68:0;;;;-1:-1:-1;;20877:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;20877:68:0;-1:-1:-1;;;;;;20877:68:0;;;;;;;;;;20850:19;:96::i;:::-;20706:248;;;;:::o;21847:317::-;22001:39;;-1:-1:-1;;;22001:39:0;;22025:4;22001:39;;;10140:34:1;-1:-1:-1;;;;;10210:15:1;;;10190:18;;;10183:43;21978:20:0;;22043:5;;22001:15;;;;;10075:18:1;;22001:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;;:::i;:::-;22086:69;;-1:-1:-1;;;;;13328:32:1;;22086:69:0;;;13310:51:1;13377:18;;;13370:34;;;21978:70:0;;-1:-1:-1;22059:97:0;;22079:5;;-1:-1:-1;;;22109:22:0;13283:18:1;;22086:69:0;13136:274:1;70073:303:0;70218:71;;-1:-1:-1;;;70218:71:0;;-1:-1:-1;;;;;10158:15:1;;;70218:71:0;;;10140:34:1;10210:15;;;10190:18;;;10183:43;70182:7:0;;;;70222:10;70218:34;;;;10075:18:1;;70218:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;70303:45;;;-1:-1:-1;;;;;13328:32:1;;13310:51;;13392:2;13377:18;;13370:34;;;70201:88:0;;-1:-1:-1;70303:45:0;;13283:18:1;70303:45:0;;;;;;;70364:6;70073:303;-1:-1:-1;;;70073:303:0:o;63982:505::-;64071:22;64079:4;64085:7;64071;:22::i;:::-;64066:414;;64259:41;64287:7;-1:-1:-1;;;;;64259:41:0;64297:2;64259:19;:41::i;:::-;64373:38;64401:4;64408:2;64373:19;:38::i;:::-;64164:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;64164:270:0;;;;;;;;;;-1:-1:-1;;;64110:358:0;;;;;;;:::i;23554:716::-;23978:23;24004:69;24032:4;24004:69;;;;;;;;;;;;;;;;;24012:5;-1:-1:-1;;;;;24004:27:0;;;:69;;;;;:::i;:::-;24088:17;;23978:95;;-1:-1:-1;24088:21:0;24084:179;;24185:10;24174:30;;;;;;;;;;;;:::i;:::-;24166:85;;;;-1:-1:-1;;;24166:85:0;;14716:2:1;24166:85:0;;;14698:21:1;14755:2;14735:18;;;14728:30;14794:34;14774:18;;;14767:62;-1:-1:-1;;;14845:18:1;;;14838:40;14895:19;;24166:85:0;14514:406:1;28470:451:0;28545:13;28571:19;28603:10;28607:6;28603:1;:10;:::i;:::-;:14;;28616:1;28603:14;:::i;:::-;28593:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28593:25:0;;28571:47;;-1:-1:-1;;;28629:6:0;28636:1;28629:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;28629:15:0;;;;;;;;;-1:-1:-1;;;28655:6:0;28662:1;28655:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;28655:15:0;;;;;;;;-1:-1:-1;28686:9:0;28698:10;28702:6;28698:1;:10;:::i;:::-;:14;;28711:1;28698:14;:::i;:::-;28686:26;;28681:135;28718:1;28714;:5;28681:135;;;-1:-1:-1;;;28766:5:0;28774:3;28766:11;28753:25;;;;;;;:::i;:::-;;;;28741:6;28748:1;28741:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;28741:37:0;;;;;;;;-1:-1:-1;28803:1:0;28793:11;;;;;28721:3;;;:::i;:::-;;;28681:135;;;-1:-1:-1;28834:10:0;;28826:55;;;;-1:-1:-1;;;28826:55:0;;15573:2:1;28826:55:0;;;15555:21:1;;;15592:18;;;15585:30;15651:34;15631:18;;;15624:62;15703:18;;28826:55:0;15371:356:1;28826:55:0;28906:6;28470:451;-1:-1:-1;;;28470:451:0:o;15170:229::-;15307:12;15339:52;15361:6;15369:4;15375:1;15378:12;15339:21;:52::i;:::-;15332:59;15170:229;-1:-1:-1;;;;15170:229:0:o;16290:510::-;16460:12;16518:5;16493:21;:30;;16485:81;;;;-1:-1:-1;;;16485:81:0;;15934:2:1;16485:81:0;;;15916:21:1;15973:2;15953:18;;;15946:30;16012:34;15992:18;;;15985:62;-1:-1:-1;;;16063:18:1;;;16056:36;16109:19;;16485:81:0;15732:402:1;16485:81:0;-1:-1:-1;;;;;12720:19:0;;;16577:60;;;;-1:-1:-1;;;16577:60:0;;16341:2:1;16577:60:0;;;16323:21:1;16380:2;16360:18;;;16353:30;16419:31;16399:18;;;16392:59;16468:18;;16577:60:0;16139:353:1;16577:60:0;16651:12;16665:23;16692:6;-1:-1:-1;;;;;16692:11:0;16711:5;16718:4;16692:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16650:73;;;;16741:51;16758:7;16767:10;16779:12;16741:16;:51::i;:::-;16734:58;16290:510;-1:-1:-1;;;;;;;16290:510:0:o;18976:762::-;19126:12;19155:7;19151:580;;;-1:-1:-1;19186:10:0;19179:17;;19151:580;19300:17;;:21;19296:424;;19548:10;19542:17;19609:15;19596:10;19592:2;19588:19;19581:44;19296:424;19691:12;19684:20;;-1:-1:-1;;;19684:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;:::o;:::-;;;;;;;;:::o;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:173;565:20;;-1:-1:-1;;;;;614:31:1;;604:42;;594:70;;660:1;657;650:12;675:186;734:6;787:2;775:9;766:7;762:23;758:32;755:52;;;803:1;800;793:12;755:52;826:29;845:9;826:29;:::i;866:180::-;925:6;978:2;966:9;957:7;953:23;949:32;946:52;;;994:1;991;984:12;946:52;-1:-1:-1;1017:23:1;;866:180;-1:-1:-1;866:180:1:o;1233:127::-;1294:10;1289:3;1285:20;1282:1;1275:31;1325:4;1322:1;1315:15;1349:4;1346:1;1339:15;1365:719;1408:5;1461:3;1454:4;1446:6;1442:17;1438:27;1428:55;;1479:1;1476;1469:12;1428:55;1515:6;1502:20;1541:18;1578:2;1574;1571:10;1568:36;;;1584:18;;:::i;:::-;1659:2;1653:9;1627:2;1713:13;;-1:-1:-1;;1709:22:1;;;1733:2;1705:31;1701:40;1689:53;;;1757:18;;;1777:22;;;1754:46;1751:72;;;1803:18;;:::i;:::-;1843:10;1839:2;1832:22;1878:2;1870:6;1863:18;1924:3;1917:4;1912:2;1904:6;1900:15;1896:26;1893:35;1890:55;;;1941:1;1938;1931:12;1890:55;2005:2;1998:4;1990:6;1986:17;1979:4;1971:6;1967:17;1954:54;2052:1;2045:4;2040:2;2032:6;2028:15;2024:26;2017:37;2072:6;2063:15;;;;;;1365:719;;;;:::o;2089:818::-;2205:6;2213;2221;2229;2282:3;2270:9;2261:7;2257:23;2253:33;2250:53;;;2299:1;2296;2289:12;2250:53;2322:29;2341:9;2322:29;:::i;:::-;2312:39;;2402:2;2391:9;2387:18;2374:32;2425:18;2466:2;2458:6;2455:14;2452:34;;;2482:1;2479;2472:12;2452:34;2505:50;2547:7;2538:6;2527:9;2523:22;2505:50;:::i;:::-;2495:60;;2608:2;2597:9;2593:18;2580:32;2564:48;;2637:2;2627:8;2624:16;2621:36;;;2653:1;2650;2643:12;2621:36;2676:52;2720:7;2709:8;2698:9;2694:24;2676:52;:::i;:::-;2666:62;;2781:2;2770:9;2766:18;2753:32;2737:48;;2810:2;2800:8;2797:16;2794:36;;;2826:1;2823;2816:12;2794:36;;2849:52;2893:7;2882:8;2871:9;2867:24;2849:52;:::i;:::-;2839:62;;;2089:818;;;;;;;:::o;2912:322::-;2981:6;3034:2;3022:9;3013:7;3009:23;3005:32;3002:52;;;3050:1;3047;3040:12;3002:52;3090:9;3077:23;3123:18;3115:6;3112:30;3109:50;;;3155:1;3152;3145:12;3109:50;3178;3220:7;3211:6;3200:9;3196:22;3178:50;:::i;3632:254::-;3700:6;3708;3761:2;3749:9;3740:7;3736:23;3732:32;3729:52;;;3777:1;3774;3767:12;3729:52;3813:9;3800:23;3790:33;;3842:38;3876:2;3865:9;3861:18;3842:38;:::i;:::-;3832:48;;3632:254;;;;;:::o;3891:::-;3959:6;3967;4020:2;4008:9;3999:7;3995:23;3991:32;3988:52;;;4036:1;4033;4026:12;3988:52;4059:29;4078:9;4059:29;:::i;:::-;4049:39;4135:2;4120:18;;;;4107:32;;-1:-1:-1;;;3891:254:1:o;4332:543::-;4420:6;4428;4481:2;4469:9;4460:7;4456:23;4452:32;4449:52;;;4497:1;4494;4487:12;4449:52;4537:9;4524:23;4566:18;4607:2;4599:6;4596:14;4593:34;;;4623:1;4620;4613:12;4593:34;4646:50;4688:7;4679:6;4668:9;4664:22;4646:50;:::i;:::-;4636:60;;4749:2;4738:9;4734:18;4721:32;4705:48;;4778:2;4768:8;4765:16;4762:36;;;4794:1;4791;4784:12;4762:36;;4817:52;4861:7;4850:8;4839:9;4835:24;4817:52;:::i;:::-;4807:62;;;4332:543;;;;;:::o;4880:347::-;5082:2;5064:21;;;5121:2;5101:18;;;5094:30;5160:25;5155:2;5140:18;;5133:53;5218:2;5203:18;;4880:347::o;5232:400::-;5434:2;5416:21;;;5473:2;5453:18;;;5446:30;5512:34;5507:2;5492:18;;5485:62;-1:-1:-1;;;5578:2:1;5563:18;;5556:34;5622:3;5607:19;;5232:400::o;5637:351::-;5839:2;5821:21;;;5878:2;5858:18;;;5851:30;5917:29;5912:2;5897:18;;5890:57;5979:2;5964:18;;5637:351::o;5993:250::-;6078:1;6088:113;6102:6;6099:1;6096:13;6088:113;;;6178:11;;;6172:18;6159:11;;;6152:39;6124:2;6117:10;6088:113;;;-1:-1:-1;;6235:1:1;6217:16;;6210:27;5993:250::o;6248:289::-;6379:3;6417:6;6411:13;6433:66;6492:6;6487:3;6480:4;6472:6;6468:17;6433:66;:::i;:::-;6515:16;;;;;6248:289;-1:-1:-1;;6248:289:1:o;7654:271::-;7696:3;7734:5;7728:12;7761:6;7756:3;7749:19;7777:76;7846:6;7839:4;7834:3;7830:14;7823:4;7816:5;7812:16;7777:76;:::i;:::-;7907:2;7886:15;-1:-1:-1;;7882:29:1;7873:39;;;;7914:4;7869:50;;7654:271;-1:-1:-1;;7654:271:1:o;7930:480::-;8155:2;8144:9;8137:21;8118:4;8181:45;8222:2;8211:9;8207:18;8199:6;8181:45;:::i;:::-;-1:-1:-1;;;;;8262:32:1;;8257:2;8242:18;;8235:60;8331:22;;;8326:2;8311:18;;8304:50;8371:33;8335:6;8389;8371:33;:::i;:::-;8363:41;7930:480;-1:-1:-1;;;;;;7930:480:1:o;8415:383::-;8612:2;8601:9;8594:21;8575:4;8638:45;8679:2;8668:9;8664:18;8656:6;8638:45;:::i;:::-;8731:9;8723:6;8719:22;8714:2;8703:9;8699:18;8692:50;8759:33;8785:6;8777;8759:33;:::i;10237:184::-;10307:6;10360:2;10348:9;10339:7;10335:23;10331:32;10328:52;;;10376:1;10373;10366:12;10328:52;-1:-1:-1;10399:16:1;;10237:184;-1:-1:-1;10237:184:1:o;11975:220::-;12124:2;12113:9;12106:21;12087:4;12144:45;12185:2;12174:9;12170:18;12162:6;12144:45;:::i;12552:317::-;-1:-1:-1;;;;;12729:32:1;;12711:51;;12798:2;12793;12778:18;;12771:30;;;-1:-1:-1;;12818:45:1;;12844:18;;12836:6;12818:45;:::i;12874:127::-;12935:10;12930:3;12926:20;12923:1;12916:31;12966:4;12963:1;12956:15;12990:4;12987:1;12980:15;13006:125;13071:9;;;13092:10;;;13089:36;;;13105:18;;:::i;13415:812::-;13826:25;13821:3;13814:38;13796:3;13881:6;13875:13;13897:75;13965:6;13960:2;13955:3;13951:12;13944:4;13936:6;13932:17;13897:75;:::i;:::-;-1:-1:-1;;;14031:2:1;13991:16;;;14023:11;;;14016:40;14081:13;;14103:76;14081:13;14165:2;14157:11;;14150:4;14138:17;;14103:76;:::i;:::-;14199:17;14218:2;14195:26;;13415:812;-1:-1:-1;;;;13415:812:1:o;14232:277::-;14299:6;14352:2;14340:9;14331:7;14327:23;14323:32;14320:52;;;14368:1;14365;14358:12;14320:52;14400:9;14394:16;14453:5;14446:13;14439:21;14432:5;14429:32;14419:60;;14475:1;14472;14465:12;14925:168;14965:7;15031:1;15027;15023:6;15019:14;15016:1;15013:21;15008:1;15001:9;14994:17;14990:45;14987:71;;;15038:18;;:::i;:::-;-1:-1:-1;15078:9:1;;14925:168::o;15098:127::-;15159:10;15154:3;15150:20;15147:1;15140:31;15190:4;15187:1;15180:15;15214:4;15211:1;15204:15;15230:136;15269:3;15297:5;15287:39;;15306:18;;:::i;:::-;-1:-1:-1;;;15342:18:1;;15230:136::o

Swarm Source

ipfs://d574644821bb949bfd822202de75e14f25d04a5297b0945f97294b4e9c00b38a

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.