Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00Multichain Info
N/A
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
EOFeedRegistryAdapter
Compiler Version
v0.8.25+commit.b61c2a91
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import { EOFeedFactoryBeacon } from "./factories/EOFeedFactoryBeacon.sol"; import { EOFeedRegistryAdapterBase } from "./EOFeedRegistryAdapterBase.sol"; import { IEOFeedManager } from "../interfaces/IEOFeedManager.sol"; /** * @title EOFeedRegistryAdapterClone * @author eOracle * @notice The adapter of EOFeedManager contract for CL FeedRegistry, uses the beacon * @dev This contract inherits EOFeedFactoryBeacon, uses the beacon proxy pattern for deploying EOFeedAdapter instances */ // solhint-disable no-empty-blocks contract EOFeedRegistryAdapter is EOFeedRegistryAdapterBase, EOFeedFactoryBeacon { /** * @notice Initialize the contract * @param feedManager The feed manager address * @param feedAdapterImplementation The feedAdapter implementation address * @param owner Owner of the contract */ function initialize( address feedManager, address feedAdapterImplementation, address owner ) external virtual override initializer onlyNonZeroAddress(feedManager) onlyNonZeroAddress(feedAdapterImplementation) { __Ownable_init(owner); __EOFeedFactory_init(feedAdapterImplementation, owner); _feedManager = IEOFeedManager(feedManager); emit FeedManagerSet(feedManager); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import { BeaconProxy } from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol"; import { UpgradeableBeacon } from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol"; import { EOFeedFactoryBase } from "./EOFeedFactoryBase.sol"; abstract contract EOFeedFactoryBeacon is Initializable, EOFeedFactoryBase { address private _beacon; /** * @dev Returns the address of the beacon. */ function getBeacon() external view returns (address) { return _beacon; } /** * @dev Initializes the factory with the feedAdapter implementation. */ function __EOFeedFactory_init(address impl, address initialOwner) internal override onlyInitializing { _beacon = address(new UpgradeableBeacon(impl, initialOwner)); } /** * @dev Deploys a new feedAdapter instance via Beacon proxy. */ function _deployEOFeedAdapter() internal override returns (address) { return address(new BeaconProxy(_beacon, "")); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import { IEOFeedManager } from "../interfaces/IEOFeedManager.sol"; import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import { IEOFeedAdapter } from "./interfaces/IEOFeedAdapter.sol"; import { IEOFeedRegistryAdapter } from "./interfaces/IEOFeedRegistryAdapter.sol"; import { EOFeedFactoryBase } from "./factories/EOFeedFactoryBase.sol"; import { InvalidAddress, FeedAlreadyExists, BaseQuotePairExists, FeedNotSupported, FeedDoesNotExist, NotFeedDeployer } from "../interfaces/Errors.sol"; /** * @title EOFeedRegistryAdapterBase * @author eOracle * @notice base contract which is adapter of EOFeedManager contract for CL FeedManager */ abstract contract EOFeedRegistryAdapterBase is OwnableUpgradeable, EOFeedFactoryBase, IEOFeedRegistryAdapter { /// @dev Feed manager contract IEOFeedManager internal _feedManager; /// @dev Map of feed id to feed adapter (feed id => IEOFeedAdapter) mapping(uint256 => IEOFeedAdapter) internal _feedAdapters; /// @dev Map of feed adapter to enabled status (feed adapter => is enabled) mapping(address => bool) internal _feedEnabled; /// @dev Map of token addresses to feed ids (base => quote => feed id) mapping(address => mapping(address => uint256)) internal _tokenAddressesToFeedIds; /* ============ Events ============ */ /** * @dev Event emitted when the feed manager is set * @param feedManager The feed manager address */ event FeedManagerSet(address indexed feedManager); /** * @dev Event emitted when a feed adapter is deployed * @param feedId The feed id * @param feedAdapter The feed adapter address * @param base The base asset address * @param quote The quote asset address */ event FeedAdapterDeployed(uint256 indexed feedId, address indexed feedAdapter, address base, address quote); /* ============ Modifiers ============ */ /// @dev Allows only non-zero addresses modifier onlyNonZeroAddress(address addr) { if (addr == address(0)) revert InvalidAddress(); _; } /// @dev Allows only the feed deployer to call the function modifier onlyFeedDeployer() { if (msg.sender != _feedManager.getFeedDeployer()) revert NotFeedDeployer(); _; } /* ============ Constructor ============ */ /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } /* ============ Initializer ============ */ /** * @notice Initialize the contract * @param feedManager The feed manager address * @param feedAdapterImplementation The feedAdapter implementation address * @param owner Owner of the contract */ function initialize(address feedManager, address feedAdapterImplementation, address owner) external virtual; /* ============ External Functions ============ */ /** * @notice Set the feed manager * @param feedManager The feed manager address */ function setFeedManager(address feedManager) external onlyOwner onlyNonZeroAddress(feedManager) { _feedManager = IEOFeedManager(feedManager); emit FeedManagerSet(feedManager); } /** * @notice deploy EOFeedAdapter * @param base The base asset address * @param quote The quote asset address * @param feedId The feed id * @param feedDescription The description of feed * @param inputDecimals The input decimals * @param outputDecimals The output decimals * @param feedVersion The version of the feed * @return IEOFeedAdapter The feed adapter */ // This function can reenter through the external call to the deployed EOFeedAdapter, but the external contract is // being deployed by this contract, so it is considered safe // slither-disable-next-line reentrancy-no-eth,reentrancy-benign,reentrancy-events function deployEOFeedAdapter( address base, address quote, uint256 feedId, string calldata feedDescription, uint8 inputDecimals, uint8 outputDecimals, uint256 feedVersion ) external onlyFeedDeployer returns (IEOFeedAdapter) { // check if feedId exists in feedManager contract if (!_feedManager.isSupportedFeed(feedId)) { revert FeedNotSupported(feedId); } if (address(_feedAdapters[feedId]) != address(0)) { revert FeedAlreadyExists(); } if (_tokenAddressesToFeedIds[base][quote] != 0) { revert BaseQuotePairExists(); } address feedAdapter = _deployEOFeedAdapter(); IEOFeedAdapter(feedAdapter).initialize( address(_feedManager), feedId, inputDecimals, outputDecimals, feedDescription, feedVersion ); _feedEnabled[feedAdapter] = true; _feedAdapters[feedId] = IEOFeedAdapter(feedAdapter); _tokenAddressesToFeedIds[base][quote] = feedId; emit FeedAdapterDeployed(feedId, feedAdapter, base, quote); return IEOFeedAdapter(feedAdapter); } /** * @notice Remove the feedAdapter * @param base The base asset address * @param quote The quote asset address */ function removeFeedAdapter(address base, address quote) external onlyOwner { uint256 feedId = _tokenAddressesToFeedIds[base][quote]; if (feedId == 0) revert FeedDoesNotExist(); address feedAdapter = address(_feedAdapters[feedId]); delete _feedEnabled[feedAdapter]; delete _feedAdapters[feedId]; delete _tokenAddressesToFeedIds[base][quote]; } /** * @notice Get the feed manager * @return IEOFeedManager The feed manager */ function getFeedManager() external view returns (IEOFeedManager) { return _feedManager; } /** * @notice Get the feedAdapter for a given id * @param feedId The feed id * @return IEOFeedAdapter The feedAdapter */ function getFeedById(uint256 feedId) external view returns (IEOFeedAdapter) { return _feedAdapters[feedId]; } /** * @notice Get the decimals for a given base/quote pair * @dev Calls the decimals function from the feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @return uint8 The decimals */ function decimals(address base, address quote) external view returns (uint8) { return _feedAdapters[_tokenAddressesToFeedIds[base][quote]].decimals(); } /** * @notice Get the description for a given base/quote pair * @dev Calls the description function from the feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @return string The description */ function description(address base, address quote) external view returns (string memory) { return _feedAdapters[_tokenAddressesToFeedIds[base][quote]].description(); } /** * @notice Get the version for a given base/quote pair * @dev Calls the version function from the feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @return uint256 The version */ function version(address base, address quote) external view returns (uint256) { return _feedAdapters[_tokenAddressesToFeedIds[base][quote]].version(); } /** * @notice Get the latest round data for a given base/quote pair * @dev Calls the getLatestPriceFeed function from the feed manager, not from feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @return roundId The roundId * @return answer The answer * @return startedAt The startedAt * @return updatedAt The updatedAt * @return answeredInRound The answeredInRound */ function latestRoundData( address base, address quote ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) { IEOFeedManager.PriceFeed memory feedData = _feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]); return ( uint80(feedData.eoracleBlockNumber), int256(feedData.value), feedData.timestamp, feedData.timestamp, uint80(feedData.eoracleBlockNumber) ); } /** * @notice Get the round data for a given base/quote pair * @dev Calls the getLatestPriceFeed function from the feed manager, not from feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @param roundId The roundId - is ignored, only latest round is supported * @return roundId The roundId * @return answer The answer * @return startedAt The startedAt * @return updatedAt The updatedAt * @return answeredInRound The answeredInRound */ function getRoundData( address base, address quote, // solhint-disable-next-line no-unused-vars uint80 roundId ) external view returns (uint80, int256, uint256, uint256, uint80) { IEOFeedManager.PriceFeed memory feedData = _feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]); return ( uint80(feedData.eoracleBlockNumber), int256(feedData.value), feedData.timestamp, feedData.timestamp, uint80(feedData.eoracleBlockNumber) ); } /** * @notice Get the latest price for a given base/quote pair * @dev Calls the getLatestPriceFeed function from the feed manager, not from feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @return int256 The latest price */ function latestAnswer(address base, address quote) external view returns (int256) { return int256(_feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]).value); } /** * @notice Get the latest timestamp for a given base/quote pair * @dev Calls the getLatestPriceFeed function from the feed manager, not from feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @return uint256 The latest timestamp */ function latestTimestamp(address base, address quote) external view returns (uint256) { return _feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]).timestamp; } /** * @notice Get the answer for a given base/quote pair and round * @dev Calls the getLatestPriceFeed function from the feed manager, not from feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @param roundId The roundId - is ignored, only latest round is supported * @return int256 The answer */ // solhint-disable-next-line no-unused-vars function getAnswer(address base, address quote, uint256 roundId) external view returns (int256) { IEOFeedManager.PriceFeed memory feedData = _feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]); return int256(feedData.value); } /** * @notice Get the timestamp for a given base/quote pair and round * @dev Calls the getLatestPriceFeed function from the feed manager, not from feedAdapter itself * @param base The base asset address * @param quote The quote asset address * @param roundId The roundId - is ignored, only latest round is supported * @return uint256 The timestamp */ // solhint-disable-next-line no-unused-vars function getTimestamp(address base, address quote, uint256 roundId) external view returns (uint256) { IEOFeedManager.PriceFeed memory feedData = _feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]); return feedData.timestamp; } /** * @notice Get the feedAdapter for a given base/quote pair * @param base The base asset address * @param quote The quote asset address * @return IEOFeedAdapter The feedAdapter */ function getFeed(address base, address quote) external view returns (IEOFeedAdapter) { return _getFeed(base, quote); } /** * @notice Check if a feedAdapter is enabled in the storage of adapter * @param feedAdapter The feedAdapter address * @return bool True if the feedAdapter is enabled */ function isFeedEnabled(address feedAdapter) external view returns (bool) { return _feedEnabled[feedAdapter]; } /** * @notice Get the round feedAdapter for a given base/quote pair * @param base The base asset address * @param quote The quote asset address * @param roundId The roundId - is ignored, only latest round is supported * @return IEOFeedAdapter The feedAdapter */ // solhint-disable-next-line no-unused-vars function getRoundFeed(address base, address quote, uint80 roundId) external view returns (IEOFeedAdapter) { return _getFeed(base, quote); } /** * @notice Get the latest round for a given base/quote pair * @dev Calls the getLatestPriceFeed function from the feed manager, not from Feed itself * @param base The base asset address * @param quote The quote asset address * @return uint256 The latest round */ function latestRound(address base, address quote) external view returns (uint256) { return _feedManager.getLatestPriceFeed(_tokenAddressesToFeedIds[base][quote]).eoracleBlockNumber; } /* ============ Internal Functions ============ */ /** * @notice Get the feedAdapter for a given base/quote pair * @param base The base asset address * @param quote The quote asset address * @return IEOFeedAdapter The feedAdapter */ function _getFeed(address base, address quote) internal view returns (IEOFeedAdapter) { return _feedAdapters[_tokenAddressesToFeedIds[base][quote]]; } /** * @dev Gap for future storage variables in upgradeable contract. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ // 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"; import { IPauserRegistry } from "eigenlayer-contracts/interfaces/IPauserRegistry.sol"; /** * @title IEOFeedManager * @author eOracle */ interface IEOFeedManager { /* ============ Structs ============ */ /** * @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; } /* ============ Events ============ */ /** * @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(uint256 indexed feedId, uint256 rate, uint256 timestamp); /** * @dev Event emitted when a price feed is replayed * @param feedId Feed id * @param rate Price feed value * @param timestamp Price feed timestamp * @param latestTimestamp Latest price feed timestamp */ event SymbolReplay(uint256 indexed feedId, uint256 rate, uint256 timestamp, uint256 latestTimestamp); /** * @dev Event emitted when the feed deployer is set * @param feedDeployer Address of the feed deployer */ event FeedDeployerSet(address indexed feedDeployer); /** * @dev Event emitted when the feed verifier is set * @param feedVerifier Address of the feed verifier */ event FeedVerifierSet(address indexed feedVerifier); /** * @dev Event emitted when the pauser registry is set * @param pauserRegistry Address of the pauser registry */ event PauserRegistrySet(address indexed pauserRegistry); /** * @dev Event emitted when the supported feeds are updated * @param feedId Feed id * @param isSupported Boolean indicating whether the feed is supported */ event SupportedFeedsUpdated(uint256 indexed feedId, bool isSupported); /** * @dev Event emitted when a publisher is whitelisted * @param publisher Address of the publisher * @param isWhitelisted Boolean indicating whether the publisher is whitelisted */ event PublisherWhitelisted(address indexed publisher, bool isWhitelisted); /* ============ External Functions ============ */ /** * @notice Update the price for a feed * @param input A merkle leaf containing price data and its merkle proof * @param vParams Verification parameters */ function updateFeed( IEOFeedVerifier.LeafInput calldata input, IEOFeedVerifier.VerificationParams calldata vParams ) external; /** * @notice Update the price for multiple feeds * @param inputs Array of leafs to prove the price feeds * @param vParams Verification parameters */ function updateFeeds( IEOFeedVerifier.LeafInput[] calldata inputs, IEOFeedVerifier.VerificationParams calldata vParams ) external; /** * @notice Whitelist or remove publishers * @param publishers Array of publisher addresses * @param isWhitelisted Array of booleans indicating whether each publisher should be whitelisted */ function whitelistPublishers(address[] calldata publishers, bool[] calldata isWhitelisted) external; /** * @notice Get the latest price for a feed * @param feedId Feed id * @return The latest price feed data containing: * - value: The price feed value * - timestamp: The timestamp when the price was aggregated * - eoracleBlockNumber: The eoracle block number when the price was recorded */ function getLatestPriceFeed(uint256 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 corresponding to each requested feed ID */ function getLatestPriceFeeds(uint256[] 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(uint256 feedId) external view returns (bool); /** * @notice Get the feed deployer * @return Address of the feed deployer */ function getFeedDeployer() external view returns (address); /** * @notice Get the feed verifier contract address * @return Address of the feed verifier contract */ function getFeedVerifier() external view returns (IEOFeedVerifier); /** * @notice Get the pauser registry contract address * @return Address of the pauser registry contract */ function getPauserRegistry() external view returns (IPauserRegistry); }
// 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 } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/BeaconProxy.sol) pragma solidity ^0.8.20; import {IBeacon} from "./IBeacon.sol"; import {Proxy} from "../Proxy.sol"; import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol"; /** * @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}. * * The beacon address can only be set once during construction, and cannot be changed afterwards. It is stored in an * immutable variable to avoid unnecessary storage reads, and also in the beacon storage slot specified by * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] so that it can be accessed externally. * * CAUTION: Since the beacon address can never be changed, you must ensure that you either control the beacon, or trust * the beacon to not upgrade the implementation maliciously. * * IMPORTANT: Do not use the implementation logic to modify the beacon storage slot. Doing so would leave the proxy in * an inconsistent state where the beacon storage slot does not match the beacon address. */ contract BeaconProxy is Proxy { // An immutable address for the beacon to avoid unnecessary SLOADs before each delegate call. address private immutable _beacon; /** * @dev Initializes the proxy with `beacon`. * * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This * will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity * constructor. * * Requirements: * * - `beacon` must be a contract with the interface {IBeacon}. * - If `data` is empty, `msg.value` must be zero. */ constructor(address beacon, bytes memory data) payable { ERC1967Utils.upgradeBeaconToAndCall(beacon, data); _beacon = beacon; } /** * @dev Returns the current implementation address of the associated beacon. */ function _implementation() internal view virtual override returns (address) { return IBeacon(_getBeacon()).implementation(); } /** * @dev Returns the beacon. */ function _getBeacon() internal view virtual returns (address) { return _beacon; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/UpgradeableBeacon.sol) pragma solidity ^0.8.20; import {IBeacon} from "./IBeacon.sol"; import {Ownable} from "../../access/Ownable.sol"; /** * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their * implementation contract, which is where they will delegate all function calls. * * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon. */ contract UpgradeableBeacon is IBeacon, Ownable { address private _implementation; /** * @dev The `implementation` of the beacon is invalid. */ error BeaconInvalidImplementation(address implementation); /** * @dev Emitted when the implementation returned by the beacon is changed. */ event Upgraded(address indexed implementation); /** * @dev Sets the address of the initial implementation, and the initial owner who can upgrade the beacon. */ constructor(address implementation_, address initialOwner) Ownable(initialOwner) { _setImplementation(implementation_); } /** * @dev Returns the current implementation address. */ function implementation() public view virtual returns (address) { return _implementation; } /** * @dev Upgrades the beacon to a new implementation. * * Emits an {Upgraded} event. * * Requirements: * * - msg.sender must be the owner of the contract. * - `newImplementation` must be a contract. */ function upgradeTo(address newImplementation) public virtual onlyOwner { _setImplementation(newImplementation); } /** * @dev Sets the implementation contract address for this beacon * * Requirements: * * - `newImplementation` must be a contract. */ function _setImplementation(address newImplementation) private { if (newImplementation.code.length == 0) { revert BeaconInvalidImplementation(newImplementation); } _implementation = newImplementation; emit Upgraded(newImplementation); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; abstract contract EOFeedFactoryBase { function __EOFeedFactory_init(address impl, address) internal virtual; function _deployEOFeedAdapter() internal virtual returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol"; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300; function _getOwnableStorage() private pure returns (OwnableStorage storage $) { assembly { $.slot := OwnableStorageLocation } } /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { OwnableStorage storage $ = _getOwnableStorage(); return $._owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; /** * @title IEOFeedAdapter * @author eOracle * @notice Interface for the EOFeedAdapter contract. * @dev compatible with AggregatorV3Interface. */ interface IEOFeedAdapter { // slither-disable-next-line missing-inheritance function initialize( address feedManager, uint256 feedId, uint8 inputDecimals, uint8 outputDecimals, string memory feedDescription, uint256 feedVersion ) external; function getFeedId() external view returns (uint256); function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80) 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 - for backward compatibility 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); function isPaused() external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import { IEOFeedAdapter } from "./IEOFeedAdapter.sol"; /** * @title IEOFeedRegistryAdapter * @author eOracle * @notice Interface for the FeedManager contract. * @dev Simplified version of FeedRegistryInterface from CL. */ interface IEOFeedRegistryAdapter { // V3 AggregatorV3Interface function decimals(address base, address quote) external view returns (uint8); function description(address base, address quote) external view returns (string memory); function version(address base, address quote) external view returns (uint256); function latestRoundData( address base, address quote ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); function getRoundData( address base, address quote, uint80 ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); // V2 AggregatorInterface function latestAnswer(address base, address quote) external view returns (int256 answer); function latestTimestamp(address base, address quote) external view returns (uint256 timestamp); function latestRound(address base, address quote) external view returns (uint256 roundId); function getAnswer(address base, address quote, uint256 roundId) external view returns (int256 answer); function getTimestamp(address base, address quote, uint256 roundId) external view returns (uint256 timestamp); // Registry getters function getFeed(address base, address quote) external view returns (IEOFeedAdapter feedAdapter); function isFeedEnabled(address feedAdapter) external view returns (bool); function getRoundFeed( address base, address quote, uint80 roundId ) external view returns (IEOFeedAdapter feedAdapter); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; /*////////////////////////////////////////////////////////////////////////// EOFeedManager //////////////////////////////////////////////////////////////////////////*/ error CallerIsNotWhitelisted(address caller); error MissingLeafInputs(); error FeedNotSupported(uint256 feedId); error CallerIsNotPauser(); error CallerIsNotUnpauser(); error CallerIsNotFeedDeployer(); /*////////////////////////////////////////////////////////////////////////// EOFeedVerifier //////////////////////////////////////////////////////////////////////////*/ error CallerIsNotFeedManager(); error InvalidInput(); error InvalidProof(); error InvalidAddress(); error InvalidEventRoot(); error VotingPowerIsZero(); error InsufficientVotingPower(); error SignatureVerificationFailed(); error SignaturePairingFailed(); error ValidatorIndexOutOfBounds(); error ValidatorSetTooSmall(); error DuplicatedAddresses(); /*////////////////////////////////////////////////////////////////////////// EOFeedRegistryAdapter //////////////////////////////////////////////////////////////////////////*/ error FeedAlreadyExists(); error BaseQuotePairExists(); error FeedDoesNotExist(); error NotFeedDeployer();
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; /** * @title IEOFeedVerifier * @author eOracle */ interface IEOFeedVerifier { /* ============ Structs ============ */ /** * @dev Input data for leaf verification * @param leafIndex Index of the leaf * @param unhashedLeaf Unhashed leaf data * abi encoded (uint256 feedId, uint256 rate, uint256 timestamp) * @param proof Merkle proof of the leaf */ struct LeafInput { uint256 leafIndex; bytes unhashedLeaf; bytes32[] proof; } /** * @dev Signed Data structure * @param eventRoot merkle tree root for events * @param blockNumber the block number this merkle tree originated from (on EO chain) * @param signature G1 hashed payload of abi.encode(eventRoot, blockNumber) * @param apkG2 G2 apk provided from off-chain * @param nonSignersBitmap used to construct G1 apk onchain */ struct VerificationParams { uint64 blockNumber; // 8 bytes + uint32 chainId; // 4 bytes + address aggregator; // 20 bytes = 32 bytes bytes32 eventRoot; // 32 bytes bytes32 blockHash; // 32 bytes uint256[2] signature; // 64 bytes uint256[4] apkG2; // 128 bytes bytes nonSignersBitmap; // dynamic } /** * @notice Represents a validator in the system * @param _address The validator's address * @param g1pk validator G1 public key * @param g2pk validator G2 public key (not used in current implementation) * @param votingPower Validator voting power */ struct Validator { address _address; uint256[2] g1pk; uint256[4] g2pk; uint256 votingPower; } /* ============ Events ============ */ /** * @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); /* ============ External Functions ============ */ /** * @notice verify single leaf signature from a block merkle tree * @param input leaf input data and proof (LeafInput) * @param vParams verification params * @return leafData Leaf data, abi encoded (uint256 feedId, uint256 rate, uint256 timestamp) */ function verify( LeafInput memory input, VerificationParams calldata vParams ) external returns (bytes memory leafData); /** * @notice batch verify signature of multiple leaves from the same block merkle tree * @param inputs feed leaves * @param vParams verification params */ function batchVerify( LeafInput[] memory inputs, VerificationParams calldata vParams ) external returns (bytes[] memory); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; /** * @title Interface for the `PauserRegistry` contract. * @author Layr Labs, Inc. * @notice Terms of Service: https://docs.eigenlayer.xyz/overview/terms-of-service */ interface IPauserRegistry { event PauserStatusChanged(address pauser, bool canPause); event UnpauserChanged(address previousUnpauser, address newUnpauser); /// @notice Mapping of addresses to whether they hold the pauser role. function isPauser(address pauser) external view returns (bool); /// @notice Unique address that holds the unpauser role. Capable of changing *both* the pauser and unpauser addresses. function unpauser() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.20; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {UpgradeableBeacon} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol) pragma solidity ^0.8.20; /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a * different contract through the {_delegate} function. * * The success and return data of the delegated call will be returned back to the caller of the proxy. */ abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback * function and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address); /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol) pragma solidity ^0.8.20; import {IBeacon} from "../beacon/IBeacon.sol"; import {Address} from "../../utils/Address.sol"; import {StorageSlot} from "../../utils/StorageSlot.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. */ library ERC1967Utils { // We re-declare ERC-1967 events here because they can't be used directly from IERC1967. // This will be fixed in Solidity 0.8.21. At that point we should remove these events. /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev The `implementation` of the proxy is invalid. */ error ERC1967InvalidImplementation(address implementation); /** * @dev The `admin` of the proxy is invalid. */ error ERC1967InvalidAdmin(address admin); /** * @dev The `beacon` of the proxy is invalid. */ error ERC1967InvalidBeacon(address beacon); /** * @dev An upgrade function sees `msg.value > 0` that may be lost. */ error ERC1967NonPayable(); /** * @dev Returns the current implementation address. */ function getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { if (newImplementation.code.length == 0) { revert ERC1967InvalidImplementation(newImplementation); } StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Performs implementation upgrade with additional setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); if (data.length > 0) { Address.functionDelegateCall(newImplementation, data); } else { _checkNonPayable(); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103` */ function getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { if (newAdmin == address(0)) { revert ERC1967InvalidAdmin(address(0)); } StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {IERC1967-AdminChanged} event. */ function changeAdmin(address newAdmin) internal { emit AdminChanged(getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { if (newBeacon.code.length == 0) { revert ERC1967InvalidBeacon(newBeacon); } StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon; address beaconImplementation = IBeacon(newBeacon).implementation(); if (beaconImplementation.code.length == 0) { revert ERC1967InvalidImplementation(beaconImplementation); } } /** * @dev Change the beacon and trigger a setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-BeaconUpgraded} event. * * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for * efficiency. */ function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } else { _checkNonPayable(); } } /** * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract * if an upgrade doesn't perform an initialization call. */ function _checkNonPayable() private { if (msg.value > 0) { revert ERC1967NonPayable(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "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/", "forge-safe/=lib/forge-safe/src/", "eigenlayer-contracts/=lib/eigenlayer-contracts/src/contracts/", "@openzeppelin-upgrades-v4.9.0/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable-v4.9.0/", "@openzeppelin-upgrades/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable/", "@openzeppelin-v4.9.0/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-v4.9.0/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "openzeppelin-contracts-upgradeable-v4.9.0/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable-v4.9.0/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts-v4.9.0/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-v4.9.0/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/", "openzeppelin/=lib/eigenlayer-contracts/lib/openzeppelin-contracts-upgradeable-v4.9.0/contracts/", "solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/", "solmate/=lib/forge-safe/lib/solmate/src/", "surl/=lib/forge-safe/lib/surl/", "zeus-templates/=lib/eigenlayer-contracts/lib/zeus-templates/src/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "none", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "evmVersion": "paris", "viaIR": false }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"BaseQuotePairExists","type":"error"},{"inputs":[],"name":"FeedAlreadyExists","type":"error"},{"inputs":[],"name":"FeedDoesNotExist","type":"error"},{"inputs":[{"internalType":"uint256","name":"feedId","type":"uint256"}],"name":"FeedNotSupported","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotFeedDeployer","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"feedId","type":"uint256"},{"indexed":true,"internalType":"address","name":"feedAdapter","type":"address"},{"indexed":false,"internalType":"address","name":"base","type":"address"},{"indexed":false,"internalType":"address","name":"quote","type":"address"}],"name":"FeedAdapterDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"feedManager","type":"address"}],"name":"FeedManagerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"},{"internalType":"uint256","name":"feedId","type":"uint256"},{"internalType":"string","name":"feedDescription","type":"string"},{"internalType":"uint8","name":"inputDecimals","type":"uint8"},{"internalType":"uint8","name":"outputDecimals","type":"uint8"},{"internalType":"uint256","name":"feedVersion","type":"uint256"}],"name":"deployEOFeedAdapter","outputs":[{"internalType":"contract IEOFeedAdapter","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"},{"internalType":"uint256","name":"roundId","type":"uint256"}],"name":"getAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBeacon","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"getFeed","outputs":[{"internalType":"contract IEOFeedAdapter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"feedId","type":"uint256"}],"name":"getFeedById","outputs":[{"internalType":"contract IEOFeedAdapter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeedManager","outputs":[{"internalType":"contract IEOFeedManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"},{"internalType":"uint80","name":"roundId","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":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"},{"internalType":"uint80","name":"roundId","type":"uint80"}],"name":"getRoundFeed","outputs":[{"internalType":"contract IEOFeedAdapter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"},{"internalType":"uint256","name":"roundId","type":"uint256"}],"name":"getTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"feedManager","type":"address"},{"internalType":"address","name":"feedAdapterImplementation","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feedAdapter","type":"address"}],"name":"isFeedEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"latestRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"latestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"removeFeedAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feedManager","type":"address"}],"name":"setFeedManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"}],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052348015600f57600080fd5b506016601a565b60ca565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161560695760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b039081161460c75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61287b806100d96000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c8063b099d43b116100e3578063d2edb6dd1161008c578063f2fde38b11610066578063f2fde38b1461045c578063fa820de91461046f578063fc58749e1461048f57600080fd5b8063d2edb6dd14610423578063d4c282a314610436578063ec62f44b1461044957600080fd5b8063c0c53b8b116100bd578063c0c53b8b146103ad578063c639cd91146103c0578063d15a9e381461041057600080fd5b8063b099d43b146102fc578063bbca603a14610345578063bcfd032d1461036357600080fd5b8063715018a61161014557806391624c951161011f57806391624c95146102c3578063a6339b29146102d6578063af34b03a146102e957600080fd5b8063715018a6146102465780638da5cb5b14610250578063900a515f1461028d57600080fd5b80632d6b3a6b116101765780632d6b3a6b146101f057806358e2d3a81461020e578063672ff44f1461023357600080fd5b80630e1a2c411461019257806315cd4ad2146101cf575b600080fd5b6101a56101a03660046118b1565b6104a2565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101e26101dd36600461197d565b6108ba565b6040519081526020016101c6565b60365473ffffffffffffffffffffffffffffffffffffffff166101a5565b61022161021c3660046119be565b61097d565b60405160ff90911681526020016101c6565b6101e26102413660046119be565b610a39565b61024e610af4565b005b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff166101a5565b6101a561029b3660046119f7565b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6101e26102d136600461197d565b610b08565b61024e6102e43660046119be565b610bce565b6101e26102f73660046119be565b610ce2565b61033561030a366004611a10565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205460ff1690565b60405190151581526020016101c6565b60005473ffffffffffffffffffffffffffffffffffffffff166101a5565b6103766103713660046119be565b610d97565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c6565b61024e6103bb366004611a2d565b610e71565b6101a56103ce366004611a78565b5073ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093851683529281528282205482526001905220541690565b61024e61041e366004611a10565b611105565b6101a56104313660046119be565b6111c9565b6101e26104443660046119be565b61120f565b6101e26104573660046119be565b6112c7565b61024e61046a366004611a10565b611382565b61048261047d3660046119be565b6113e6565b6040516101c69190611aeb565b61037661049d366004611a78565b6114c0565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bde753b26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105349190611b3c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610598576040517f0915a80000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546040517f77ad404a0000000000000000000000000000000000000000000000000000000081526004810189905273ffffffffffffffffffffffffffffffffffffffff909116906377ad404a90602401602060405180830381865afa158015610607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062b9190611b59565b610669576040517fbc97cdd2000000000000000000000000000000000000000000000000000000008152600481018890526024015b60405180910390fd5b60008781526001602052604090205473ffffffffffffffffffffffffffffffffffffffff16156106c5576040517f28dbb26700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808a166000908152600360209081526040808320938c16835292905220541561072f576040517f13fd581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061073961159b565b6000546040517f3155f95000000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff80841692633155f9509261079e9216908c908a908a908e908e908c90600401611b7b565b600060405180830381600087803b1580156107b857600080fd5b505af11580156107cc573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff818116600081815260026020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558d8452825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016851790558e851680845260038352818420958f16808552958352928190208d905580519283529082019390935290918a917f5d0aad12617255d81dc2292b0566c50494f195eaf2f25fa10338b52886a8bc5b910160405180910390a39998505050505050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff858116835260036020908152604080852087841686529091528084205490517fd407273a0000000000000000000000000000000000000000000000000000000081528493929092169163d407273a916109329160040190815260200190565b606060405180830381865afa15801561094f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109739190611c39565b5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260036020908152604080832085851684528252808320548352600182528083205481517f313ce56700000000000000000000000000000000000000000000000000000000815291519394169263313ce567926004808401939192918290030181865afa158015610a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a329190611c95565b9392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915291169063d407273a90602401606060405180830381865afa158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae99190611c39565b602001519392505050565b610afc611612565b610b0660006116a0565b565b6000805473ffffffffffffffffffffffffffffffffffffffff858116835260036020908152604080852087841686529091528084205490517fd407273a0000000000000000000000000000000000000000000000000000000081528493929092169163d407273a91610b809160040190815260200190565b606060405180830381865afa158015610b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc19190611c39565b6020015195945050505050565b610bd6611612565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260036020908152604080832093851683529290529081205490819003610c45576040517f3917193900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000908152600160209081526040808320805473ffffffffffffffffffffffffffffffffffffffff90811685526002845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905581547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091559485168352600382528083209390941682529190915290812055565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260036020908152604080832085851684528252808320548352600182528083205481517f54fd4d500000000000000000000000000000000000000000000000000000000081529151939416926354fd4d50926004808401939192918290030181865afa158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a329190611cb2565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915283928392839283928392169063d407273a90602401606060405180830381865afa158015610e2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e509190611c39565b60408101518151602090920151909a91995097508796508995509350505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff16600081158015610ebc5750825b905060008267ffffffffffffffff166001148015610ed95750303b155b905081158015610ee7575080155b15610f1e576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001660011785558315610f7f5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b8773ffffffffffffffffffffffffffffffffffffffff8116610fcd576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff811661101b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61102488611736565b61102e8989611747565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8c16908117825560405190917fdfcb19105dbcc099629c92adee2128e656e2cd9922c3fb5fff61d5d925cc1a8391a2505083156110fb5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b61110d611612565b8073ffffffffffffffffffffffffffffffffffffffff811661115b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117825560405190917fdfcb19105dbcc099629c92adee2128e656e2cd9922c3fb5fff61d5d925cc1a8391a25050565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600360209081526040808320848616845282528083205483526001909152812054909116610a32565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915291169063d407273a90602401606060405180830381865afa15801561129b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bf9190611c39565b519392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915291169063d407273a90602401606060405180830381865afa158015611353573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113779190611c39565b604001519392505050565b61138a611612565b73ffffffffffffffffffffffffffffffffffffffff81166113da576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610660565b6113e3816116a0565b50565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526003602090815260408083208585168452825280832054835260019091528082205481517f7284e41600000000000000000000000000000000000000000000000000000000815291516060949190911692637284e41692600480820193918290030181865afa15801561147a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a329190810190611ccb565b6000805473ffffffffffffffffffffffffffffffffffffffff858116835260036020908152604080852087841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915283928392839283928392169063d407273a90602401606060405180830381865afa158015611555573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115799190611c39565b60408101518151602090920151909b919a5098508897508a9650945050505050565b60365460405160009173ffffffffffffffffffffffffffffffffffffffff16906115c490611856565b73ffffffffffffffffffffffffffffffffffffffff9091168152604060208201819052600090820152606001604051809103906000f08015801561160c573d6000803e3d6000fd5b50905090565b336116517f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610b06576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610660565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b61173e6117e7565b6113e38161184e565b61174f6117e7565b818160405161175d90611863565b73ffffffffffffffffffffffffffffffffffffffff928316815291166020820152604001604051809103906000f08015801561179d573d6000803e3d6000fd5b50603680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790555050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610b06576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61138a6117e7565b6105bc80611d9783390190565b61051c8061235383390190565b73ffffffffffffffffffffffffffffffffffffffff811681146113e357600080fd5b60ff811681146113e357600080fd5b80356118ac81611892565b919050565b60008060008060008060008060e0898b0312156118cd57600080fd5b88356118d881611870565b975060208901356118e881611870565b965060408901359550606089013567ffffffffffffffff8082111561190c57600080fd5b818b0191508b601f83011261192057600080fd5b81358181111561192f57600080fd5b8c602082850101111561194157600080fd5b60208301975080965050505061195960808a016118a1565b925061196760a08a016118a1565b915060c089013590509295985092959890939650565b60008060006060848603121561199257600080fd5b833561199d81611870565b925060208401356119ad81611870565b929592945050506040919091013590565b600080604083850312156119d157600080fd5b82356119dc81611870565b915060208301356119ec81611870565b809150509250929050565b600060208284031215611a0957600080fd5b5035919050565b600060208284031215611a2257600080fd5b8135610a3281611870565b600080600060608486031215611a4257600080fd5b8335611a4d81611870565b92506020840135611a5d81611870565b91506040840135611a6d81611870565b809150509250925092565b600080600060608486031215611a8d57600080fd5b8335611a9881611870565b92506020840135611aa881611870565b9150604084013569ffffffffffffffffffff81168114611a6d57600080fd5b60005b83811015611ae2578181015183820152602001611aca565b50506000910152565b6020815260008251806020840152611b0a816040850160208701611ac7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600060208284031215611b4e57600080fd5b8151610a3281611870565b600060208284031215611b6b57600080fd5b81518015158114610a3257600080fd5b73ffffffffffffffffffffffffffffffffffffffff8816815286602082015260ff8616604082015260ff8516606082015260c060808201528260c0820152828460e0830137600060e08483010152600060e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011683010190508260a083015298975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060608284031215611c4b57600080fd5b6040516060810181811067ffffffffffffffff82111715611c6e57611c6e611c0a565b80604052508251815260208301516020820152604083015160408201528091505092915050565b600060208284031215611ca757600080fd5b8151610a3281611892565b600060208284031215611cc457600080fd5b5051919050565b600060208284031215611cdd57600080fd5b815167ffffffffffffffff80821115611cf557600080fd5b818401915084601f830112611d0957600080fd5b815181811115611d1b57611d1b611c0a565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715611d6157611d61611c0a565b81604052828152876020848701011115611d7a57600080fd5b611d8b836020830160208801611ac7565b97965050505050505056fe60a06040526040516105bc3803806105bc83398101604081905261002291610387565b61002c828261003e565b506001600160a01b031660805261047e565b610047826100fe565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a28051156100f2576100ed826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e79190610447565b82610211565b505050565b6100fa610288565b5050565b806001600160a01b03163b60000361013957604051631933b43b60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b81529051600092841691635c60da1b9160048083019260209291908290030181865afa1580156101b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d99190610447565b9050806001600160a01b03163b6000036100fa57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610130565b6060600080846001600160a01b03168460405161022e9190610462565b600060405180830381855af49150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50909250905061027f8583836102a9565b95945050505050565b34156102a75760405163b398979f60e01b815260040160405180910390fd5b565b6060826102be576102b982610308565b610301565b81511580156102d557506001600160a01b0384163b155b156102fe57604051639996b31560e01b81526001600160a01b0385166004820152602401610130565b50805b9392505050565b8051156103185780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b038116811461034857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561037e578181015183820152602001610366565b50506000910152565b6000806040838503121561039a57600080fd5b6103a383610331565b60208401519092506001600160401b03808211156103c057600080fd5b818501915085601f8301126103d457600080fd5b8151818111156103e6576103e661034d565b604051601f8201601f19908116603f0116810190838211818310171561040e5761040e61034d565b8160405282815288602084870101111561042757600080fd5b610438836020830160208801610363565b80955050505050509250929050565b60006020828403121561045957600080fd5b61030182610331565b60008251610474818460208701610363565b9190910192915050565b6080516101246104986000396000602401526101246000f3fe608060405261000c61000e565b005b61001e610019610020565b6100b6565b565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561008d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100b191906100da565b905090565b3660008037600080366000845af43d6000803e8080156100d5573d6000f35b3d6000fd5b6000602082840312156100ec57600080fd5b815173ffffffffffffffffffffffffffffffffffffffff8116811461011057600080fd5b939250505056fea164736f6c6343000819000a608060405234801561001057600080fd5b5060405161051c38038061051c83398101604081905261002f91610165565b806001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61006881610079565b50610072826100c9565b5050610198565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b6000036100ff5760405163211eb15960e21b81526001600160a01b0382166004820152602401610056565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b80516001600160a01b038116811461016057600080fd5b919050565b6000806040838503121561017857600080fd5b61018183610149565b915061018f60208401610149565b90509250929050565b610375806101a76000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063715018a611610050578063715018a6146100c45780638da5cb5b146100cc578063f2fde38b146100ea57600080fd5b80633659cfe61461006c5780635c60da1b14610081575b600080fd5b61007f61007a36600461032b565b6100fd565b005b60015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61007f610111565b60005473ffffffffffffffffffffffffffffffffffffffff1661009b565b61007f6100f836600461032b565b610125565b61010561018b565b61010e816101de565b50565b61011961018b565b61012360006102b6565b565b61012d61018b565b73ffffffffffffffffffffffffffffffffffffffff8116610182576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61010e816102b6565b60005473ffffffffffffffffffffffffffffffffffffffff163314610123576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610179565b8073ffffffffffffffffffffffffffffffffffffffff163b600003610247576040517f847ac56400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610179565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561033d57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461036157600080fd5b939250505056fea164736f6c6343000819000aa164736f6c6343000819000a
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c8063b099d43b116100e3578063d2edb6dd1161008c578063f2fde38b11610066578063f2fde38b1461045c578063fa820de91461046f578063fc58749e1461048f57600080fd5b8063d2edb6dd14610423578063d4c282a314610436578063ec62f44b1461044957600080fd5b8063c0c53b8b116100bd578063c0c53b8b146103ad578063c639cd91146103c0578063d15a9e381461041057600080fd5b8063b099d43b146102fc578063bbca603a14610345578063bcfd032d1461036357600080fd5b8063715018a61161014557806391624c951161011f57806391624c95146102c3578063a6339b29146102d6578063af34b03a146102e957600080fd5b8063715018a6146102465780638da5cb5b14610250578063900a515f1461028d57600080fd5b80632d6b3a6b116101765780632d6b3a6b146101f057806358e2d3a81461020e578063672ff44f1461023357600080fd5b80630e1a2c411461019257806315cd4ad2146101cf575b600080fd5b6101a56101a03660046118b1565b6104a2565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101e26101dd36600461197d565b6108ba565b6040519081526020016101c6565b60365473ffffffffffffffffffffffffffffffffffffffff166101a5565b61022161021c3660046119be565b61097d565b60405160ff90911681526020016101c6565b6101e26102413660046119be565b610a39565b61024e610af4565b005b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff166101a5565b6101a561029b3660046119f7565b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6101e26102d136600461197d565b610b08565b61024e6102e43660046119be565b610bce565b6101e26102f73660046119be565b610ce2565b61033561030a366004611a10565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205460ff1690565b60405190151581526020016101c6565b60005473ffffffffffffffffffffffffffffffffffffffff166101a5565b6103766103713660046119be565b610d97565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c6565b61024e6103bb366004611a2d565b610e71565b6101a56103ce366004611a78565b5073ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093851683529281528282205482526001905220541690565b61024e61041e366004611a10565b611105565b6101a56104313660046119be565b6111c9565b6101e26104443660046119be565b61120f565b6101e26104573660046119be565b6112c7565b61024e61046a366004611a10565b611382565b61048261047d3660046119be565b6113e6565b6040516101c69190611aeb565b61037661049d366004611a78565b6114c0565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bde753b26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105349190611b3c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610598576040517f0915a80000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546040517f77ad404a0000000000000000000000000000000000000000000000000000000081526004810189905273ffffffffffffffffffffffffffffffffffffffff909116906377ad404a90602401602060405180830381865afa158015610607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062b9190611b59565b610669576040517fbc97cdd2000000000000000000000000000000000000000000000000000000008152600481018890526024015b60405180910390fd5b60008781526001602052604090205473ffffffffffffffffffffffffffffffffffffffff16156106c5576040517f28dbb26700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808a166000908152600360209081526040808320938c16835292905220541561072f576040517f13fd581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061073961159b565b6000546040517f3155f95000000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff80841692633155f9509261079e9216908c908a908a908e908e908c90600401611b7b565b600060405180830381600087803b1580156107b857600080fd5b505af11580156107cc573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff818116600081815260026020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558d8452825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016851790558e851680845260038352818420958f16808552958352928190208d905580519283529082019390935290918a917f5d0aad12617255d81dc2292b0566c50494f195eaf2f25fa10338b52886a8bc5b910160405180910390a39998505050505050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff858116835260036020908152604080852087841686529091528084205490517fd407273a0000000000000000000000000000000000000000000000000000000081528493929092169163d407273a916109329160040190815260200190565b606060405180830381865afa15801561094f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109739190611c39565b5195945050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260036020908152604080832085851684528252808320548352600182528083205481517f313ce56700000000000000000000000000000000000000000000000000000000815291519394169263313ce567926004808401939192918290030181865afa158015610a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a329190611c95565b9392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915291169063d407273a90602401606060405180830381865afa158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae99190611c39565b602001519392505050565b610afc611612565b610b0660006116a0565b565b6000805473ffffffffffffffffffffffffffffffffffffffff858116835260036020908152604080852087841686529091528084205490517fd407273a0000000000000000000000000000000000000000000000000000000081528493929092169163d407273a91610b809160040190815260200190565b606060405180830381865afa158015610b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc19190611c39565b6020015195945050505050565b610bd6611612565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260036020908152604080832093851683529290529081205490819003610c45576040517f3917193900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000908152600160209081526040808320805473ffffffffffffffffffffffffffffffffffffffff90811685526002845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905581547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091559485168352600382528083209390941682529190915290812055565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260036020908152604080832085851684528252808320548352600182528083205481517f54fd4d500000000000000000000000000000000000000000000000000000000081529151939416926354fd4d50926004808401939192918290030181865afa158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a329190611cb2565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915283928392839283928392169063d407273a90602401606060405180830381865afa158015610e2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e509190611c39565b60408101518151602090920151909a91995097508796508995509350505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff16600081158015610ebc5750825b905060008267ffffffffffffffff166001148015610ed95750303b155b905081158015610ee7575080155b15610f1e576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001660011785558315610f7f5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b8773ffffffffffffffffffffffffffffffffffffffff8116610fcd576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff811661101b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61102488611736565b61102e8989611747565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8c16908117825560405190917fdfcb19105dbcc099629c92adee2128e656e2cd9922c3fb5fff61d5d925cc1a8391a2505083156110fb5784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b61110d611612565b8073ffffffffffffffffffffffffffffffffffffffff811661115b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117825560405190917fdfcb19105dbcc099629c92adee2128e656e2cd9922c3fb5fff61d5d925cc1a8391a25050565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600360209081526040808320848616845282528083205483526001909152812054909116610a32565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915291169063d407273a90602401606060405180830381865afa15801561129b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bf9190611c39565b519392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff848116835260036020908152604080852086841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915291169063d407273a90602401606060405180830381865afa158015611353573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113779190611c39565b604001519392505050565b61138a611612565b73ffffffffffffffffffffffffffffffffffffffff81166113da576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610660565b6113e3816116a0565b50565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526003602090815260408083208585168452825280832054835260019091528082205481517f7284e41600000000000000000000000000000000000000000000000000000000815291516060949190911692637284e41692600480820193918290030181865afa15801561147a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a329190810190611ccb565b6000805473ffffffffffffffffffffffffffffffffffffffff858116835260036020908152604080852087841686529091528084205490517fd407273a000000000000000000000000000000000000000000000000000000008152600481019190915283928392839283928392169063d407273a90602401606060405180830381865afa158015611555573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115799190611c39565b60408101518151602090920151909b919a5098508897508a9650945050505050565b60365460405160009173ffffffffffffffffffffffffffffffffffffffff16906115c490611856565b73ffffffffffffffffffffffffffffffffffffffff9091168152604060208201819052600090820152606001604051809103906000f08015801561160c573d6000803e3d6000fd5b50905090565b336116517f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610b06576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610660565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b61173e6117e7565b6113e38161184e565b61174f6117e7565b818160405161175d90611863565b73ffffffffffffffffffffffffffffffffffffffff928316815291166020820152604001604051809103906000f08015801561179d573d6000803e3d6000fd5b50603680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790555050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610b06576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61138a6117e7565b6105bc80611d9783390190565b61051c8061235383390190565b73ffffffffffffffffffffffffffffffffffffffff811681146113e357600080fd5b60ff811681146113e357600080fd5b80356118ac81611892565b919050565b60008060008060008060008060e0898b0312156118cd57600080fd5b88356118d881611870565b975060208901356118e881611870565b965060408901359550606089013567ffffffffffffffff8082111561190c57600080fd5b818b0191508b601f83011261192057600080fd5b81358181111561192f57600080fd5b8c602082850101111561194157600080fd5b60208301975080965050505061195960808a016118a1565b925061196760a08a016118a1565b915060c089013590509295985092959890939650565b60008060006060848603121561199257600080fd5b833561199d81611870565b925060208401356119ad81611870565b929592945050506040919091013590565b600080604083850312156119d157600080fd5b82356119dc81611870565b915060208301356119ec81611870565b809150509250929050565b600060208284031215611a0957600080fd5b5035919050565b600060208284031215611a2257600080fd5b8135610a3281611870565b600080600060608486031215611a4257600080fd5b8335611a4d81611870565b92506020840135611a5d81611870565b91506040840135611a6d81611870565b809150509250925092565b600080600060608486031215611a8d57600080fd5b8335611a9881611870565b92506020840135611aa881611870565b9150604084013569ffffffffffffffffffff81168114611a6d57600080fd5b60005b83811015611ae2578181015183820152602001611aca565b50506000910152565b6020815260008251806020840152611b0a816040850160208701611ac7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600060208284031215611b4e57600080fd5b8151610a3281611870565b600060208284031215611b6b57600080fd5b81518015158114610a3257600080fd5b73ffffffffffffffffffffffffffffffffffffffff8816815286602082015260ff8616604082015260ff8516606082015260c060808201528260c0820152828460e0830137600060e08483010152600060e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011683010190508260a083015298975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060608284031215611c4b57600080fd5b6040516060810181811067ffffffffffffffff82111715611c6e57611c6e611c0a565b80604052508251815260208301516020820152604083015160408201528091505092915050565b600060208284031215611ca757600080fd5b8151610a3281611892565b600060208284031215611cc457600080fd5b5051919050565b600060208284031215611cdd57600080fd5b815167ffffffffffffffff80821115611cf557600080fd5b818401915084601f830112611d0957600080fd5b815181811115611d1b57611d1b611c0a565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715611d6157611d61611c0a565b81604052828152876020848701011115611d7a57600080fd5b611d8b836020830160208801611ac7565b97965050505050505056fe60a06040526040516105bc3803806105bc83398101604081905261002291610387565b61002c828261003e565b506001600160a01b031660805261047e565b610047826100fe565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a28051156100f2576100ed826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e79190610447565b82610211565b505050565b6100fa610288565b5050565b806001600160a01b03163b60000361013957604051631933b43b60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b81529051600092841691635c60da1b9160048083019260209291908290030181865afa1580156101b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d99190610447565b9050806001600160a01b03163b6000036100fa57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610130565b6060600080846001600160a01b03168460405161022e9190610462565b600060405180830381855af49150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50909250905061027f8583836102a9565b95945050505050565b34156102a75760405163b398979f60e01b815260040160405180910390fd5b565b6060826102be576102b982610308565b610301565b81511580156102d557506001600160a01b0384163b155b156102fe57604051639996b31560e01b81526001600160a01b0385166004820152602401610130565b50805b9392505050565b8051156103185780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b038116811461034857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561037e578181015183820152602001610366565b50506000910152565b6000806040838503121561039a57600080fd5b6103a383610331565b60208401519092506001600160401b03808211156103c057600080fd5b818501915085601f8301126103d457600080fd5b8151818111156103e6576103e661034d565b604051601f8201601f19908116603f0116810190838211818310171561040e5761040e61034d565b8160405282815288602084870101111561042757600080fd5b610438836020830160208801610363565b80955050505050509250929050565b60006020828403121561045957600080fd5b61030182610331565b60008251610474818460208701610363565b9190910192915050565b6080516101246104986000396000602401526101246000f3fe608060405261000c61000e565b005b61001e610019610020565b6100b6565b565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561008d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100b191906100da565b905090565b3660008037600080366000845af43d6000803e8080156100d5573d6000f35b3d6000fd5b6000602082840312156100ec57600080fd5b815173ffffffffffffffffffffffffffffffffffffffff8116811461011057600080fd5b939250505056fea164736f6c6343000819000a608060405234801561001057600080fd5b5060405161051c38038061051c83398101604081905261002f91610165565b806001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61006881610079565b50610072826100c9565b5050610198565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b6000036100ff5760405163211eb15960e21b81526001600160a01b0382166004820152602401610056565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b80516001600160a01b038116811461016057600080fd5b919050565b6000806040838503121561017857600080fd5b61018183610149565b915061018f60208401610149565b90509250929050565b610375806101a76000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063715018a611610050578063715018a6146100c45780638da5cb5b146100cc578063f2fde38b146100ea57600080fd5b80633659cfe61461006c5780635c60da1b14610081575b600080fd5b61007f61007a36600461032b565b6100fd565b005b60015473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61007f610111565b60005473ffffffffffffffffffffffffffffffffffffffff1661009b565b61007f6100f836600461032b565b610125565b61010561018b565b61010e816101de565b50565b61011961018b565b61012360006102b6565b565b61012d61018b565b73ffffffffffffffffffffffffffffffffffffffff8116610182576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61010e816102b6565b60005473ffffffffffffffffffffffffffffffffffffffff163314610123576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610179565b8073ffffffffffffffffffffffffffffffffffffffff163b600003610247576040517f847ac56400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610179565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561033d57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461036157600080fd5b939250505056fea164736f6c6343000819000aa164736f6c6343000819000a
Deployed Bytecode Sourcemap
582:801:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3994:1196:14;;;;;;:::i;:::-;;:::i;:::-;;;1779:42:22;1767:55;;;1749:74;;1737:2;1722:18;3994:1196:14;;;;;;;;11201:277;;;;;;:::i;:::-;;:::i;:::-;;;2439:25:22;;;2427:2;2412:18;11201:277:14;2295:175:22;571:84:16;641:7;;;;571:84;;6478:164:14;;;;;;:::i;:::-;;:::i;:::-;;;3271:4:22;3259:17;;;3241:36;;3229:2;3214:18;6478:164:14;3099:184:22;10574:190:14;;;;;;:::i;:::-;;:::i;3155:101:1:-;;;:::i;:::-;;2441:144;1313:22;2570:8;;;2441:144;;6087:121:14;;;;;;:::i;:::-;6147:14;6180:21;;;:13;:21;;;;;;;;;6087:121;11922:277;;;;;;:::i;:::-;;:::i;5336:394::-;;;;;;:::i;:::-;;:::i;7369:164::-;;;;;;:::i;:::-;;:::i;12748:122::-;;;;;;:::i;:::-;12838:25;;12815:4;12838:25;;;:12;:25;;;;;;;;;12748:122;;;;4072:14:22;;4065:22;4047:41;;4035:2;4020:18;12748:122:14;3907:187:22;5835:101:14;5884:14;5917:12;;;5835:101;;8008:587;;;;;;:::i;:::-;;:::i;:::-;;;;4616:22:22;4665:15;;;4647:34;;4712:2;4697:18;;4690:34;;;;4740:18;;4733:34;;;;4798:2;4783:18;;4776:34;4847:15;;;4841:3;4826:19;;4819:44;4593:3;4578:19;8008:587:14;4353:516:22;896:485:13;;;;;;:::i;:::-;;:::i;13220:151:14:-;;;;;;:::i;:::-;-1:-1:-1;14262:30:14;;;;13310:14;14262:30;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;14248:52;;:13;:52;;;;;;13220:151;3102:197;;;;;;:::i;:::-;;:::i;12416:130::-;;;;;;:::i;:::-;;:::i;10063:190::-;;;;;;:::i;:::-;;:::i;13677:195::-;;;;;;:::i;:::-;;:::i;3405:215:1:-;;;;;;:::i;:::-;;:::i;6922:178:14:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;9142:609::-;;;;;;:::i;:::-;;:::i;3994:1196::-;4286:14;2313:12;;;;;;;;;;;:28;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2299:44;;:10;:44;;;2295:74;;2352:17;;;;;;;;;;;;;;2295:74;4379:12:::1;::::0;:36:::1;::::0;;;;::::1;::::0;::::1;2439:25:22::0;;;4379:12:14::1;::::0;;::::1;::::0;:28:::1;::::0;2412:18:22;;4379:36:14::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4374:99;;4438:24;::::0;::::1;::::0;;::::1;::::0;::::1;2439:25:22::0;;;2412:18;;4438:24:14::1;;;;;;;;4374:99;4529:1;4495:21:::0;;;:13:::1;:21;::::0;;;;;4487:44:::1;4495:21;4487:44:::0;4483:101:::1;;4554:19;;;;;;;;;;;;;;4483:101;4597:30;::::0;;::::1;;::::0;;;:24:::1;:30;::::0;;;;;;;:37;;::::1;::::0;;;;;;;:42;4593:101:::1;;4662:21;;;;;;;;;;;;;;4593:101;4703:19;4725:22;:20;:22::i;:::-;4817:12;::::0;4757:152:::1;::::0;;;;4703:44;;-1:-1:-1;4757:38:14::1;::::0;;::::1;::::0;::::1;::::0;:152:::1;::::0;4817:12:::1;::::0;4832:6;;4840:13;;4855:14;;4871:15;;;;4888:11;;4757:152:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;4920:25:14::1;::::0;;::::1;;::::0;;;:12:::1;:25;::::0;;;;;;;:32;;;::::1;4948:4;4920:32:::0;;::::1;::::0;;;4962:21;;;;;;;;:51;;;::::1;::::0;::::1;::::0;;5023:30;;::::1;::::0;;;:24:::1;:30:::0;;;;;:37;;::::1;::::0;;;;;;;;;;:46;;;5085:53;;8352:34:22;;;8402:18;;;8395:43;;;;4920:25:14;;4962:21;;5085:53:::1;::::0;8264:18:22;5085:53:14::1;;;;;;;5171:11:::0;3994:1196;-1:-1:-1;;;;;;;;;3994:1196:14:o;11201:277::-;11289:6;11362:12;;;11394:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;11362:70;;;;;11289:6;;11362:12;;;;;:31;;:70;;;;2439:25:22;;;2427:2;2412:18;;2295:175;11362:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11456:14;;11201:277;-1:-1:-1;;;;;11201:277:14:o;6478:164::-;6586:30;;;;6548:5;6586:30;;;:24;:30;;;;;;;;:37;;;;;;;;;;;6572:52;;:13;:52;;;;;;:63;;;;;;;6548:5;;6572:52;;:61;;:63;;;;;6586:30;;6572:63;;;;;;:52;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6565:70;6478:164;-1:-1:-1;;;6478:164:14:o;10574:190::-;10651:7;10677:12;;;10709:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;10677:70;;;;;;;;2439:25:22;;;;10677:12:14;;;:31;;2412:18:22;;10677:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:80;;;;10574:190;-1:-1:-1;;;10574:190:14:o;3155:101:1:-;2334:13;:11;:13::i;:::-;3219:30:::1;3246:1;3219:18;:30::i;:::-;3155:101::o:0;11922:277:14:-;12013:7;12087:12;;;12119:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;12087:70;;;;;12013:7;;12087:12;;;;;:31;;:70;;;;2439:25:22;;;2427:2;2412:18;;2295:175;12087:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12174:18;;;;11922:277;-1:-1:-1;;;;;11922:277:14:o;5336:394::-;2334:13:1;:11;:13::i;:::-;5438:30:14::1;::::0;;::::1;5421:14;5438:30:::0;;;:24:::1;:30;::::0;;;;;;;:37;;::::1;::::0;;;;;;;;;;5489:11;;;5485:42:::1;;5509:18;;;;;;;;;;;;;;5485:42;5537:19;5567:21:::0;;;:13:::1;:21;::::0;;;;;;;;;::::1;::::0;;::::1;5606:25:::0;;:12:::1;:25:::0;;;;;5599:32;;;::::1;::::0;;5641:28;;;::::1;::::0;;;5686:30;;::::1;::::0;;:24:::1;:30:::0;;;;;:37;;;::::1;::::0;;;;;;;;;5679:44;5336:394::o;7369:164::-;7478:30;;;;7438:7;7478:30;;;:24;:30;;;;;;;;:37;;;;;;;;;;;7464:52;;:13;:52;;;;;;:62;;;;;;;7438:7;;7464:52;;:60;;:62;;;;;7478:30;;7464:62;;;;;;:52;:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;8008:587::-;8131:14;8293:12;;;8325:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;8293:70;;;;;;;;2439:25:22;;;;8131:14:14;;;;;;;;;;8293:12;;:31;;2412:18:22;;8293:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8401:27;;;;8450:14;;8479:18;;;;;8401:27;;8450:14;;-1:-1:-1;8479:18:14;-1:-1:-1;8479:18:14;;-1:-1:-1;8401:27:14;;-1:-1:-1;8008:587:14;-1:-1:-1;;;;8008:587:14:o;896:485:13:-;8870:21:2;4302:15;;;;;;;4301:16;;4348:14;;4158:30;4726:16;;:34;;;;;4746:14;4726:34;4706:54;;4770:17;4790:11;:16;;4805:1;4790:16;:50;;;;-1:-1:-1;4818:4:2;4810:25;:30;4790:50;4770:70;;4856:12;4855:13;:30;;;;;4873:12;4872:13;4855:30;4851:91;;;4908:23;;;;;;;;;;;;;;4851:91;4951:18;;;;4968:1;4951:18;;;4979:67;;;;5013:22;;;;;;;;4979:67;1114:11:13;2126:18:14::1;::::0;::::1;2122:47;;2153:16;;;;;;;;;;;;;;2122:47;1154:25:13::0;2126:18:14::2;::::0;::::2;2122:47;;2153:16;;;;;;;;;;;;;;2122:47;1195:21:13::3;1210:5;1195:14;:21::i;:::-;1226:54;1247:25;1274:5;1226:20;:54::i;:::-;1290:12;:42:::0;;;::::3;;::::0;::::3;::::0;;::::3;::::0;;1347:27:::3;::::0;1290:42;;1347:27:::3;::::0;::::3;2179:1:14::2;5055::2::1;5070:14:::0;5066:101;;;5100:23;;;;;;5142:14;;-1:-1:-1;9799:50:22;;5142:14:2;;9787:2:22;9772:18;5142:14:2;;;;;;;5066:101;4092:1081;;;;;896:485:13;;;:::o;3102:197:14:-;2334:13:1;:11;:13::i;:::-;3185:11:14;2126:18:::1;::::0;::::1;2122:47;;2153:16;;;;;;;;;;;;;;2122:47;3208:12:::2;:42:::0;;;::::2;;::::0;::::2;::::0;;::::2;::::0;;3265:27:::2;::::0;3208:42;;3265:27:::2;::::0;::::2;2357:1:1::1;3102:197:14::0;:::o;12416:130::-;14262:30;;;;12485:14;14262:30;;;:24;:30;;;;;;;;:37;;;;;;;;;;;14248:52;;:13;:52;;;;;;12485:14;;14248:52;12518:21;14145:162;10063:190;10137:6;10169:12;;;10201:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;10169:70;;;;;;;;2439:25:22;;;;10169:12:14;;;:31;;2412:18:22;;10169:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:76;;10063:190;-1:-1:-1;;;10063:190:14:o;13677:195::-;13750:7;13776:12;;;13808:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;13776:70;;;;;;;;2439:25:22;;;;13776:12:14;;;:31;;2412:18:22;;13776:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:89;;;;13677:195;-1:-1:-1;;;13677:195:14:o;3405:215:1:-;2334:13;:11;:13::i;:::-;3489:22:::1;::::0;::::1;3485:91;;3534:31;::::0;::::1;::::0;;3562:1:::1;3534:31;::::0;::::1;1749:74:22::0;1722:18;;3534:31:1::1;1580:249:22::0;3485:91:1::1;3585:28;3604:8;3585:18;:28::i;:::-;3405:215:::0;:::o;6922:178:14:-;7041:30;;;;7027:52;7041:30;;;:24;:30;;;;;;;;:37;;;;;;;;;;;7027:52;;:13;:52;;;;;;;:66;;;;;;;6995:13;;7027:52;;;;;:64;;:66;;;;;;;;;;;:52;:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;9142:609::-;9338:6;9449:12;;;9481:30;;;;;:24;:30;;;;;;;;:37;;;;;;;;;;;;9449:70;;;;;;;;2439:25:22;;;;9338:6:14;;;;;;;;;;9449:12;;:31;;2412:18:22;;9449:70:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9557:27;;;;9606:14;;9635:18;;;;;9557:27;;9606:14;;-1:-1:-1;9635:18:14;-1:-1:-1;9635:18:14;;-1:-1:-1;9557:27:14;;-1:-1:-1;9142:609:14;-1:-1:-1;;;;;9142:609:14:o;1015:129:16:-;1124:7;;1108:28;;1074:7;;1124;;;1108:28;;;:::i;:::-;11062:42:22;11050:55;;;11032:74;;11142:2;11137;11122:18;;11115:30;;;-1:-1:-1;11161:18:22;;;11154:29;11215:2;11200:18;1108:28:16;;;;;;;;;;;;;;;;;;;;;;;1093:44;;1015:129;:::o;2658:162:1:-;966:10:3;2717:7:1;1313:22;2570:8;;;;2441:144;2717:7;:23;;;2713:101;;2763:40;;;;;966:10:3;2763:40:1;;;1749:74:22;1722:18;;2763:40:1;1580:249:22;3774:248:1;1313:22;3923:8;;3941:19;;;3923:8;3941:19;;;;;;;;3975:40;;3923:8;;;;;3975:40;;3847:24;;3975:40;3837:185;;3774:248;:::o;1847:127::-;6931:20:2;:18;:20::i;:::-;1929:38:1::1;1954:12;1929:24;:38::i;750:178:16:-:0;6931:20:2;:18;:20::i;:::-;901:4:16::1;907:12;879:41;;;;;:::i;:::-;8301:42:22::0;8370:15;;;8352:34;;8422:15;;8417:2;8402:18;;8395:43;8279:2;8264:18;879:41:16::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;861:7:16::1;:60:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;750:178:16:o;7084:141:2:-;8870:21;8560:40;;;;;;7146:73;;7191:17;;;;;;;;;;;;;;1980:235:1;6931:20:2;:18;:20::i;-1:-1:-1:-;;;;;;;;:::o;:::-;;;;;;;;:::o;14:154:22:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;173:114;257:4;250:5;246:16;239:5;236:27;226:55;;277:1;274;267:12;292:130;358:20;;387:29;358:20;387:29;:::i;:::-;292:130;;;:::o;427:1148::-;548:6;556;564;572;580;588;596;604;657:3;645:9;636:7;632:23;628:33;625:53;;;674:1;671;664:12;625:53;713:9;700:23;732:31;757:5;732:31;:::i;:::-;782:5;-1:-1:-1;839:2:22;824:18;;811:32;852:33;811:32;852:33;:::i;:::-;904:7;-1:-1:-1;958:2:22;943:18;;930:32;;-1:-1:-1;1013:2:22;998:18;;985:32;1036:18;1066:14;;;1063:34;;;1093:1;1090;1083:12;1063:34;1131:6;1120:9;1116:22;1106:32;;1176:7;1169:4;1165:2;1161:13;1157:27;1147:55;;1198:1;1195;1188:12;1147:55;1238:2;1225:16;1264:2;1256:6;1253:14;1250:34;;;1280:1;1277;1270:12;1250:34;1325:7;1320:2;1311:6;1307:2;1303:15;1299:24;1296:37;1293:57;;;1346:1;1343;1336:12;1293:57;1377:2;1373;1369:11;1359:21;;1399:6;1389:16;;;;;1424:37;1456:3;1445:9;1441:19;1424:37;:::i;:::-;1414:47;;1480:37;1512:3;1501:9;1497:19;1480:37;:::i;:::-;1470:47;;1564:3;1553:9;1549:19;1536:33;1526:43;;427:1148;;;;;;;;;;;:::o;1834:456::-;1911:6;1919;1927;1980:2;1968:9;1959:7;1955:23;1951:32;1948:52;;;1996:1;1993;1986:12;1948:52;2035:9;2022:23;2054:31;2079:5;2054:31;:::i;:::-;2104:5;-1:-1:-1;2161:2:22;2146:18;;2133:32;2174:33;2133:32;2174:33;:::i;:::-;1834:456;;2226:7;;-1:-1:-1;;;2280:2:22;2265:18;;;;2252:32;;1834:456::o;2706:388::-;2774:6;2782;2835:2;2823:9;2814:7;2810:23;2806:32;2803:52;;;2851:1;2848;2841:12;2803:52;2890:9;2877:23;2909:31;2934:5;2909:31;:::i;:::-;2959:5;-1:-1:-1;3016:2:22;3001:18;;2988:32;3029:33;2988:32;3029:33;:::i;:::-;3081:7;3071:17;;;2706:388;;;;;:::o;3470:180::-;3529:6;3582:2;3570:9;3561:7;3557:23;3553:32;3550:52;;;3598:1;3595;3588:12;3550:52;-1:-1:-1;3621:23:22;;3470:180;-1:-1:-1;3470:180:22:o;3655:247::-;3714:6;3767:2;3755:9;3746:7;3742:23;3738:32;3735:52;;;3783:1;3780;3773:12;3735:52;3822:9;3809:23;3841:31;3866:5;3841:31;:::i;4874:529::-;4951:6;4959;4967;5020:2;5008:9;4999:7;4995:23;4991:32;4988:52;;;5036:1;5033;5026:12;4988:52;5075:9;5062:23;5094:31;5119:5;5094:31;:::i;:::-;5144:5;-1:-1:-1;5201:2:22;5186:18;;5173:32;5214:33;5173:32;5214:33;:::i;:::-;5266:7;-1:-1:-1;5325:2:22;5310:18;;5297:32;5338:33;5297:32;5338:33;:::i;:::-;5390:7;5380:17;;;4874:529;;;;;:::o;5408:572::-;5484:6;5492;5500;5553:2;5541:9;5532:7;5528:23;5524:32;5521:52;;;5569:1;5566;5559:12;5521:52;5608:9;5595:23;5627:31;5652:5;5627:31;:::i;:::-;5677:5;-1:-1:-1;5734:2:22;5719:18;;5706:32;5747:33;5706:32;5747:33;:::i;:::-;5799:7;-1:-1:-1;5858:2:22;5843:18;;5830:32;5906:22;5893:36;;5881:49;;5871:77;;5944:1;5941;5934:12;5985:250;6070:1;6080:113;6094:6;6091:1;6088:13;6080:113;;;6170:11;;;6164:18;6151:11;;;6144:39;6116:2;6109:10;6080:113;;;-1:-1:-1;;6227:1:22;6209:16;;6202:27;5985:250::o;6240:455::-;6389:2;6378:9;6371:21;6352:4;6421:6;6415:13;6464:6;6459:2;6448:9;6444:18;6437:34;6480:79;6552:6;6547:2;6536:9;6532:18;6527:2;6519:6;6515:15;6480:79;:::i;:::-;6611:2;6599:15;6616:66;6595:88;6580:104;;;;6686:2;6576:113;;6240:455;-1:-1:-1;;6240:455:22:o;6700:251::-;6770:6;6823:2;6811:9;6802:7;6798:23;6794:32;6791:52;;;6839:1;6836;6829:12;6791:52;6871:9;6865:16;6890:31;6915:5;6890:31;:::i;6956:277::-;7023:6;7076:2;7064:9;7055:7;7051:23;7047:32;7044:52;;;7092:1;7089;7082:12;7044:52;7124:9;7118:16;7177:5;7170:13;7163:21;7156:5;7153:32;7143:60;;7199:1;7196;7189:12;7238:874;7541:42;7533:6;7529:55;7518:9;7511:74;7621:6;7616:2;7605:9;7601:18;7594:34;7676:4;7668:6;7664:17;7659:2;7648:9;7644:18;7637:45;7730:4;7722:6;7718:17;7713:2;7702:9;7698:18;7691:45;7773:3;7767;7756:9;7752:19;7745:32;7814:6;7808:3;7797:9;7793:19;7786:35;7872:6;7864;7858:3;7847:9;7843:19;7830:49;7929:1;7923:3;7914:6;7903:9;7899:22;7895:32;7888:43;7492:4;8058:3;7988:66;7983:2;7975:6;7971:15;7967:88;7956:9;7952:104;7948:114;7940:122;;8099:6;8093:3;8082:9;8078:19;8071:35;7238:874;;;;;;;;;;:::o;8449:184::-;8501:77;8498:1;8491:88;8598:4;8595:1;8588:15;8622:4;8619:1;8612:15;8638:562;8735:6;8788:2;8776:9;8767:7;8763:23;8759:32;8756:52;;;8804:1;8801;8794:12;8756:52;8837:2;8831:9;8879:2;8871:6;8867:15;8948:6;8936:10;8933:22;8912:18;8900:10;8897:34;8894:62;8891:88;;;8959:18;;:::i;:::-;8999:10;8995:2;8988:22;;9040:9;9034:16;9026:6;9019:32;9105:2;9094:9;9090:18;9084:25;9079:2;9071:6;9067:15;9060:50;9164:2;9153:9;9149:18;9143:25;9138:2;9130:6;9126:15;9119:50;9188:6;9178:16;;;8638:562;;;;:::o;9205:247::-;9273:6;9326:2;9314:9;9305:7;9301:23;9297:32;9294:52;;;9342:1;9339;9332:12;9294:52;9374:9;9368:16;9393:29;9416:5;9393:29;:::i;9457:184::-;9527:6;9580:2;9568:9;9559:7;9555:23;9551:32;9548:52;;;9596:1;9593;9586:12;9548:52;-1:-1:-1;9619:16:22;;9457:184;-1:-1:-1;9457:184:22:o;9860:956::-;9940:6;9993:2;9981:9;9972:7;9968:23;9964:32;9961:52;;;10009:1;10006;9999:12;9961:52;10042:9;10036:16;10071:18;10112:2;10104:6;10101:14;10098:34;;;10128:1;10125;10118:12;10098:34;10166:6;10155:9;10151:22;10141:32;;10211:7;10204:4;10200:2;10196:13;10192:27;10182:55;;10233:1;10230;10223:12;10182:55;10262:2;10256:9;10284:2;10280;10277:10;10274:36;;;10290:18;;:::i;:::-;10424:2;10418:9;10486:4;10478:13;;10329:66;10474:22;;;10498:2;10470:31;10466:40;10454:53;;;10522:18;;;10542:22;;;10519:46;10516:72;;;10568:18;;:::i;:::-;10608:10;10604:2;10597:22;10643:2;10635:6;10628:18;10683:7;10678:2;10673;10669;10665:11;10661:20;10658:33;10655:53;;;10704:1;10701;10694:12;10655:53;10717:68;10782:2;10777;10769:6;10765:15;10760:2;10756;10752:11;10717:68;:::i;:::-;10804:6;9860:956;-1:-1:-1;;;;;;;9860:956:22:o
Swarm Source
none
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.