HYPE Price: $22.17 (+0.11%)
 

Overview

HYPE Balance

HyperEVM LogoHyperEVM LogoHyperEVM Logo0 HYPE

HYPE Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Verify Batch255787062026-01-26 7:42:003 mins ago1769413320IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255776692026-01-26 7:25:0020 mins ago1769412300IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255776082026-01-26 7:24:0021 mins ago1769412240IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255774252026-01-26 7:21:0024 mins ago1769412060IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255739482026-01-26 6:24:001 hr ago1769408640IN
HyperLend: Chainlink Consumer
0 HYPE0.000019910.1
Verify Batch255737652026-01-26 6:21:001 hr ago1769408460IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255717522026-01-26 5:48:001 hr ago1769406480IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255702272026-01-26 5:23:002 hrs ago1769404980IN
HyperLend: Chainlink Consumer
0 HYPE0.000020310.1
Verify Batch255700442026-01-26 5:20:002 hrs ago1769404800IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255665062026-01-26 4:22:003 hrs ago1769401320IN
HyperLend: Chainlink Consumer
0 HYPE0.00002010.1
Verify Batch255663842026-01-26 4:20:003 hrs ago1769401200IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255649812026-01-26 3:57:003 hrs ago1769399820IN
HyperLend: Chainlink Consumer
0 HYPE0.00002010.1
Verify Batch255644932026-01-26 3:49:003 hrs ago1769399340IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255623582026-01-26 3:14:004 hrs ago1769397240IN
HyperLend: Chainlink Consumer
0 HYPE0.000013070.10795401
Verify Batch255621142026-01-26 3:10:004 hrs ago1769397000IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255612602026-01-26 2:56:004 hrs ago1769396160IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255586372026-01-26 2:13:005 hrs ago1769393580IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255583932026-01-26 2:09:005 hrs ago1769393340IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255575392026-01-26 1:55:005 hrs ago1769392500IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255549772026-01-26 1:13:006 hrs ago1769389980IN
HyperLend: Chainlink Consumer
0 HYPE0.000012120.1
Verify Batch255547332026-01-26 1:09:006 hrs ago1769389740IN
HyperLend: Chainlink Consumer
0 HYPE0.000019710.1
Verify Batch255544892026-01-26 1:05:006 hrs ago1769389500IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255541232026-01-26 0:59:006 hrs ago1769389140IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255522932026-01-26 0:29:007 hrs ago1769387340IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
Verify Batch255520492026-01-26 0:25:007 hrs ago1769387100IN
HyperLend: Chainlink Consumer
0 HYPE0.000012110.1
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
255787062026-01-26 7:42:003 mins ago1769413320
0x2F81b130...0b492dbA4
0 HYPE
255787062026-01-26 7:42:003 mins ago1769413320
0x2F81b130...0b492dbA4
0 HYPE
255781832026-01-26 7:33:2611 mins ago1769412806
0x2F81b130...0b492dbA4
0 HYPE
255781832026-01-26 7:33:2611 mins ago1769412806
0x2F81b130...0b492dbA4
0 HYPE
255781832026-01-26 7:33:2611 mins ago1769412806
0x2F81b130...0b492dbA4
0 HYPE
255781832026-01-26 7:33:2611 mins ago1769412806
0x2F81b130...0b492dbA4
0 HYPE
255781832026-01-26 7:33:2611 mins ago1769412806
0x2F81b130...0b492dbA4
0 HYPE
255778832026-01-26 7:28:3116 mins ago1769412511
0x2F81b130...0b492dbA4
0 HYPE
255778832026-01-26 7:28:3116 mins ago1769412511
0x2F81b130...0b492dbA4
0 HYPE
255778832026-01-26 7:28:3116 mins ago1769412511
0x2F81b130...0b492dbA4
0 HYPE
255776692026-01-26 7:25:0020 mins ago1769412300
0x2F81b130...0b492dbA4
0 HYPE
255776692026-01-26 7:25:0020 mins ago1769412300
0x2F81b130...0b492dbA4
0 HYPE
255776082026-01-26 7:24:0021 mins ago1769412240
0x2F81b130...0b492dbA4
0 HYPE
255776082026-01-26 7:24:0021 mins ago1769412240
0x2F81b130...0b492dbA4
0 HYPE
255774252026-01-26 7:21:0024 mins ago1769412060
0x2F81b130...0b492dbA4
0 HYPE
255774252026-01-26 7:21:0024 mins ago1769412060
0x2F81b130...0b492dbA4
0 HYPE
255755872026-01-26 6:50:5354 mins ago1769410253
0x2F81b130...0b492dbA4
0 HYPE
255755872026-01-26 6:50:5354 mins ago1769410253
0x2F81b130...0b492dbA4
0 HYPE
255748332026-01-26 6:38:311 hr ago1769409511
0x2F81b130...0b492dbA4
0 HYPE
255748332026-01-26 6:38:311 hr ago1769409511
0x2F81b130...0b492dbA4
0 HYPE
255739482026-01-26 6:24:001 hr ago1769408640
0x2F81b130...0b492dbA4
0 HYPE
255739482026-01-26 6:24:001 hr ago1769408640
0x2F81b130...0b492dbA4
0 HYPE
255739482026-01-26 6:24:001 hr ago1769408640
0x2F81b130...0b492dbA4
0 HYPE
255739482026-01-26 6:24:001 hr ago1769408640
0x2F81b130...0b492dbA4
0 HYPE
255738102026-01-26 6:21:451 hr ago1769408505
0x2F81b130...0b492dbA4
0 HYPE
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChainlinkConsumer

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {Common} from "@chainlink/contracts/src/v0.8/llo-feeds/libraries/Common.sol";
import {IRewardManager} from "@chainlink/contracts/src/v0.8/llo-feeds/v0.3.0/interfaces/IRewardManager.sol";
import {IVerifierFeeManager} from "@chainlink/contracts/src/v0.8/llo-feeds/v0.3.0/interfaces/IVerifierFeeManager.sol";
import {IERC20} from "@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol";

import {IVerifierProxy} from "./interfaces/IVerifierProxy.sol";
import {IFeeManager} from "./interfaces/IFeeManager.sol";

using SafeERC20 for IERC20;

/// @title ChainlinkConsumer
/// @author HyperLend
/// @notice Contract collecting and verifying Chainlink Data Streams
/// @dev Exposes latest price and timestamp for each feedId, which is then consumed by SingleFeedProvider.sol
contract ChainlinkConsumer {
    /// @notice Thrown when a caller tries to execute a function that is restricted to the contract's owner.
    error NotOwner(address caller);
    /// @notice Thrown when an unsupported report version is provided to verifyReport.
    error InvalidReportVersion(uint16 version);
    /// @notice Thrown if RWA market is not open
    error MarketNotOpen(bytes32 feedId, uint32 marketStatus);
    /// @notice Thrown if new timestamp would be older than the previous timestamp
    error OldData(bytes32 feedId, uint256 reportTimestamp, uint256 previousTimestamp);

    /**
     * @dev Represents a data report from a Data Streams stream for v3 schema (crypto streams).
     * The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream.
     * For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
     */
    struct ReportV3 {
        bytes32 feedId; // The stream ID the report has data for.
        uint32 validFromTimestamp; // Earliest timestamp for which price is applicable.
        uint32 observationsTimestamp; // Latest timestamp for which price is applicable.
        uint192 nativeFee; // Base cost to validate a transaction using the report, denominated in the chain’s native token (e.g., WETH/ETH).
        uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK.
        uint32 expiresAt; // Latest timestamp where the report can be verified onchain.
        int192 price; // DON consensus median price (8 or 18 decimals).
        int192 bid; // Simulated price impact of a buy order up to the X% depth of liquidity utilisation (8 or 18 decimals).
        int192 ask; // Simulated price impact of a sell order up to the X% depth of liquidity utilisation (8 or 18 decimals).
    }

    /**
     * @dev Represents a data report from a Data Streams stream for v4 schema (RWA stream).
     * The `price` value is carried to either 8 or 18 decimal places, depending on the stream.
     * The `marketStatus` indicates whether the market is currently open. Possible values: `0` (`Unknown`), `1` (`Closed`), `2` (`Open`).
     * For more information, see https://docs.chain.link/data-streams/rwa-streams and https://docs.chain.link/data-streams/reference/report-schema-v4
     */
    struct ReportV4 {
        bytes32 feedId; // The stream ID the report has data for.
        uint32 validFromTimestamp; // Earliest timestamp for which price is applicable.
        uint32 observationsTimestamp; // Latest timestamp for which price is applicable.
        uint192 nativeFee; // Base cost to validate a transaction using the report, denominated in the chain’s native token (e.g., WETH/ETH).
        uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK.
        uint32 expiresAt; // Latest timestamp where the report can be verified onchain.
        int192 price; // DON consensus median benchmark price (8 or 18 decimals).
        uint32 marketStatus; // The DON's consensus on whether the market is currently open.
    }

    /// @notice The VerifierProxy contract used for report verification.
    IVerifierProxy public s_verifierProxy;

    /// @notice The owner of the contract.
    address private s_owner;

    /// @notice Stores the last decoded price from a verified report for each feedId
    mapping(bytes32 => int192) public lastDecodedPrice;
    /// @notice Stores the last decoded timestamp from a verified report for each feedId
    mapping(bytes32 => uint256) public lastDecodedTimestamp;

    /// @notice Event emitted when a report is successfully verified and decoded.
    event DecodedReport(bytes32 feedId, int192 price, uint256 timestamp);

    /// @param _verifierProxy The address of the VerifierProxy contract.
    /// @dev You can find these addresses on https://docs.chain.link/data-streams/crypto-streams.
    constructor(address _verifierProxy) {
        s_owner = msg.sender;
        s_verifierProxy = IVerifierProxy(_verifierProxy);
    }

    /// @notice Checks if the caller is the owner of the contract.
    modifier onlyOwner() {
        if (msg.sender != s_owner) revert NotOwner(msg.sender);
        _;
    }

    /**
     * @notice Verifies an unverified data report and stores its contents, supporting both v3 and v4 report schemas.
     * @dev Performs the following steps:
     * - Decodes the unverified report to extract the report data.
     * - Extracts the report version by reading the first two bytes of the report data.
     *   - The first two bytes correspond to the schema version encoded in the stream ID.
     *   - Schema version `0x0003` corresponds to report version 3 (for Crypto assets).
     *   - Schema version `0x0004` corresponds to report version 4 (for Real World Assets).
     * - Validates that the report version is either 3 or 4; reverts with `InvalidReportVersion` otherwise.
     * - Retrieves the fee manager and reward manager contracts.
     * - Calculates the fee required for report verification using the fee manager.
     * - Approves the reward manager to spend the calculated fee amount.
     * - Verifies the report via the VerifierProxy contract.
     * - Decodes the verified report data into the appropriate report struct (`ReportV3` or `ReportV4`) based on the report version.
     * - Emits a `DecodedPrice` event with the price extracted from the verified report.
     * - Updates the `lastDecodedPrice` and `lastDecodedTimestamp` state variables with the data from the verified report.
     * @param unverifiedReport The encoded report data to be verified, including the signed report and metadata.
     * @custom:reverts InvalidReportVersion(uint8 version) Thrown when an unsupported report version is provided.
     */
    function verifyReport(bytes memory unverifiedReport) public payable {
        // Decode unverified report to extract report data
        (, bytes memory reportData) = abi.decode(
            unverifiedReport,
            (bytes32[3], bytes)
        );

        // Extract report version from reportData
        uint16 reportVersion = (uint16(uint8(reportData[0])) << 8) |
            uint16(uint8(reportData[1]));

        // Validate report version
        if (reportVersion != 3 && reportVersion != 4) {
            revert InvalidReportVersion(uint8(reportVersion));
        }

        // Send the payment if needed
        address feeToken = _processPayment(reportData);

        // Verify the report through the VerifierProxy
        bytes memory verifiedReportData = s_verifierProxy.verify(
            unverifiedReport,
            abi.encode(feeToken)
        );

        // Decode verified report data into the appropriate Report struct based on reportVersion
        if (reportVersion == 3) {
            // v3 report schema
            ReportV3 memory verifiedReport = abi.decode(
                verifiedReportData,
                (ReportV3)
            );

            // Calculate the average timestamp and revert if it's older than the last verified timestamp
            uint256 avgTimestamp = (verifiedReport.validFromTimestamp + verifiedReport.observationsTimestamp) / 2;
            if (lastDecodedTimestamp[verifiedReport.feedId] >= avgTimestamp){
                revert OldData(verifiedReport.feedId, avgTimestamp, lastDecodedTimestamp[verifiedReport.feedId]);
            }

            // Store the price & timestamp from the report
            lastDecodedPrice[verifiedReport.feedId] = verifiedReport.price;
            lastDecodedTimestamp[verifiedReport.feedId] = avgTimestamp;

            // Log price from the verified report
            emit DecodedReport(verifiedReport.feedId, verifiedReport.price, avgTimestamp);
        } else if (reportVersion == 4) {
            // v4 report schema
            ReportV4 memory verifiedReport = abi.decode(
                verifiedReportData,
                (ReportV4)
            );
            
            // Revert if the market status is not `Open`
            if (verifiedReport.marketStatus != 2){
                revert MarketNotOpen(verifiedReport.feedId, verifiedReport.marketStatus);
            }

            // Calculate the average timestamp and revert if it's older than the last verified timestamp
            uint256 avgTimestamp = (verifiedReport.validFromTimestamp + verifiedReport.observationsTimestamp) / 2;
            if (lastDecodedTimestamp[verifiedReport.feedId] >= avgTimestamp){
                revert OldData(verifiedReport.feedId, avgTimestamp, lastDecodedTimestamp[verifiedReport.feedId]);
            }

            // Store the price & timestamp from the report
            lastDecodedPrice[verifiedReport.feedId] = verifiedReport.price;
            lastDecodedTimestamp[verifiedReport.feedId] = avgTimestamp;

            // Log price from the verified report
            emit DecodedReport(verifiedReport.feedId, verifiedReport.price, avgTimestamp);
        }
    }

    /// @notice process the fee payment if needed
    function _processPayment(bytes memory reportData) internal returns (address) {
        // Retrieve fee manager
        IFeeManager feeManager = IFeeManager(
            address(s_verifierProxy.s_feeManager())
        );

        if (address(feeManager) != address(0)){
            // Retrieve reward manager
            IRewardManager rewardManager = IRewardManager(
                address(feeManager.i_rewardManager())
            );

            // Set the fee token address
            address feeTokenAddress = feeManager.i_linkAddress();

            // Calculate the fee required for report verification
            (Common.Asset memory fee, , ) = feeManager.getFeeAndReward(
                address(this),
                reportData,
                feeTokenAddress
            );

            // Approve rewardManager to spend this contract's balance in fees
            IERC20(feeTokenAddress).safeIncreaseAllowance(address(rewardManager), fee.amount);

            return feeTokenAddress;
        }

        return address(0);
    }

    /// @notice verify multipler reports in one transactions
    /// @param batch an array of DON reports
    function verifyBatch(bytes[] memory batch) external {
        for (uint256 i = 0; i < batch.length; i++){
            verifyReport(batch[i]);
        }
    }

    /// @notice used to read the latest price data for a given feedId
    /// @param feedId id of the price feed
    function getLatestAnswer(bytes32 feedId) external view returns (int256) {
        return int256(lastDecodedPrice[feedId]);
    }

    /// @notice used to read the latest timestamp data for a given feedId
    /// @param feedId id of the price feed
    function getLatestTimestamp(bytes32 feedId) external view returns (uint256) {
        return lastDecodedTimestamp[feedId];
    }

    /**
     * @notice Withdraws all tokens of a specific ERC20 token type to a beneficiary address.
     * @dev Utilizes SafeERC20's safeTransfer for secure token transfer.
     * @param _beneficiary Address to which the tokens will be sent. Must not be the zero address.
     * @param _token Address of the ERC20 token to be withdrawn. Must be a valid ERC20 token contract or address(0) for native tokens.
    */
    function withdrawToken(
        address  _beneficiary,
        address _token
    ) public onlyOwner {
        if (_token == address(0)) {
            (bool sent, ) = payable(_beneficiary).call{value: address(this).balance }("");
            require(sent, "Failed to send native");
        } else {
            uint256 amount = IERC20(_token).balanceOf(address(this));
            IERC20(_token).safeTransfer(_beneficiary, amount);
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

/*
 * @title Common
 * @author Michael Fletcher
 * @notice Common functions and structs
 */
library Common {
  // @notice The asset struct to hold the address of an asset and amount
  struct Asset {
    address assetAddress;
    uint256 amount;
  }

  // @notice Struct to hold the address and its associated weight
  struct AddressAndWeight {
    address addr;
    uint64 weight;
  }

  /**
   * @notice Checks if an array of AddressAndWeight has duplicate addresses
   * @param recipients The array of AddressAndWeight to check
   * @return bool True if there are duplicates, false otherwise
   */
  function _hasDuplicateAddresses(address[] memory recipients) internal pure returns (bool) {
    for (uint256 i = 0; i < recipients.length; ) {
      for (uint256 j = i + 1; j < recipients.length; ) {
        if (recipients[i] == recipients[j]) {
          return true;
        }
        unchecked {
          ++j;
        }
      }
      unchecked {
        ++i;
      }
    }
    return false;
  }

  /**
   * @notice Checks if an array of AddressAndWeight has duplicate addresses
   * @param recipients The array of AddressAndWeight to check
   * @return bool True if there are duplicates, false otherwise
   */
  function _hasDuplicateAddresses(Common.AddressAndWeight[] memory recipients) internal pure returns (bool) {
    for (uint256 i = 0; i < recipients.length; ) {
      for (uint256 j = i + 1; j < recipients.length; ) {
        if (recipients[i].addr == recipients[j].addr) {
          return true;
        }
        unchecked {
          ++j;
        }
      }
      unchecked {
        ++i;
      }
    }
    return false;
  }

  /**
   * @notice sorts a list of addresses numerically
   * @param arr The array of addresses to sort
   * @param left the start index
   * @param right the end index
   */
  function _quickSort(address[] memory arr, int256 left, int256 right) internal pure {
    int256 i = left;
    int256 j = right;
    if (i == j) return;
    address pivot = arr[uint256(left + (right - left) / 2)];
    while (i <= j) {
      while (uint160(arr[uint256(i)]) < uint160(pivot)) i++;
      while (uint160(pivot) < uint160(arr[uint256(j)])) j--;
      if (i <= j) {
        (arr[uint256(i)], arr[uint256(j)]) = (arr[uint256(j)], arr[uint256(i)]);
        i++;
        j--;
      }
    }
    if (left < j) _quickSort(arr, left, j);
    if (i < right) _quickSort(arr, i, right);
  }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {IERC165} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol";
import {Common} from "../../libraries/Common.sol";

interface IRewardManager is IERC165 {
  /**
   * @notice Record the fee received for a particular pool
   * @param payments array of structs containing pool id and amount
   * @param payee the user the funds should be retrieved from
   */
  function onFeePaid(FeePayment[] calldata payments, address payee) external;

  /**
   * @notice Claims the rewards in a specific pool
   * @param poolIds array of poolIds to claim rewards for
   */
  function claimRewards(bytes32[] calldata poolIds) external;

  /**
   * @notice Set the RewardRecipients and weights for a specific pool. This should only be called once per pool Id. Else updateRewardRecipients should be used.
   * @param poolId poolId to set RewardRecipients and weights for
   * @param rewardRecipientAndWeights array of each RewardRecipient and associated weight
   */
  function setRewardRecipients(bytes32 poolId, Common.AddressAndWeight[] calldata rewardRecipientAndWeights) external;

  /**
   * @notice Updates a subset the reward recipients for a specific poolId. The collective weight of the recipients should add up to the recipients existing weights. Any recipients with a weight of 0 will be removed.
   * @param poolId the poolId to update
   * @param newRewardRecipients array of new reward recipients
   */
  function updateRewardRecipients(bytes32 poolId, Common.AddressAndWeight[] calldata newRewardRecipients) external;

  /**
   * @notice Pays all the recipients for each of the pool ids
   * @param poolId the pool id to pay recipients for
   * @param recipients array of recipients to pay within the pool
   */
  function payRecipients(bytes32 poolId, address[] calldata recipients) external;

  /**
   * @notice Sets the fee manager. This needs to be done post construction to prevent a circular dependency.
   * @param newFeeManager address of the new verifier proxy
   */
  function setFeeManager(address newFeeManager) external;

  /**
   * @notice Gets a list of pool ids which have reward for a specific recipient.
   * @param recipient address of the recipient to get pool ids for
   * @param startIndex the index to start from
   * @param endIndex the index to stop at
   */
  function getAvailableRewardPoolIds(
    address recipient,
    uint256 startIndex,
    uint256 endIndex
  ) external view returns (bytes32[] memory);

  /**
   * @notice The structure to hold a fee payment notice
   * @param poolId the poolId receiving the payment
   * @param amount the amount being paid
   */
  struct FeePayment {
    bytes32 poolId;
    uint192 amount;
  }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {IERC165} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol";
import {Common} from "../../libraries/Common.sol";

interface IVerifierFeeManager is IERC165 {
  /**
   * @notice Handles fees for a report from the subscriber and manages rewards
   * @param payload report to process the fee for
   * @param parameterPayload fee payload
   * @param subscriber address of the fee will be applied
   */
  function processFee(bytes calldata payload, bytes calldata parameterPayload, address subscriber) external payable;

  /**
   * @notice Processes the fees for each report in the payload, billing the subscriber and paying the reward manager
   * @param payloads reports to process
   * @param parameterPayload fee payload
   * @param subscriber address of the user to process fee for
   */
  function processFeeBulk(
    bytes[] calldata payloads,
    bytes calldata parameterPayload,
    address subscriber
  ) external payable;

  /**
   * @notice Sets the fee recipients according to the fee manager
   * @param configDigest digest of the configuration
   * @param rewardRecipientAndWeights the address and weights of all the recipients to receive rewards
   */
  function setFeeRecipients(
    bytes32 configDigest,
    Common.AddressAndWeight[] calldata rewardRecipientAndWeights
  ) external;
}

File 5 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
    (bool success, bytes memory returndata) = target.call{value: value}(data);
    return verifyCallResultFromTarget(target, 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) {
    (bool success, bytes memory returndata) = target.staticcall(data);
    return verifyCallResultFromTarget(target, 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) {
    (bool success, bytes memory returndata) = target.delegatecall(data);
    return verifyCallResultFromTarget(target, success, returndata, errorMessage);
  }

  /**
   * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
   * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
   *
   * _Available since v4.8._
   */
  function verifyCallResultFromTarget(
    address target,
    bool success,
    bytes memory returndata,
    string memory errorMessage
  ) internal view returns (bytes memory) {
    if (success) {
      if (returndata.length == 0) {
        // only check isContract if the call was successful and the return data is empty
        // otherwise we already know that it was a contract
        require(isContract(target), "Address: call to non-contract");
      }
      return returndata;
    } else {
      _revert(returndata, errorMessage);
    }
  }

  /**
   * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
   * revert reason or 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 {
      _revert(returndata, errorMessage);
    }
  }

  function _revert(bytes memory returndata, string memory errorMessage) private pure {
    // 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);
    }
  }
}

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

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {Common} from "@chainlink/contracts/src/v0.8/llo-feeds/libraries/Common.sol";

interface IFeeManager {
    /**
     * @notice Calculates the fee and reward associated with verifying a report, including discounts for subscribers.
     * This function assesses the fee and reward for report verification, applying a discount for recognized subscriber addresses.
     * @param subscriber The address attempting to verify the report. A discount is applied if this address is recognized as a subscriber.
     * @param unverifiedReport The report data awaiting verification. The content of this report is used to determine the base fee and reward, before considering subscriber discounts.
     * @param quoteAddress The payment token address used for quoting fees and rewards.
     * @return fee The fee assessed for verifying the report, with subscriber discounts applied where applicable.
     * @return reward The reward allocated to the caller for successfully verifying the report.
     * @return totalDiscount The total discount amount deducted from the fee for subscribers.
     */
    function getFeeAndReward(
        address subscriber,
        bytes memory unverifiedReport,
        address quoteAddress
    ) external returns (Common.Asset memory, Common.Asset memory, uint256);

    function i_linkAddress() external view returns (address);

    function i_nativeAddress() external view returns (address);

    function i_rewardManager() external view returns (address);
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {IVerifierFeeManager} from "@chainlink/contracts/src/v0.8/llo-feeds/v0.3.0/interfaces/IVerifierFeeManager.sol";

// Custom interfaces for IVerifierProxy and IFeeManager
interface IVerifierProxy {
    /**
     * @notice Verifies that the data encoded has been signed correctly by routing to the correct verifier, and bills the user if applicable.
     * @param payload The encoded data to be verified, including the signed report.
     * @param parameterPayload Fee metadata for billing. In the current implementation, this consists of the abi-encoded address of the ERC-20 token used for fees.
     * @return verifierResponse The encoded report from the verifier.
     */
    function verify(
        bytes calldata payload,
        bytes calldata parameterPayload
    ) external payable returns (bytes memory verifierResponse);

    /**
     * @notice Verifies multiple reports in bulk, ensuring that each is signed correctly, routes them to the appropriate verifier, and handles billing for the verification process.
     * @param payloads An array of encoded data to be verified, where each entry includes the signed report.
     * @param parameterPayload Fee metadata for billing. In the current implementation, this consists of the abi-encoded address of the ERC-20 token used for fees.
     * @return verifiedReports An array of encoded reports returned from the verifier.
     */
    function verifyBulk(
        bytes[] calldata payloads,
        bytes calldata parameterPayload
    ) external payable returns (bytes[] memory verifiedReports);

    function s_feeManager() external view returns (IVerifierFeeManager);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_verifierProxy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint16","name":"version","type":"uint16"}],"name":"InvalidReportVersion","type":"error"},{"inputs":[{"internalType":"bytes32","name":"feedId","type":"bytes32"},{"internalType":"uint32","name":"marketStatus","type":"uint32"}],"name":"MarketNotOpen","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"NotOwner","type":"error"},{"inputs":[{"internalType":"bytes32","name":"feedId","type":"bytes32"},{"internalType":"uint256","name":"reportTimestamp","type":"uint256"},{"internalType":"uint256","name":"previousTimestamp","type":"uint256"}],"name":"OldData","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"feedId","type":"bytes32"},{"indexed":false,"internalType":"int192","name":"price","type":"int192"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"DecodedReport","type":"event"},{"inputs":[{"internalType":"bytes32","name":"feedId","type":"bytes32"}],"name":"getLatestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"feedId","type":"bytes32"}],"name":"getLatestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"lastDecodedPrice","outputs":[{"internalType":"int192","name":"","type":"int192"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"lastDecodedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_verifierProxy","outputs":[{"internalType":"contract IVerifierProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"batch","type":"bytes[]"}],"name":"verifyBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"unverifiedReport","type":"bytes"}],"name":"verifyReport","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200252138038062002521833981810160405281019062000037919062000129565b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200015b565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000f182620000c4565b9050919050565b6200010381620000e4565b81146200010f57600080fd5b50565b6000815190506200012381620000f8565b92915050565b600060208284031215620001425762000141620000bf565b5b6000620001528482850162000112565b91505092915050565b6123b6806200016b6000396000f3fe60806040526004361061007b5760003560e01c80636b0b5bf01161004e5780636b0b5bf01461012d5780636d353800146101565780637ad2263214610193578063a0573d2b146101d05761007b565b80631af189a4146100805780633aeac4e11461009c5780635efd3c7c146100c55780636589bd0d146100f0575b600080fd5b61009a60048036038101906100959190611243565b61020d565b005b3480156100a857600080fd5b506100c360048036038101906100be91906112ea565b610730565b005b3480156100d157600080fd5b506100da610957565b6040516100e79190611389565b60405180910390f35b3480156100fc57600080fd5b50610117600480360381019061011291906113da565b61097b565b6040516101249190611420565b60405180910390f35b34801561013957600080fd5b50610154600480360381019061014f9190611521565b610993565b005b34801561016257600080fd5b5061017d600480360381019061017891906113da565b6109d9565b60405161018a9190611586565b60405180910390f35b34801561019f57600080fd5b506101ba60048036038101906101b591906113da565b6109f9565b6040516101c79190611420565b60405180910390f35b3480156101dc57600080fd5b506101f760048036038101906101f291906113da565b610a16565b60405161020491906115ba565b60405180910390f35b6000818060200190518101906102239190611735565b91505060008160018151811061023c5761023b611791565b5b602001015160f81c60f81b60f81c60ff1660088360008151811061026357610262611791565b5b602001015160f81c60f81b60f81c60ff1661ffff16901b17905060038161ffff1614158015610297575060048161ffff1614155b156102d957806040517f6a75f7df0000000000000000000000000000000000000000000000000000000081526004016102d0919061180c565b60405180910390fd5b60006102e483610a43565b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7e83aee86846040516020016103379190611836565b6040516020818303038152906040526040518363ffffffff1660e01b81526004016103639291906118a6565b6000604051808303816000875af1158015610382573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906103ab91906118dd565b905060038361ffff1603610540576000818060200190518101906103cf9190611ac3565b905060006002826040015183602001516103e99190611b20565b6103f39190611b87565b63ffffffff1690508060036000846000015181526020019081526020016000205410610475578160000151816003600085600001518152602001908152602001600020546040517f68f4217c00000000000000000000000000000000000000000000000000000000815260040161046c93929190611bc7565b60405180910390fd5b8160c00151600260008460000151815260200190815260200160002060006101000a81548177ffffffffffffffffffffffffffffffffffffffffffffffff021916908360170b77ffffffffffffffffffffffffffffffffffffffffffffffff160217905550806003600084600001518152602001908152602001600020819055507f8bf16191d2ed38ab26aa07b275a1bf65b0d81b8ae9ff24880ed32e99db25b43282600001518360c001518360405161053193929190611bfe565b60405180910390a15050610729565b60048361ffff1603610728576000818060200190518101906105629190611cff565b905060028160e0015163ffffffff16146105bd5780600001518160e001516040517f56c2c7a40000000000000000000000000000000000000000000000000000000081526004016105b4929190611d3c565b60405180910390fd5b60006002826040015183602001516105d59190611b20565b6105df9190611b87565b63ffffffff1690508060036000846000015181526020019081526020016000205410610661578160000151816003600085600001518152602001908152602001600020546040517f68f4217c00000000000000000000000000000000000000000000000000000000815260040161065893929190611bc7565b60405180910390fd5b8160c00151600260008460000151815260200190815260200160002060006101000a81548177ffffffffffffffffffffffffffffffffffffffffffffffff021916908360170b77ffffffffffffffffffffffffffffffffffffffffffffffff160217905550806003600084600001518152602001908152602001600020819055507f8bf16191d2ed38ab26aa07b275a1bf65b0d81b8ae9ff24880ed32e99db25b43282600001518360c001518360405161071d93929190611bfe565b60405180910390a150505b5b5050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107c257336040517f245aecd30000000000000000000000000000000000000000000000000000000081526004016107b99190611836565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036108a85760008273ffffffffffffffffffffffffffffffffffffffff164760405161081c90611d96565b60006040518083038185875af1925050503d8060008114610859576040519150601f19603f3d011682016040523d82523d6000602084013e61085e565b606091505b50509050806108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089990611e08565b60405180910390fd5b50610953565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108e39190611836565b602060405180830381865afa158015610900573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109249190611e54565b905061095183828473ffffffffffffffffffffffffffffffffffffffff16610cbd9092919063ffffffff16565b505b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60005b81518110156109d5576109c28282815181106109b5576109b4611791565b5b602002602001015161020d565b80806109cd90611e81565b915050610996565b5050565b60026020528060005260406000206000915054906101000a900460170b81565b600060036000838152602001908152602001600020549050919050565b60006002600083815260200190815260200160002060009054906101000a900460170b60170b9050919050565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338416b5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190611f07565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cb25760008173ffffffffffffffffffffffffffffffffffffffff16633aa5ac076040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7c9190611f49565b905060008273ffffffffffffffffffffffffffffffffffffffff1663ea4b861b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bcb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bef9190611f49565b905060008373ffffffffffffffffffffffffffffffffffffffff1663e03dab1a3088856040518463ffffffff1660e01b8152600401610c3093929190611f76565b60a0604051808303816000875af1158015610c4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c739190612004565b50509050610ca68382602001518473ffffffffffffffffffffffffffffffffffffffff16610d439092919063ffffffff16565b81945050505050610cb8565b60009150505b919050565b610d3e8363a9059cbb60e01b8484604051602401610cdc929190612057565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e55565b505050565b6000818473ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30866040518363ffffffff1660e01b8152600401610d81929190612080565b602060405180830381865afa158015610d9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc29190611e54565b610dcc91906120a9565b9050610e4f8463095ea7b360e01b8584604051602401610ded929190612057565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e55565b50505050565b6000610eb7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f1c9092919063ffffffff16565b9050600081511115610f175780806020019051810190610ed79190612115565b610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d906121b4565b60405180910390fd5b5b505050565b6060610f2b8484600085610f34565b90509392505050565b606082471015610f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7090612246565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610fa29190612297565b60006040518083038185875af1925050503d8060008114610fdf576040519150601f19603f3d011682016040523d82523d6000602084013e610fe4565b606091505b5091509150610ff587838387611001565b92505050949350505050565b6060831561106357600083510361105b5761101b85611076565b61105a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611051906122fa565b60405180910390fd5b5b82905061106e565b61106d8383611099565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156110ac5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e0919061235e565b60405180910390fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61115082611107565b810181811067ffffffffffffffff8211171561116f5761116e611118565b5b80604052505050565b60006111826110e9565b905061118e8282611147565b919050565b600067ffffffffffffffff8211156111ae576111ad611118565b5b6111b782611107565b9050602081019050919050565b82818337600083830152505050565b60006111e66111e184611193565b611178565b90508281526020810184848401111561120257611201611102565b5b61120d8482856111c4565b509392505050565b600082601f83011261122a576112296110fd565b5b813561123a8482602086016111d3565b91505092915050565b600060208284031215611259576112586110f3565b5b600082013567ffffffffffffffff811115611277576112766110f8565b5b61128384828501611215565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112b78261128c565b9050919050565b6112c7816112ac565b81146112d257600080fd5b50565b6000813590506112e4816112be565b92915050565b60008060408385031215611301576113006110f3565b5b600061130f858286016112d5565b9250506020611320858286016112d5565b9150509250929050565b6000819050919050565b600061134f61134a6113458461128c565b61132a565b61128c565b9050919050565b600061136182611334565b9050919050565b600061137382611356565b9050919050565b61138381611368565b82525050565b600060208201905061139e600083018461137a565b92915050565b6000819050919050565b6113b7816113a4565b81146113c257600080fd5b50565b6000813590506113d4816113ae565b92915050565b6000602082840312156113f0576113ef6110f3565b5b60006113fe848285016113c5565b91505092915050565b6000819050919050565b61141a81611407565b82525050565b60006020820190506114356000830184611411565b92915050565b600067ffffffffffffffff82111561145657611455611118565b5b602082029050602081019050919050565b600080fd5b600061147f61147a8461143b565b611178565b905080838252602082019050602084028301858111156114a2576114a1611467565b5b835b818110156114e957803567ffffffffffffffff8111156114c7576114c66110fd565b5b8086016114d48982611215565b855260208501945050506020810190506114a4565b5050509392505050565b600082601f830112611508576115076110fd565b5b813561151884826020860161146c565b91505092915050565b600060208284031215611537576115366110f3565b5b600082013567ffffffffffffffff811115611555576115546110f8565b5b611561848285016114f3565b91505092915050565b60008160170b9050919050565b6115808161156a565b82525050565b600060208201905061159b6000830184611577565b92915050565b6000819050919050565b6115b4816115a1565b82525050565b60006020820190506115cf60008301846115ab565b92915050565b600067ffffffffffffffff8211156115f0576115ef611118565b5b602082029050919050565b60008151905061160a816113ae565b92915050565b600061162361161e846115d5565b611178565b9050806020840283018581111561163d5761163c611467565b5b835b81811015611666578061165288826115fb565b84526020840193505060208101905061163f565b5050509392505050565b600082601f830112611685576116846110fd565b5b6003611692848285611610565b91505092915050565b60005b838110156116b957808201518184015260208101905061169e565b60008484015250505050565b60006116d86116d384611193565b611178565b9050828152602081018484840111156116f4576116f3611102565b5b6116ff84828561169b565b509392505050565b600082601f83011261171c5761171b6110fd565b5b815161172c8482602086016116c5565b91505092915050565b6000806080838503121561174c5761174b6110f3565b5b600061175a85828601611670565b925050606083015167ffffffffffffffff81111561177b5761177a6110f8565b5b61178785828601611707565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff82169050919050565b600061ffff82169050919050565b60006117f66117f16117ec846117c0565b61132a565b6117cd565b9050919050565b611806816117db565b82525050565b600060208201905061182160008301846117fd565b92915050565b611830816112ac565b82525050565b600060208201905061184b6000830184611827565b92915050565b600081519050919050565b600082825260208201905092915050565b600061187882611851565b611882818561185c565b935061189281856020860161169b565b61189b81611107565b840191505092915050565b600060408201905081810360008301526118c0818561186d565b905081810360208301526118d4818461186d565b90509392505050565b6000602082840312156118f3576118f26110f3565b5b600082015167ffffffffffffffff811115611911576119106110f8565b5b61191d84828501611707565b91505092915050565b600080fd5b600063ffffffff82169050919050565b6119448161192b565b811461194f57600080fd5b50565b6000815190506119618161193b565b92915050565b600077ffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b61199481611967565b811461199f57600080fd5b50565b6000815190506119b18161198b565b92915050565b6119c08161156a565b81146119cb57600080fd5b50565b6000815190506119dd816119b7565b92915050565b600061012082840312156119fa576119f9611926565b5b611a05610120611178565b90506000611a15848285016115fb565b6000830152506020611a2984828501611952565b6020830152506040611a3d84828501611952565b6040830152506060611a51848285016119a2565b6060830152506080611a65848285016119a2565b60808301525060a0611a7984828501611952565b60a08301525060c0611a8d848285016119ce565b60c08301525060e0611aa1848285016119ce565b60e083015250610100611ab6848285016119ce565b6101008301525092915050565b60006101208284031215611ada57611ad96110f3565b5b6000611ae8848285016119e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611b2b8261192b565b9150611b368361192b565b9250828201905063ffffffff811115611b5257611b51611af1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611b928261192b565b9150611b9d8361192b565b925082611bad57611bac611b58565b5b828204905092915050565b611bc1816113a4565b82525050565b6000606082019050611bdc6000830186611bb8565b611be96020830185611411565b611bf66040830184611411565b949350505050565b6000606082019050611c136000830186611bb8565b611c206020830185611577565b611c2d6040830184611411565b949350505050565b60006101008284031215611c4c57611c4b611926565b5b611c57610100611178565b90506000611c67848285016115fb565b6000830152506020611c7b84828501611952565b6020830152506040611c8f84828501611952565b6040830152506060611ca3848285016119a2565b6060830152506080611cb7848285016119a2565b60808301525060a0611ccb84828501611952565b60a08301525060c0611cdf848285016119ce565b60c08301525060e0611cf384828501611952565b60e08301525092915050565b60006101008284031215611d1657611d156110f3565b5b6000611d2484828501611c35565b91505092915050565b611d368161192b565b82525050565b6000604082019050611d516000830185611bb8565b611d5e6020830184611d2d565b9392505050565b600081905092915050565b50565b6000611d80600083611d65565b9150611d8b82611d70565b600082019050919050565b6000611da182611d73565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64206e61746976650000000000000000000000600082015250565b6000611df2601583611dab565b9150611dfd82611dbc565b602082019050919050565b60006020820190508181036000830152611e2181611de5565b9050919050565b611e3181611407565b8114611e3c57600080fd5b50565b600081519050611e4e81611e28565b92915050565b600060208284031215611e6a57611e696110f3565b5b6000611e7884828501611e3f565b91505092915050565b6000611e8c82611407565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611ebe57611ebd611af1565b5b600182019050919050565b6000611ed4826112ac565b9050919050565b611ee481611ec9565b8114611eef57600080fd5b50565b600081519050611f0181611edb565b92915050565b600060208284031215611f1d57611f1c6110f3565b5b6000611f2b84828501611ef2565b91505092915050565b600081519050611f43816112be565b92915050565b600060208284031215611f5f57611f5e6110f3565b5b6000611f6d84828501611f34565b91505092915050565b6000606082019050611f8b6000830186611827565b8181036020830152611f9d818561186d565b9050611fac6040830184611827565b949350505050565b600060408284031215611fca57611fc9611926565b5b611fd46040611178565b90506000611fe484828501611f34565b6000830152506020611ff884828501611e3f565b60208301525092915050565b600080600060a0848603121561201d5761201c6110f3565b5b600061202b86828701611fb4565b935050604061203c86828701611fb4565b925050608061204d86828701611e3f565b9150509250925092565b600060408201905061206c6000830185611827565b6120796020830184611411565b9392505050565b60006040820190506120956000830185611827565b6120a26020830184611827565b9392505050565b60006120b482611407565b91506120bf83611407565b92508282019050808211156120d7576120d6611af1565b5b92915050565b60008115159050919050565b6120f2816120dd565b81146120fd57600080fd5b50565b60008151905061210f816120e9565b92915050565b60006020828403121561212b5761212a6110f3565b5b600061213984828501612100565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061219e602a83611dab565b91506121a982612142565b604082019050919050565b600060208201905081810360008301526121cd81612191565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612230602683611dab565b915061223b826121d4565b604082019050919050565b6000602082019050818103600083015261225f81612223565b9050919050565b600061227182611851565b61227b8185611d65565b935061228b81856020860161169b565b80840191505092915050565b60006122a38284612266565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006122e4601d83611dab565b91506122ef826122ae565b602082019050919050565b60006020820190508181036000830152612313816122d7565b9050919050565b600081519050919050565b60006123308261231a565b61233a8185611dab565b935061234a81856020860161169b565b61235381611107565b840191505092915050565b600060208201905081810360008301526123788184612325565b90509291505056fea264697066735822122049b85011d013f48cd9f766f2940e21c451619194f7387b82acc7616c8a36a1f964736f6c6343000813003300000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb

Deployed Bytecode

0x60806040526004361061007b5760003560e01c80636b0b5bf01161004e5780636b0b5bf01461012d5780636d353800146101565780637ad2263214610193578063a0573d2b146101d05761007b565b80631af189a4146100805780633aeac4e11461009c5780635efd3c7c146100c55780636589bd0d146100f0575b600080fd5b61009a60048036038101906100959190611243565b61020d565b005b3480156100a857600080fd5b506100c360048036038101906100be91906112ea565b610730565b005b3480156100d157600080fd5b506100da610957565b6040516100e79190611389565b60405180910390f35b3480156100fc57600080fd5b50610117600480360381019061011291906113da565b61097b565b6040516101249190611420565b60405180910390f35b34801561013957600080fd5b50610154600480360381019061014f9190611521565b610993565b005b34801561016257600080fd5b5061017d600480360381019061017891906113da565b6109d9565b60405161018a9190611586565b60405180910390f35b34801561019f57600080fd5b506101ba60048036038101906101b591906113da565b6109f9565b6040516101c79190611420565b60405180910390f35b3480156101dc57600080fd5b506101f760048036038101906101f291906113da565b610a16565b60405161020491906115ba565b60405180910390f35b6000818060200190518101906102239190611735565b91505060008160018151811061023c5761023b611791565b5b602001015160f81c60f81b60f81c60ff1660088360008151811061026357610262611791565b5b602001015160f81c60f81b60f81c60ff1661ffff16901b17905060038161ffff1614158015610297575060048161ffff1614155b156102d957806040517f6a75f7df0000000000000000000000000000000000000000000000000000000081526004016102d0919061180c565b60405180910390fd5b60006102e483610a43565b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7e83aee86846040516020016103379190611836565b6040516020818303038152906040526040518363ffffffff1660e01b81526004016103639291906118a6565b6000604051808303816000875af1158015610382573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906103ab91906118dd565b905060038361ffff1603610540576000818060200190518101906103cf9190611ac3565b905060006002826040015183602001516103e99190611b20565b6103f39190611b87565b63ffffffff1690508060036000846000015181526020019081526020016000205410610475578160000151816003600085600001518152602001908152602001600020546040517f68f4217c00000000000000000000000000000000000000000000000000000000815260040161046c93929190611bc7565b60405180910390fd5b8160c00151600260008460000151815260200190815260200160002060006101000a81548177ffffffffffffffffffffffffffffffffffffffffffffffff021916908360170b77ffffffffffffffffffffffffffffffffffffffffffffffff160217905550806003600084600001518152602001908152602001600020819055507f8bf16191d2ed38ab26aa07b275a1bf65b0d81b8ae9ff24880ed32e99db25b43282600001518360c001518360405161053193929190611bfe565b60405180910390a15050610729565b60048361ffff1603610728576000818060200190518101906105629190611cff565b905060028160e0015163ffffffff16146105bd5780600001518160e001516040517f56c2c7a40000000000000000000000000000000000000000000000000000000081526004016105b4929190611d3c565b60405180910390fd5b60006002826040015183602001516105d59190611b20565b6105df9190611b87565b63ffffffff1690508060036000846000015181526020019081526020016000205410610661578160000151816003600085600001518152602001908152602001600020546040517f68f4217c00000000000000000000000000000000000000000000000000000000815260040161065893929190611bc7565b60405180910390fd5b8160c00151600260008460000151815260200190815260200160002060006101000a81548177ffffffffffffffffffffffffffffffffffffffffffffffff021916908360170b77ffffffffffffffffffffffffffffffffffffffffffffffff160217905550806003600084600001518152602001908152602001600020819055507f8bf16191d2ed38ab26aa07b275a1bf65b0d81b8ae9ff24880ed32e99db25b43282600001518360c001518360405161071d93929190611bfe565b60405180910390a150505b5b5050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107c257336040517f245aecd30000000000000000000000000000000000000000000000000000000081526004016107b99190611836565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036108a85760008273ffffffffffffffffffffffffffffffffffffffff164760405161081c90611d96565b60006040518083038185875af1925050503d8060008114610859576040519150601f19603f3d011682016040523d82523d6000602084013e61085e565b606091505b50509050806108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089990611e08565b60405180910390fd5b50610953565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108e39190611836565b602060405180830381865afa158015610900573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109249190611e54565b905061095183828473ffffffffffffffffffffffffffffffffffffffff16610cbd9092919063ffffffff16565b505b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60005b81518110156109d5576109c28282815181106109b5576109b4611791565b5b602002602001015161020d565b80806109cd90611e81565b915050610996565b5050565b60026020528060005260406000206000915054906101000a900460170b81565b600060036000838152602001908152602001600020549050919050565b60006002600083815260200190815260200160002060009054906101000a900460170b60170b9050919050565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338416b5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190611f07565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cb25760008173ffffffffffffffffffffffffffffffffffffffff16633aa5ac076040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7c9190611f49565b905060008273ffffffffffffffffffffffffffffffffffffffff1663ea4b861b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bcb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bef9190611f49565b905060008373ffffffffffffffffffffffffffffffffffffffff1663e03dab1a3088856040518463ffffffff1660e01b8152600401610c3093929190611f76565b60a0604051808303816000875af1158015610c4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c739190612004565b50509050610ca68382602001518473ffffffffffffffffffffffffffffffffffffffff16610d439092919063ffffffff16565b81945050505050610cb8565b60009150505b919050565b610d3e8363a9059cbb60e01b8484604051602401610cdc929190612057565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e55565b505050565b6000818473ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30866040518363ffffffff1660e01b8152600401610d81929190612080565b602060405180830381865afa158015610d9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc29190611e54565b610dcc91906120a9565b9050610e4f8463095ea7b360e01b8584604051602401610ded929190612057565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e55565b50505050565b6000610eb7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f1c9092919063ffffffff16565b9050600081511115610f175780806020019051810190610ed79190612115565b610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d906121b4565b60405180910390fd5b5b505050565b6060610f2b8484600085610f34565b90509392505050565b606082471015610f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7090612246565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610fa29190612297565b60006040518083038185875af1925050503d8060008114610fdf576040519150601f19603f3d011682016040523d82523d6000602084013e610fe4565b606091505b5091509150610ff587838387611001565b92505050949350505050565b6060831561106357600083510361105b5761101b85611076565b61105a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611051906122fa565b60405180910390fd5b5b82905061106e565b61106d8383611099565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156110ac5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e0919061235e565b60405180910390fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61115082611107565b810181811067ffffffffffffffff8211171561116f5761116e611118565b5b80604052505050565b60006111826110e9565b905061118e8282611147565b919050565b600067ffffffffffffffff8211156111ae576111ad611118565b5b6111b782611107565b9050602081019050919050565b82818337600083830152505050565b60006111e66111e184611193565b611178565b90508281526020810184848401111561120257611201611102565b5b61120d8482856111c4565b509392505050565b600082601f83011261122a576112296110fd565b5b813561123a8482602086016111d3565b91505092915050565b600060208284031215611259576112586110f3565b5b600082013567ffffffffffffffff811115611277576112766110f8565b5b61128384828501611215565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112b78261128c565b9050919050565b6112c7816112ac565b81146112d257600080fd5b50565b6000813590506112e4816112be565b92915050565b60008060408385031215611301576113006110f3565b5b600061130f858286016112d5565b9250506020611320858286016112d5565b9150509250929050565b6000819050919050565b600061134f61134a6113458461128c565b61132a565b61128c565b9050919050565b600061136182611334565b9050919050565b600061137382611356565b9050919050565b61138381611368565b82525050565b600060208201905061139e600083018461137a565b92915050565b6000819050919050565b6113b7816113a4565b81146113c257600080fd5b50565b6000813590506113d4816113ae565b92915050565b6000602082840312156113f0576113ef6110f3565b5b60006113fe848285016113c5565b91505092915050565b6000819050919050565b61141a81611407565b82525050565b60006020820190506114356000830184611411565b92915050565b600067ffffffffffffffff82111561145657611455611118565b5b602082029050602081019050919050565b600080fd5b600061147f61147a8461143b565b611178565b905080838252602082019050602084028301858111156114a2576114a1611467565b5b835b818110156114e957803567ffffffffffffffff8111156114c7576114c66110fd565b5b8086016114d48982611215565b855260208501945050506020810190506114a4565b5050509392505050565b600082601f830112611508576115076110fd565b5b813561151884826020860161146c565b91505092915050565b600060208284031215611537576115366110f3565b5b600082013567ffffffffffffffff811115611555576115546110f8565b5b611561848285016114f3565b91505092915050565b60008160170b9050919050565b6115808161156a565b82525050565b600060208201905061159b6000830184611577565b92915050565b6000819050919050565b6115b4816115a1565b82525050565b60006020820190506115cf60008301846115ab565b92915050565b600067ffffffffffffffff8211156115f0576115ef611118565b5b602082029050919050565b60008151905061160a816113ae565b92915050565b600061162361161e846115d5565b611178565b9050806020840283018581111561163d5761163c611467565b5b835b81811015611666578061165288826115fb565b84526020840193505060208101905061163f565b5050509392505050565b600082601f830112611685576116846110fd565b5b6003611692848285611610565b91505092915050565b60005b838110156116b957808201518184015260208101905061169e565b60008484015250505050565b60006116d86116d384611193565b611178565b9050828152602081018484840111156116f4576116f3611102565b5b6116ff84828561169b565b509392505050565b600082601f83011261171c5761171b6110fd565b5b815161172c8482602086016116c5565b91505092915050565b6000806080838503121561174c5761174b6110f3565b5b600061175a85828601611670565b925050606083015167ffffffffffffffff81111561177b5761177a6110f8565b5b61178785828601611707565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff82169050919050565b600061ffff82169050919050565b60006117f66117f16117ec846117c0565b61132a565b6117cd565b9050919050565b611806816117db565b82525050565b600060208201905061182160008301846117fd565b92915050565b611830816112ac565b82525050565b600060208201905061184b6000830184611827565b92915050565b600081519050919050565b600082825260208201905092915050565b600061187882611851565b611882818561185c565b935061189281856020860161169b565b61189b81611107565b840191505092915050565b600060408201905081810360008301526118c0818561186d565b905081810360208301526118d4818461186d565b90509392505050565b6000602082840312156118f3576118f26110f3565b5b600082015167ffffffffffffffff811115611911576119106110f8565b5b61191d84828501611707565b91505092915050565b600080fd5b600063ffffffff82169050919050565b6119448161192b565b811461194f57600080fd5b50565b6000815190506119618161193b565b92915050565b600077ffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b61199481611967565b811461199f57600080fd5b50565b6000815190506119b18161198b565b92915050565b6119c08161156a565b81146119cb57600080fd5b50565b6000815190506119dd816119b7565b92915050565b600061012082840312156119fa576119f9611926565b5b611a05610120611178565b90506000611a15848285016115fb565b6000830152506020611a2984828501611952565b6020830152506040611a3d84828501611952565b6040830152506060611a51848285016119a2565b6060830152506080611a65848285016119a2565b60808301525060a0611a7984828501611952565b60a08301525060c0611a8d848285016119ce565b60c08301525060e0611aa1848285016119ce565b60e083015250610100611ab6848285016119ce565b6101008301525092915050565b60006101208284031215611ada57611ad96110f3565b5b6000611ae8848285016119e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611b2b8261192b565b9150611b368361192b565b9250828201905063ffffffff811115611b5257611b51611af1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611b928261192b565b9150611b9d8361192b565b925082611bad57611bac611b58565b5b828204905092915050565b611bc1816113a4565b82525050565b6000606082019050611bdc6000830186611bb8565b611be96020830185611411565b611bf66040830184611411565b949350505050565b6000606082019050611c136000830186611bb8565b611c206020830185611577565b611c2d6040830184611411565b949350505050565b60006101008284031215611c4c57611c4b611926565b5b611c57610100611178565b90506000611c67848285016115fb565b6000830152506020611c7b84828501611952565b6020830152506040611c8f84828501611952565b6040830152506060611ca3848285016119a2565b6060830152506080611cb7848285016119a2565b60808301525060a0611ccb84828501611952565b60a08301525060c0611cdf848285016119ce565b60c08301525060e0611cf384828501611952565b60e08301525092915050565b60006101008284031215611d1657611d156110f3565b5b6000611d2484828501611c35565b91505092915050565b611d368161192b565b82525050565b6000604082019050611d516000830185611bb8565b611d5e6020830184611d2d565b9392505050565b600081905092915050565b50565b6000611d80600083611d65565b9150611d8b82611d70565b600082019050919050565b6000611da182611d73565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64206e61746976650000000000000000000000600082015250565b6000611df2601583611dab565b9150611dfd82611dbc565b602082019050919050565b60006020820190508181036000830152611e2181611de5565b9050919050565b611e3181611407565b8114611e3c57600080fd5b50565b600081519050611e4e81611e28565b92915050565b600060208284031215611e6a57611e696110f3565b5b6000611e7884828501611e3f565b91505092915050565b6000611e8c82611407565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611ebe57611ebd611af1565b5b600182019050919050565b6000611ed4826112ac565b9050919050565b611ee481611ec9565b8114611eef57600080fd5b50565b600081519050611f0181611edb565b92915050565b600060208284031215611f1d57611f1c6110f3565b5b6000611f2b84828501611ef2565b91505092915050565b600081519050611f43816112be565b92915050565b600060208284031215611f5f57611f5e6110f3565b5b6000611f6d84828501611f34565b91505092915050565b6000606082019050611f8b6000830186611827565b8181036020830152611f9d818561186d565b9050611fac6040830184611827565b949350505050565b600060408284031215611fca57611fc9611926565b5b611fd46040611178565b90506000611fe484828501611f34565b6000830152506020611ff884828501611e3f565b60208301525092915050565b600080600060a0848603121561201d5761201c6110f3565b5b600061202b86828701611fb4565b935050604061203c86828701611fb4565b925050608061204d86828701611e3f565b9150509250925092565b600060408201905061206c6000830185611827565b6120796020830184611411565b9392505050565b60006040820190506120956000830185611827565b6120a26020830184611827565b9392505050565b60006120b482611407565b91506120bf83611407565b92508282019050808211156120d7576120d6611af1565b5b92915050565b60008115159050919050565b6120f2816120dd565b81146120fd57600080fd5b50565b60008151905061210f816120e9565b92915050565b60006020828403121561212b5761212a6110f3565b5b600061213984828501612100565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061219e602a83611dab565b91506121a982612142565b604082019050919050565b600060208201905081810360008301526121cd81612191565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612230602683611dab565b915061223b826121d4565b604082019050919050565b6000602082019050818103600083015261225f81612223565b9050919050565b600061227182611851565b61227b8185611d65565b935061228b81856020860161169b565b80840191505092915050565b60006122a38284612266565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006122e4601d83611dab565b91506122ef826122ae565b602082019050919050565b60006020820190508181036000830152612313816122d7565b9050919050565b600081519050919050565b60006123308261231a565b61233a8185611dab565b935061234a81856020860161169b565b61235381611107565b840191505092915050565b600060208201905081810360008301526123788184612325565b90509291505056fea264697066735822122049b85011d013f48cd9f766f2940e21c451619194f7387b82acc7616c8a36a1f964736f6c63430008130033

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

00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb

-----Decoded View---------------
Arg [0] : _verifierProxy (address): 0x60fAa7faC949aF392DFc858F5d97E3EEfa07E9EB

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000060faa7fac949af392dfc858f5d97e3eefa07e9eb


Block Transaction Gas Used Reward
view all blocks ##produced##

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.