ETH Price: $2,899.35 (-0.89%)

Contract

0xA3AB8ad368dD8cd8AF59b09125c005C9168aBFFD

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
200378002025-06-15 17:46:49224 days ago1750009609
0xA3AB8ad3...9168aBFFD
0 ETH
200360542025-06-15 16:24:19224 days ago1750004659
0xA3AB8ad3...9168aBFFD
0 ETH
200243252025-06-15 8:02:39225 days ago1749974559
0xA3AB8ad3...9168aBFFD
0 ETH
200242842025-06-15 8:01:05225 days ago1749974465
0xA3AB8ad3...9168aBFFD
0 ETH
200242632025-06-15 8:00:19225 days ago1749974419
0xA3AB8ad3...9168aBFFD
0 ETH
200149912025-06-15 0:31:07225 days ago1749947467
0xA3AB8ad3...9168aBFFD
0 ETH
200058642025-06-14 16:51:56225 days ago1749919916
0xA3AB8ad3...9168aBFFD
0 ETH
200058442025-06-14 16:51:09225 days ago1749919869
0xA3AB8ad3...9168aBFFD
0 ETH
200058312025-06-14 16:50:36225 days ago1749919836
0xA3AB8ad3...9168aBFFD
0 ETH
200049522025-06-14 16:12:39225 days ago1749917559
0xA3AB8ad3...9168aBFFD
0 ETH
200033212025-06-14 15:03:38225 days ago1749913418
0xA3AB8ad3...9168aBFFD
0 ETH
199964632025-06-14 10:02:14225 days ago1749895334
0xA3AB8ad3...9168aBFFD
0 ETH
199961982025-06-14 9:51:49225 days ago1749894709
0xA3AB8ad3...9168aBFFD
0 ETH
199814752025-06-13 21:54:12226 days ago1749851652
0xA3AB8ad3...9168aBFFD
0 ETH
199814732025-06-13 21:53:51226 days ago1749851631
0xA3AB8ad3...9168aBFFD
0 ETH
199688462025-06-13 12:22:20226 days ago1749817340
0xA3AB8ad3...9168aBFFD
0 ETH
199679002025-06-13 11:40:56226 days ago1749814856
0xA3AB8ad3...9168aBFFD
0 ETH
199675562025-06-13 11:27:12226 days ago1749814032
0xA3AB8ad3...9168aBFFD
0 ETH
199674822025-06-13 11:24:12226 days ago1749813852
0xA3AB8ad3...9168aBFFD
0 ETH
199672512025-06-13 11:13:39226 days ago1749813219
0xA3AB8ad3...9168aBFFD
0 ETH
199672112025-06-13 11:11:54226 days ago1749813114
0xA3AB8ad3...9168aBFFD
0 ETH
199671872025-06-13 11:11:04226 days ago1749813064
0xA3AB8ad3...9168aBFFD
0 ETH
199671832025-06-13 11:10:56226 days ago1749813056
0xA3AB8ad3...9168aBFFD
0 ETH
199671522025-06-13 11:09:27226 days ago1749812967
0xA3AB8ad3...9168aBFFD
0 ETH
199671482025-06-13 11:09:16226 days ago1749812956
0xA3AB8ad3...9168aBFFD
0 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x017D85C4...142E0fC26
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
EOFeedAdapter

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

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

import { IEOFeedManager } from "../interfaces/IEOFeedManager.sol";
import { IEOFeedAdapter } from "./interfaces/IEOFeedAdapter.sol";
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

import { InvalidAddress } from "../interfaces/Errors.sol";

/**
 * @title EOFeedAdapter
 * @notice Price feed adapter contract
 */
contract EOFeedAdapter is IEOFeedAdapter, Initializable {
    /// @dev Feed manager contract
    IEOFeedManager private _feedManager;

    /// @dev Feed version
    uint256 private _version;

    /// @dev Feed description
    string private _description;

    // next 2 variables will be packed in 1 slot
    /// @dev Feed id
    uint16 private _feedId;

    /// @dev Decimals of the rate
    uint8 private _decimals;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    /**
     * @notice Initialize the contract
     * @param feedManager The feed manager address
     * @param feedId Feed id
     * @param feedDecimals The decimals of the rate
     * @param feedDescription The description of feed
     * @param feedVersion The version of feed
     */
    function initialize(
        address feedManager,
        uint16 feedId,
        uint8 feedDecimals,
        string memory feedDescription,
        uint256 feedVersion
    )
        external
        initializer
    {
        if (feedManager == address(0)) revert InvalidAddress();
        _feedManager = IEOFeedManager(feedManager);
        _feedId = feedId;
        _decimals = feedDecimals;
        _description = feedDescription;
        _version = feedVersion;
    }

    /**
     * @notice Get the price for the round
     * @param
     * @return roundId The round id
     * @return answer The price
     * @return startedAt The timestamp of the start of the round
     * @return updatedAt The timestamp of the end of the round
     * @return answeredInRound The round id in which the answer was computed
     */
    function getRoundData(uint80) external view returns (uint80, int256, uint256, uint256, uint80) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return (
            uint80(priceData.eoracleBlockNumber),
            int256(priceData.value),
            priceData.timestamp,
            priceData.timestamp,
            uint80(priceData.eoracleBlockNumber)
        );
    }

    /**
     * @notice Get the latest price
     * @return roundId The round id
     * @return answer The price
     * @return startedAt The timestamp of the start of the round
     * @return updatedAt The timestamp of the end of the round
     * @return answeredInRound The round id in which the answer was computed
     */
    function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return (
            uint80(priceData.eoracleBlockNumber),
            int256(priceData.value),
            priceData.timestamp,
            priceData.timestamp,
            uint80(priceData.eoracleBlockNumber)
        );
    }

    /**
     * @notice Get the latest price
     * @return int256 The price
     */
    function latestAnswer() external view returns (int256) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return int256(priceData.value);
    }

    /**
     * @notice Get the latest timestamp
     * @return uint256 The timestamp
     */
    function latestTimestamp() external view returns (uint256) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return priceData.timestamp;
    }

    /**
     * @notice Get the price for the round (round is not used, the latest price is returned)
     * @param
     * @return int256 The price
     */
    function getAnswer(uint256) external view returns (int256) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return int256(priceData.value);
    }

    /**
     * @notice Get the timestamp for the round (round is not used, the latest timestamp is returned)
     * @param
     * @return uint256 The timestamp
     */
    function getTimestamp(uint256) external view returns (uint256) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return priceData.timestamp;
    }

    /**
     * @notice Get the id of the feed
     * @return uint16 The feed id
     */
    function getFeedId() external view returns (uint16) {
        return _feedId;
    }

    /**
     * @notice Get the decimals of the rate
     * @return uint8 The decimals
     */
    function decimals() external view returns (uint8) {
        return _decimals;
    }

    /**
     * @notice Get the description of the feed
     * @return string The description
     */
    function description() external view returns (string memory) {
        return _description;
    }

    /**
     * @notice Get the version of the feed
     * @return uint256 The version
     */
    function version() external view returns (uint256) {
        return _version;
    }

    /**
     * @notice Get the latest round
     * @return uint256 The round id, eoracle block number
     */
    function latestRound() external view returns (uint256) {
        IEOFeedManager.PriceFeed memory priceData = _feedManager.getLatestPriceFeed(_feedId);
        return priceData.eoracleBlockNumber;
    }

    // slither-disable-next-line unused-state,naming-convention
    // solhint-disable-next-line ordering
    uint256[50] private __gap;
}

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

import { IEOFeedVerifier } from "./IEOFeedVerifier.sol";

interface IEOFeedManager {
    /**
     * @dev Price feed structure
     * @param value Price feed value
     * @param timestamp Price feed timestamp (block timestamp in eoracle chain when price feed rate is aggregated)
     * @param eoracleBlockNumber eoracle block number
     */
    struct PriceFeed {
        uint256 value;
        uint256 timestamp;
        uint256 eoracleBlockNumber;
    }

    /**
     * @dev Event emitted when a price feed is updated
     * @param feedId Feed id
     * @param rate Price feed value
     * @param timestamp Price feed timestamp
     */
    event RateUpdated(uint16 indexed feedId, uint256 rate, uint256 timestamp);

    /**
     * @notice Update the price for a feed
     * @param input A merkle leaf containing price data and its merkle proof
     * @param checkpoint Checkpoint data containing eoracle chain metadata and the data merkle root
     * @param signature Aggregated signature of the checkpoint
     * @param bitmap Bitmap of the validators who signed the checkpoint
     */
    function updatePriceFeed(
        IEOFeedVerifier.LeafInput calldata input,
        IEOFeedVerifier.Checkpoint calldata checkpoint,
        uint256[2] calldata signature,
        bytes calldata bitmap
    )
        external;

    /**
     * @notice Update the price for multiple feeds
     * @param inputs Array of leafs to prove the price feeds
     * @param checkpoint Checkpoint data
     * @param signature Aggregated signature of the checkpoint
     * @param bitmap Bitmap of the validators who signed the checkpoint
     */
    function updatePriceFeeds(
        IEOFeedVerifier.LeafInput[] calldata inputs,
        IEOFeedVerifier.Checkpoint calldata checkpoint,
        uint256[2] calldata signature,
        bytes calldata bitmap
    )
        external;

    /**
     * @notice Set the whitelisted publishers
     * @param publishers Array of publisher addresses
     * @param isWhitelisted Array of booleans indicating whether the publisher is whitelisted
     */
    function whitelistPublishers(address[] memory publishers, bool[] memory isWhitelisted) external;

    /**
     * @notice Get the latest price for a feed
     * @param feedId Feed id
     * @return PriceFeed struct
     */
    function getLatestPriceFeed(uint16 feedId) external view returns (PriceFeed memory);

    /**
     * @notice Get the latest price feeds for multiple feeds
     * @param feedIds Array of feed ids
     * @return Array of PriceFeed structs
     */
    function getLatestPriceFeeds(uint16[] calldata feedIds) external view returns (PriceFeed[] memory);

    /**
     * @notice Check if a publisher is whitelisted
     * @param publisher Address of the publisher
     * @return Boolean indicating whether the publisher is whitelisted
     */
    function isWhitelistedPublisher(address publisher) external view returns (bool);

    /**
     * @notice Check if a feed is supported
     * @param feedId feed Id to check
     * @return Boolean indicating whether the feed is supported
     */
    function isSupportedFeed(uint16 feedId) external view returns (bool);
}

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

/**
 * @title IEOFeedAdapter
 * @notice Interface for the EOFeedAdapter contract.
 * @dev compatible of AggregatorV3Interface from CL.
 */
interface IEOFeedAdapter {
    // slither-disable-next-line missing-inheritance
    function initialize(
        address feedManager,
        uint16 feedId,
        uint8 feedDecimals,
        string memory feedDescription,
        uint256 feedVersion
    )
        external;

    function getFeedId() external view returns (uint16);
    function decimals() external view returns (uint8);
    function description() external view returns (string memory);
    function version() external view returns (uint256);

    // getRoundData and latestRoundData should both raise "No data present"
    // if they do not have data to report, instead of returning unset values
    // which could be misinterpreted as actual reported values.
    function getRoundData(uint80 roundId_)
        external
        view
        returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

    function latestRoundData()
        external
        view
        returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

    // v2 interface
    function latestAnswer() external view returns (int256);

    function latestTimestamp() external view returns (uint256);

    function latestRound() external view returns (uint256);

    function getAnswer(uint256 roundId) external view returns (int256);

    function getTimestamp(uint256 roundId) external view returns (uint256);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

File 5 of 6 : Errors.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

/*//////////////////////////////////////////////////////////////////////////
                                EOFeedManager
//////////////////////////////////////////////////////////////////////////*/
error CallerIsNotWhitelisted(address caller);
error MissingLeafInputs();
error FeedNotSupported(uint16 feedId);
error SymbolReplay(uint16 feedId);

/*//////////////////////////////////////////////////////////////////////////
                                EOFeedVerifier
//////////////////////////////////////////////////////////////////////////*/
error CallerIsNotFeedManager();
error InvalidInput();
error InvalidProof();
error InvalidAddress();
error InvalidEventRoot();
error VotingPowerIsZero();
error AggVotingPowerIsZero();
error InsufficientVotingPower();
error SignatureVerificationFailed();
error ValidatorIndexOutOfBounds();
error ValidatorSetTooSmall();
error SenderNotAllowed(address sender);

/*//////////////////////////////////////////////////////////////////////////
                                EOFeedRegistryAdapter
//////////////////////////////////////////////////////////////////////////*/
error FeedAlreadyExists();
error BaseQuotePairExists();

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

interface IEOFeedVerifier {
    /**
     * @dev Leaf input structure
     * @param leafIndex Index of the leaf
     * @param unhashedLeaf Unhashed leaf data
     *         abi encoded (uint256 id, address sender, address receiver, bytes memory data)
     *              where bytes memory data =  abi encoded (uint16 feedId, uint256 rate, uint256 timestamp)
     * @param proof Merkle proof of the leaf
     */
    struct LeafInput {
        uint256 leafIndex;
        bytes unhashedLeaf;
        bytes32[] proof;
    }

    /**
     * @dev Checkpoint structure
     * @param epoch Epoch number
     * @param blockNumber Block number
     * @param eventRoot Event root of the merkle tree
     * @param blockHash Block hash
     * @param blockRound Block round
     */
    struct Checkpoint {
        uint256 epoch;
        uint256 blockNumber;
        bytes32 eventRoot;
        bytes32 blockHash;
        uint256 blockRound;
    }

    /**
     * @dev Validator structure
     * @param _address Validator address
     * @param blsKey Validator BLS key
     * @param votingPower Validator voting power
     */
    struct Validator {
        address _address;
        uint256[4] blsKey;
        uint256 votingPower;
    }

    /**
     * @dev Event emitted when the validator set is updated
     * @param currentValidatorSetLength Length of the current validator set
     * @param currentValidatorSetHash Hash of the current validator set
     * @param totalVotingPower Total voting power of the current validator set
     */
    event ValidatorSetUpdated(
        uint256 currentValidatorSetLength, bytes32 currentValidatorSetHash, uint256 totalVotingPower
    );

    /**
     * @dev Event emitted when the feed manager is set
     * @param feedManager Address of the feed manager
     */
    event FeedManagerSet(address feedManager);

    /**
     * @notice Verifies leaf, processes checkpoint,
     *          returns leaf data in case if checkpoint is valid and leaf is part of the merkle tree
     * @param input leaf input data and proof (LeafInput)
     * @param checkpoint Checkpoint data (Checkpoint)
     * @param signature Aggregated signature of the checkpoint
     * @param bitmap Bitmap of the validators who signed the checkpoint
     * @return leafData Leaf data, abi encoded (uint16 feedId, uint256 rate, uint256 timestamp)
     */
    function verify(
        LeafInput memory input,
        Checkpoint calldata checkpoint,
        uint256[2] calldata signature,
        bytes calldata bitmap
    )
        external
        returns (bytes memory leafData);

    /**
     * @notice Verifies multiple leaves, processes checkpoint,
     *          returns leaf data in case if checkpoint is valid and leaves are part of the merkle tree
     * @param inputs Exit leaves inputs
     * @param checkpoint Checkpoint data
     * @param signature Aggregated signature of the checkpoint
     * @param bitmap Bitmap of the validators who signed the checkpoint
     */
    function batchVerify(
        LeafInput[] memory inputs,
        Checkpoint calldata checkpoint,
        uint256[2] calldata signature,
        bytes calldata bitmap
    )
        external
        returns (bytes[] memory);

    /**
     * @notice Function to set a new validator set
     * @param newValidatorSet The new validator set to store
     */
    function setNewValidatorSet(Validator[] calldata newValidatorSet) external;

    /**
     * @notice Sets the address of the feed manager.
     * @param feedManager_ The address of the new feed manager.
     */
    function setFeedManager(address feedManager_) external;

    /**
     * @notice Sets allowed sender for exit events
     * @param senders Addresses of the allowed senders
     * @param allowed Boolean value to set the sender as allowed or not
     */
    function setAllowedSenders(address[] calldata senders, bool allowed) external;
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/",
    "solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeedId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"feedManager","type":"address"},{"internalType":"uint16","name":"feedId","type":"uint16"},{"internalType":"uint8","name":"feedDecimals","type":"uint8"},{"internalType":"string","name":"feedDescription","type":"string"},{"internalType":"uint256","name":"feedVersion","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

0x6080604052348015600f57600080fd5b506016601a565b60ca565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161560695760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b039081161460c75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b610ddf806100d96000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806393e5c6e911610081578063b633620c1161005b578063b633620c146101b2578063e2994f2f146101c5578063feaf968c146101da57600080fd5b806393e5c6e91461013f5780639a6fc8f514610155578063b5ab58dc1461019f57600080fd5b8063668a0f02116100b2578063668a0f021461011a5780637284e416146101225780638205bf6a1461013757600080fd5b8063313ce567146100d957806350d25bcd146100fc57806354fd4d5014610112575b600080fd5b60035462010000900460ff1660405160ff90911681526020015b60405180910390f35b6101046101e2565b6040519081526020016100f3565b600154610104565b610104610284565b61012a610329565b6040516100f39190610982565b6101046103bb565b60035460405161ffff90911681526020016100f3565b6101686101633660046109ef565b610460565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016100f3565b6101046101ad366004610a22565b610523565b6101046101c0366004610a22565b6105c6565b6101d86101d3366004610b15565b61066c565b005b6101686108c0565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d9190610bb8565b5192915050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa1580156102fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031f9190610bb8565b6040015192915050565b60606002805461033890610c14565b80601f016020809104026020016040519081016040528092919081815260200182805461036490610c14565b80156103b15780601f10610386576101008083540402835291602001916103b1565b820191906000526020600020905b81548152906001019060200180831161039457829003601f168201915b5050505050905090565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa158015610432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104569190610bb8565b6020015192915050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff90911660048201528291829182918291829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa1580156104df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105039190610bb8565b604081015181516020909201519099919850965086955088945092505050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa15801561059a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105be9190610bb8565b519392505050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa15801561063d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106619190610bb8565b602001519392505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156106b75750825b905060008267ffffffffffffffff1660011480156106d45750303b155b9050811580156106e2575080155b15610719576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166001178555831561077a5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b73ffffffffffffffffffffffffffffffffffffffff8a166107c7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8c161790556003805461ffff8b167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000909116176201000060ff8b1602179055600261084d8882610cb8565b50600186905583156108b45784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff90911660048201528291829182918291829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa15801561093f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109639190610bb8565b6040810151815160209092015190989197509550859450879350915050565b60006020808352835180602085015260005b818110156109b057858101830151858201604001528201610994565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b600060208284031215610a0157600080fd5b813569ffffffffffffffffffff81168114610a1b57600080fd5b9392505050565b600060208284031215610a3457600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610a7b57600080fd5b813567ffffffffffffffff80821115610a9657610a96610a3b565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610adc57610adc610a3b565b81604052838152866020858801011115610af557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215610b2d57600080fd5b853573ffffffffffffffffffffffffffffffffffffffff81168114610b5157600080fd5b9450602086013561ffff81168114610b6857600080fd5b9350604086013560ff81168114610b7e57600080fd5b9250606086013567ffffffffffffffff811115610b9a57600080fd5b610ba688828901610a6a565b95989497509295608001359392505050565b600060608284031215610bca57600080fd5b6040516060810181811067ffffffffffffffff82111715610bed57610bed610a3b565b80604052508251815260208301516020820152604083015160408201528091505092915050565b600181811c90821680610c2857607f821691505b602082108103610c61577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610cb3576000816000526020600020601f850160051c81016020861015610c905750805b601f850160051c820191505b81811015610caf57828155600101610c9c565b5050505b505050565b815167ffffffffffffffff811115610cd257610cd2610a3b565b610ce681610ce08454610c14565b84610c67565b602080601f831160018114610d395760008415610d035750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610caf565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015610d8657888601518255948401946001909101908401610d67565b5085821015610dc257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b0190555056fea164736f6c6343000819000a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d45760003560e01c806393e5c6e911610081578063b633620c1161005b578063b633620c146101b2578063e2994f2f146101c5578063feaf968c146101da57600080fd5b806393e5c6e91461013f5780639a6fc8f514610155578063b5ab58dc1461019f57600080fd5b8063668a0f02116100b2578063668a0f021461011a5780637284e416146101225780638205bf6a1461013757600080fd5b8063313ce567146100d957806350d25bcd146100fc57806354fd4d5014610112575b600080fd5b60035462010000900460ff1660405160ff90911681526020015b60405180910390f35b6101046101e2565b6040519081526020016100f3565b600154610104565b610104610284565b61012a610329565b6040516100f39190610982565b6101046103bb565b60035460405161ffff90911681526020016100f3565b6101686101633660046109ef565b610460565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016100f3565b6101046101ad366004610a22565b610523565b6101046101c0366004610a22565b6105c6565b6101d86101d3366004610b15565b61066c565b005b6101686108c0565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d9190610bb8565b5192915050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa1580156102fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031f9190610bb8565b6040015192915050565b60606002805461033890610c14565b80601f016020809104026020016040519081016040528092919081815260200182805461036490610c14565b80156103b15780601f10610386576101008083540402835291602001916103b1565b820191906000526020600020905b81548152906001019060200180831161039457829003601f168201915b5050505050905090565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa158015610432573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104569190610bb8565b6020015192915050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff90911660048201528291829182918291829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa1580156104df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105039190610bb8565b604081015181516020909201519099919850965086955088945092505050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa15801561059a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105be9190610bb8565b519392505050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa15801561063d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106619190610bb8565b602001519392505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156106b75750825b905060008267ffffffffffffffff1660011480156106d45750303b155b9050811580156106e2575080155b15610719576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166001178555831561077a5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b73ffffffffffffffffffffffffffffffffffffffff8a166107c7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8c161790556003805461ffff8b167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000909116176201000060ff8b1602179055600261084d8882610cb8565b50600186905583156108b45784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b600080546003546040517fcbc2483b00000000000000000000000000000000000000000000000000000000815261ffff90911660048201528291829182918291829173ffffffffffffffffffffffffffffffffffffffff169063cbc2483b90602401606060405180830381865afa15801561093f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109639190610bb8565b6040810151815160209092015190989197509550859450879350915050565b60006020808352835180602085015260005b818110156109b057858101830151858201604001528201610994565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b600060208284031215610a0157600080fd5b813569ffffffffffffffffffff81168114610a1b57600080fd5b9392505050565b600060208284031215610a3457600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610a7b57600080fd5b813567ffffffffffffffff80821115610a9657610a96610a3b565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610adc57610adc610a3b565b81604052838152866020858801011115610af557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215610b2d57600080fd5b853573ffffffffffffffffffffffffffffffffffffffff81168114610b5157600080fd5b9450602086013561ffff81168114610b6857600080fd5b9350604086013560ff81168114610b7e57600080fd5b9250606086013567ffffffffffffffff811115610b9a57600080fd5b610ba688828901610a6a565b95989497509295608001359392505050565b600060608284031215610bca57600080fd5b6040516060810181811067ffffffffffffffff82111715610bed57610bed610a3b565b80604052508251815260208301516020820152604083015160408201528091505092915050565b600181811c90821680610c2857607f821691505b602082108103610c61577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610cb3576000816000526020600020601f850160051c81016020861015610c905750805b601f850160051c820191505b81811015610caf57828155600101610c9c565b5050505b505050565b815167ffffffffffffffff811115610cd257610cd2610a3b565b610ce681610ce08454610c14565b84610c67565b602080601f831160018114610d395760008415610d035750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610caf565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015610d8657888601518255948401946001909101908401610d67565b5085821015610dc257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b0190555056fea164736f6c6343000819000a

Block Transaction Gas Used Reward
view all blocks sequenced

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.