creation_sourcecode: {{
    "language": "Solidity",
    "sources": {
      "contracts/access/interfaces/IAccessControlRegistryAdminned.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"../../utils/interfaces/ISelfMulticall.sol\";\n\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\n    function accessControlRegistry() external view returns (address);\n\n    function adminRoleDescription() external view returns (string memory);\n}\n"
      },
      "contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./IAccessControlRegistryAdminned.sol\";\n\ninterface IAccessControlRegistryAdminnedWithManager is\n    IAccessControlRegistryAdminned\n{\n    function manager() external view returns (address);\n\n    function adminRole() external view returns (bytes32);\n}\n"
      },
      "contracts/access/interfaces/IOwnable.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IOwnable {\n    function owner() external view returns (address);\n\n    function renounceOwnership() external;\n\n    function transferOwnership(address newOwner) external;\n}\n"
      },
      "contracts/api3-server-v1/AirseekerRegistry.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.17;\n\nimport \"../vendor/@openzeppelin/contracts@4.9.5/access/Ownable.sol\";\nimport \"../utils/ExtendedSelfMulticall.sol\";\nimport \"./interfaces/IAirseekerRegistry.sol\";\nimport \"../vendor/@openzeppelin/contracts@4.9.5/utils/structs/EnumerableSet.sol\";\nimport \"./interfaces/IApi3ServerV1.sol\";\n\n/// @title A contract where active data feeds and their specs are registered by\n/// the contract owner for the Airseeker that serves them to refer to\n/// @notice Airseeker is an application that pushes API provider-signed data to\n/// chain when certain conditions are met so that the data feeds served on the\n/// Api3ServerV1 contract are updated according to the respective specs. In\n/// other words, this contract is an on-chain configuration file for an\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\n/// The Airseeker must know which data feeds are active (and thus need to be\n/// updated), the constituting Airnode (the oracle node that API providers\n/// operate to sign data) addresses and request template IDs, what the\n/// respective on-chain data feed values are, what the update parameters are,\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\n/// that are hosted by the respective API providers.\n/// The contract owner is responsible with leaving the state of this contract\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\n/// without registering the respective data feed, the Airseeker will not have\n/// access to the data that it needs to execute updates.\ncontract AirseekerRegistry is\n    Ownable,\n    ExtendedSelfMulticall,\n    IAirseekerRegistry\n{\n    using EnumerableSet for EnumerableSet.Bytes32Set;\n\n    /// @notice Maximum number of Beacons in a Beacon set that can be\n    /// registered\n    /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\n    /// single-source data feed. Api3ServerV1 allows Beacons to be read\n    /// individually, or arbitrary combinations of them to be aggregated\n    /// on-chain to form multiple-source data feeds, which are called Beacon\n    /// sets. This contract does not support Beacon sets that consist of more\n    /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\n    uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\n\n    /// @notice Maximum encoded update parameters length\n    uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\n\n    /// @notice Maximum signed API URL length\n    uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\n\n    /// @notice Api3ServerV1 contract address\n    address public immutable override api3ServerV1;\n\n    /// @notice Airnode address to signed API URL\n    /// @dev An Airseeker can be configured to refer to additional signed APIs\n    /// than the ones whose URLs are stored in this contract for redundancy\n    mapping(address => string) public override airnodeToSignedApiUrl;\n\n    /// @notice Data feed ID to encoded details\n    mapping(bytes32 => bytes) public override dataFeedIdToDetails;\n\n    // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\n    // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\n    // address data feeds. We use data feed ID as a general term to refer to a\n    // Beacon ID/Beacon set ID.\n    // A data feed ID is immutable (i.e., it always points to the same Beacon\n    // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\n    // feed ID by privileged accounts to implement a mutable data feed\n    // addressing scheme.\n    // If the data feed ID or dAPI name should be used to read a data feed\n    // depends on the use case. To support both schemes, AirseekerRegistry\n    // allows data feeds specs to be defined with either the data feed ID or\n    // the dAPI name.\n    EnumerableSet.Bytes32Set private activeDataFeedIds;\n\n    EnumerableSet.Bytes32Set private activeDapiNames;\n\n    // Considering that the update parameters are typically reused between data\n    // feeds, a hash map is used to avoid storing the same update parameters\n    // redundantly\n    mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\n\n    mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\n\n    mapping(bytes32 => bytes) private updateParametersHashToValue;\n\n    // Length of abi.encode(address, bytes32)\n    uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\n        32 + 32;\n\n    // Length of abi.encode(address[2], bytes32[2])\n    uint256\n        private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\n        32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\n\n    // Length of\n    // abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])\n    uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\n        32 +\n            32 +\n            (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\n            (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\n\n    /// @dev Reverts if the data feed ID is zero\n    /// @param dataFeedId Data feed ID\n    modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\n        require(dataFeedId != bytes32(0), \"Data feed ID zero\");\n        _;\n    }\n\n    /// @dev Reverts if the dAPI name is zero\n    /// @param dapiName dAPI name\n    modifier onlyNonZeroDapiName(bytes32 dapiName) {\n        require(dapiName != bytes32(0), \"dAPI name zero\");\n        _;\n    }\n\n    /// @dev Reverts if the update parameters are too long\n    /// @param updateParameters Update parameters\n    modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\n        require(\n            updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\n            \"Update parameters too long\"\n        );\n        _;\n    }\n\n    /// @param owner_ Owner address\n    /// @param api3ServerV1_ Api3ServerV1 contract address\n    constructor(address owner_, address api3ServerV1_) {\n        require(owner_ != address(0), \"Owner address zero\");\n        require(api3ServerV1_ != address(0), \"Api3ServerV1 address zero\");\n        _transferOwnership(owner_);\n        api3ServerV1 = api3ServerV1_;\n    }\n\n    /// @notice Returns the owner address\n    /// @return Owner address\n    function owner() public view override(Ownable, IOwnable) returns (address) {\n        return super.owner();\n    }\n\n    /// @notice Overriden to be disabled\n    function renounceOwnership() public pure override(Ownable, IOwnable) {\n        revert(\"Ownership cannot be renounced\");\n    }\n\n    /// @notice Overriden to be disabled\n    function transferOwnership(\n        address\n    ) public pure override(Ownable, IOwnable) {\n        revert(\"Ownership cannot be transferred\");\n    }\n\n    /// @notice Called by the owner to set the data feed ID to be activated\n    /// @param dataFeedId Data feed ID\n    function setDataFeedIdToBeActivated(\n        bytes32 dataFeedId\n    ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\n        if (activeDataFeedIds.add(dataFeedId)) {\n            emit ActivatedDataFeedId(dataFeedId);\n        }\n    }\n\n    /// @notice Called by the owner to set the dAPI name to be activated\n    /// @param dapiName dAPI name\n    function setDapiNameToBeActivated(\n        bytes32 dapiName\n    ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\n        if (activeDapiNames.add(dapiName)) {\n            emit ActivatedDapiName(dapiName);\n        }\n    }\n\n    /// @notice Called by the owner to set the data feed ID to be deactivated\n    /// @param dataFeedId Data feed ID\n    function setDataFeedIdToBeDeactivated(\n        bytes32 dataFeedId\n    ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\n        if (activeDataFeedIds.remove(dataFeedId)) {\n            emit DeactivatedDataFeedId(dataFeedId);\n        }\n    }\n\n    /// @notice Called by the owner to set the dAPI name to be deactivated\n    /// @param dapiName dAPI name\n    function setDapiNameToBeDeactivated(\n        bytes32 dapiName\n    ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\n        if (activeDapiNames.remove(dapiName)) {\n            emit DeactivatedDapiName(dapiName);\n        }\n    }\n\n    /// @notice Called by the owner to set the data feed ID update parameters.\n    /// The update parameters must be encoded in a format that Airseeker\n    /// expects.\n    /// @param dataFeedId Data feed ID\n    /// @param updateParameters Update parameters\n    function setDataFeedIdUpdateParameters(\n        bytes32 dataFeedId,\n        bytes calldata updateParameters\n    )\n        external\n        override\n        onlyOwner\n        onlyNonZeroDataFeedId(dataFeedId)\n        onlyValidUpdateParameters(updateParameters)\n    {\n        bytes32 updateParametersHash = keccak256(updateParameters);\n        if (\n            dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\n        ) {\n            dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\n            if (\n                updateParametersHashToValue[updateParametersHash].length !=\n                updateParameters.length\n            ) {\n                updateParametersHashToValue[\n                    updateParametersHash\n                ] = updateParameters;\n            }\n            emit UpdatedDataFeedIdUpdateParameters(\n                dataFeedId,\n                updateParameters\n            );\n        }\n    }\n\n    /// @notice Called by the owner to set the dAPI name update parameters.\n    /// The update parameters must be encoded in a format that Airseeker\n    /// expects.\n    /// @param dapiName dAPI name\n    /// @param updateParameters Update parameters\n    function setDapiNameUpdateParameters(\n        bytes32 dapiName,\n        bytes calldata updateParameters\n    )\n        external\n        override\n        onlyOwner\n        onlyNonZeroDapiName(dapiName)\n        onlyValidUpdateParameters(updateParameters)\n    {\n        bytes32 updateParametersHash = keccak256(updateParameters);\n        if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\n            dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\n            if (\n                updateParametersHashToValue[updateParametersHash].length !=\n                updateParameters.length\n            ) {\n                updateParametersHashToValue[\n                    updateParametersHash\n                ] = updateParameters;\n            }\n            emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\n        }\n    }\n\n    /// @notice Called by the owner to set the signed API URL for the Airnode.\n    /// The signed API must implement the specific interface that Airseeker\n    /// expects.\n    /// @param airnode Airnode address\n    /// @param signedApiUrl Signed API URL\n    function setSignedApiUrl(\n        address airnode,\n        string calldata signedApiUrl\n    ) external override onlyOwner {\n        require(airnode != address(0), \"Airnode address zero\");\n        require(\n            abi.encodePacked(signedApiUrl).length <=\n                MAXIMUM_SIGNED_API_URL_LENGTH,\n            \"Signed API URL too long\"\n        );\n        if (\n            keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\n            keccak256(abi.encodePacked(signedApiUrl))\n        ) {\n            airnodeToSignedApiUrl[airnode] = signedApiUrl;\n            emit UpdatedSignedApiUrl(airnode, signedApiUrl);\n        }\n    }\n\n    /// @notice Registers the data feed. In the case that the data feed is a\n    /// Beacon, the details should be the ABI-encoded Airnode address and\n    /// template ID. In the case that the data feed is a Beacon set, the\n    /// details should be the ABI-encoded Airnode addresses array and template\n    /// IDs array.\n    /// @param dataFeedDetails Data feed details\n    /// @return dataFeedId Data feed ID\n    function registerDataFeed(\n        bytes calldata dataFeedDetails\n    ) external override returns (bytes32 dataFeedId) {\n        uint256 dataFeedDetailsLength = dataFeedDetails.length;\n        if (\n            dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\n        ) {\n            // dataFeedId maps to a Beacon\n            (address airnode, bytes32 templateId) = abi.decode(\n                dataFeedDetails,\n                (address, bytes32)\n            );\n            require(airnode != address(0), \"Airnode address zero\");\n            dataFeedId = deriveBeaconId(airnode, templateId);\n        } else if (\n            dataFeedDetailsLength >=\n            DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\n        ) {\n            require(\n                dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\n                \"Data feed details too long\"\n            );\n            (address[] memory airnodes, bytes32[] memory templateIds) = abi\n                .decode(dataFeedDetails, (address[], bytes32[]));\n            require(\n                abi.encode(airnodes, templateIds).length ==\n                    dataFeedDetailsLength,\n                \"Data feed details trail\"\n            );\n            uint256 beaconCount = airnodes.length;\n            require(\n                beaconCount == templateIds.length,\n                \"Parameter length mismatch\"\n            );\n            bytes32[] memory beaconIds = new bytes32[](beaconCount);\n            for (uint256 ind = 0; ind < beaconCount; ind++) {\n                require(airnodes[ind] != address(0), \"Airnode address zero\");\n                beaconIds[ind] = deriveBeaconId(\n                    airnodes[ind],\n                    templateIds[ind]\n                );\n            }\n            dataFeedId = deriveBeaconSetId(beaconIds);\n        } else {\n            revert(\"Data feed details too short\");\n        }\n        if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\n            dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\n            emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\n        }\n    }\n\n    /// @notice In an imaginary array consisting of the the active data feed\n    /// IDs and active dAPI names, picks the index-th identifier, and returns\n    /// all data about the respective data feed that is available. Whenever\n    /// data is not available (including the case where index does not\n    /// correspond to an active data feed), returns empty values.\n    /// @dev Airseeker uses this function to get all the data it needs about an\n    /// active data feed with a single RPC call\n    /// @param index Index\n    /// @return dataFeedId Data feed ID\n    /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\n    /// identified by a data feed ID)\n    /// @return dataFeedDetails Data feed details\n    /// @return dataFeedValue Data feed value read from Api3ServerV1\n    /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\n    /// @return beaconValues Beacon values read from Api3ServerV1\n    /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\n    /// @return updateParameters Update parameters\n    /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\n    function activeDataFeed(\n        uint256 index\n    )\n        external\n        view\n        override\n        returns (\n            bytes32 dataFeedId,\n            bytes32 dapiName,\n            bytes memory dataFeedDetails,\n            int224 dataFeedValue,\n            uint32 dataFeedTimestamp,\n            int224[] memory beaconValues,\n            uint32[] memory beaconTimestamps,\n            bytes memory updateParameters,\n            string[] memory signedApiUrls\n        )\n    {\n        uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\n        if (index < activeDataFeedIdsLength) {\n            dataFeedId = activeDataFeedIds.at(index);\n            updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\n        } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\n            dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\n            dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\n                keccak256(abi.encodePacked(dapiName))\n            );\n            updateParameters = dapiNameToUpdateParameters(dapiName);\n        }\n        if (dataFeedId != bytes32(0)) {\n            dataFeedDetails = dataFeedIdToDetails[dataFeedId];\n            (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\n                .dataFeeds(dataFeedId);\n        }\n        if (dataFeedDetails.length != 0) {\n            if (\n                dataFeedDetails.length ==\n                DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\n            ) {\n                beaconValues = new int224[](1);\n                beaconTimestamps = new uint32[](1);\n                signedApiUrls = new string[](1);\n                (address airnode, bytes32 templateId) = abi.decode(\n                    dataFeedDetails,\n                    (address, bytes32)\n                );\n                (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\n                    api3ServerV1\n                ).dataFeeds(deriveBeaconId(airnode, templateId));\n                signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\n            } else {\n                (address[] memory airnodes, bytes32[] memory templateIds) = abi\n                    .decode(dataFeedDetails, (address[], bytes32[]));\n                uint256 beaconCount = airnodes.length;\n                beaconValues = new int224[](beaconCount);\n                beaconTimestamps = new uint32[](beaconCount);\n                signedApiUrls = new string[](beaconCount);\n                for (uint256 ind = 0; ind < beaconCount; ind++) {\n                    (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\n                        api3ServerV1\n                    ).dataFeeds(\n                            deriveBeaconId(airnodes[ind], templateIds[ind])\n                        );\n                    signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\n                }\n            }\n        }\n    }\n\n    /// @notice Returns the number of active data feeds identified by a data\n    /// feed ID or dAPI name\n    /// @return Active data feed count\n    function activeDataFeedCount() external view override returns (uint256) {\n        return activeDataFeedIdCount() + activeDapiNameCount();\n    }\n\n    /// @notice Returns the number of active data feeds identified by a data\n    /// feed ID\n    /// @return Active data feed ID count\n    function activeDataFeedIdCount() public view override returns (uint256) {\n        return activeDataFeedIds.length();\n    }\n\n    /// @notice Returns the number of active data feeds identified by a dAPI\n    /// name\n    /// @return Active dAPI name count\n    function activeDapiNameCount() public view override returns (uint256) {\n        return activeDapiNames.length();\n    }\n\n    /// @notice Data feed ID to update parameters\n    /// @param dataFeedId Data feed ID\n    /// @return updateParameters Update parameters\n    function dataFeedIdToUpdateParameters(\n        bytes32 dataFeedId\n    ) public view override returns (bytes memory updateParameters) {\n        updateParameters = updateParametersHashToValue[\n            dataFeedIdToUpdateParametersHash[dataFeedId]\n        ];\n    }\n\n    /// @notice dAPI name to update parameters\n    /// @param dapiName dAPI name\n    /// @return updateParameters Update parameters\n    function dapiNameToUpdateParameters(\n        bytes32 dapiName\n    ) public view override returns (bytes memory updateParameters) {\n        updateParameters = updateParametersHashToValue[\n            dapiNameToUpdateParametersHash[dapiName]\n        ];\n    }\n\n    /// @notice Returns if the data feed with ID is registered\n    /// @param dataFeedId Data feed ID\n    /// @return If the data feed with ID is registered\n    function dataFeedIsRegistered(\n        bytes32 dataFeedId\n    ) external view override returns (bool) {\n        return dataFeedIdToDetails[dataFeedId].length != 0;\n    }\n\n    /// @notice Derives the Beacon ID from the Airnode address and template ID\n    /// @param airnode Airnode address\n    /// @param templateId Template ID\n    /// @return beaconId Beacon ID\n    function deriveBeaconId(\n        address airnode,\n        bytes32 templateId\n    ) private pure returns (bytes32 beaconId) {\n        beaconId = keccak256(abi.encodePacked(airnode, templateId));\n    }\n\n    /// @notice Derives the Beacon set ID from the Beacon IDs\n    /// @param beaconIds Beacon IDs\n    /// @return beaconSetId Beacon set ID\n    function deriveBeaconSetId(\n        bytes32[] memory beaconIds\n    ) private pure returns (bytes32 beaconSetId) {\n        beaconSetId = keccak256(abi.encode(beaconIds));\n    }\n}\n"
      },
      "contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"../../access/interfaces/IOwnable.sol\";\nimport \"../../utils/interfaces/IExtendedSelfMulticall.sol\";\n\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\n    event ActivatedDataFeedId(bytes32 indexed dataFeedId);\n\n    event ActivatedDapiName(bytes32 indexed dapiName);\n\n    event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\n\n    event DeactivatedDapiName(bytes32 indexed dapiName);\n\n    event UpdatedDataFeedIdUpdateParameters(\n        bytes32 indexed dataFeedId,\n        bytes updateParameters\n    );\n\n    event UpdatedDapiNameUpdateParameters(\n        bytes32 indexed dapiName,\n        bytes updateParameters\n    );\n\n    event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\n\n    event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\n\n    function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\n\n    function setDapiNameToBeActivated(bytes32 dapiName) external;\n\n    function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\n\n    function setDapiNameToBeDeactivated(bytes32 dapiName) external;\n\n    function setDataFeedIdUpdateParameters(\n        bytes32 dataFeedId,\n        bytes calldata updateParameters\n    ) external;\n\n    function setDapiNameUpdateParameters(\n        bytes32 dapiName,\n        bytes calldata updateParameters\n    ) external;\n\n    function setSignedApiUrl(\n        address airnode,\n        string calldata signedApiUrl\n    ) external;\n\n    function registerDataFeed(\n        bytes calldata dataFeedDetails\n    ) external returns (bytes32 dataFeedId);\n\n    function activeDataFeed(\n        uint256 index\n    )\n        external\n        view\n        returns (\n            bytes32 dataFeedId,\n            bytes32 dapiName,\n            bytes memory dataFeedDetails,\n            int224 dataFeedValue,\n            uint32 dataFeedTimestamp,\n            int224[] memory beaconValues,\n            uint32[] memory beaconTimestamps,\n            bytes memory updateParameters,\n            string[] memory signedApiUrls\n        );\n\n    function activeDataFeedCount() external view returns (uint256);\n\n    function activeDataFeedIdCount() external view returns (uint256);\n\n    function activeDapiNameCount() external view returns (uint256);\n\n    function dataFeedIdToUpdateParameters(\n        bytes32 dataFeedId\n    ) external view returns (bytes memory updateParameters);\n\n    function dapiNameToUpdateParameters(\n        bytes32 dapiName\n    ) external view returns (bytes memory updateParameters);\n\n    function dataFeedIsRegistered(\n        bytes32 dataFeedId\n    ) external view returns (bool);\n\n    function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\n\n    function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\n\n    function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\n\n    function api3ServerV1() external view returns (address);\n\n    function airnodeToSignedApiUrl(\n        address airnode\n    ) external view returns (string memory signedApiUrl);\n\n    function dataFeedIdToDetails(\n        bytes32 dataFeedId\n    ) external view returns (bytes memory dataFeedDetails);\n}\n"
      },
      "contracts/api3-server-v1/interfaces/IApi3ServerV1.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./IOevDapiServer.sol\";\nimport \"./IBeaconUpdatesWithSignedData.sol\";\n\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\n    function readDataFeedWithId(\n        bytes32 dataFeedId\n    ) external view returns (int224 value, uint32 timestamp);\n\n    function readDataFeedWithDapiNameHash(\n        bytes32 dapiNameHash\n    ) external view returns (int224 value, uint32 timestamp);\n\n    function readDataFeedWithIdAsOevProxy(\n        bytes32 dataFeedId\n    ) external view returns (int224 value, uint32 timestamp);\n\n    function readDataFeedWithDapiNameHashAsOevProxy(\n        bytes32 dapiNameHash\n    ) external view returns (int224 value, uint32 timestamp);\n\n    function dataFeeds(\n        bytes32 dataFeedId\n    ) external view returns (int224 value, uint32 timestamp);\n\n    function oevProxyToIdToDataFeed(\n        address proxy,\n        bytes32 dataFeedId\n    ) external view returns (int224 value, uint32 timestamp);\n}\n"
      },
      "contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./IDataFeedServer.sol\";\n\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\n    function updateBeaconWithSignedData(\n        address airnode,\n        bytes32 templateId,\n        uint256 timestamp,\n        bytes calldata data,\n        bytes calldata signature\n    ) external returns (bytes32 beaconId);\n}\n"
      },
      "contracts/api3-server-v1/interfaces/IDapiServer.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\";\nimport \"./IDataFeedServer.sol\";\n\ninterface IDapiServer is\n    IAccessControlRegistryAdminnedWithManager,\n    IDataFeedServer\n{\n    event SetDapiName(\n        bytes32 indexed dataFeedId,\n        bytes32 indexed dapiName,\n        address sender\n    );\n\n    function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\n\n    function dapiNameToDataFeedId(\n        bytes32 dapiName\n    ) external view returns (bytes32);\n\n    // solhint-disable-next-line func-name-mixedcase\n    function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\n        external\n        view\n        returns (string memory);\n\n    function dapiNameSetterRole() external view returns (bytes32);\n\n    function dapiNameHashToDataFeedId(\n        bytes32 dapiNameHash\n    ) external view returns (bytes32 dataFeedId);\n}\n"
      },
      "contracts/api3-server-v1/interfaces/IDataFeedServer.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"../../utils/interfaces/IExtendedSelfMulticall.sol\";\n\ninterface IDataFeedServer is IExtendedSelfMulticall {\n    event UpdatedBeaconWithSignedData(\n        bytes32 indexed beaconId,\n        int224 value,\n        uint32 timestamp\n    );\n\n    event UpdatedBeaconSetWithBeacons(\n        bytes32 indexed beaconSetId,\n        int224 value,\n        uint32 timestamp\n    );\n\n    function updateBeaconSetWithBeacons(\n        bytes32[] memory beaconIds\n    ) external returns (bytes32 beaconSetId);\n}\n"
      },
      "contracts/api3-server-v1/interfaces/IOevDapiServer.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./IOevDataFeedServer.sol\";\nimport \"./IDapiServer.sol\";\n\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\n"
      },
      "contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./IDataFeedServer.sol\";\n\ninterface IOevDataFeedServer is IDataFeedServer {\n    event UpdatedOevProxyBeaconWithSignedData(\n        bytes32 indexed beaconId,\n        address indexed proxy,\n        bytes32 indexed updateId,\n        int224 value,\n        uint32 timestamp\n    );\n\n    event UpdatedOevProxyBeaconSetWithSignedData(\n        bytes32 indexed beaconSetId,\n        address indexed proxy,\n        bytes32 indexed updateId,\n        int224 value,\n        uint32 timestamp\n    );\n\n    event Withdrew(\n        address indexed oevProxy,\n        address oevBeneficiary,\n        uint256 amount\n    );\n\n    function updateOevProxyDataFeedWithSignedData(\n        address oevProxy,\n        bytes32 dataFeedId,\n        bytes32 updateId,\n        uint256 timestamp,\n        bytes calldata data,\n        bytes[] calldata packedOevUpdateSignatures\n    ) external payable;\n\n    function withdraw(address oevProxy) external;\n\n    function oevProxyToBalance(\n        address oevProxy\n    ) external view returns (uint256 balance);\n}\n"
      },
      "contracts/utils/ExtendedSelfMulticall.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.7;\n\nimport \"./SelfMulticall.sol\";\nimport \"./interfaces/IExtendedSelfMulticall.sol\";\n\n/// @title Contract that extends SelfMulticall to fetch some of the global\n/// variables\n/// @notice Available global variables are limited to the ones that Airnode\n/// tends to need\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\n    /// @notice Returns the chain ID\n    /// @return Chain ID\n    function getChainId() external view override returns (uint256) {\n        return block.chainid;\n    }\n\n    /// @notice Returns the account balance\n    /// @param account Account address\n    /// @return Account balance\n    function getBalance(\n        address account\n    ) external view override returns (uint256) {\n        return account.balance;\n    }\n\n    /// @notice Returns if the account contains bytecode\n    /// @dev An account not containing any bytecode does not indicate that it\n    /// is an EOA or it will not contain any bytecode in the future.\n    /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\n    /// end of the transaction.\n    /// @return If the account contains bytecode\n    function containsBytecode(\n        address account\n    ) external view override returns (bool) {\n        return account.code.length > 0;\n    }\n\n    /// @notice Returns the current block number\n    /// @return Current block number\n    function getBlockNumber() external view override returns (uint256) {\n        return block.number;\n    }\n\n    /// @notice Returns the current block timestamp\n    /// @return Current block timestamp\n    function getBlockTimestamp() external view override returns (uint256) {\n        return block.timestamp;\n    }\n\n    /// @notice Returns the current block basefee\n    /// @return Current block basefee\n    function getBlockBasefee() external view override returns (uint256) {\n        return block.basefee;\n    }\n}\n"
      },
      "contracts/utils/interfaces/IExtendedSelfMulticall.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./ISelfMulticall.sol\";\n\ninterface IExtendedSelfMulticall is ISelfMulticall {\n    function getChainId() external view returns (uint256);\n\n    function getBalance(address account) external view returns (uint256);\n\n    function containsBytecode(address account) external view returns (bool);\n\n    function getBlockNumber() external view returns (uint256);\n\n    function getBlockTimestamp() external view returns (uint256);\n\n    function getBlockBasefee() external view returns (uint256);\n}\n"
      },
      "contracts/utils/interfaces/ISelfMulticall.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface ISelfMulticall {\n    function multicall(\n        bytes[] calldata data\n    ) external returns (bytes[] memory returndata);\n\n    function tryMulticall(\n        bytes[] calldata data\n    ) external returns (bool[] memory successes, bytes[] memory returndata);\n}\n"
      },
      "contracts/utils/SelfMulticall.sol": {
        "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./interfaces/ISelfMulticall.sol\";\n\n/// @title Contract that enables calls to the inheriting contract to be batched\n/// @notice Implements two ways of batching, one requires none of the calls to\n/// revert and the other tolerates individual calls reverting\n/// @dev This implementation uses delegatecall for individual function calls.\n/// Since delegatecall is a message call, it can only be made to functions that\n/// are externally visible. This means that a contract cannot multicall its own\n/// functions that use internal/private visibility modifiers.\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\ncontract SelfMulticall is ISelfMulticall {\n    /// @notice Batches calls to the inheriting contract and reverts as soon as\n    /// one of the batched calls reverts\n    /// @param data Array of calldata of batched calls\n    /// @return returndata Array of returndata of batched calls\n    function multicall(\n        bytes[] calldata data\n    ) external override returns (bytes[] memory returndata) {\n        uint256 callCount = data.length;\n        returndata = new bytes[](callCount);\n        for (uint256 ind = 0; ind < callCount; ) {\n            bool success;\n            // solhint-disable-next-line avoid-low-level-calls\n            (success, returndata[ind]) = address(this).delegatecall(data[ind]);\n            if (!success) {\n                bytes memory returndataWithRevertData = returndata[ind];\n                if (returndataWithRevertData.length > 0) {\n                    // Adapted from OpenZeppelin's Address.sol\n                    // solhint-disable-next-line no-inline-assembly\n                    assembly {\n                        let returndata_size := mload(returndataWithRevertData)\n                        revert(\n                            add(32, returndataWithRevertData),\n                            returndata_size\n                        )\n                    }\n                } else {\n                    revert(\"Multicall: No revert string\");\n                }\n            }\n            unchecked {\n                ind++;\n            }\n        }\n    }\n\n    /// @notice Batches calls to the inheriting contract but does not revert if\n    /// any of the batched calls reverts\n    /// @param data Array of calldata of batched calls\n    /// @return successes Array of success conditions of batched calls\n    /// @return returndata Array of returndata of batched calls\n    function tryMulticall(\n        bytes[] calldata data\n    )\n        external\n        override\n        returns (bool[] memory successes, bytes[] memory returndata)\n    {\n        uint256 callCount = data.length;\n        successes = new bool[](callCount);\n        returndata = new bytes[](callCount);\n        for (uint256 ind = 0; ind < callCount; ) {\n            // solhint-disable-next-line avoid-low-level-calls\n            (successes[ind], returndata[ind]) = address(this).delegatecall(\n                data[ind]\n            );\n            unchecked {\n                ind++;\n            }\n        }\n    }\n}\n"
      },
      "contracts/vendor/@openzeppelin/contracts@4.9.5/access/Ownable.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    constructor() {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"
      },
      "contracts/vendor/@openzeppelin/contracts@4.9.5/utils/Context.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"
      },
      "contracts/vendor/@openzeppelin/contracts@4.9.5/utils/structs/EnumerableSet.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```solidity\n * contract Example {\n *     // Add the library methods\n *     using EnumerableSet for EnumerableSet.AddressSet;\n *\n *     // Declare a set state variable\n *     EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\n * and `uint256` (`UintSet`) are supported.\n *\n * [WARNING]\n * ====\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\n * unusable.\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\n *\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\n * array of EnumerableSet.\n * ====\n */\nlibrary EnumerableSet {\n    // To implement this library for multiple types with as little code\n    // repetition as possible, we write it in terms of a generic Set type with\n    // bytes32 values.\n    // The Set implementation uses private functions, and user-facing\n    // implementations (such as AddressSet) are just wrappers around the\n    // underlying Set.\n    // This means that we can only create new EnumerableSets for types that fit\n    // in bytes32.\n\n    struct Set {\n        // Storage of set values\n        bytes32[] _values;\n        // Position of the value in the `values` array, plus 1 because index 0\n        // means a value is not in the set.\n        mapping(bytes32 => uint256) _indexes;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function _add(Set storage set, bytes32 value) private returns (bool) {\n        if (!_contains(set, value)) {\n            set._values.push(value);\n            // The value is stored at length-1, but we add 1 to all indexes\n            // and use 0 as a sentinel value\n            set._indexes[value] = set._values.length;\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function _remove(Set storage set, bytes32 value) private returns (bool) {\n        // We read and store the value's index to prevent multiple reads from the same storage slot\n        uint256 valueIndex = set._indexes[value];\n\n        if (valueIndex != 0) {\n            // Equivalent to contains(set, value)\n            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n            // the array, and then remove the last element (sometimes called as 'swap and pop').\n            // This modifies the order of the array, as noted in {at}.\n\n            uint256 toDeleteIndex = valueIndex - 1;\n            uint256 lastIndex = set._values.length - 1;\n\n            if (lastIndex != toDeleteIndex) {\n                bytes32 lastValue = set._values[lastIndex];\n\n                // Move the last value to the index where the value to delete is\n                set._values[toDeleteIndex] = lastValue;\n                // Update the index for the moved value\n                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\n            }\n\n            // Delete the slot where the moved value was stored\n            set._values.pop();\n\n            // Delete the index for the deleted slot\n            delete set._indexes[value];\n\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function _contains(Set storage set, bytes32 value) private view returns (bool) {\n        return set._indexes[value] != 0;\n    }\n\n    /**\n     * @dev Returns the number of values on the set. O(1).\n     */\n    function _length(Set storage set) private view returns (uint256) {\n        return set._values.length;\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function _at(Set storage set, uint256 index) private view returns (bytes32) {\n        return set._values[index];\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function _values(Set storage set) private view returns (bytes32[] memory) {\n        return set._values;\n    }\n\n    // Bytes32Set\n\n    struct Bytes32Set {\n        Set _inner;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n        return _add(set._inner, value);\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n        return _remove(set._inner, value);\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\n        return _contains(set._inner, value);\n    }\n\n    /**\n     * @dev Returns the number of values in the set. O(1).\n     */\n    function length(Bytes32Set storage set) internal view returns (uint256) {\n        return _length(set._inner);\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\n        return _at(set._inner, index);\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\n        bytes32[] memory store = _values(set._inner);\n        bytes32[] memory result;\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := store\n        }\n\n        return result;\n    }\n\n    // AddressSet\n\n    struct AddressSet {\n        Set _inner;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function add(AddressSet storage set, address value) internal returns (bool) {\n        return _add(set._inner, bytes32(uint256(uint160(value))));\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function remove(AddressSet storage set, address value) internal returns (bool) {\n        return _remove(set._inner, bytes32(uint256(uint160(value))));\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function contains(AddressSet storage set, address value) internal view returns (bool) {\n        return _contains(set._inner, bytes32(uint256(uint160(value))));\n    }\n\n    /**\n     * @dev Returns the number of values in the set. O(1).\n     */\n    function length(AddressSet storage set) internal view returns (uint256) {\n        return _length(set._inner);\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function at(AddressSet storage set, uint256 index) internal view returns (address) {\n        return address(uint160(uint256(_at(set._inner, index))));\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function values(AddressSet storage set) internal view returns (address[] memory) {\n        bytes32[] memory store = _values(set._inner);\n        address[] memory result;\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := store\n        }\n\n        return result;\n    }\n\n    // UintSet\n\n    struct UintSet {\n        Set _inner;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function add(UintSet storage set, uint256 value) internal returns (bool) {\n        return _add(set._inner, bytes32(value));\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function remove(UintSet storage set, uint256 value) internal returns (bool) {\n        return _remove(set._inner, bytes32(value));\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n        return _contains(set._inner, bytes32(value));\n    }\n\n    /**\n     * @dev Returns the number of values in the set. O(1).\n     */\n    function length(UintSet storage set) internal view returns (uint256) {\n        return _length(set._inner);\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n        return uint256(_at(set._inner, index));\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function values(UintSet storage set) internal view returns (uint256[] memory) {\n        bytes32[] memory store = _values(set._inner);\n        uint256[] memory result;\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := store\n        }\n\n        return result;\n    }\n}\n"
      }
    },
    "settings": {
      "optimizer": {
        "enabled": true,
        "runs": 1000
      },
      "outputSelection": {
        "*": {
          "*": [
            "evm.bytecode",
            "evm.deployedBytecode",
            "devdoc",
            "userdoc",
            "metadata",
            "abi"
          ]
        }
      },
      "metadata": {
        "useLiteralContent": true
      },
      "libraries": {}
    }
  }}